@remotion/lambda 3.0.0-wrappedup.222 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc.js +1 -2
- package/LICENSE.md +2 -2
- package/README.md +1 -10
- package/dist/admin/bundle-lambda.d.ts +0 -0
- package/dist/admin/bundle-lambda.d.ts.map +0 -0
- package/dist/admin/bundle-lambda.js +3 -3
- package/dist/admin/bundle-lambda.js.map +1 -1
- package/dist/admin/make-layer-public.d.ts +0 -0
- package/dist/admin/make-layer-public.d.ts.map +0 -0
- package/dist/admin/make-layer-public.js +65 -48
- package/dist/admin/make-layer-public.js.map +1 -1
- package/dist/api/bucket-exists.d.ts +0 -0
- package/dist/api/bucket-exists.d.ts.map +0 -0
- package/dist/api/bucket-exists.js +0 -0
- package/dist/api/bucket-exists.js.map +0 -0
- package/dist/api/clean-items.d.ts +0 -0
- package/dist/api/clean-items.d.ts.map +0 -0
- package/dist/api/clean-items.js +0 -0
- package/dist/api/clean-items.js.map +0 -0
- package/dist/api/create-bucket.d.ts +0 -0
- package/dist/api/create-bucket.d.ts.map +0 -0
- package/dist/api/create-bucket.js +0 -0
- package/dist/api/create-bucket.js.map +0 -0
- package/dist/api/create-function.d.ts +7 -2
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js +22 -8
- package/dist/api/create-function.js.map +1 -1
- package/dist/api/delete-function.d.ts +7 -6
- package/dist/api/delete-function.d.ts.map +1 -1
- package/dist/api/delete-function.js +2 -2
- package/dist/api/delete-function.js.map +1 -1
- package/dist/api/delete-site.d.ts +5 -5
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/delete-site.js +2 -2
- package/dist/api/delete-site.js.map +1 -1
- package/dist/api/deploy-function.d.ts +20 -10
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +28 -8
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-site.d.ts +3 -3
- package/dist/api/deploy-site.d.ts.map +1 -1
- package/dist/api/deploy-site.js +6 -8
- package/dist/api/deploy-site.js.map +1 -1
- package/dist/api/download-media.d.ts +19 -0
- package/dist/api/download-media.d.ts.map +1 -0
- package/dist/api/{download-video.js → download-media.js} +15 -21
- package/dist/api/download-media.js.map +1 -0
- package/dist/api/enable-s3-website.d.ts +0 -0
- package/dist/api/enable-s3-website.d.ts.map +1 -1
- package/dist/api/enable-s3-website.js +0 -1
- package/dist/api/enable-s3-website.js.map +1 -1
- package/dist/api/estimate-price.d.ts +18 -0
- package/dist/api/estimate-price.d.ts.map +1 -0
- package/dist/api/estimate-price.js +51 -0
- package/dist/api/estimate-price.js.map +1 -0
- package/dist/api/get-aws-client.d.ts +32 -0
- package/dist/api/get-aws-client.d.ts.map +1 -0
- package/dist/api/get-aws-client.js +49 -0
- package/dist/api/get-aws-client.js.map +1 -0
- package/dist/api/get-buckets.d.ts +0 -0
- package/dist/api/get-buckets.d.ts.map +1 -1
- package/dist/api/get-buckets.js +1 -7
- package/dist/api/get-buckets.js.map +1 -1
- package/dist/api/get-function-info.d.ts +4 -4
- package/dist/api/get-function-info.d.ts.map +1 -1
- package/dist/api/get-function-info.js +4 -2
- package/dist/api/get-function-info.js.map +1 -1
- package/dist/api/get-functions.d.ts +7 -6
- package/dist/api/get-functions.d.ts.map +1 -1
- package/dist/api/get-functions.js +30 -4
- package/dist/api/get-functions.js.map +1 -1
- package/dist/api/get-or-create-bucket.d.ts +5 -6
- package/dist/api/get-or-create-bucket.d.ts.map +1 -1
- package/dist/api/get-or-create-bucket.js +2 -2
- package/dist/api/get-or-create-bucket.js.map +1 -1
- package/dist/api/get-regions.d.ts +8 -0
- package/dist/api/get-regions.d.ts.map +1 -0
- package/dist/api/get-regions.js +14 -0
- package/dist/api/get-regions.js.map +1 -0
- package/dist/api/get-render-progress.d.ts +12 -10
- package/dist/api/get-render-progress.d.ts.map +1 -1
- package/dist/api/get-render-progress.js +6 -5
- package/dist/api/get-render-progress.js.map +1 -1
- package/dist/api/get-sites.d.ts +12 -4
- package/dist/api/get-sites.d.ts.map +1 -1
- package/dist/api/get-sites.js +8 -3
- package/dist/api/get-sites.js.map +1 -1
- package/dist/api/iam-validation/role-permissions.d.ts +0 -0
- package/dist/api/iam-validation/role-permissions.d.ts.map +0 -0
- package/dist/api/iam-validation/role-permissions.js +0 -0
- package/dist/api/iam-validation/role-permissions.js.map +0 -0
- package/dist/api/iam-validation/simulate-rule.d.ts +0 -0
- package/dist/api/iam-validation/simulate-rule.d.ts.map +0 -0
- package/dist/api/iam-validation/simulate-rule.js +0 -0
- package/dist/api/iam-validation/simulate-rule.js.map +0 -0
- package/dist/api/iam-validation/simulate.d.ts +13 -4
- package/dist/api/iam-validation/simulate.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate.js +7 -0
- package/dist/api/iam-validation/simulate.js.map +1 -1
- package/dist/api/iam-validation/suggested-policy.d.ts +2 -2
- package/dist/api/iam-validation/suggested-policy.d.ts.map +0 -0
- package/dist/api/iam-validation/suggested-policy.js +2 -2
- package/dist/api/iam-validation/suggested-policy.js.map +0 -0
- package/dist/api/iam-validation/user-permissions.d.ts +2 -2
- package/dist/api/iam-validation/user-permissions.d.ts.map +1 -1
- package/dist/api/iam-validation/user-permissions.js +10 -0
- package/dist/api/iam-validation/user-permissions.js.map +1 -1
- package/dist/api/mock-functions.d.ts +0 -0
- package/dist/api/mock-functions.d.ts.map +0 -0
- package/dist/api/mock-functions.js +0 -0
- package/dist/api/mock-functions.js.map +0 -0
- package/dist/api/presign-url.d.ts +20 -0
- package/dist/api/presign-url.d.ts.map +1 -0
- package/dist/api/presign-url.js +47 -0
- package/dist/api/presign-url.js.map +1 -0
- package/dist/api/{render-video-on-lambda.d.ts → render-media-on-lambda.d.ts} +36 -27
- package/dist/api/render-media-on-lambda.d.ts.map +1 -0
- package/dist/api/{render-video-on-lambda.js → render-media-on-lambda.js} +19 -11
- package/dist/api/render-media-on-lambda.js.map +1 -0
- package/dist/api/render-still-on-lambda.d.ts +30 -22
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +10 -5
- package/dist/api/render-still-on-lambda.js.map +1 -1
- package/dist/api/upload-dir.d.ts +1 -1
- package/dist/api/upload-dir.d.ts.map +1 -1
- package/dist/api/upload-dir.js +7 -5
- package/dist/api/upload-dir.js.map +1 -1
- package/dist/cli/args.d.ts +6 -3
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -3
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/functions/deploy.d.ts +0 -0
- package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
- package/dist/cli/commands/functions/deploy.js +34 -5
- package/dist/cli/commands/functions/deploy.js.map +1 -1
- package/dist/cli/commands/functions/index.d.ts +0 -0
- package/dist/cli/commands/functions/index.d.ts.map +1 -1
- package/dist/cli/commands/functions/index.js +7 -0
- package/dist/cli/commands/functions/index.js.map +1 -1
- package/dist/cli/commands/functions/ls.d.ts +0 -0
- package/dist/cli/commands/functions/ls.d.ts.map +1 -1
- package/dist/cli/commands/functions/ls.js +7 -7
- package/dist/cli/commands/functions/ls.js.map +1 -1
- package/dist/cli/commands/functions/rm.d.ts +0 -0
- package/dist/cli/commands/functions/rm.d.ts.map +1 -1
- package/dist/cli/commands/functions/rm.js +2 -2
- package/dist/cli/commands/functions/rm.js.map +1 -1
- package/dist/cli/commands/functions/rmall.d.ts +3 -0
- package/dist/cli/commands/functions/rmall.d.ts.map +1 -0
- package/dist/cli/commands/functions/rmall.js +41 -0
- package/dist/cli/commands/functions/rmall.js.map +1 -0
- package/dist/cli/commands/policies/policies.d.ts +0 -0
- package/dist/cli/commands/policies/policies.d.ts.map +0 -0
- package/dist/cli/commands/policies/policies.js +0 -0
- package/dist/cli/commands/policies/policies.js.map +0 -0
- package/dist/cli/commands/policies/role.d.ts +0 -0
- package/dist/cli/commands/policies/role.d.ts.map +0 -0
- package/dist/cli/commands/policies/role.js +0 -0
- package/dist/cli/commands/policies/role.js.map +0 -0
- package/dist/cli/commands/policies/user.d.ts +0 -0
- package/dist/cli/commands/policies/user.d.ts.map +0 -0
- package/dist/cli/commands/policies/user.js +0 -0
- package/dist/cli/commands/policies/user.js.map +0 -0
- package/dist/cli/commands/policies/validate.d.ts +0 -0
- package/dist/cli/commands/policies/validate.d.ts.map +0 -0
- package/dist/cli/commands/policies/validate.js +0 -0
- package/dist/cli/commands/policies/validate.js.map +0 -0
- package/dist/cli/commands/quotas/increase.d.ts +3 -0
- package/dist/cli/commands/quotas/increase.d.ts.map +1 -0
- package/dist/cli/commands/quotas/increase.js +58 -0
- package/dist/cli/commands/quotas/increase.js.map +1 -0
- package/dist/cli/commands/quotas/index.d.ts +3 -0
- package/dist/cli/commands/quotas/index.d.ts.map +1 -0
- package/dist/cli/commands/quotas/index.js +30 -0
- package/dist/cli/commands/quotas/index.js.map +1 -0
- package/dist/cli/commands/quotas/list.d.ts +2 -0
- package/dist/cli/commands/quotas/list.d.ts.map +1 -0
- package/dist/cli/commands/quotas/list.js +65 -0
- package/dist/cli/commands/quotas/list.js.map +1 -0
- package/dist/cli/commands/regions.d.ts +3 -0
- package/dist/cli/commands/regions.d.ts.map +1 -0
- package/dist/cli/commands/regions.js +11 -0
- package/dist/cli/commands/regions.js.map +1 -0
- package/dist/cli/commands/render/progress.d.ts +1 -3
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +1 -22
- package/dist/cli/commands/render/progress.js.map +1 -1
- package/dist/cli/commands/render/render.d.ts +1 -1
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +50 -40
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/sites/create.d.ts +0 -0
- package/dist/cli/commands/sites/create.d.ts.map +1 -1
- package/dist/cli/commands/sites/create.js +14 -6
- package/dist/cli/commands/sites/create.js.map +1 -1
- package/dist/cli/commands/sites/index.d.ts +0 -0
- package/dist/cli/commands/sites/index.d.ts.map +1 -1
- package/dist/cli/commands/sites/index.js +4 -0
- package/dist/cli/commands/sites/index.js.map +1 -1
- package/dist/cli/commands/sites/ls.d.ts +0 -0
- package/dist/cli/commands/sites/ls.d.ts.map +1 -1
- package/dist/cli/commands/sites/ls.js +8 -5
- package/dist/cli/commands/sites/ls.js.map +1 -1
- package/dist/cli/commands/sites/rm.d.ts +0 -0
- package/dist/cli/commands/sites/rm.d.ts.map +1 -1
- package/dist/cli/commands/sites/rm.js +11 -3
- package/dist/cli/commands/sites/rm.js.map +1 -1
- package/dist/cli/commands/sites/rmall.d.ts +3 -0
- package/dist/cli/commands/sites/rmall.d.ts.map +1 -0
- package/dist/cli/commands/sites/rmall.js +49 -0
- package/dist/cli/commands/sites/rmall.js.map +1 -0
- package/dist/cli/commands/still.d.ts +0 -0
- package/dist/cli/commands/still.d.ts.map +1 -1
- package/dist/cli/commands/still.js +65 -24
- package/dist/cli/commands/still.js.map +1 -1
- package/dist/cli/get-aws-region.d.ts +0 -0
- package/dist/cli/get-aws-region.d.ts.map +1 -1
- package/dist/cli/get-aws-region.js +2 -2
- package/dist/cli/get-aws-region.js.map +1 -1
- package/dist/cli/help.d.ts +0 -0
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +13 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/helpers/confirm.d.ts +0 -0
- package/dist/cli/helpers/confirm.d.ts.map +1 -1
- package/dist/cli/helpers/confirm.js +4 -18
- package/dist/cli/helpers/confirm.js.map +1 -1
- package/dist/cli/helpers/date-string.d.ts +0 -0
- package/dist/cli/helpers/date-string.d.ts.map +0 -0
- package/dist/cli/helpers/date-string.js +0 -0
- package/dist/cli/helpers/date-string.js.map +0 -0
- package/dist/cli/helpers/find-function-name.d.ts +0 -0
- package/dist/cli/helpers/find-function-name.d.ts.map +0 -0
- package/dist/cli/helpers/find-function-name.js +0 -0
- package/dist/cli/helpers/find-function-name.js.map +0 -0
- package/dist/cli/helpers/format-bytes.d.ts +0 -0
- package/dist/cli/helpers/format-bytes.d.ts.map +0 -0
- package/dist/cli/helpers/format-bytes.js +0 -0
- package/dist/cli/helpers/format-bytes.js.map +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +0 -0
- package/dist/cli/helpers/progress-bar.d.ts +0 -0
- package/dist/cli/helpers/progress-bar.d.ts.map +0 -0
- package/dist/cli/helpers/progress-bar.js +0 -0
- package/dist/cli/helpers/progress-bar.js.map +0 -0
- package/dist/cli/helpers/quit.d.ts +0 -0
- package/dist/cli/helpers/quit.d.ts.map +0 -0
- package/dist/cli/helpers/quit.js +0 -0
- package/dist/cli/helpers/quit.js.map +0 -0
- package/dist/cli/helpers/yes-or-no.d.ts +5 -0
- package/dist/cli/helpers/yes-or-no.d.ts.map +1 -0
- package/dist/cli/helpers/yes-or-no.js +45 -0
- package/dist/cli/helpers/yes-or-no.js.map +1 -0
- package/dist/cli/index.d.ts +0 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +24 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/is-cli.d.ts +3 -0
- package/dist/cli/is-cli.d.ts.map +1 -0
- package/dist/cli/is-cli.js +11 -0
- package/dist/cli/is-cli.js.map +1 -0
- package/dist/cli/log.d.ts +0 -0
- package/dist/cli/log.d.ts.map +0 -0
- package/dist/cli/log.js +0 -0
- package/dist/cli/log.js.map +0 -0
- package/dist/client.d.ts +4 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -7
- package/dist/client.js.map +1 -1
- package/dist/defaults.d.ts +0 -0
- package/dist/defaults.d.ts.map +0 -0
- package/dist/defaults.js +0 -0
- package/dist/defaults.js.map +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.js +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.js.map +0 -0
- package/dist/functions/chunk-optimization/collect-data.d.ts +3 -2
- package/dist/functions/chunk-optimization/collect-data.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/collect-data.js +0 -0
- package/dist/functions/chunk-optimization/collect-data.js.map +0 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +4 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js +0 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js.map +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.d.ts +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.js +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.js.map +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.d.ts +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.js +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.js.map +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.js +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.js.map +0 -0
- package/dist/functions/chunk-optimization/optimize-profile.d.ts +8 -2
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/optimize-profile.js +0 -0
- package/dist/functions/chunk-optimization/optimize-profile.js.map +0 -0
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +4 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.js +0 -0
- package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.d.ts +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.js +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.js.map +0 -0
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +4 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.js +0 -0
- package/dist/functions/chunk-optimization/simulate-frame-ranges.js.map +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.d.ts +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.js +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.js.map +0 -0
- package/dist/functions/chunk-optimization/types.d.ts +0 -0
- package/dist/functions/chunk-optimization/types.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/types.js +0 -0
- package/dist/functions/chunk-optimization/types.js.map +0 -0
- package/dist/functions/fire.d.ts +0 -0
- package/dist/functions/fire.d.ts.map +0 -0
- package/dist/functions/fire.js +0 -0
- package/dist/functions/fire.js.map +0 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.d.ts +2 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.d.ts.map +1 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.js +18 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.js.map +1 -0
- package/dist/functions/helpers/calculate-chunk-times.d.ts +0 -0
- package/dist/functions/helpers/calculate-chunk-times.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-chunk-times.js +13 -10
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts +7 -2
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.js +7 -10
- package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.d.ts +0 -0
- package/dist/functions/helpers/clean-tmpdir.d.ts.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.js +0 -1
- package/dist/functions/helpers/clean-tmpdir.js.map +1 -1
- package/dist/functions/helpers/concat-videos.d.ts +0 -0
- package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
- package/dist/functions/helpers/concat-videos.js +5 -3
- package/dist/functions/helpers/concat-videos.js.map +1 -1
- package/dist/functions/helpers/create-post-render-data.d.ts +5 -4
- package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +9 -9
- package/dist/functions/helpers/create-post-render-data.js.map +1 -1
- package/dist/functions/helpers/delete-chunks.d.ts +1 -1
- package/dist/functions/helpers/delete-chunks.d.ts.map +1 -1
- package/dist/functions/helpers/delete-chunks.js +0 -0
- package/dist/functions/helpers/delete-chunks.js.map +1 -1
- package/dist/functions/helpers/expected-out-name.d.ts +2 -2
- package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
- package/dist/functions/helpers/expected-out-name.js +14 -3
- package/dist/functions/helpers/expected-out-name.js.map +1 -1
- package/dist/functions/helpers/find-output-file-in-bucket.d.ts +8 -7
- package/dist/functions/helpers/find-output-file-in-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/find-output-file-in-bucket.js +23 -17
- package/dist/functions/helpers/find-output-file-in-bucket.js.map +1 -1
- package/dist/functions/helpers/format-costs-info.d.ts +0 -0
- package/dist/functions/helpers/format-costs-info.d.ts.map +0 -0
- package/dist/functions/helpers/format-costs-info.js +0 -0
- package/dist/functions/helpers/format-costs-info.js.map +0 -0
- package/dist/functions/helpers/get-browser-instance.d.ts +2 -2
- package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
- package/dist/functions/helpers/get-browser-instance.js +6 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-chromium-executable-path.d.ts +1 -1
- package/dist/functions/helpers/get-chromium-executable-path.d.ts.map +1 -1
- package/dist/functions/helpers/get-chromium-executable-path.js +0 -0
- package/dist/functions/helpers/get-chromium-executable-path.js.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.d.ts +0 -0
- package/dist/functions/helpers/get-cleanup-progress.d.ts.map +0 -0
- package/dist/functions/helpers/get-cleanup-progress.js +0 -0
- package/dist/functions/helpers/get-cleanup-progress.js.map +0 -0
- package/dist/functions/helpers/get-current-architecture.d.ts +3 -0
- package/dist/functions/helpers/get-current-architecture.d.ts.map +1 -0
- package/dist/functions/helpers/get-current-architecture.js +12 -0
- package/dist/functions/helpers/get-current-architecture.js.map +1 -0
- package/dist/functions/helpers/get-current-region.d.ts +0 -0
- package/dist/functions/helpers/get-current-region.d.ts.map +0 -0
- package/dist/functions/helpers/get-current-region.js +2 -2
- package/dist/functions/helpers/get-current-region.js.map +1 -1
- package/dist/functions/helpers/get-encoding-metadata.d.ts +0 -0
- package/dist/functions/helpers/get-encoding-metadata.d.ts.map +0 -0
- package/dist/functions/helpers/get-encoding-metadata.js +0 -0
- package/dist/functions/helpers/get-encoding-metadata.js.map +0 -0
- package/dist/functions/helpers/get-files-in-folder.d.ts +0 -0
- package/dist/functions/helpers/get-files-in-folder.d.ts.map +0 -0
- package/dist/functions/helpers/get-files-in-folder.js +0 -0
- package/dist/functions/helpers/get-files-in-folder.js.map +0 -0
- package/dist/functions/helpers/get-files-to-delete.d.ts +0 -0
- package/dist/functions/helpers/get-files-to-delete.d.ts.map +0 -0
- package/dist/functions/helpers/get-files-to-delete.js +0 -0
- package/dist/functions/helpers/get-files-to-delete.js.map +0 -0
- package/dist/functions/helpers/get-final-encoding-status.d.ts +0 -0
- package/dist/functions/helpers/get-final-encoding-status.d.ts.map +0 -0
- package/dist/functions/helpers/get-final-encoding-status.js +0 -0
- package/dist/functions/helpers/get-final-encoding-status.js.map +0 -0
- package/dist/functions/helpers/get-folder-size.d.ts +0 -0
- package/dist/functions/helpers/get-folder-size.d.ts.map +0 -0
- package/dist/functions/helpers/get-folder-size.js +0 -0
- package/dist/functions/helpers/get-folder-size.js.map +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +0 -0
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts +3 -0
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts.map +1 -0
- package/dist/functions/helpers/get-output-url-from-metadata.js +11 -0
- package/dist/functions/helpers/get-output-url-from-metadata.js.map +1 -0
- package/dist/functions/helpers/get-overall-progress.d.ts +0 -0
- package/dist/functions/helpers/get-overall-progress.d.ts.map +0 -0
- package/dist/functions/helpers/get-overall-progress.js +0 -0
- package/dist/functions/helpers/get-overall-progress.js.map +0 -0
- package/dist/functions/helpers/get-post-render-data.d.ts +1 -1
- package/dist/functions/helpers/get-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/get-post-render-data.js +0 -0
- package/dist/functions/helpers/get-post-render-data.js.map +0 -0
- package/dist/functions/helpers/get-progress.d.ts +1 -1
- package/dist/functions/helpers/get-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-progress.js +33 -15
- package/dist/functions/helpers/get-progress.js.map +1 -1
- package/dist/functions/helpers/get-render-metadata.d.ts +0 -0
- package/dist/functions/helpers/get-render-metadata.d.ts.map +0 -0
- package/dist/functions/helpers/get-render-metadata.js +0 -0
- package/dist/functions/helpers/get-render-metadata.js.map +0 -0
- package/dist/functions/helpers/get-retry-stats.d.ts +0 -0
- package/dist/functions/helpers/get-retry-stats.d.ts.map +0 -0
- package/dist/functions/helpers/get-retry-stats.js +0 -0
- package/dist/functions/helpers/get-retry-stats.js.map +0 -0
- package/dist/functions/helpers/get-time-to-finish.d.ts +0 -0
- package/dist/functions/helpers/get-time-to-finish.d.ts.map +0 -0
- package/dist/functions/helpers/get-time-to-finish.js +0 -0
- package/dist/functions/helpers/get-time-to-finish.js.map +0 -0
- package/dist/functions/helpers/inspect-errors.d.ts +0 -0
- package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
- package/dist/functions/helpers/inspect-errors.js +5 -1
- package/dist/functions/helpers/inspect-errors.js.map +1 -1
- package/dist/functions/helpers/io.d.ts +0 -0
- package/dist/functions/helpers/io.d.ts.map +0 -0
- package/dist/functions/helpers/io.js +0 -0
- package/dist/functions/helpers/io.js.map +0 -0
- package/dist/functions/helpers/is-enosp-err.d.ts +0 -0
- package/dist/functions/helpers/is-enosp-err.d.ts.map +0 -0
- package/dist/functions/helpers/is-enosp-err.js +0 -0
- package/dist/functions/helpers/is-enosp-err.js.map +0 -0
- package/dist/functions/helpers/is-warm.d.ts +0 -0
- package/dist/functions/helpers/is-warm.d.ts.map +0 -0
- package/dist/functions/helpers/is-warm.js +0 -0
- package/dist/functions/helpers/is-warm.js.map +0 -0
- package/dist/functions/helpers/min-max.d.ts +0 -0
- package/dist/functions/helpers/min-max.d.ts.map +0 -0
- package/dist/functions/helpers/min-max.js +0 -0
- package/dist/functions/helpers/min-max.js.map +0 -0
- package/dist/functions/helpers/presign-url.d.ts +2 -0
- package/dist/functions/helpers/presign-url.d.ts.map +1 -0
- package/dist/functions/helpers/presign-url.js +9 -0
- package/dist/functions/helpers/presign-url.js.map +1 -0
- package/dist/functions/helpers/print-cloudwatch-helper.d.ts +0 -0
- package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +0 -0
- package/dist/functions/helpers/print-cloudwatch-helper.js +0 -0
- package/dist/functions/helpers/print-cloudwatch-helper.js.map +0 -0
- package/dist/functions/helpers/print-concurrency-curve.d.ts +2 -0
- package/dist/functions/helpers/print-concurrency-curve.d.ts.map +1 -0
- package/dist/functions/helpers/print-concurrency-curve.js +9 -0
- package/dist/functions/helpers/print-concurrency-curve.js.map +1 -0
- package/dist/functions/helpers/read-with-progress.d.ts +5 -3
- package/dist/functions/helpers/read-with-progress.d.ts.map +1 -1
- package/dist/functions/helpers/read-with-progress.js +4 -12
- package/dist/functions/helpers/read-with-progress.js.map +1 -1
- package/dist/functions/helpers/timer.d.ts +0 -0
- package/dist/functions/helpers/timer.d.ts.map +0 -0
- package/dist/functions/helpers/timer.js +0 -0
- package/dist/functions/helpers/timer.js.map +0 -0
- package/dist/functions/helpers/validate-composition.d.ts +0 -0
- package/dist/functions/helpers/validate-composition.d.ts.map +0 -0
- package/dist/functions/helpers/validate-composition.js +0 -0
- package/dist/functions/helpers/validate-composition.js.map +0 -0
- package/dist/functions/helpers/write-lambda-error.d.ts +2 -0
- package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -1
- package/dist/functions/helpers/write-lambda-error.js +0 -0
- package/dist/functions/helpers/write-lambda-error.js.map +1 -1
- package/dist/functions/helpers/write-post-render-data.d.ts +1 -1
- package/dist/functions/helpers/write-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/write-post-render-data.js +0 -0
- package/dist/functions/helpers/write-post-render-data.js.map +0 -0
- package/dist/functions/index.d.ts +0 -0
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +1 -7
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/info.d.ts +0 -0
- package/dist/functions/info.d.ts.map +1 -1
- package/dist/functions/info.js +2 -2
- package/dist/functions/info.js.map +1 -1
- package/dist/functions/launch.d.ts +0 -0
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +44 -26
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/progress.d.ts +0 -0
- package/dist/functions/progress.d.ts.map +0 -0
- package/dist/functions/progress.js +1 -1
- package/dist/functions/progress.js.map +1 -1
- package/dist/functions/renderer.d.ts +0 -0
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +27 -12
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/start.d.ts +0 -0
- package/dist/functions/start.d.ts.map +1 -1
- package/dist/functions/start.js +5 -6
- package/dist/functions/start.js.map +1 -1
- package/dist/functions/still.d.ts +0 -0
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +25 -16
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +21 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +0 -0
- package/dist/internals.d.ts.map +0 -0
- package/dist/internals.js +0 -0
- package/dist/internals.js.map +0 -0
- package/dist/pricing/aws-regions.d.ts +0 -0
- package/dist/pricing/aws-regions.d.ts.map +0 -0
- package/dist/pricing/aws-regions.js +0 -0
- package/dist/pricing/aws-regions.js.map +0 -0
- package/dist/pricing/price-per-1-s.d.ts +8 -0
- package/dist/pricing/price-per-1-s.d.ts.map +1 -1
- package/dist/pricing/price-per-1-s.js +82 -2
- package/dist/pricing/price-per-1-s.js.map +1 -1
- package/dist/regions.d.ts +0 -0
- package/dist/regions.d.ts.map +0 -0
- package/dist/regions.js +0 -0
- package/dist/regions.js.map +0 -0
- package/dist/shared/await.d.ts +0 -0
- package/dist/shared/await.d.ts.map +0 -0
- package/dist/shared/await.js +0 -0
- package/dist/shared/await.js.map +0 -0
- package/dist/shared/aws-clients.d.ts +10 -0
- package/dist/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +68 -31
- package/dist/shared/aws-clients.js.map +1 -1
- package/dist/shared/bundle-site.d.ts +0 -0
- package/dist/shared/bundle-site.d.ts.map +0 -0
- package/dist/shared/bundle-site.js +0 -0
- package/dist/shared/bundle-site.js.map +0 -0
- package/dist/shared/call-lambda.d.ts +0 -0
- package/dist/shared/call-lambda.d.ts.map +0 -0
- package/dist/shared/call-lambda.js +0 -0
- package/dist/shared/call-lambda.js.map +0 -0
- package/dist/shared/check-credentials.d.ts +0 -0
- package/dist/shared/check-credentials.d.ts.map +1 -1
- package/dist/shared/check-credentials.js +16 -4
- package/dist/shared/check-credentials.js.map +1 -1
- package/dist/shared/chunk.d.ts +0 -0
- package/dist/shared/chunk.d.ts.map +0 -0
- package/dist/shared/chunk.js +0 -0
- package/dist/shared/chunk.js.map +0 -0
- package/dist/shared/constants.d.ts +40 -17
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +19 -8
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/convert-to-serve-url.d.ts +0 -0
- package/dist/shared/convert-to-serve-url.d.ts.map +0 -0
- package/dist/shared/convert-to-serve-url.js +0 -0
- package/dist/shared/convert-to-serve-url.js.map +0 -0
- package/dist/shared/docs-url.d.ts +1 -1
- package/dist/shared/docs-url.d.ts.map +1 -1
- package/dist/shared/docs-url.js +1 -1
- package/dist/shared/docs-url.js.map +1 -1
- package/dist/shared/function-zip-path.d.ts +0 -0
- package/dist/shared/function-zip-path.d.ts.map +0 -0
- package/dist/shared/function-zip-path.js +0 -0
- package/dist/shared/function-zip-path.js.map +0 -0
- package/dist/shared/get-account-id.d.ts +0 -0
- package/dist/shared/get-account-id.d.ts.map +0 -0
- package/dist/shared/get-account-id.js +0 -0
- package/dist/shared/get-account-id.js.map +0 -0
- package/dist/shared/get-function-version.d.ts +0 -0
- package/dist/shared/get-function-version.d.ts.map +0 -0
- package/dist/shared/get-function-version.js +0 -0
- package/dist/shared/get-function-version.js.map +0 -0
- package/dist/shared/hosted-layers.d.ts +9 -5
- package/dist/shared/hosted-layers.d.ts.map +1 -1
- package/dist/shared/hosted-layers.js +284 -140
- package/dist/shared/hosted-layers.js.map +1 -1
- package/dist/shared/is-in-lambda.d.ts +1 -1
- package/dist/shared/is-in-lambda.d.ts.map +1 -1
- package/dist/shared/is-in-lambda.js +3 -2
- package/dist/shared/is-in-lambda.js.map +1 -1
- package/dist/shared/make-s3-url.d.ts +0 -0
- package/dist/shared/make-s3-url.d.ts.map +0 -0
- package/dist/shared/make-s3-url.js +0 -0
- package/dist/shared/make-s3-url.js.map +0 -0
- package/dist/shared/parse-lambda-initialized-key.d.ts +0 -0
- package/dist/shared/parse-lambda-initialized-key.d.ts.map +0 -0
- package/dist/shared/parse-lambda-initialized-key.js +0 -0
- package/dist/shared/parse-lambda-initialized-key.js.map +0 -0
- package/dist/shared/parse-lambda-timings-key.d.ts +2 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
- package/dist/shared/parse-lambda-timings-key.js +0 -0
- package/dist/shared/parse-lambda-timings-key.js.map +1 -1
- package/dist/shared/random-hash.d.ts +3 -1
- package/dist/shared/random-hash.d.ts.map +1 -1
- package/dist/shared/random-hash.js +2 -1
- package/dist/shared/random-hash.js.map +1 -1
- package/dist/shared/return-values.d.ts +0 -2
- package/dist/shared/return-values.d.ts.map +1 -1
- package/dist/shared/return-values.js +0 -0
- package/dist/shared/return-values.js.map +1 -1
- package/dist/shared/sleep.d.ts +0 -0
- package/dist/shared/sleep.d.ts.map +0 -0
- package/dist/shared/sleep.js +0 -0
- package/dist/shared/sleep.js.map +0 -0
- package/dist/shared/stream-to-string.d.ts +0 -0
- package/dist/shared/stream-to-string.d.ts.map +0 -0
- package/dist/shared/stream-to-string.js +0 -0
- package/dist/shared/stream-to-string.js.map +0 -0
- package/dist/shared/validate-architecture.d.ts +5 -0
- package/dist/shared/validate-architecture.d.ts.map +1 -0
- package/dist/shared/validate-architecture.js +15 -0
- package/dist/shared/validate-architecture.js.map +1 -0
- package/dist/shared/validate-aws-region.d.ts +0 -0
- package/dist/shared/validate-aws-region.d.ts.map +0 -0
- package/dist/shared/validate-aws-region.js +0 -0
- package/dist/shared/validate-aws-region.js.map +0 -0
- package/dist/shared/validate-bucketname.d.ts +4 -0
- package/dist/shared/validate-bucketname.d.ts.map +1 -0
- package/dist/shared/validate-bucketname.js +18 -0
- package/dist/shared/validate-bucketname.js.map +1 -0
- package/dist/shared/validate-disk-size-in-mb.d.ts +2 -0
- package/dist/shared/validate-disk-size-in-mb.d.ts.map +1 -0
- package/dist/shared/validate-disk-size-in-mb.js +24 -0
- package/dist/shared/validate-disk-size-in-mb.js.map +1 -0
- package/dist/shared/validate-frames-per-lambda.d.ts +2 -0
- package/dist/shared/validate-frames-per-lambda.d.ts.map +1 -0
- package/dist/shared/validate-frames-per-lambda.js +29 -0
- package/dist/shared/validate-frames-per-lambda.js.map +1 -0
- package/dist/shared/validate-memory-size.d.ts +0 -0
- package/dist/shared/validate-memory-size.d.ts.map +0 -0
- package/dist/shared/validate-memory-size.js +0 -0
- package/dist/shared/validate-memory-size.js.map +0 -0
- package/dist/shared/validate-outname.d.ts +3 -0
- package/dist/shared/validate-outname.d.ts.map +1 -0
- package/dist/shared/validate-outname.js +27 -0
- package/dist/shared/validate-outname.js.map +1 -0
- package/dist/shared/validate-presign-expiration.d.ts +4 -0
- package/dist/shared/validate-presign-expiration.d.ts.map +1 -0
- package/dist/shared/validate-presign-expiration.js +30 -0
- package/dist/shared/validate-presign-expiration.js.map +1 -0
- package/dist/shared/validate-privacy.d.ts +0 -0
- package/dist/shared/validate-privacy.d.ts.map +0 -0
- package/dist/shared/validate-privacy.js +0 -0
- package/dist/shared/validate-privacy.js.map +0 -0
- package/dist/shared/validate-retention-period.d.ts +2 -0
- package/dist/shared/validate-retention-period.d.ts.map +1 -0
- package/dist/shared/validate-retention-period.js +30 -0
- package/dist/shared/validate-retention-period.js.map +1 -0
- package/dist/shared/validate-retries.d.ts +0 -0
- package/dist/shared/validate-retries.d.ts.map +0 -0
- package/dist/shared/validate-retries.js +0 -0
- package/dist/shared/validate-retries.js.map +0 -0
- package/dist/shared/validate-serveurl.d.ts +2 -0
- package/dist/shared/validate-serveurl.d.ts.map +1 -0
- package/dist/shared/validate-serveurl.js +10 -0
- package/dist/shared/validate-serveurl.js.map +1 -0
- package/dist/shared/validate-site-name.d.ts +2 -0
- package/dist/shared/validate-site-name.d.ts.map +1 -0
- package/dist/shared/validate-site-name.js +18 -0
- package/dist/shared/validate-site-name.js.map +1 -0
- package/dist/shared/validate-timeout.d.ts +0 -0
- package/dist/shared/validate-timeout.d.ts.map +0 -0
- package/dist/shared/validate-timeout.js +0 -0
- package/dist/shared/validate-timeout.js.map +0 -0
- package/package.json +25 -21
- package/remotion-lambda-cli.js +1 -1
- package/remotionlambda.zip +0 -0
- package/dist/admin/replicate-binaries.d.ts +0 -2
- package/dist/admin/replicate-binaries.d.ts.map +0 -1
- package/dist/admin/replicate-binaries.js +0 -50
- package/dist/admin/replicate-binaries.js.map +0 -1
- package/dist/api/bundle-lambda.d.ts +0 -2
- package/dist/api/bundle-lambda.d.ts.map +0 -1
- package/dist/api/bundle-lambda.js +0 -34
- package/dist/api/bundle-lambda.js.map +0 -1
- package/dist/api/bundle-remotion.d.ts +0 -6
- package/dist/api/bundle-remotion.d.ts.map +0 -1
- package/dist/api/bundle-remotion.js +0 -12
- package/dist/api/bundle-remotion.js.map +0 -1
- package/dist/api/deploy-lambda.d.ts +0 -7
- package/dist/api/deploy-lambda.d.ts.map +0 -1
- package/dist/api/deploy-lambda.js +0 -48
- package/dist/api/deploy-lambda.js.map +0 -1
- package/dist/api/deploy-project.d.ts +0 -28
- package/dist/api/deploy-project.d.ts.map +0 -1
- package/dist/api/deploy-project.js +0 -58
- package/dist/api/deploy-project.js.map +0 -1
- package/dist/api/download-video.d.ts +0 -16
- package/dist/api/download-video.d.ts.map +0 -1
- package/dist/api/download-video.js.map +0 -1
- package/dist/api/ensure-lambda-binaries.d.ts +0 -11
- package/dist/api/ensure-lambda-binaries.d.ts.map +0 -1
- package/dist/api/ensure-lambda-binaries.js +0 -60
- package/dist/api/ensure-lambda-binaries.js.map +0 -1
- package/dist/api/get-deployed-lambdas.d.ts +0 -10
- package/dist/api/get-deployed-lambdas.d.ts.map +0 -1
- package/dist/api/get-deployed-lambdas.js +0 -31
- package/dist/api/get-deployed-lambdas.js.map +0 -1
- package/dist/api/get-function-version.d.ts +0 -7
- package/dist/api/get-function-version.d.ts.map +0 -1
- package/dist/api/get-function-version.js +0 -27
- package/dist/api/get-function-version.js.map +0 -1
- package/dist/api/iam-validation/required-permissions.d.ts +0 -6
- package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
- package/dist/api/iam-validation/required-permissions.js +0 -68
- package/dist/api/iam-validation/required-permissions.js.map +0 -1
- package/dist/api/render-video-on-lambda.d.ts.map +0 -1
- package/dist/api/render-video-on-lambda.js.map +0 -1
- package/dist/api/validate-frames-per-lambda.d.ts +0 -2
- package/dist/api/validate-frames-per-lambda.d.ts.map +0 -1
- package/dist/api/validate-frames-per-lambda.js +0 -26
- package/dist/api/validate-frames-per-lambda.js.map +0 -1
- package/dist/benchmark.d.ts +0 -2
- package/dist/benchmark.d.ts.map +0 -1
- package/dist/benchmark.js +0 -30
- package/dist/benchmark.js.map +0 -1
- package/dist/build-render/index.js +0 -126181
- package/dist/chunked-upload.d.ts +0 -2
- package/dist/chunked-upload.d.ts.map +0 -1
- package/dist/chunked-upload.js +0 -34
- package/dist/chunked-upload.js.map +0 -1
- package/dist/cleanup/cleanup-lambdas.d.ts +0 -7
- package/dist/cleanup/cleanup-lambdas.d.ts.map +0 -1
- package/dist/cleanup/cleanup-lambdas.js +0 -22
- package/dist/cleanup/cleanup-lambdas.js.map +0 -1
- package/dist/cleanup/s3-buckets.d.ts +0 -16
- package/dist/cleanup/s3-buckets.d.ts.map +0 -1
- package/dist/cleanup/s3-buckets.js +0 -59
- package/dist/cleanup/s3-buckets.js.map +0 -1
- package/dist/cli/cleanup.d.ts +0 -4
- package/dist/cli/cleanup.d.ts.map +0 -1
- package/dist/cli/cleanup.js +0 -77
- package/dist/cli/cleanup.js.map +0 -1
- package/dist/cli/commands/render.d.ts +0 -3
- package/dist/cli/commands/render.d.ts.map +0 -1
- package/dist/cli/commands/render.js +0 -75
- package/dist/cli/commands/render.js.map +0 -1
- package/dist/cli/commands/sites/upload.d.ts +0 -3
- package/dist/cli/commands/sites/upload.d.ts.map +0 -1
- package/dist/cli/commands/sites/upload.js +0 -111
- package/dist/cli/commands/sites/upload.js.map +0 -1
- package/dist/cli/deploy.d.ts +0 -3
- package/dist/cli/deploy.d.ts.map +0 -1
- package/dist/cli/deploy.js +0 -13
- package/dist/cli/deploy.js.map +0 -1
- package/dist/cli/policies.d.ts +0 -3
- package/dist/cli/policies.d.ts.map +0 -1
- package/dist/cli/policies.js +0 -59
- package/dist/cli/policies.js.map +0 -1
- package/dist/cli/render.d.ts +0 -3
- package/dist/cli/render.d.ts.map +0 -1
- package/dist/cli/render.js +0 -96
- package/dist/cli/render.js.map +0 -1
- package/dist/cli/upload.d.ts +0 -3
- package/dist/cli/upload.d.ts.map +0 -1
- package/dist/cli/upload.js +0 -112
- package/dist/cli/upload.js.map +0 -1
- package/dist/functions/chunk-optimization/write-profile.d.ts +0 -8
- package/dist/functions/chunk-optimization/write-profile.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/write-profile.js +0 -18
- package/dist/functions/chunk-optimization/write-profile.js.map +0 -1
- package/dist/functions/get-progress.d.ts +0 -27
- package/dist/functions/get-progress.d.ts.map +0 -1
- package/dist/functions/get-progress.js +0 -161
- package/dist/functions/get-progress.js.map +0 -1
- package/dist/functions/helpers/is-fatal-error.d.ts +0 -3
- package/dist/functions/helpers/is-fatal-error.d.ts.map +0 -1
- package/dist/functions/helpers/is-fatal-error.js +0 -8
- package/dist/functions/helpers/is-fatal-error.js.map +0 -1
- package/dist/functions/helpers/upload-browser-logs.d.ts +0 -11
- package/dist/functions/helpers/upload-browser-logs.d.ts.map +0 -1
- package/dist/functions/helpers/upload-browser-logs.js +0 -18
- package/dist/functions/helpers/upload-browser-logs.js.map +0 -1
- package/dist/pricing/calculate-price.d.ts +0 -15
- package/dist/pricing/calculate-price.d.ts.map +0 -1
- package/dist/pricing/calculate-price.js +0 -34
- package/dist/pricing/calculate-price.js.map +0 -1
- package/dist/rendering/chunked-concatenation.d.ts +0 -3
- package/dist/rendering/chunked-concatenation.d.ts.map +0 -1
- package/dist/rendering/chunked-concatenation.js +0 -38
- package/dist/rendering/chunked-concatenation.js.map +0 -1
- package/dist/rendering/create-named-pipe.d.ts +0 -8
- package/dist/rendering/create-named-pipe.d.ts.map +0 -1
- package/dist/rendering/create-named-pipe.js +0 -41
- package/dist/rendering/create-named-pipe.js.map +0 -1
- package/dist/rendering/mount-tmp-fs.d.ts +0 -2
- package/dist/rendering/mount-tmp-fs.d.ts.map +0 -1
- package/dist/rendering/mount-tmp-fs.js +0 -19
- package/dist/rendering/mount-tmp-fs.js.map +0 -1
- package/dist/run.d.ts +0 -2
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -104
- package/dist/run.js.map +0 -1
- package/dist/scripts2.d.ts +0 -1
- package/dist/scripts2.d.ts.map +0 -1
- package/dist/scripts2.js +0 -2
- package/dist/scripts2.js.map +0 -1
- package/dist/shared/download-with-progress.d.ts +0 -1
- package/dist/shared/download-with-progress.d.ts.map +0 -1
- package/dist/shared/download-with-progress.js +0 -2
- package/dist/shared/download-with-progress.js.map +0 -1
- package/dist/shared/get-file-extension-from-codec.d.ts +0 -3
- package/dist/shared/get-file-extension-from-codec.d.ts.map +0 -1
- package/dist/shared/get-file-extension-from-codec.js +0 -33
- package/dist/shared/get-file-extension-from-codec.js.map +0 -1
- package/dist/shared/parse-chunk-timing-key.d.ts +0 -7
- package/dist/shared/parse-chunk-timing-key.d.ts.map +0 -1
- package/dist/shared/parse-chunk-timing-key.js +0 -17
- package/dist/shared/parse-chunk-timing-key.js.map +0 -1
- package/dist/shared/tmpdir.d.ts +0 -3
- package/dist/shared/tmpdir.d.ts.map +0 -1
- package/dist/shared/tmpdir.js +0 -23
- package/dist/shared/tmpdir.js.map +0 -1
|
@@ -8,9 +8,9 @@ const enable_s3_website_1 = require("./enable-s3-website");
|
|
|
8
8
|
const get_buckets_1 = require("./get-buckets");
|
|
9
9
|
/**
|
|
10
10
|
* @description Creates a bucket for Remotion Lambda in your S3 account. If one already exists, it will get returned instead.
|
|
11
|
-
* @link
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/getorcreatebucket
|
|
12
12
|
* @param options.region The region in which you want your S3 bucket to reside in.
|
|
13
|
-
* @returns
|
|
13
|
+
* @returns {Promise<GetOrCreateBucketOutput>} An object containing the `bucketName`.
|
|
14
14
|
*/
|
|
15
15
|
const getOrCreateBucket = async (options) => {
|
|
16
16
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-or-create-bucket.js","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":";;;AACA,mDAA2D;AAC3D,uDAAiD;AACjD,mDAA6C;AAC7C,2DAAoD;AACpD,+CAAmD;
|
|
1
|
+
{"version":3,"file":"get-or-create-bucket.js","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":";;;AACA,mDAA2D;AAC3D,uDAAiD;AACjD,mDAA6C;AAC7C,2DAAoD;AACpD,+CAAmD;AAUnD;;;;;GAKG;AACI,MAAM,iBAAiB,GAAG,KAAK,EACrC,OAA+B,EACI,EAAE;;IACrC,MAAM,EAAC,eAAe,EAAC,GAAG,MAAM,IAAA,kCAAoB,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrE,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;QAC/B,MAAM,IAAI,KAAK,CACd,8BAA8B,eAAe,CAAC,GAAG,CAChD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CACb,wBACA,OAAO,CAAC,MACT,oBAAoB,kCAAsB,0EAA0E,CACpH,CAAC;KACF;IAED,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;QACjC,MAAA,OAAO,CAAC,eAAe,+CAAvB,OAAO,CAAoB,CAAC;QAC5B,OAAO,EAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,EAAC,CAAC;KAC7C;IAED,MAAM,UAAU,GAAG,kCAAsB,GAAG,IAAA,wBAAU,GAAE,CAAC;IAEzD,MAAM,IAAA,4BAAY,EAAC;QAClB,UAAU;QACV,MAAM,EAAE,OAAO,CAAC,MAAM;KACtB,CAAC,CAAC;IACH,MAAA,OAAO,CAAC,eAAe,+CAAvB,OAAO,CAAoB,CAAC;IAC5B,MAAM,IAAA,mCAAe,EAAC;QACrB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,UAAU;KACV,CAAC,CAAC;IAEH,OAAO,EAAC,UAAU,EAAC,CAAC;AACrB,CAAC,CAAC;AAhCW,QAAA,iBAAiB,qBAgC5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
/**
|
|
3
|
+
* @description Gets an array of all supported AWS regions of this release of Remotion Lambda.
|
|
4
|
+
* @link https://remotion.dev/docs/lambda/getregions
|
|
5
|
+
* @returns {AwsRegion[]} A list of AWS regions.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getRegions: () => readonly AwsRegion[];
|
|
8
|
+
//# sourceMappingURL=get-regions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-regions.d.ts","sourceRoot":"","sources":["../../src/api/get-regions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAAO,SAAS,SAAS,EAE/C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRegions = void 0;
|
|
4
|
+
const regions_1 = require("../regions");
|
|
5
|
+
/**
|
|
6
|
+
* @description Gets an array of all supported AWS regions of this release of Remotion Lambda.
|
|
7
|
+
* @link https://remotion.dev/docs/lambda/getregions
|
|
8
|
+
* @returns {AwsRegion[]} A list of AWS regions.
|
|
9
|
+
*/
|
|
10
|
+
const getRegions = () => {
|
|
11
|
+
return regions_1.AWS_REGIONS;
|
|
12
|
+
};
|
|
13
|
+
exports.getRegions = getRegions;
|
|
14
|
+
//# sourceMappingURL=get-regions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-regions.js","sourceRoot":"","sources":["../../src/api/get-regions.ts"],"names":[],"mappings":";;;AACA,wCAAuC;AAEvC;;;;GAIG;AACI,MAAM,UAAU,GAAG,GAAyB,EAAE;IACpD,OAAO,qBAAW,CAAC;AACpB,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
import { RenderProgress } from '../shared/constants';
|
|
3
|
+
export declare type GetRenderInput = {
|
|
4
|
+
functionName: string;
|
|
5
|
+
bucketName: string;
|
|
6
|
+
renderId: string;
|
|
7
|
+
region: AwsRegion;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
|
-
* @description Gets the current status of a render originally triggered via
|
|
4
|
-
* @link https://remotion
|
|
10
|
+
* @description Gets the current status of a render originally triggered via renderMediaOnLambda().
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/getrenderprogress
|
|
5
12
|
* @param {string} params.functionName The name of the function used to trigger the render.
|
|
6
13
|
* @param {string} params.bucketName The name of the bucket that was used in the render.
|
|
7
|
-
* @param {string} params.renderId The ID of the render that was returned by `
|
|
14
|
+
* @param {string} params.renderId The ID of the render that was returned by `renderMediaOnLambda()`.
|
|
8
15
|
* @param {AwsRegion} params.region The region in which the render was triggered.
|
|
9
|
-
* @returns See documentation for this function to see all properties on the return object.
|
|
16
|
+
* @returns {Promise<RenderProgress>} See documentation for this function to see all properties on the return object.
|
|
10
17
|
*/
|
|
11
|
-
export declare const getRenderProgress: ({ functionName, bucketName, renderId, region, }:
|
|
12
|
-
functionName: string;
|
|
13
|
-
bucketName: string;
|
|
14
|
-
renderId: string;
|
|
15
|
-
region: AwsRegion;
|
|
16
|
-
}) => Promise<import("../shared/constants").RenderProgress>;
|
|
18
|
+
export declare const getRenderProgress: ({ functionName, bucketName, renderId, region, }: GetRenderInput) => Promise<RenderProgress>;
|
|
17
19
|
//# sourceMappingURL=get-render-progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-progress.d.ts","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-render-progress.d.ts","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAiB,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAEnE,oBAAY,cAAc,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,oDAK3B,cAAc,KAAG,QAAQ,cAAc,CAWzC,CAAC"}
|
|
@@ -4,16 +4,16 @@ exports.getRenderProgress = void 0;
|
|
|
4
4
|
const call_lambda_1 = require("../shared/call-lambda");
|
|
5
5
|
const constants_1 = require("../shared/constants");
|
|
6
6
|
/**
|
|
7
|
-
* @description Gets the current status of a render originally triggered via
|
|
8
|
-
* @link https://remotion
|
|
7
|
+
* @description Gets the current status of a render originally triggered via renderMediaOnLambda().
|
|
8
|
+
* @link https://remotion.dev/docs/lambda/getrenderprogress
|
|
9
9
|
* @param {string} params.functionName The name of the function used to trigger the render.
|
|
10
10
|
* @param {string} params.bucketName The name of the bucket that was used in the render.
|
|
11
|
-
* @param {string} params.renderId The ID of the render that was returned by `
|
|
11
|
+
* @param {string} params.renderId The ID of the render that was returned by `renderMediaOnLambda()`.
|
|
12
12
|
* @param {AwsRegion} params.region The region in which the render was triggered.
|
|
13
|
-
* @returns See documentation for this function to see all properties on the return object.
|
|
13
|
+
* @returns {Promise<RenderProgress>} See documentation for this function to see all properties on the return object.
|
|
14
14
|
*/
|
|
15
15
|
const getRenderProgress = async ({ functionName, bucketName, renderId, region, }) => {
|
|
16
|
-
|
|
16
|
+
const result = await (0, call_lambda_1.callLambda)({
|
|
17
17
|
functionName,
|
|
18
18
|
type: constants_1.LambdaRoutines.status,
|
|
19
19
|
payload: {
|
|
@@ -22,6 +22,7 @@ const getRenderProgress = async ({ functionName, bucketName, renderId, region, }
|
|
|
22
22
|
},
|
|
23
23
|
region,
|
|
24
24
|
});
|
|
25
|
+
return result;
|
|
25
26
|
};
|
|
26
27
|
exports.getRenderProgress = getRenderProgress;
|
|
27
28
|
//# sourceMappingURL=get-render-progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-progress.js","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":";;;AACA,uDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"get-render-progress.js","sourceRoot":"","sources":["../../src/api/get-render-progress.ts"],"names":[],"mappings":";;;AACA,uDAAiD;AACjD,mDAAmE;AASnE;;;;;;;;GAQG;AACI,MAAM,iBAAiB,GAAG,KAAK,EAAE,EACvC,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,GACU,EAA2B,EAAE;IAC7C,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAU,EAAC;QAC/B,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,MAAM;QAC3B,OAAO,EAAE;YACR,UAAU;YACV,QAAQ;SACR;QACD,MAAM;KACN,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B"}
|
package/dist/api/get-sites.d.ts
CHANGED
|
@@ -7,12 +7,20 @@ declare type Site = {
|
|
|
7
7
|
id: string;
|
|
8
8
|
serveUrl: string;
|
|
9
9
|
};
|
|
10
|
-
declare type
|
|
10
|
+
export declare type GetSitesInput = {
|
|
11
|
+
region: AwsRegion;
|
|
12
|
+
};
|
|
13
|
+
export declare type GetSitesOutput = {
|
|
11
14
|
sites: Site[];
|
|
12
15
|
buckets: BucketWithLocation[];
|
|
13
16
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @description Gets all the deployed sites for a certain AWS region.
|
|
20
|
+
* @link https://remotion.dev/docs/lambda/getsites
|
|
21
|
+
* @param {AwsRegion} params.region The AWS region that you want to query for.
|
|
22
|
+
* @returns {Promise<GetSitesOutput>} A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getSites: ({ region, }: GetSitesInput) => Promise<GetSitesOutput>;
|
|
17
25
|
export {};
|
|
18
26
|
//# sourceMappingURL=get-sites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sites.d.ts","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAC,kBAAkB,EAAuB,MAAM,eAAe,CAAC;AAEvE,aAAK,IAAI,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"get-sites.d.ts","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAC,kBAAkB,EAAuB,MAAM,eAAe,CAAC;AAEvE,aAAK,IAAI,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,gBAElB,aAAa,KAAG,QAAQ,cAAc,CA2DxC,CAAC"}
|
package/dist/api/get-sites.js
CHANGED
|
@@ -6,8 +6,13 @@ const constants_1 = require("../shared/constants");
|
|
|
6
6
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
7
7
|
const make_s3_url_1 = require("../shared/make-s3-url");
|
|
8
8
|
const get_buckets_1 = require("./get-buckets");
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @description Gets all the deployed sites for a certain AWS region.
|
|
12
|
+
* @link https://remotion.dev/docs/lambda/getsites
|
|
13
|
+
* @param {AwsRegion} params.region The AWS region that you want to query for.
|
|
14
|
+
* @returns {Promise<GetSitesOutput>} A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.
|
|
15
|
+
*/
|
|
11
16
|
const getSites = async ({ region, }) => {
|
|
12
17
|
var _a;
|
|
13
18
|
const { remotionBuckets } = await (0, get_buckets_1.getRemotionS3Buckets)(region);
|
|
@@ -21,7 +26,7 @@ const getSites = async ({ region, }) => {
|
|
|
21
26
|
expectedBucketOwner: accountId,
|
|
22
27
|
});
|
|
23
28
|
for (const file of ls) {
|
|
24
|
-
const siteKeyMatch = (_a = file.Key) === null || _a === void 0 ? void 0 : _a.match(/sites\/([0-9a-zA-Z]+)\/(.*)$/);
|
|
29
|
+
const siteKeyMatch = (_a = file.Key) === null || _a === void 0 ? void 0 : _a.match(/sites\/([0-9a-zA-Z-!_.*'()]+)\/(.*)$/);
|
|
25
30
|
if (!siteKeyMatch) {
|
|
26
31
|
throw new Error(`A file was found in the bucket "${bucket.name}" with the key ${file.Key} which is an unexpected folder structure. Delete this file.`);
|
|
27
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sites.js","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAEjD,mDAAgD;AAChD,6DAAsD;AACtD,uDAAqD;AACrD,+CAAuE;
|
|
1
|
+
{"version":3,"file":"get-sites.js","sourceRoot":"","sources":["../../src/api/get-sites.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAEjD,mDAAgD;AAChD,6DAAsD;AACtD,uDAAqD;AACrD,+CAAuE;AAmBvE;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,KAAK,EAAE,EAC9B,MAAM,GACS,EAA2B,EAAE;;IAC5C,MAAM,EAAC,eAAe,EAAC,GAAG,MAAM,IAAA,kCAAoB,EAAC,MAAM,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAY,EAAC,EAAC,MAAM,EAAC,CAAC,CAAC;IAE/C,MAAM,KAAK,GAA0B,EAAE,CAAC;IAExC,KAAK,MAAM,MAAM,IAAI,eAAe,EAAE;QACrC,MAAM,EAAE,GAAG,MAAM,IAAA,aAAQ,EAAC;YACzB,UAAU,EAAE,MAAM,CAAC,IAAI;YACvB,MAAM,EAAE,IAAA,uBAAW,EAAC,EAAE,CAAC;YACvB,MAAM;YACN,mBAAmB,EAAE,SAAS;SAC9B,CAAC,CAAC;QAEH,KAAK,MAAM,IAAI,IAAI,EAAE,EAAE;YACtB,MAAM,YAAY,GAAG,MAAA,IAAI,CAAC,GAAG,0CAAE,KAAK,CACnC,sCAAsC,CACtC,CAAC;YACF,IAAI,CAAC,YAAY,EAAE;gBAClB,MAAM,IAAI,KAAK,CACd,mCAAmC,MAAM,CAAC,IAAI,kBAAkB,IAAI,CAAC,GAAG,6DAA6D,CACrI,CAAC;aACF;YAED,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,YAAY,CAAC;YAChC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;gBACnB,KAAK,CAAC,MAAM,CAAC,GAAG;oBACf,WAAW,EAAE,CAAC;oBACd,UAAU,EAAE,MAAM,CAAC,IAAI;oBACvB,YAAY,EAAE,IAAI;oBAClB,EAAE,EAAE,MAAM;oBACV,QAAQ,EAAE,IAAA,4BAAc,EAAC;wBACxB,UAAU,EAAE,MAAM,CAAC,IAAI;wBACvB,MAAM;wBACN,SAAS,EAAE,IAAA,uBAAW,EAAC,MAAM,CAAC;qBAC9B,CAAC;iBACF,CAAC;aACF;YAED,IAAI,IAAI,CAAC,YAAY,EAAE;gBACtB,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;gBACvD,IACC,mBAAmB,KAAK,IAAI;oBAC5B,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,mBAAmB,EAChD;oBACD,KAAK,CAAC,MAAM,CAAC,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;iBACzD;aACD;YAED,IAAI,IAAI,CAAC,IAAI,EAAE;gBACd,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,CAAC;aACvC;SACD;KACD;IAED,MAAM,UAAU,GAAW,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5D,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAC,CAAC;AACtD,CAAC,CAAC;AA7DW,QAAA,QAAQ,YA6DnB"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { AwsRegion } from '../../pricing/aws-regions';
|
|
2
2
|
import { SimulationResult } from './simulate-rule';
|
|
3
3
|
export declare const logPermissionOutput: (output: SimulationResult) => string;
|
|
4
|
-
export declare
|
|
4
|
+
export declare type SimulatePermissionsInput = {
|
|
5
5
|
region: AwsRegion;
|
|
6
|
-
onSimulation?: (
|
|
7
|
-
}
|
|
6
|
+
onSimulation?: (result: SimulationResult) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare type SimulatePermissionsOutput = {
|
|
8
9
|
results: SimulationResult[];
|
|
9
|
-
}
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description Simulates calls using the AWS Simulator to validate the correct permissions.
|
|
13
|
+
* @link http://remotion.dev/docs/lambda/simulatepermissions
|
|
14
|
+
* @param {AwsRegion} options.region The region which you would like to validate
|
|
15
|
+
* @param {(result: SimulationResult) => void} options.onSimulation The region which you would like to validate
|
|
16
|
+
* @returns {Promise<SimulatePermissionsOutput>} See documentation for detailed response structure.
|
|
17
|
+
*/
|
|
18
|
+
export declare const simulatePermissions: (options: SimulatePermissionsInput) => Promise<SimulatePermissionsOutput>;
|
|
10
19
|
//# sourceMappingURL=simulate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAA6B,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAY7E,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,WAE3D,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAA6B,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAY7E,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,WAE3D,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,YACtB,wBAAwB,KAC/B,QAAQ,yBAAyB,CAwBnC,CAAC"}
|
|
@@ -17,6 +17,13 @@ const logPermissionOutput = (output) => {
|
|
|
17
17
|
return [getEmojiForStatus(output.decision), output.name].join(' ');
|
|
18
18
|
};
|
|
19
19
|
exports.logPermissionOutput = logPermissionOutput;
|
|
20
|
+
/**
|
|
21
|
+
* @description Simulates calls using the AWS Simulator to validate the correct permissions.
|
|
22
|
+
* @link http://remotion.dev/docs/lambda/simulatepermissions
|
|
23
|
+
* @param {AwsRegion} options.region The region which you would like to validate
|
|
24
|
+
* @param {(result: SimulationResult) => void} options.onSimulation The region which you would like to validate
|
|
25
|
+
* @returns {Promise<SimulatePermissionsOutput>} See documentation for detailed response structure.
|
|
26
|
+
*/
|
|
20
27
|
const simulatePermissions = async (options) => {
|
|
21
28
|
var _a;
|
|
22
29
|
const user = await (0, aws_clients_1.getIamClient)(options.region).send(new client_iam_1.GetUserCommand({}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AAEnD,0DAAsD;AACtD,mDAA6E;AAC7E,yDAAuD;AAEvD,MAAM,iBAAiB,GAAG,CAAC,QAAsB,EAAE,EAAE;IACpD,QAAQ,QAAQ,EAAE;QACjB,KAAK,SAAS;YACb,OAAO,GAAG,CAAC;QACZ;YACC,OAAO,GAAG,CAAC;KACZ;AACF,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,MAAwB,EAAE,EAAE;IAC/D,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;
|
|
1
|
+
{"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AAEnD,0DAAsD;AACtD,mDAA6E;AAC7E,yDAAuD;AAEvD,MAAM,iBAAiB,GAAG,CAAC,QAAsB,EAAE,EAAE;IACpD,QAAQ,QAAQ,EAAE;QACjB,KAAK,SAAS;YACb,OAAO,GAAG,CAAC;QACZ;YACC,OAAO,GAAG,CAAC;KACZ;AACF,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,MAAwB,EAAE,EAAE;IAC/D,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAWF;;;;;;GAMG;AACI,MAAM,mBAAmB,GAAG,KAAK,EACvC,OAAiC,EACI,EAAE;;IACvC,MAAM,IAAI,GAAG,MAAM,IAAA,0BAAY,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,2BAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAE7E,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAC9C;IAED,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,KAAK,MAAM,GAAG,IAAI,sCAAmB,EAAE;QACtC,MAAM,MAAM,GAAG,MAAM,IAAA,4BAAY,EAAC;YACjC,WAAW,EAAE,GAAG,CAAC,OAAO;YACxB,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,GAAa;YAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,OAAO,EAAE,CAAC;SACV,CAAC,CAAC;QACH,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,MAAA,OAAO,CAAC,YAAY,+CAApB,OAAO,EAAgB,GAAG,CAAC,CAAC;SAC5B;KACD;IAED,OAAO,EAAC,OAAO,EAAC,CAAC;AAClB,CAAC,CAAC;AA1BW,QAAA,mBAAmB,uBA0B9B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description Returns an inline JSON policy to be assigned to the AWS user whose credentials are being used for excuting CLI commands or calling Node.JS functions.
|
|
3
|
-
* @link https://remotion
|
|
3
|
+
* @link https://remotion.dev/docs/lambda/getuserpolicy
|
|
4
4
|
*/
|
|
5
5
|
export declare const getUserPolicy: () => string;
|
|
6
6
|
export declare const ROLE_NAME = "remotion-lambda-role";
|
|
7
7
|
/**
|
|
8
8
|
* @description Returns an inline JSON policy to be assigned to the 'remotion-lambda-role' role that needs to be created in your AWS account.
|
|
9
|
-
* @link https://remotion
|
|
9
|
+
* @link https://remotion.dev/docs/lambda/getrolepolicy
|
|
10
10
|
*/
|
|
11
11
|
export declare const getRolePolicy: () => string;
|
|
12
12
|
//# sourceMappingURL=suggested-policy.d.ts.map
|
|
File without changes
|
|
@@ -31,14 +31,14 @@ const suggestedRolePolicy = {
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* @description Returns an inline JSON policy to be assigned to the AWS user whose credentials are being used for excuting CLI commands or calling Node.JS functions.
|
|
34
|
-
* @link https://remotion
|
|
34
|
+
* @link https://remotion.dev/docs/lambda/getuserpolicy
|
|
35
35
|
*/
|
|
36
36
|
const getUserPolicy = () => JSON.stringify(suggestedPolicy, null, 2);
|
|
37
37
|
exports.getUserPolicy = getUserPolicy;
|
|
38
38
|
exports.ROLE_NAME = 'remotion-lambda-role';
|
|
39
39
|
/**
|
|
40
40
|
* @description Returns an inline JSON policy to be assigned to the 'remotion-lambda-role' role that needs to be created in your AWS account.
|
|
41
|
-
* @link https://remotion
|
|
41
|
+
* @link https://remotion.dev/docs/lambda/getrolepolicy
|
|
42
42
|
*/
|
|
43
43
|
const getRolePolicy = () => JSON.stringify(suggestedRolePolicy, null, 2);
|
|
44
44
|
exports.getRolePolicy = getRolePolicy;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { iam, lambda, logs, s3 } from 'aws-policies';
|
|
1
|
+
import { iam, lambda, logs, s3, servicequotas } from 'aws-policies';
|
|
2
2
|
export declare const requiredPermissions: {
|
|
3
|
-
actions: (s3 | iam | lambda | logs)[];
|
|
3
|
+
actions: (s3 | iam | lambda | logs | servicequotas)[];
|
|
4
4
|
resource: string[];
|
|
5
5
|
id: string;
|
|
6
6
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"user-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,aAAa,EAAC,MAAM,cAAc,CAAC;AAQlE,eAAO,MAAM,mBAAmB,EAAE;IACjC,OAAO,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,aAAa,CAAC,EAAE,CAAC;IACtD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACX,EA6EA,CAAC"}
|
|
@@ -5,6 +5,16 @@ const aws_policies_1 = require("aws-policies");
|
|
|
5
5
|
const constants_1 = require("../../shared/constants");
|
|
6
6
|
const hosted_layers_1 = require("../../shared/hosted-layers");
|
|
7
7
|
exports.requiredPermissions = [
|
|
8
|
+
{
|
|
9
|
+
id: 'HandleQuotas',
|
|
10
|
+
actions: [
|
|
11
|
+
aws_policies_1.servicequotas.GetServiceQuota,
|
|
12
|
+
aws_policies_1.servicequotas.GetAWSDefaultServiceQuota,
|
|
13
|
+
aws_policies_1.servicequotas.RequestServiceQuotaIncrease,
|
|
14
|
+
aws_policies_1.servicequotas.ListRequestedServiceQuotaChangeHistoryByQuota,
|
|
15
|
+
],
|
|
16
|
+
resource: ['*'],
|
|
17
|
+
},
|
|
8
18
|
{
|
|
9
19
|
id: 'Identity',
|
|
10
20
|
actions: [aws_policies_1.iam.GetUser],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"user-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/user-permissions.ts"],"names":[],"mappings":";;;AAAA,+CAAkE;AAClE,sDAIgC;AAChC,8DAAqE;AAExD,QAAA,mBAAmB,GAI1B;IACL;QACC,EAAE,EAAE,cAAc;QAClB,OAAO,EAAE;YACR,4BAAa,CAAC,eAAe;YAC7B,4BAAa,CAAC,yBAAyB;YACvC,4BAAa,CAAC,2BAA2B;YACzC,4BAAa,CAAC,6CAA6C;SAC3D;QACD,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,UAAU;QACd,OAAO,EAAE,CAAC,kBAAG,CAAC,OAAO,CAAC;QACtB,uDAAuD;QACvD,QAAQ,EAAE,CAAC,qCAAqC,CAAC;KACjD;IACD;QACC,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,kBAAG,CAAC,uBAAuB,CAAC;QACtC,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,kBAAkB;QACtB,OAAO,EAAE,CAAC,kBAAG,CAAC,QAAQ,CAAC;QACvB,QAAQ,EAAE,CAAC,0CAA0C,CAAC;KACtD;IACD;QACC,EAAE,EAAE,SAAS;QACb,OAAO,EAAE;YACR,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,UAAU;YACb,iBAAE,CAAC,iBAAiB;YACpB,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,gBAAgB;YACnB,iBAAE,CAAC,mBAAmB;SACtB;QACD,QAAQ,EAAE,CAAC,gBAAgB,kCAAsB,GAAG,CAAC;KACrD;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,iBAAE,CAAC,gBAAgB,CAAC;QAC9B,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,iBAAiB;QACrB,OAAO,EAAE,CAAC,qBAAM,CAAC,aAAa,EAAE,qBAAM,CAAC,WAAW,CAAC;QACnD,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,OAAO,EAAE;YACR,qBAAM,CAAC,WAAW;YAClB,qBAAM,CAAC,cAAc;YACrB,qBAAM,CAAC,cAAc;YACrB,qBAAM,CAAC,cAAc;YACrB,qBAAM,CAAC,4BAA4B;SACnC;QACD,QAAQ,EAAE,CAAC,+BAA+B,4BAAgB,GAAG,CAAC;KAC9D;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,mBAAI,CAAC,cAAc,EAAE,mBAAI,CAAC,kBAAkB,CAAC;QACvD,QAAQ,EAAE;YACT,8BAA8B,4BAAgB,GAAG,4BAAgB,GAAG;SACpE;KACD;IACD;QACC,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,CAAC,qBAAM,CAAC,eAAe,CAAC;QACjC,QAAQ,EAAE,CAAC,yCAAyB,CAAC;KACrC;CACD,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
export declare type PresignURLInput = {
|
|
3
|
+
region: AwsRegion;
|
|
4
|
+
bucketName: string;
|
|
5
|
+
objectKey: string;
|
|
6
|
+
checkIfObjectExists?: boolean;
|
|
7
|
+
expiresInSeconds: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @description Returns a public url of an object stored in Remotion's S3 bucket.
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/presignurl
|
|
12
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
13
|
+
* @param {string} params.bucketName The name of the bucket to fetch the object from.
|
|
14
|
+
* @param {string} params.objectKey Key of the S3 object to get.
|
|
15
|
+
* @param {string} params.expiresIn The number of seconds before the presigned URL expires. Default 120.
|
|
16
|
+
* @param {boolean} params.checkIfObjectExists Whether the function should check if the object exists in the bucket before generating the presigned url.
|
|
17
|
+
* @returns {Promise<string | null>} The public url of an object or `null` if `checkIfObjectExists=true` & object does not exist.
|
|
18
|
+
*/
|
|
19
|
+
export declare const presignUrl: ({ region, bucketName, objectKey, checkIfObjectExists, expiresInSeconds, }: PresignURLInput) => Promise<string | null>;
|
|
20
|
+
//# sourceMappingURL=presign-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presign-url.d.ts","sourceRoot":"","sources":["../../src/api/presign-url.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAKjD,oBAAY,eAAe,GAAG;IAC7B,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,8EAMpB,eAAe,KAAG,QAAQ,MAAM,GAAG,IAAI,CAiCzC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.presignUrl = void 0;
|
|
4
|
+
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
|
+
const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
|
|
6
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
7
|
+
const validate_bucketname_1 = require("../shared/validate-bucketname");
|
|
8
|
+
const validate_presign_expiration_1 = require("../shared/validate-presign-expiration");
|
|
9
|
+
/**
|
|
10
|
+
* @description Returns a public url of an object stored in Remotion's S3 bucket.
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/presignurl
|
|
12
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
13
|
+
* @param {string} params.bucketName The name of the bucket to fetch the object from.
|
|
14
|
+
* @param {string} params.objectKey Key of the S3 object to get.
|
|
15
|
+
* @param {string} params.expiresIn The number of seconds before the presigned URL expires. Default 120.
|
|
16
|
+
* @param {boolean} params.checkIfObjectExists Whether the function should check if the object exists in the bucket before generating the presigned url.
|
|
17
|
+
* @returns {Promise<string | null>} The public url of an object or `null` if `checkIfObjectExists=true` & object does not exist.
|
|
18
|
+
*/
|
|
19
|
+
const presignUrl = async ({ region, bucketName, objectKey, checkIfObjectExists = false, expiresInSeconds, }) => {
|
|
20
|
+
(0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: false });
|
|
21
|
+
(0, validate_presign_expiration_1.validatePresignExpiration)(expiresInSeconds);
|
|
22
|
+
const s3Client = (0, aws_clients_1.getS3Client)(region);
|
|
23
|
+
if (checkIfObjectExists) {
|
|
24
|
+
try {
|
|
25
|
+
await s3Client.send(new client_s3_1.HeadObjectCommand({
|
|
26
|
+
Bucket: bucketName,
|
|
27
|
+
Key: objectKey,
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
if (err.name === 'NotFound') {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
throw err;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const objCommand = new client_s3_1.GetObjectCommand({
|
|
38
|
+
Bucket: bucketName,
|
|
39
|
+
Key: objectKey,
|
|
40
|
+
});
|
|
41
|
+
const publicUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3Client, objCommand, {
|
|
42
|
+
expiresIn: expiresInSeconds,
|
|
43
|
+
});
|
|
44
|
+
return publicUrl;
|
|
45
|
+
};
|
|
46
|
+
exports.presignUrl = presignUrl;
|
|
47
|
+
//# sourceMappingURL=presign-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presign-url.js","sourceRoot":"","sources":["../../src/api/presign-url.ts"],"names":[],"mappings":";;;AAAA,kDAAuE;AACvE,wEAA2D;AAE3D,uDAAkD;AAClD,uEAAiE;AACjE,uFAAgF;AAUhF;;;;;;;;;GASG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAChC,MAAM,EACN,UAAU,EACV,SAAS,EACT,mBAAmB,GAAG,KAAK,EAC3B,gBAAgB,GACC,EAA0B,EAAE;IAC7C,IAAA,wCAAkB,EAAC,UAAU,EAAE,EAAC,qBAAqB,EAAE,KAAK,EAAC,CAAC,CAAC;IAC/D,IAAA,uDAAyB,EAAC,gBAAgB,CAAC,CAAC;IAE5C,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC;IAErC,IAAI,mBAAmB,EAAE;QACxB,IAAI;YACH,MAAM,QAAQ,CAAC,IAAI,CAClB,IAAI,6BAAiB,CAAC;gBACrB,MAAM,EAAE,UAAU;gBAClB,GAAG,EAAE,SAAS;aACd,CAAC,CACF,CAAC;SACF;QAAC,OAAO,GAAG,EAAE;YACb,IAAK,GAAsB,CAAC,IAAI,KAAK,UAAU,EAAE;gBAChD,OAAO,IAAI,CAAC;aACZ;YAED,MAAM,GAAG,CAAC;SACV;KACD;IAED,MAAM,UAAU,GAAG,IAAI,4BAAgB,CAAC;QACvC,MAAM,EAAE,UAAU;QAClB,GAAG,EAAE,SAAS;KACd,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,IAAA,mCAAY,EAAC,QAAQ,EAAE,UAAU,EAAE;QAC1D,SAAS,EAAE,gBAAgB;KAC3B,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC;AAvCW,QAAA,UAAU,cAuCrB"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
|
+
import type { ChromiumOptions } from '@remotion/renderer';
|
|
1
2
|
import { FrameRange, ImageFormat, LogLevel, PixelFormat, ProResProfile } from 'remotion';
|
|
2
3
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
3
4
|
import { Privacy } from '../shared/constants';
|
|
5
|
+
export declare type RenderMediaOnLambdaInput = {
|
|
6
|
+
region: AwsRegion;
|
|
7
|
+
functionName: string;
|
|
8
|
+
serveUrl: string;
|
|
9
|
+
composition: string;
|
|
10
|
+
inputProps: unknown;
|
|
11
|
+
codec: 'h264-mkv' | 'mp3' | 'aac' | 'wav';
|
|
12
|
+
imageFormat: ImageFormat;
|
|
13
|
+
crf?: number | undefined;
|
|
14
|
+
envVariables?: Record<string, string>;
|
|
15
|
+
pixelFormat?: PixelFormat;
|
|
16
|
+
proResProfile?: ProResProfile;
|
|
17
|
+
privacy: Privacy;
|
|
18
|
+
quality?: number;
|
|
19
|
+
maxRetries: number;
|
|
20
|
+
framesPerLambda?: number;
|
|
21
|
+
logLevel?: LogLevel;
|
|
22
|
+
frameRange?: FrameRange;
|
|
23
|
+
outName?: string;
|
|
24
|
+
timeoutInMilliseconds?: number;
|
|
25
|
+
chromiumOptions?: ChromiumOptions;
|
|
26
|
+
scale?: number;
|
|
27
|
+
};
|
|
28
|
+
export declare type RenderMediaOnLambdaOutput = {
|
|
29
|
+
renderId: string;
|
|
30
|
+
bucketName: string;
|
|
31
|
+
};
|
|
4
32
|
/**
|
|
5
33
|
* @description Triggers a render on a lambda given a composition and a lambda function.
|
|
6
|
-
* @link https://remotion
|
|
34
|
+
* @link https://remotion.dev/docs/lambda/rendermediaonlambda
|
|
7
35
|
* @param params.functionName The name of the Lambda function that should be used
|
|
8
36
|
* @param params.serveUrl The URL of the deployed project
|
|
9
37
|
* @param params.composition The ID of the composition which should be rendered.
|
|
@@ -16,31 +44,12 @@ import { Privacy } from '../shared/constants';
|
|
|
16
44
|
* @param params.quality JPEG quality if JPEG was selected as the image format.
|
|
17
45
|
* @param params.region The AWS region in which the video should be rendered.
|
|
18
46
|
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
|
|
19
|
-
* @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
|
|
20
47
|
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
21
|
-
* @returns
|
|
48
|
+
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
22
49
|
*/
|
|
23
|
-
export declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
codec: 'h264-mkv' | 'mp3' | 'aac' | 'wav';
|
|
30
|
-
imageFormat: ImageFormat;
|
|
31
|
-
crf?: number | undefined;
|
|
32
|
-
envVariables?: Record<string, string> | undefined;
|
|
33
|
-
pixelFormat?: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le" | undefined;
|
|
34
|
-
proResProfile?: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
35
|
-
privacy: Privacy;
|
|
36
|
-
quality?: number | undefined;
|
|
37
|
-
maxRetries: number;
|
|
38
|
-
framesPerLambda?: number | undefined;
|
|
39
|
-
enableChunkOptimization?: boolean | undefined;
|
|
40
|
-
logLevel?: "verbose" | "info" | "warn" | "error" | undefined;
|
|
41
|
-
frameRange?: FrameRange | undefined;
|
|
42
|
-
}) => Promise<{
|
|
43
|
-
renderId: string;
|
|
44
|
-
bucketName: string;
|
|
45
|
-
}>;
|
|
46
|
-
//# sourceMappingURL=render-video-on-lambda.d.ts.map
|
|
50
|
+
export declare const renderMediaOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Renamed to renderMediaOnLambda()
|
|
53
|
+
*/
|
|
54
|
+
export declare const renderVideoOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
55
|
+
//# sourceMappingURL=render-media-on-lambda.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-media-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-media-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACN,UAAU,EACV,WAAW,EAEX,QAAQ,EACR,WAAW,EACX,aAAa,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAiB,OAAO,EAAC,MAAM,qBAAqB,CAAC;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,14 +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
4
|
const remotion_1 = require("remotion");
|
|
5
5
|
const call_lambda_1 = require("../shared/call-lambda");
|
|
6
6
|
const constants_1 = require("../shared/constants");
|
|
7
7
|
const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
|
|
8
|
-
const validate_frames_per_lambda_1 = require("
|
|
8
|
+
const validate_frames_per_lambda_1 = require("../shared/validate-frames-per-lambda");
|
|
9
|
+
const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
9
10
|
/**
|
|
10
11
|
* @description Triggers a render on a lambda given a composition and a lambda function.
|
|
11
|
-
* @link https://remotion
|
|
12
|
+
* @link https://remotion.dev/docs/lambda/rendermediaonlambda
|
|
12
13
|
* @param params.functionName The name of the Lambda function that should be used
|
|
13
14
|
* @param params.serveUrl The URL of the deployed project
|
|
14
15
|
* @param params.composition The ID of the composition which should be rendered.
|
|
@@ -21,18 +22,18 @@ const validate_frames_per_lambda_1 = require("./validate-frames-per-lambda");
|
|
|
21
22
|
* @param params.quality JPEG quality if JPEG was selected as the image format.
|
|
22
23
|
* @param params.region The AWS region in which the video should be rendered.
|
|
23
24
|
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
|
|
24
|
-
* @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
|
|
25
25
|
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
26
|
-
* @returns
|
|
26
|
+
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
29
|
-
(0,
|
|
28
|
+
const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }) => {
|
|
29
|
+
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
30
|
+
(0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null);
|
|
30
31
|
const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
|
|
31
32
|
const res = await (0, call_lambda_1.callLambda)({
|
|
32
33
|
functionName,
|
|
33
34
|
type: constants_1.LambdaRoutines.start,
|
|
34
35
|
payload: {
|
|
35
|
-
framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda :
|
|
36
|
+
framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null,
|
|
36
37
|
composition,
|
|
37
38
|
serveUrl: realServeUrl,
|
|
38
39
|
inputProps,
|
|
@@ -45,9 +46,12 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
45
46
|
quality,
|
|
46
47
|
maxRetries,
|
|
47
48
|
privacy,
|
|
48
|
-
enableChunkOptimization,
|
|
49
49
|
logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : remotion_1.Internals.Logging.DEFAULT_LOG_LEVEL,
|
|
50
50
|
frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
|
|
51
|
+
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
52
|
+
timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : remotion_1.Internals.DEFAULT_PUPPETEER_TIMEOUT,
|
|
53
|
+
chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
|
|
54
|
+
scale: scale !== null && scale !== void 0 ? scale : 1,
|
|
51
55
|
},
|
|
52
56
|
region,
|
|
53
57
|
});
|
|
@@ -56,5 +60,9 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
56
60
|
bucketName: res.bucketName,
|
|
57
61
|
};
|
|
58
62
|
};
|
|
59
|
-
exports.
|
|
60
|
-
|
|
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"}
|