@remotion/lambda 3.0.0-lambda.99 → 3.0.0-pnpm.295
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 +15 -0
- package/dist/admin/bundle-lambda.js +2 -1
- package/dist/admin/bundle-lambda.js.map +1 -1
- package/dist/admin/make-layer-public.js +3 -13
- package/dist/admin/make-layer-public.js.map +1 -1
- package/dist/api/bucket-exists.d.ts +1 -1
- package/dist/api/bucket-exists.d.ts.map +1 -1
- package/dist/api/create-bucket.d.ts +1 -1
- package/dist/api/create-bucket.d.ts.map +1 -1
- package/dist/api/create-function.d.ts +5 -3
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js +24 -19
- 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 +19 -9
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/delete-site.js +10 -1
- package/dist/api/delete-site.js.map +1 -1
- package/dist/api/deploy-function.d.ts +15 -10
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +18 -4
- 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-media.js +55 -0
- package/dist/api/download-media.js.map +1 -0
- package/dist/api/enable-s3-website.d.ts +1 -1
- 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/{pricing/calculate-price.d.ts → api/estimate-price.d.ts} +5 -6
- package/dist/api/estimate-price.d.ts.map +1 -0
- package/dist/{pricing/calculate-price.js → api/estimate-price.js} +4 -4
- package/dist/api/estimate-price.js.map +1 -0
- package/dist/api/get-aws-client.d.ts +30 -0
- package/dist/api/get-aws-client.d.ts.map +1 -0
- package/dist/api/get-aws-client.js +47 -0
- package/dist/api/get-aws-client.js.map +1 -0
- package/dist/api/get-aws-clients.d.ts +16 -0
- package/dist/api/get-aws-clients.d.ts.map +1 -0
- package/dist/api/get-aws-clients.js +40 -0
- package/dist/api/get-aws-clients.js.map +1 -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 +3 -4
- package/dist/api/get-function-info.d.ts.map +1 -1
- package/dist/api/get-function-info.js +1 -1
- 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 +2 -2
- 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 +4 -4
- 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.map +1 -1
- package/dist/api/iam-validation/role-permissions.js +6 -5
- package/dist/api/iam-validation/role-permissions.js.map +1 -1
- package/dist/api/iam-validation/simulate-rule.d.ts +1 -0
- package/dist/api/iam-validation/simulate-rule.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate-rule.js +42 -29
- package/dist/api/iam-validation/simulate-rule.js.map +1 -1
- package/dist/api/iam-validation/simulate.d.ts +14 -5
- package/dist/api/iam-validation/simulate.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate.js +11 -4
- package/dist/api/iam-validation/simulate.js.map +1 -1
- package/dist/api/iam-validation/suggested-policy.d.ts +3 -2
- package/dist/api/iam-validation/suggested-policy.d.ts.map +1 -1
- package/dist/api/iam-validation/suggested-policy.js +7 -6
- package/dist/api/iam-validation/suggested-policy.js.map +1 -1
- package/dist/api/iam-validation/{required-permissions.d.ts → user-permissions.d.ts} +2 -1
- package/dist/api/iam-validation/user-permissions.d.ts.map +1 -0
- package/dist/api/iam-validation/{required-permissions.js → user-permissions.js} +27 -20
- package/dist/api/iam-validation/user-permissions.js.map +1 -0
- package/dist/api/mock-functions.d.ts +1 -1
- package/dist/api/mock-functions.d.ts.map +1 -1
- 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} +22 -12
- package/dist/api/render-media-on-lambda.js.map +1 -0
- package/dist/api/render-still-on-lambda.d.ts +28 -23
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +12 -7
- 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/cli/args.d.ts +5 -3
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
- package/dist/cli/commands/functions/deploy.js +24 -6
- package/dist/cli/commands/functions/deploy.js.map +1 -1
- package/dist/cli/commands/functions/index.d.ts.map +1 -1
- package/dist/cli/commands/functions/index.js +9 -1
- package/dist/cli/commands/functions/index.js.map +1 -1
- package/dist/cli/commands/functions/ls.d.ts.map +1 -1
- package/dist/cli/commands/functions/ls.js +8 -7
- package/dist/cli/commands/functions/ls.js.map +1 -1
- package/dist/cli/commands/functions/rm.d.ts.map +1 -1
- package/dist/cli/commands/functions/rm.js +9 -4
- 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.map +1 -1
- package/dist/cli/commands/policies/policies.js +2 -1
- package/dist/cli/commands/policies/policies.js.map +1 -1
- 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 +7 -3
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +11 -12
- package/dist/cli/commands/render/progress.js.map +1 -1
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +52 -30
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/sites/create.d.ts.map +1 -1
- package/dist/cli/commands/sites/create.js +18 -9
- package/dist/cli/commands/sites/create.js.map +1 -1
- package/dist/cli/commands/sites/index.d.ts.map +1 -1
- package/dist/cli/commands/sites/index.js +6 -1
- package/dist/cli/commands/sites/index.js.map +1 -1
- 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 +1 -1
- package/dist/cli/commands/sites/rm.d.ts.map +1 -1
- package/dist/cli/commands/sites/rm.js +16 -7
- 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.map +1 -1
- package/dist/cli/commands/still.js +42 -13
- package/dist/cli/commands/still.js.map +1 -1
- 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.map +1 -1
- package/dist/cli/help.js +9 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/helpers/confirm.d.ts.map +1 -1
- package/dist/cli/helpers/confirm.js +5 -18
- package/dist/cli/helpers/confirm.js.map +1 -1
- package/dist/cli/helpers/find-function-name.d.ts.map +1 -1
- package/dist/cli/helpers/find-function-name.js +3 -2
- package/dist/cli/helpers/find-function-name.js.map +1 -1
- package/dist/cli/helpers/quit.d.ts +2 -0
- package/dist/cli/helpers/quit.d.ts.map +1 -0
- package/dist/cli/helpers/quit.js +8 -0
- package/dist/cli/helpers/quit.js.map +1 -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.map +1 -1
- package/dist/cli/index.js +30 -8
- 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/client.d.ts +4 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -5
- package/dist/client.js.map +1 -1
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts +2 -2
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/can-use-optimization.js +6 -3
- package/dist/functions/chunk-optimization/can-use-optimization.js.map +1 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +1 -4
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/optimize-profile.d.ts +2 -8
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +3 -6
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.js +10 -5
- package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +1 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +1 -4
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/types.d.ts +2 -2
- package/dist/functions/chunk-optimization/types.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/functions/helpers/calculate-chunk-times.js +8 -7
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts +1 -2
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.js +8 -8
- package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
- package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
- package/dist/functions/helpers/concat-videos.js +7 -5
- package/dist/functions/helpers/concat-videos.js.map +1 -1
- package/dist/functions/helpers/create-post-render-data.d.ts +1 -1
- package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +11 -5
- 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.map +1 -1
- package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
- package/dist/functions/helpers/expected-out-name.js +5 -1
- package/dist/functions/helpers/expected-out-name.js.map +1 -1
- 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 +2 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.js +2 -2
- package/dist/functions/helpers/get-cleanup-progress.js.map +1 -1
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/get-current-region.d.ts.map +1 -1
- 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-lambdas-invoked-stats.d.ts.map +1 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +3 -2
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -1
- 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-progress.d.ts +3 -2
- package/dist/functions/helpers/get-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-progress.js +30 -6
- package/dist/functions/helpers/get-progress.js.map +1 -1
- package/dist/functions/helpers/get-time-to-finish.js +1 -1
- package/dist/functions/helpers/get-time-to-finish.js.map +1 -1
- package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
- package/dist/functions/helpers/inspect-errors.js +3 -0
- package/dist/functions/helpers/inspect-errors.js.map +1 -1
- package/dist/functions/helpers/is-enosp-err.d.ts +1 -0
- package/dist/functions/helpers/is-enosp-err.d.ts.map +1 -1
- package/dist/functions/helpers/is-enosp-err.js +5 -1
- package/dist/functions/helpers/is-enosp-err.js.map +1 -1
- package/dist/functions/helpers/min-max.d.ts +3 -0
- package/dist/functions/helpers/min-max.d.ts.map +1 -0
- package/dist/functions/helpers/min-max.js +34 -0
- package/dist/functions/helpers/min-max.js.map +1 -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 +15 -0
- package/dist/functions/helpers/read-with-progress.d.ts.map +1 -0
- package/dist/functions/helpers/read-with-progress.js +27 -0
- package/dist/functions/helpers/read-with-progress.js.map +1 -0
- package/dist/functions/helpers/validate-composition.d.ts +2 -2
- package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
- package/dist/functions/helpers/validate-composition.js +1 -1
- package/dist/functions/helpers/validate-composition.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/index.d.ts +1 -0
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +15 -4
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +32 -19
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/progress.d.ts +1 -0
- package/dist/functions/progress.d.ts.map +1 -1
- package/dist/functions/progress.js +1 -0
- package/dist/functions/progress.js.map +1 -1
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +19 -64
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/start.d.ts.map +1 -1
- package/dist/functions/start.js +8 -5
- package/dist/functions/start.js.map +1 -1
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +10 -7
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +20 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/pricing/aws-regions.d.ts +1 -1
- package/dist/pricing/aws-regions.d.ts.map +1 -1
- package/dist/pricing/aws-regions.js +3 -14
- package/dist/pricing/aws-regions.js.map +1 -1
- 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 +72 -190
- package/dist/pricing/price-per-1-s.js.map +1 -1
- package/dist/shared/aws-clients.d.ts +7 -0
- package/dist/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +60 -24
- package/dist/shared/aws-clients.js.map +1 -1
- package/dist/shared/check-credentials.d.ts.map +1 -1
- package/dist/shared/check-credentials.js +21 -6
- package/dist/shared/check-credentials.js.map +1 -1
- package/dist/shared/constants.d.ts +27 -13
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +11 -7
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/convert-to-serve-url.d.ts +3 -0
- package/dist/shared/convert-to-serve-url.d.ts.map +1 -0
- package/dist/shared/convert-to-serve-url.js +19 -0
- package/dist/shared/convert-to-serve-url.js.map +1 -0
- package/dist/shared/docs-url.d.ts +2 -0
- package/dist/shared/docs-url.d.ts.map +1 -0
- package/dist/shared/docs-url.js +5 -0
- package/dist/shared/docs-url.js.map +1 -0
- package/dist/shared/hosted-layers.d.ts +2 -1
- package/dist/shared/hosted-layers.d.ts.map +1 -1
- package/dist/shared/hosted-layers.js +32 -185
- package/dist/shared/hosted-layers.js.map +1 -1
- package/dist/shared/parse-lambda-timings-key.d.ts +0 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
- package/dist/shared/parse-lambda-timings-key.js +1 -2
- package/dist/shared/parse-lambda-timings-key.js.map +1 -1
- package/dist/shared/validate-bucketname.d.ts +2 -0
- package/dist/shared/validate-bucketname.d.ts.map +1 -0
- package/dist/shared/validate-bucketname.js +14 -0
- package/dist/shared/validate-bucketname.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 +26 -0
- package/dist/shared/validate-frames-per-lambda.js.map +1 -0
- package/dist/shared/validate-outname.d.ts +2 -0
- package/dist/shared/validate-outname.d.ts.map +1 -0
- package/dist/shared/validate-outname.js +19 -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-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 +2 -0
- package/dist/shared/validate-retries.d.ts.map +1 -0
- package/dist/shared/validate-retries.js +22 -0
- package/dist/shared/validate-retries.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/package.json +13 -12
- package/remotionlambda.zip +0 -0
- package/dist/api/download-video.d.ts +0 -14
- package/dist/api/download-video.d.ts.map +0 -1
- package/dist/api/download-video.js +0 -62
- package/dist/api/download-video.js.map +0 -1
- package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
- 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/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 -2
- package/dist/cli/cleanup.d.ts.map +0 -1
- package/dist/cli/cleanup.js +0 -3
- package/dist/cli/cleanup.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/functions/helpers/upload-logs.d.ts +0 -1
- package/dist/functions/helpers/upload-logs.d.ts.map +0 -1
- package/dist/functions/helpers/upload-logs.js +0 -2
- package/dist/functions/helpers/upload-logs.js.map +0 -1
- package/dist/pricing/calculate-price.d.ts.map +0 -1
- package/dist/pricing/calculate-price.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/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/normalize-serve-url.d.ts +0 -2
- package/dist/shared/normalize-serve-url.d.ts.map +0 -1
- package/dist/shared/normalize-serve-url.js +0 -20
- package/dist/shared/normalize-serve-url.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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.downloadVideo = exports.downloadMedia = void 0;
|
|
7
|
+
const renderer_1 = require("@remotion/renderer");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const expected_out_name_1 = require("../functions/helpers/expected-out-name");
|
|
11
|
+
const get_render_metadata_1 = require("../functions/helpers/get-render-metadata");
|
|
12
|
+
const read_with_progress_1 = require("../functions/helpers/read-with-progress");
|
|
13
|
+
const get_account_id_1 = require("../shared/get-account-id");
|
|
14
|
+
const downloadMedia = async (input) => {
|
|
15
|
+
var _a;
|
|
16
|
+
const expectedBucketOwner = await (0, get_account_id_1.getAccountId)({
|
|
17
|
+
region: input.region,
|
|
18
|
+
});
|
|
19
|
+
const renderMetadata = await (0, get_render_metadata_1.getRenderMetadata)({
|
|
20
|
+
bucketName: input.bucketName,
|
|
21
|
+
expectedBucketOwner,
|
|
22
|
+
region: input.region,
|
|
23
|
+
renderId: input.renderId,
|
|
24
|
+
});
|
|
25
|
+
const readable = await (0, read_with_progress_1.lambdaReadFileWithProgress)({
|
|
26
|
+
bucketName: input.bucketName,
|
|
27
|
+
expectedBucketOwner,
|
|
28
|
+
key: (0, expected_out_name_1.getExpectedOutName)(renderMetadata),
|
|
29
|
+
region: input.region,
|
|
30
|
+
onProgress: (_a = input.onProgress) !== null && _a !== void 0 ? _a : (() => undefined),
|
|
31
|
+
});
|
|
32
|
+
const outputPath = path_1.default.resolve(process.cwd(), input.outPath);
|
|
33
|
+
renderer_1.RenderInternals.ensureOutputDirectory(outputPath);
|
|
34
|
+
const writeStream = (0, fs_1.createWriteStream)(outputPath);
|
|
35
|
+
let sizeInBytes = 0;
|
|
36
|
+
await new Promise((resolve, reject) => {
|
|
37
|
+
readable
|
|
38
|
+
.on('data', (d) => {
|
|
39
|
+
sizeInBytes += d.length;
|
|
40
|
+
})
|
|
41
|
+
.pipe(writeStream)
|
|
42
|
+
.on('error', (err) => reject(err))
|
|
43
|
+
.on('close', () => resolve());
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
outputPath,
|
|
47
|
+
sizeInBytes,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.downloadMedia = downloadMedia;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Renamed to downloadMedia()
|
|
53
|
+
*/
|
|
54
|
+
exports.downloadVideo = exports.downloadMedia;
|
|
55
|
+
//# sourceMappingURL=download-media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-media.js","sourceRoot":"","sources":["../../src/api/download-media.ts"],"names":[],"mappings":";;;;;;AAAA,iDAAmD;AACnD,2BAAqC;AACrC,gDAAwB;AACxB,8EAA0E;AAC1E,kFAA2E;AAC3E,gFAGiD;AAEjD,6DAAsD;AAe/C,MAAM,aAAa,GAAG,KAAK,EACjC,KAAyB,EACM,EAAE;;IACjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,6BAAY,EAAC;QAC9C,MAAM,EAAE,KAAK,CAAC,MAAM;KACpB,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,MAAM,IAAA,uCAAiB,EAAC;QAC9C,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,mBAAmB;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACxB,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,IAAA,+CAA0B,EAAC;QACjD,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,mBAAmB;QACnB,GAAG,EAAE,IAAA,sCAAkB,EAAC,cAAc,CAAC;QACvC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,MAAA,KAAK,CAAC,UAAU,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;KACjD,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAE9D,0BAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAElD,MAAM,WAAW,GAAG,IAAA,sBAAiB,EAAC,UAAU,CAAC,CAAC;IAClD,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,QAAQ;aACN,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE;YACjB,WAAW,IAAI,CAAC,CAAC,MAAM,CAAC;QACzB,CAAC,CAAC;aACD,IAAI,CAAC,WAAW,CAAC;aACjB,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACjC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,OAAO;QACN,UAAU;QACV,WAAW;KACX,CAAC;AACH,CAAC,CAAC;AAzCW,QAAA,aAAa,iBAyCxB;AAEF;;GAEG;AACU,QAAA,aAAa,GAAG,qBAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-s3-website.d.ts","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"enable-s3-website.d.ts","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,eAAe;YAInB,SAAS;gBACL,MAAM;mBAYlB,CAAC"}
|
|
@@ -7,7 +7,6 @@ const enableS3Website = async ({ region, bucketName, }) => {
|
|
|
7
7
|
await (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.PutBucketWebsiteCommand({
|
|
8
8
|
Bucket: bucketName,
|
|
9
9
|
WebsiteConfiguration: {
|
|
10
|
-
// TODO Upload a demo document
|
|
11
10
|
IndexDocument: {
|
|
12
11
|
Suffix: 'index.html',
|
|
13
12
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-s3-website.js","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":";;;AAAA,kDAA2D;AAE3D,uDAAkD;AAE3C,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,UAAU,GAIV,EAAE,EAAE;IACJ,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC7B,IAAI,mCAAuB,CAAC;QAC3B,MAAM,EAAE,UAAU;QAClB,oBAAoB,EAAE;YACrB,
|
|
1
|
+
{"version":3,"file":"enable-s3-website.js","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":";;;AAAA,kDAA2D;AAE3D,uDAAkD;AAE3C,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,UAAU,GAIV,EAAE,EAAE;IACJ,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC7B,IAAI,mCAAuB,CAAC;QAC3B,MAAM,EAAE,UAAU;QAClB,oBAAoB,EAAE;YACrB,aAAa,EAAE;gBACd,MAAM,EAAE,YAAY;aACpB;SACD;KACD,CAAC,CACF,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,eAAe,mBAiB1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AwsRegion } from '
|
|
2
|
-
declare type EstimatePriceInput = {
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
export declare type EstimatePriceInput = {
|
|
3
3
|
region: AwsRegion;
|
|
4
4
|
durationInMiliseconds: number;
|
|
5
5
|
memorySizeInMb: number;
|
|
@@ -7,9 +7,8 @@ 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
|
|
11
|
-
* @returns
|
|
10
|
+
* @link https://v3.remotion.dev/docs/lambda/estimateprice
|
|
11
|
+
* @returns {number} Price in USD
|
|
12
12
|
*/
|
|
13
13
|
export declare const estimatePrice: ({ region, durationInMiliseconds, memorySizeInMb, }: EstimatePriceInput) => number;
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=calculate-price.d.ts.map
|
|
14
|
+
//# sourceMappingURL=estimate-price.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-price.d.ts","sourceRoot":"","sources":["../../src/api/estimate-price.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAKjD,oBAAY,kBAAkB,GAAG;IAChC,MAAM,EAAE,SAAS,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,uDAIvB,kBAAkB,KAAG,MAkCvB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.estimatePrice = void 0;
|
|
4
|
+
const price_per_1_s_1 = require("../pricing/price-per-1-s");
|
|
4
5
|
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
5
6
|
const validate_memory_size_1 = require("../shared/validate-memory-size");
|
|
6
|
-
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
|
|
11
|
-
* @returns
|
|
10
|
+
* @link https://v3.remotion.dev/docs/lambda/estimateprice
|
|
11
|
+
* @returns {number} Price in USD
|
|
12
12
|
*/
|
|
13
13
|
const estimatePrice = ({ region, durationInMiliseconds, memorySizeInMb, }) => {
|
|
14
14
|
(0, validate_memory_size_1.validateMemorySize)(memorySizeInMb);
|
|
@@ -31,4 +31,4 @@ const estimatePrice = ({ region, durationInMiliseconds, memorySizeInMb, }) => {
|
|
|
31
31
|
return Number((timeCostDollars + invocationCost).toFixed(5));
|
|
32
32
|
};
|
|
33
33
|
exports.estimatePrice = estimatePrice;
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=estimate-price.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-price.js","sourceRoot":"","sources":["../../src/api/estimate-price.ts"],"names":[],"mappings":";;;AACA,4DAAiD;AACjD,uEAAgE;AAChE,yEAAkE;AAOlE;;;;;GAKG;AACI,MAAM,aAAa,GAAG,CAAC,EAC7B,MAAM,EACN,qBAAqB,EACrB,cAAc,GACM,EAAU,EAAE;IAChC,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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as CloudWatchSDK from '@aws-sdk/client-cloudwatch-logs';
|
|
2
|
+
import * as IamSdk from '@aws-sdk/client-iam';
|
|
3
|
+
import * as LambdaSDK from '@aws-sdk/client-lambda';
|
|
4
|
+
import * as S3SDK from '@aws-sdk/client-s3';
|
|
5
|
+
import { AwsRegion } from '../client';
|
|
6
|
+
import { ServiceMapping } from '../shared/aws-clients';
|
|
7
|
+
export declare type GetAwsClientInput<T extends keyof ServiceMapping> = {
|
|
8
|
+
region: AwsRegion;
|
|
9
|
+
service: T;
|
|
10
|
+
};
|
|
11
|
+
declare type SdkMapping = {
|
|
12
|
+
s3: typeof S3SDK;
|
|
13
|
+
cloudwatch: typeof CloudWatchSDK;
|
|
14
|
+
iam: typeof IamSdk;
|
|
15
|
+
lambda: typeof LambdaSDK;
|
|
16
|
+
};
|
|
17
|
+
export declare type GetAwsClientOutput<T extends keyof ServiceMapping> = {
|
|
18
|
+
client: ServiceMapping[T];
|
|
19
|
+
sdk: SdkMapping[T];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @description Gets the full AWS SDK and an instantiated client for an AWS service
|
|
23
|
+
* @link https://v3.remotion.dev/docs/lambda/getawsclient
|
|
24
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
25
|
+
* @param {string} params.service One of `iam`, `s3`, `cloudwatch` and `iam`
|
|
26
|
+
* @returns {GetAwsClientOutput<T>} Returns `client` and `sdk` of a AWS service
|
|
27
|
+
*/
|
|
28
|
+
export declare const getAwsClient: <T extends keyof ServiceMapping>({ region, service, }: GetAwsClientInput<T>) => GetAwsClientOutput<T>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=get-aws-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-aws-client.d.ts","sourceRoot":"","sources":["../../src/api/get-aws-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,EAAmB,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAEvE,oBAAY,iBAAiB,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC/D,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,aAAK,UAAU,GAAG;IACjB,EAAE,EAAE,OAAO,KAAK,CAAC;IACjB,UAAU,EAAE,OAAO,aAAa,CAAC;IACjC,GAAG,EAAE,OAAO,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,SAAS,CAAC;CACzB,CAAC;AAEF,oBAAY,kBAAkB,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAChE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC1B,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,uGAaxB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.getAwsClient = void 0;
|
|
23
|
+
const CloudWatchSDK = __importStar(require("@aws-sdk/client-cloudwatch-logs"));
|
|
24
|
+
const IamSdk = __importStar(require("@aws-sdk/client-iam"));
|
|
25
|
+
const LambdaSDK = __importStar(require("@aws-sdk/client-lambda"));
|
|
26
|
+
const S3SDK = __importStar(require("@aws-sdk/client-s3"));
|
|
27
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
28
|
+
/**
|
|
29
|
+
* @description Gets the full AWS SDK and an instantiated client for an AWS service
|
|
30
|
+
* @link https://v3.remotion.dev/docs/lambda/getawsclient
|
|
31
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
32
|
+
* @param {string} params.service One of `iam`, `s3`, `cloudwatch` and `iam`
|
|
33
|
+
* @returns {GetAwsClientOutput<T>} Returns `client` and `sdk` of a AWS service
|
|
34
|
+
*/
|
|
35
|
+
const getAwsClient = ({ region, service, }) => {
|
|
36
|
+
return {
|
|
37
|
+
client: (0, aws_clients_1.getServiceClient)(region, service),
|
|
38
|
+
sdk: {
|
|
39
|
+
lambda: LambdaSDK,
|
|
40
|
+
cloudwatch: CloudWatchSDK,
|
|
41
|
+
iam: IamSdk,
|
|
42
|
+
s3: S3SDK,
|
|
43
|
+
}[service],
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
exports.getAwsClient = getAwsClient;
|
|
47
|
+
//# sourceMappingURL=get-aws-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-aws-client.js","sourceRoot":"","sources":["../../src/api/get-aws-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+EAAiE;AACjE,4DAA8C;AAC9C,kEAAoD;AACpD,0DAA4C;AAE5C,uDAAuE;AAmBvE;;;;;;GAMG;AACI,MAAM,YAAY,GAAG,CAAiC,EAC5D,MAAM,EACN,OAAO,GACe,EAAyB,EAAE;IACjD,OAAO;QACN,MAAM,EAAE,IAAA,8BAAgB,EAAC,MAAM,EAAE,OAAO,CAAC;QACzC,GAAG,EAAE;YACJ,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,aAAa;YACzB,GAAG,EAAE,MAAM;YACX,EAAE,EAAE,KAAK;SACT,CAAC,OAAO,CAAC;KACV,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,YAAY,gBAavB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as CloudWatchSDK from '@aws-sdk/client-cloudwatch-logs';
|
|
2
|
+
import * as IamSdk from '@aws-sdk/client-iam';
|
|
3
|
+
import * as LambdaSDK from '@aws-sdk/client-lambda';
|
|
4
|
+
import * as S3SDK from '@aws-sdk/client-s3';
|
|
5
|
+
import { AwsRegion } from '../client';
|
|
6
|
+
import { ServiceMapping } from '../shared/aws-clients';
|
|
7
|
+
export declare const getAwsClient: <T extends keyof ServiceMapping>(region: AwsRegion, type: T) => {
|
|
8
|
+
client: ServiceMapping[T];
|
|
9
|
+
sdk: {
|
|
10
|
+
lambda: typeof LambdaSDK;
|
|
11
|
+
cloudwatch: typeof CloudWatchSDK;
|
|
12
|
+
iam: typeof IamSdk;
|
|
13
|
+
s3: typeof S3SDK;
|
|
14
|
+
}[T];
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=get-aws-clients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-aws-clients.d.ts","sourceRoot":"","sources":["../../src/api/get-aws-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,EAAmB,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAEvE,eAAO,MAAM,YAAY,2CAChB,SAAS;;;;;;;;CAYjB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.getAwsClient = void 0;
|
|
23
|
+
const CloudWatchSDK = __importStar(require("@aws-sdk/client-cloudwatch-logs"));
|
|
24
|
+
const IamSdk = __importStar(require("@aws-sdk/client-iam"));
|
|
25
|
+
const LambdaSDK = __importStar(require("@aws-sdk/client-lambda"));
|
|
26
|
+
const S3SDK = __importStar(require("@aws-sdk/client-s3"));
|
|
27
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
28
|
+
const getAwsClient = (region, type) => {
|
|
29
|
+
return {
|
|
30
|
+
client: (0, aws_clients_1.getServiceClient)(region, type),
|
|
31
|
+
sdk: {
|
|
32
|
+
lambda: LambdaSDK,
|
|
33
|
+
cloudwatch: CloudWatchSDK,
|
|
34
|
+
iam: IamSdk,
|
|
35
|
+
s3: S3SDK,
|
|
36
|
+
}[type],
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getAwsClient = getAwsClient;
|
|
40
|
+
//# sourceMappingURL=get-aws-clients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-aws-clients.js","sourceRoot":"","sources":["../../src/api/get-aws-clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+EAAiE;AACjE,4DAA8C;AAC9C,kEAAoD;AACpD,0DAA4C;AAE5C,uDAAuE;AAEhE,MAAM,YAAY,GAAG,CAC3B,MAAiB,EACjB,IAAO,EACN,EAAE;IACH,OAAO;QACN,MAAM,EAAE,IAAA,8BAAgB,EAAC,MAAM,EAAE,IAAI,CAAC;QACtC,GAAG,EAAE;YACJ,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,aAAa;YACzB,GAAG,EAAE,MAAM;YACX,EAAE,EAAE,KAAK;SACT,CAAC,IAAI,CAAC;KACP,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,YAAY,gBAavB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-buckets.d.ts","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,oBAAY,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-buckets.d.ts","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,oBAAY,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,WACxB,SAAS;qBAEA,kBAAkB,EAAE;EAoCrC,CAAC"}
|
package/dist/api/get-buckets.js
CHANGED
|
@@ -4,18 +4,12 @@ exports.getRemotionS3Buckets = void 0;
|
|
|
4
4
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
5
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
6
6
|
const constants_1 = require("../shared/constants");
|
|
7
|
-
// TODO: In the CLI, warn everytime this function gets called about more than 1 bucket.
|
|
8
7
|
const getRemotionS3Buckets = async (region) => {
|
|
9
8
|
const { Buckets } = await (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.ListBucketsCommand({}));
|
|
10
9
|
if (!Buckets) {
|
|
11
10
|
return { remotionBuckets: [] };
|
|
12
11
|
}
|
|
13
|
-
const remotionBuckets = Buckets.filter((b) => {
|
|
14
|
-
var _a;
|
|
15
|
-
return ((_a = b.Name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX)) &&
|
|
16
|
-
// TODO: Rename other buckets in Jonnys account bucket first
|
|
17
|
-
!b.Name.startsWith('remotion-binaries');
|
|
18
|
-
});
|
|
12
|
+
const remotionBuckets = Buckets.filter((b) => { var _a; return (_a = b.Name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX); });
|
|
19
13
|
const locations = await Promise.all(remotionBuckets.map((bucket) => {
|
|
20
14
|
return (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.GetBucketLocationCommand({
|
|
21
15
|
Bucket: bucket.Name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-buckets.js","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":";;;AAAA,kDAAgF;AAEhF,uDAAkD;AAClD,mDAA2D;
|
|
1
|
+
{"version":3,"file":"get-buckets.js","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":";;;AAAA,kDAAgF;AAEhF,uDAAkD;AAClD,mDAA2D;AAQpD,MAAM,oBAAoB,GAAG,KAAK,EACxC,MAAiB,EAGf,EAAE;IACJ,MAAM,EAAC,OAAO,EAAC,GAAG,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,8BAAkB,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7E,IAAI,CAAC,OAAO,EAAE;QACb,OAAO,EAAC,eAAe,EAAE,EAAE,EAAC,CAAC;KAC7B;IAED,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,WAC5C,OAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,UAAU,CAAC,kCAAsB,CAAC,CAAA,EAAA,CAC1C,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC9B,OAAO,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC9B,IAAI,oCAAwB,CAAC;YAC5B,MAAM,EAAE,MAAM,CAAC,IAAc;SAC7B,CAAC,CACF,CAAC;IACH,CAAC,CAAC,CACF,CAAC;IAEF,MAAM,mBAAmB,GAAG,eAAe,CAAC,GAAG,CAC9C,CAAC,MAAM,EAAE,CAAC,EAAsB,EAAE;;QACjC,OAAO;YACN,YAAY,EAAG,MAAM,CAAC,YAAqB,CAAC,OAAO,EAAE;YACrD,IAAI,EAAE,MAAM,CAAC,IAAc;YAC3B,4EAA4E;YAC5E,MAAM,EAAE,CAAC,MAAA,SAAS,CAAC,CAAC,CAAC,CAAC,kBAAkB,mCAAI,WAAW,CAAc;SACrE,CAAC;IACH,CAAC,CACD,CAAC;IACF,OAAO;QACN,eAAe,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;YACtD,OAAO,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC;QACjC,CAAC,CAAC;KACF,CAAC;AACH,CAAC,CAAC;AAvCW,QAAA,oBAAoB,wBAuC/B"}
|
|
@@ -6,17 +6,16 @@ export declare type FunctionInfo = {
|
|
|
6
6
|
memorySizeInMb: number;
|
|
7
7
|
version: LambdaVersions | null;
|
|
8
8
|
};
|
|
9
|
-
declare type
|
|
9
|
+
export declare type GetFunctionInfoInput = {
|
|
10
10
|
region: AwsRegion;
|
|
11
11
|
functionName: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* @description Given a region and function name, returns information about the function such as version, memory size and timeout.
|
|
15
|
-
* @link https://remotion.dev/docs/lambda/getfunctioninfo
|
|
15
|
+
* @link https://v3.remotion.dev/docs/lambda/getfunctioninfo
|
|
16
16
|
* @param {AwsRegion} options.region The region in which the function resides in.
|
|
17
17
|
* @param {string} options.functionName The name of the function
|
|
18
18
|
* @return {Promise<FunctionInfo>} Promise resolving to information about the function.
|
|
19
19
|
*/
|
|
20
|
-
export declare const getFunctionInfo: ({ region, functionName, }:
|
|
21
|
-
export {};
|
|
20
|
+
export declare const getFunctionInfo: ({ region, functionName, }: GetFunctionInfoInput) => Promise<FunctionInfo>;
|
|
22
21
|
//# sourceMappingURL=get-function-info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-function-info.d.ts","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAInD,oBAAY,YAAY,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"get-function-info.d.ts","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAInD,oBAAY,YAAY,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IAClC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,8BAGzB,oBAAoB,KAAG,QAAQ,YAAY,CAqB7C,CAAC"}
|
|
@@ -7,7 +7,7 @@ const get_function_version_1 = require("../shared/get-function-version");
|
|
|
7
7
|
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
8
8
|
/**
|
|
9
9
|
* @description Given a region and function name, returns information about the function such as version, memory size and timeout.
|
|
10
|
-
* @link https://remotion.dev/docs/lambda/getfunctioninfo
|
|
10
|
+
* @link https://v3.remotion.dev/docs/lambda/getfunctioninfo
|
|
11
11
|
* @param {AwsRegion} options.region The region in which the function resides in.
|
|
12
12
|
* @param {string} options.functionName The name of the function
|
|
13
13
|
* @return {Promise<FunctionInfo>} Promise resolving to information about the function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-function-info.js","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAE1D,uDAAsD;AAEtD,yEAAkE;AAClE,uEAAgE;AAchE;;;;;;GAMG;AACI,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,YAAY,
|
|
1
|
+
{"version":3,"file":"get-function-info.js","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAE1D,uDAAsD;AAEtD,yEAAkE;AAClE,uEAAgE;AAchE;;;;;;GAMG;AACI,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,YAAY,GACU,EAAyB,EAAE;;IACjD,IAAA,uCAAiB,EAAC,MAAM,CAAC,CAAC;IAE1B,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACjD,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CAC3B,IAAI,kCAAkB,CAAC;YACtB,YAAY,EAAE,YAAY;SAC1B,CAAC,CACF;QACD,IAAA,yCAAkB,EAAC;YAClB,YAAY;YACZ,MAAM;SACN,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACN,YAAY;QACZ,gBAAgB,EAAE,MAAA,YAAY,CAAC,aAAa,0CAAE,OAAiB;QAC/D,cAAc,EAAE,MAAA,YAAY,CAAC,aAAa,0CAAE,UAAoB;QAChE,OAAO;KACP,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,eAAe,mBAwB1B"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
2
|
import { FunctionInfo } from './get-function-info';
|
|
3
|
+
export declare type GetFunctionsInput = {
|
|
4
|
+
region: AwsRegion;
|
|
5
|
+
compatibleOnly: boolean;
|
|
6
|
+
};
|
|
3
7
|
/**
|
|
4
8
|
*
|
|
5
9
|
*
|
|
6
10
|
* @description Lists Remotion Lambda render functions deployed to AWS Lambda.
|
|
7
|
-
* @link https://remotion.dev/docs/lambda/getfunctions
|
|
11
|
+
* @link https://v3.remotion.dev/docs/lambda/getfunctions
|
|
8
12
|
* @param options.region The region of which the functions should be listed.
|
|
9
13
|
* @param options.compatibleOnly Whether only functions compatible with the installed version of Remotion Lambda should be returned.
|
|
10
|
-
* @returns An array with the objects containing information about the deployed functions.
|
|
14
|
+
* @returns {Promise<FunctionInfo[]>} An array with the objects containing information about the deployed functions.
|
|
11
15
|
*/
|
|
12
|
-
export declare const getFunctions: (options:
|
|
13
|
-
region: AwsRegion;
|
|
14
|
-
compatibleOnly: boolean;
|
|
15
|
-
}) => Promise<FunctionInfo[]>;
|
|
16
|
+
export declare const getFunctions: (options: GetFunctionsInput) => Promise<FunctionInfo[]>;
|
|
16
17
|
//# sourceMappingURL=get-functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-functions.d.ts","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"get-functions.d.ts","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,oBAAY,iBAAiB,GAAG;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,YACf,iBAAiB,KACxB,QAAQ,YAAY,EAAE,CA0CxB,CAAC"}
|
|
@@ -9,10 +9,10 @@ const get_function_version_1 = require("../shared/get-function-version");
|
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* @description Lists Remotion Lambda render functions deployed to AWS Lambda.
|
|
12
|
-
* @link https://remotion.dev/docs/lambda/getfunctions
|
|
12
|
+
* @link https://v3.remotion.dev/docs/lambda/getfunctions
|
|
13
13
|
* @param options.region The region of which the functions should be listed.
|
|
14
14
|
* @param options.compatibleOnly Whether only functions compatible with the installed version of Remotion Lambda should be returned.
|
|
15
|
-
* @returns An array with the objects containing information about the deployed functions.
|
|
15
|
+
* @returns {Promise<FunctionInfo[]>} An array with the objects containing information about the deployed functions.
|
|
16
16
|
*/
|
|
17
17
|
const getFunctions = async (options) => {
|
|
18
18
|
const lambdas = await (0, aws_clients_1.getLambdaClient)(options.region).send(new client_lambda_1.ListFunctionsCommand({}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-functions.js","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":";;;AAAA,0DAA4D;AAE5D,uDAAsD;AACtD,mDAAsE;AACtE,yEAAkE;
|
|
1
|
+
{"version":3,"file":"get-functions.js","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":";;;AAAA,0DAA4D;AAE5D,uDAAsD;AACtD,mDAAsE;AACtE,yEAAkE;AAQlE;;;;;;;;GAQG;AACI,MAAM,YAAY,GAAG,KAAK,EAChC,OAA0B,EACA,EAAE;IAC5B,MAAM,OAAO,GAAG,MAAM,IAAA,6BAAe,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CACzD,IAAI,oCAAoB,CAAC,EAAE,CAAC,CAC5B,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;;QAC9D,OAAO,MAAA,CAAC,CAAC,YAAY,0CAAE,UAAU,CAAC,4BAAgB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAChC,eAAe,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE;QAChC,IAAI;YACH,MAAM,OAAO,GAAG,MAAM,IAAA,yCAAkB,EAAC;gBACxC,YAAY,EAAE,EAAE,CAAC,YAAsB;gBACvC,MAAM,EAAE,OAAO,CAAC,MAAM;aACtB,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;SACf;QAAC,OAAO,GAAG,EAAE;YACb,OAAO,IAAI,CAAC;SACZ;IACF,CAAC,CAAC,CACF,CAAC;IAEF,MAAM,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAgB,EAAE;QAC5D,OAAO;YACN,YAAY,EAAE,MAAM,CAAC,YAAsB;YAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;YACnB,cAAc,EAAE,MAAM,CAAC,UAAoB;YAC3C,gBAAgB,EAAE,MAAM,CAAC,OAAiB;SAC1C,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;QAC5B,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;QACxB,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;YAC5B,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,CAAC,CAAC,OAAO,KAAK,2BAAe,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,YAAY,gBA4CvB"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
-
declare type GetOrCreateBucketInput = {
|
|
2
|
+
export declare type GetOrCreateBucketInput = {
|
|
3
3
|
region: AwsRegion;
|
|
4
4
|
onBucketEnsured?: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare type
|
|
6
|
+
export declare type GetOrCreateBucketOutput = {
|
|
7
7
|
bucketName: string;
|
|
8
8
|
};
|
|
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://v3.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
|
-
export declare const getOrCreateBucket: (options: GetOrCreateBucketInput) => Promise<
|
|
16
|
-
export {};
|
|
15
|
+
export declare const getOrCreateBucket: (options: GetOrCreateBucketInput) => Promise<GetOrCreateBucketOutput>;
|
|
17
16
|
//# sourceMappingURL=get-or-create-bucket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-or-create-bucket.d.ts","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAOjD,
|
|
1
|
+
{"version":3,"file":"get-or-create-bucket.d.ts","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAOjD,oBAAY,sBAAsB,GAAG;IACpC,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,YACpB,sBAAsB,KAC7B,QAAQ,uBAAuB,CA8BjC,CAAC"}
|
|
@@ -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://v3.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://v3.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://v3.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.dev/docs/lambda/getrenderprogress
|
|
10
|
+
* @description Gets the current status of a render originally triggered via renderMediaOnLambda().
|
|
11
|
+
* @link https://v3.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,CAUzC,CAAC"}
|
|
@@ -4,13 +4,13 @@ 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.dev/docs/lambda/getrenderprogress
|
|
7
|
+
* @description Gets the current status of a render originally triggered via renderMediaOnLambda().
|
|
8
|
+
* @link https://v3.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
|
return (0, call_lambda_1.callLambda)({
|
|
@@ -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,OAAO,IAAA,wBAAU,EAAC;QACjB,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,MAAM;QAC3B,OAAO,EAAE;YACR,UAAU;YACV,QAAQ;SACR;QACD,MAAM;KACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B"}
|
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://v3.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
|