@remotion/lambda 3.0.0-lambda.25 → 3.0.0-lambda.274
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.d.ts +1 -1
- package/dist/admin/make-layer-public.d.ts.map +1 -1
- package/dist/admin/make-layer-public.js +4 -16
- 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 +31 -4
- 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 +14 -9
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +15 -4
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-site.d.ts +4 -4
- package/dist/api/deploy-site.d.ts.map +1 -1
- package/dist/api/deploy-site.js +5 -3
- 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-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 +13 -4
- package/dist/api/get-sites.d.ts.map +1 -1
- package/dist/api/get-sites.js +15 -4
- package/dist/api/get-sites.js.map +1 -1
- package/dist/api/iam-validation/role-permissions.d.ts +2 -2
- package/dist/api/iam-validation/role-permissions.d.ts.map +1 -1
- package/dist/api/iam-validation/role-permissions.js +9 -4
- 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/user-permissions.d.ts +7 -0
- package/dist/api/iam-validation/user-permissions.d.ts.map +1 -0
- package/dist/api/iam-validation/{required-permissions.js → user-permissions.js} +28 -16
- 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/{render-video-on-lambda.d.ts → render-media-on-lambda.d.ts} +35 -25
- 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} +20 -9
- package/dist/api/render-media-on-lambda.js.map +1 -0
- package/dist/api/render-still-on-lambda.d.ts +27 -21
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +12 -6
- 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 +7 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +4 -1
- 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 +16 -5
- 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 -8
- 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 +11 -15
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +40 -22
- 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 +84 -29
- 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 +13 -9
- 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 +43 -19
- 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 +43 -12
- 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 +12 -4
- 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 +6 -4
- package/dist/cli/helpers/find-function-name.js.map +1 -1
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +9 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +1 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js +8 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +1 -0
- 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 +32 -15
- 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 +4 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
- 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/plan-frame-ranges.d.ts +6 -3
- 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 +4 -1
- 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 +14 -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 -4
- package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
- package/dist/functions/helpers/get-browser-instance.js +13 -18
- 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-encoding-metadata.d.ts.map +1 -1
- package/dist/functions/helpers/get-encoding-metadata.js +7 -7
- package/dist/functions/helpers/get-encoding-metadata.js.map +1 -1
- package/dist/functions/helpers/get-files-to-delete.d.ts.map +1 -1
- package/dist/functions/helpers/get-files-to-delete.js +4 -10
- package/dist/functions/helpers/get-files-to-delete.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 +7 -3
- 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 +34 -7
- package/dist/functions/helpers/get-progress.js.map +1 -1
- package/dist/functions/helpers/get-retry-stats.d.ts +11 -0
- package/dist/functions/helpers/get-retry-stats.d.ts.map +1 -0
- package/dist/functions/helpers/get-retry-stats.js +21 -0
- package/dist/functions/helpers/get-retry-stats.js.map +1 -0
- 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 +6 -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-cloudwatch-helper.d.ts +3 -0
- package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +1 -0
- package/dist/functions/helpers/print-cloudwatch-helper.js +12 -0
- package/dist/functions/helpers/print-cloudwatch-helper.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 +6 -7
- package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
- package/dist/functions/helpers/validate-composition.js +2 -10
- package/dist/functions/helpers/validate-composition.js.map +1 -1
- package/dist/functions/helpers/write-lambda-error.d.ts +3 -0
- package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -1
- package/dist/functions/helpers/write-lambda-error.js +5 -2
- 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/index.d.ts +1 -0
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +30 -3
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +39 -38
- 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 +43 -82
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/start.d.ts.map +1 -1
- package/dist/functions/start.js +5 -0
- package/dist/functions/start.js.map +1 -1
- package/dist/functions/still.d.ts +2 -1
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +40 -47
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +18 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -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 +3 -0
- package/dist/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +64 -18
- 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 +37 -10
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +18 -8
- 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/make-s3-url.d.ts +1 -1
- package/dist/shared/make-s3-url.d.ts.map +1 -1
- package/dist/shared/make-s3-url.js +4 -5
- package/dist/shared/make-s3-url.js.map +1 -1
- package/dist/shared/parse-lambda-initialized-key.d.ts +6 -0
- package/dist/shared/parse-lambda-initialized-key.d.ts.map +1 -0
- package/dist/shared/parse-lambda-initialized-key.js +16 -0
- package/dist/shared/parse-lambda-initialized-key.js.map +1 -0
- 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-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-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 +12 -0
- package/dist/shared/validate-site-name.js.map +1 -0
- package/package.json +13 -11
- 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 -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/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.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/pricing/calculate-price.d.ts.map +0 -1
- 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/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
|
@@ -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"}
|
|
@@ -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
|
@@ -5,13 +5,22 @@ declare type Site = {
|
|
|
5
5
|
lastModified: number | null;
|
|
6
6
|
bucketName: string;
|
|
7
7
|
id: string;
|
|
8
|
+
serveUrl: string;
|
|
8
9
|
};
|
|
9
|
-
declare type
|
|
10
|
+
export declare type GetSitesInput = {
|
|
11
|
+
region: AwsRegion;
|
|
12
|
+
};
|
|
13
|
+
export declare type GetSitesOutput = {
|
|
10
14
|
sites: Site[];
|
|
11
15
|
buckets: BucketWithLocation[];
|
|
12
16
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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>;
|
|
16
25
|
export {};
|
|
17
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;
|
|
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
|
@@ -4,9 +4,15 @@ exports.getSites = void 0;
|
|
|
4
4
|
const io_1 = require("../functions/helpers/io");
|
|
5
5
|
const constants_1 = require("../shared/constants");
|
|
6
6
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
7
|
+
const make_s3_url_1 = require("../shared/make-s3-url");
|
|
7
8
|
const get_buckets_1 = require("./get-buckets");
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @description Gets all the deployed sites for a certain AWS region.
|
|
12
|
+
* @link https://v3.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
|
+
*/
|
|
10
16
|
const getSites = async ({ region, }) => {
|
|
11
17
|
var _a;
|
|
12
18
|
const { remotionBuckets } = await (0, get_buckets_1.getRemotionS3Buckets)(region);
|
|
@@ -20,9 +26,9 @@ const getSites = async ({ region, }) => {
|
|
|
20
26
|
expectedBucketOwner: accountId,
|
|
21
27
|
});
|
|
22
28
|
for (const file of ls) {
|
|
23
|
-
const siteKeyMatch = (_a = file.Key) === null || _a === void 0 ? void 0 : _a.match(/sites\/(.*)\/(.*)$/);
|
|
29
|
+
const siteKeyMatch = (_a = file.Key) === null || _a === void 0 ? void 0 : _a.match(/sites\/([0-9a-zA-Z-!_.*'()]+)\/(.*)$/);
|
|
24
30
|
if (!siteKeyMatch) {
|
|
25
|
-
throw new Error(`
|
|
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.`);
|
|
26
32
|
}
|
|
27
33
|
const [, siteId] = siteKeyMatch;
|
|
28
34
|
if (!sites[siteId]) {
|
|
@@ -31,6 +37,11 @@ const getSites = async ({ region, }) => {
|
|
|
31
37
|
bucketName: bucket.name,
|
|
32
38
|
lastModified: null,
|
|
33
39
|
id: siteId,
|
|
40
|
+
serveUrl: (0, make_s3_url_1.makeS3ServeUrl)({
|
|
41
|
+
bucketName: bucket.name,
|
|
42
|
+
region,
|
|
43
|
+
subFolder: (0, constants_1.getSitesKey)(siteId),
|
|
44
|
+
}),
|
|
34
45
|
};
|
|
35
46
|
}
|
|
36
47
|
if (file.LastModified) {
|
|
@@ -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,+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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { iam, lambda, s3 } from 'aws-policies';
|
|
1
|
+
import { iam, lambda, logs, s3 } from 'aws-policies';
|
|
2
2
|
export declare const rolePermissions: {
|
|
3
|
-
actions: (s3 | iam | lambda)[];
|
|
3
|
+
actions: (s3 | iam | lambda | logs)[];
|
|
4
4
|
resource: string[];
|
|
5
5
|
}[];
|
|
6
6
|
//# sourceMappingURL=role-permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"role-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AAOnD,eAAO,MAAM,eAAe,EAAE;IAC7B,OAAO,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB,EA4BA,CAAC"}
|
|
@@ -8,12 +8,11 @@ exports.rolePermissions = [
|
|
|
8
8
|
actions: [aws_policies_1.s3.ListAllMyBuckets],
|
|
9
9
|
resource: ['*'],
|
|
10
10
|
},
|
|
11
|
-
{
|
|
12
|
-
actions: [aws_policies_1.s3.CreateBucket, aws_policies_1.s3.ListBucket, aws_policies_1.s3.PutBucketAcl],
|
|
13
|
-
resource: [`arn:aws:s3:::*`],
|
|
14
|
-
},
|
|
15
11
|
{
|
|
16
12
|
actions: [
|
|
13
|
+
aws_policies_1.s3.CreateBucket,
|
|
14
|
+
aws_policies_1.s3.ListBucket,
|
|
15
|
+
aws_policies_1.s3.PutBucketAcl,
|
|
17
16
|
aws_policies_1.s3.GetObject,
|
|
18
17
|
aws_policies_1.s3.DeleteObject,
|
|
19
18
|
aws_policies_1.s3.PutObjectAcl,
|
|
@@ -26,5 +25,11 @@ exports.rolePermissions = [
|
|
|
26
25
|
actions: [aws_policies_1.lambda.InvokeFunction],
|
|
27
26
|
resource: [`arn:aws:lambda:*:*:function:${constants_1.RENDER_FN_PREFIX}*`],
|
|
28
27
|
},
|
|
28
|
+
{
|
|
29
|
+
actions: [aws_policies_1.logs.CreateLogStream, aws_policies_1.logs.PutLogEvents],
|
|
30
|
+
resource: [
|
|
31
|
+
`arn:aws:logs:*:*:log-group:${constants_1.LOG_GROUP_PREFIX}${constants_1.RENDER_FN_PREFIX}*`,
|
|
32
|
+
],
|
|
33
|
+
},
|
|
29
34
|
];
|
|
30
35
|
//# sourceMappingURL=role-permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"role-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AACnD,sDAIgC;AAEnB,QAAA,eAAe,GAGtB;IACL;QACC,OAAO,EAAE,CAAC,iBAAE,CAAC,gBAAgB,CAAC;QAC9B,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,OAAO,EAAE;YACR,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,UAAU;YACb,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,iBAAiB;SACpB;QACD,QAAQ,EAAE,CAAC,gBAAgB,kCAAsB,GAAG,CAAC;KACrD;IACD;QACC,OAAO,EAAE,CAAC,qBAAM,CAAC,cAAc,CAAC;QAChC,QAAQ,EAAE,CAAC,+BAA+B,4BAAgB,GAAG,CAAC;KAC9D;IACD;QACC,OAAO,EAAE,CAAC,mBAAI,CAAC,eAAe,EAAE,mBAAI,CAAC,YAAY,CAAC;QAClD,QAAQ,EAAE;YACT,8BAA8B,4BAAgB,GAAG,4BAAgB,GAAG;SACpE;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-rule.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate-rule.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGpD,oBAAY,YAAY,GAAG,SAAS,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvE,oBAAY,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"simulate-rule.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate-rule.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGpD,oBAAY,YAAY,GAAG,SAAS,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvE,oBAAY,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CAChB,KAAG,QAAQ,gBAAgB,EAAE,CAiD7B,CAAC"}
|