@remotion/lambda 4.0.260 → 4.0.261
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/build.ts +1 -1
- package/dist/admin/make-layer-public.js +3 -3
- package/dist/api/create-function.d.ts +1 -2
- package/dist/api/create-function.js +8 -8
- package/dist/api/delete-site.d.ts +2 -2
- package/dist/api/delete-site.js +3 -4
- package/dist/api/deploy-function.d.ts +2 -2
- package/dist/api/deploy-function.js +9 -13
- package/dist/api/deploy-site.d.ts +2 -2
- package/dist/api/deploy-site.js +19 -13
- package/dist/api/download-media.d.ts +3 -3
- package/dist/api/download-media.js +11 -5
- package/dist/api/get-function-info.d.ts +1 -1
- package/dist/api/get-function-info.js +6 -8
- package/dist/api/get-or-create-bucket.d.ts +3 -3
- package/dist/api/get-or-create-bucket.js +4 -4
- package/dist/api/get-regions.d.ts +1 -1
- package/dist/api/get-regions.js +1 -1
- package/dist/api/iam-validation/role-permissions.js +6 -7
- package/dist/api/iam-validation/simulate-rule.d.ts +1 -1
- package/dist/api/iam-validation/simulate-rule.js +2 -2
- package/dist/api/iam-validation/simulate.d.ts +1 -1
- package/dist/api/iam-validation/simulate.js +2 -2
- package/dist/api/iam-validation/user-permissions.js +4 -5
- package/dist/api/upload-dir.d.ts +2 -3
- package/dist/api/upload-dir.js +7 -4
- package/dist/cli/args.d.ts +2 -4
- package/dist/cli/commands/compositions/index.d.ts +1 -1
- package/dist/cli/commands/compositions/index.js +5 -6
- package/dist/cli/commands/functions/deploy.d.ts +1 -1
- package/dist/cli/commands/functions/deploy.js +8 -9
- package/dist/cli/commands/functions/index.d.ts +1 -1
- package/dist/cli/commands/functions/index.js +6 -6
- package/dist/cli/commands/functions/ls.d.ts +1 -1
- package/dist/cli/commands/functions/rm.js +4 -4
- package/dist/cli/commands/functions/rmall.d.ts +1 -1
- package/dist/cli/commands/functions/rmall.js +2 -2
- package/dist/cli/commands/policies/policies.js +5 -5
- package/dist/cli/commands/quotas/increase.js +5 -5
- package/dist/cli/commands/quotas/list.js +4 -4
- package/dist/cli/commands/render/progress.js +4 -4
- package/dist/cli/commands/render/render.d.ts +1 -1
- package/dist/cli/commands/render/render.js +13 -16
- package/dist/cli/commands/sites/create.d.ts +1 -1
- package/dist/cli/commands/sites/create.js +4 -4
- package/dist/cli/commands/sites/index.d.ts +1 -1
- package/dist/cli/commands/sites/index.js +6 -6
- package/dist/cli/commands/sites/ls.js +2 -2
- package/dist/cli/commands/sites/rm.d.ts +1 -1
- package/dist/cli/commands/sites/rm.js +4 -4
- package/dist/cli/commands/sites/rmall.d.ts +1 -1
- package/dist/cli/commands/sites/rmall.js +4 -4
- package/dist/cli/commands/still.d.ts +1 -1
- package/dist/cli/commands/still.js +10 -12
- package/dist/cli/get-aws-region.d.ts +1 -1
- package/dist/cli/get-aws-region.js +6 -7
- package/dist/cli/help.js +10 -10
- package/dist/cli/helpers/find-function-name.d.ts +1 -1
- package/dist/cli/helpers/find-function-name.js +5 -5
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +15 -17
- package/dist/cli/log.d.ts +5 -5
- package/dist/client.d.ts +1 -19
- package/dist/client.js +15 -30
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.js +1 -1
- package/dist/functions/aws-server-implementation.d.ts +2 -1
- package/dist/functions/aws-server-implementation.js +11 -2
- package/dist/functions/full-client-implementation.d.ts +1 -1
- package/dist/functions/full-client-implementation.js +0 -2
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/get-folder-files.d.ts +1 -1
- package/dist/functions/helpers/make-aws-artifact.d.ts +1 -1
- package/dist/functions/helpers/read-with-progress.d.ts +2 -3
- package/dist/functions/helpers/read-with-progress.js +6 -2
- package/dist/functions/index.d.ts +2 -3
- package/dist/functions/index.js +2 -4
- package/dist/index.d.ts +13 -32
- package/dist/index.js +24 -35
- package/dist/internals.d.ts +8 -12
- package/dist/internals.js +0 -4
- package/dist/shared/get-layers.d.ts +1 -4
- package/dist/shared/get-layers.js +3 -3
- package/dist/shared/get-s3-operations.d.ts +1 -1
- package/dist/shared/hosted-layers.d.ts +1 -1
- package/dist/shared/lambda-insights-extensions.d.ts +1 -1
- package/dist/shared/validate-timeout.js +3 -3
- package/package.json +20 -28
- package/remotionlambda-arm64.zip +0 -0
- package/dist/api/app-router-webhook.d.ts +0 -10
- package/dist/api/app-router-webhook.js +0 -43
- package/dist/api/bucket-exists.d.ts +0 -3
- package/dist/api/bucket-exists.js +0 -26
- package/dist/api/clean-items.d.ts +0 -16
- package/dist/api/clean-items.js +0 -25
- package/dist/api/create-bucket.d.ts +0 -3
- package/dist/api/create-bucket.js +0 -45
- package/dist/api/delete-function.d.ts +0 -4
- package/dist/api/delete-function.js +0 -15
- package/dist/api/delete-render.d.ts +0 -20
- package/dist/api/delete-render.js +0 -78
- package/dist/api/estimate-price.d.ts +0 -17
- package/dist/api/estimate-price.js +0 -45
- package/dist/api/express-webhook.d.ts +0 -3
- package/dist/api/express-webhook.js +0 -46
- package/dist/api/get-aws-client.d.ts +0 -30
- package/dist/api/get-aws-client.js +0 -56
- package/dist/api/get-buckets.d.ts +0 -9
- package/dist/api/get-buckets.js +0 -62
- package/dist/api/get-compositions-on-lambda.d.ts +0 -20
- package/dist/api/get-compositions-on-lambda.js +0 -60
- package/dist/api/get-functions.d.ts +0 -9
- package/dist/api/get-functions.js +0 -77
- package/dist/api/get-render-progress.d.ts +0 -16
- package/dist/api/get-render-progress.js +0 -45
- package/dist/api/get-sites.d.ts +0 -29
- package/dist/api/get-sites.js +0 -79
- package/dist/api/make-lambda-payload.d.ts +0 -57
- package/dist/api/make-lambda-payload.js +0 -150
- package/dist/api/pages-router-webhook.d.ts +0 -5
- package/dist/api/pages-router-webhook.js +0 -48
- package/dist/api/presign-url.d.ts +0 -14
- package/dist/api/presign-url.js +0 -59
- package/dist/api/render-media-on-lambda.d.ts +0 -63
- package/dist/api/render-media-on-lambda.js +0 -128
- package/dist/api/render-still-on-lambda.d.ts +0 -56
- package/dist/api/render-still-on-lambda.js +0 -118
- package/dist/api/speculate-function-name.d.ts +0 -6
- package/dist/api/speculate-function-name.js +0 -20
- package/dist/api/validate-webhook-signature.d.ts +0 -5
- package/dist/api/validate-webhook-signature.js +0 -28
- package/dist/cli/is-cli.d.ts +0 -2
- package/dist/cli/is-cli.js +0 -10
- package/dist/functions/aws-implementation.d.ts +0 -23
- package/dist/functions/aws-implementation.js +0 -97
- package/dist/functions/helpers/apply-lifecyle.d.ts +0 -8
- package/dist/functions/helpers/apply-lifecyle.js +0 -18
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts +0 -3
- package/dist/functions/helpers/get-output-url-from-metadata.js +0 -12
- package/dist/functions/helpers/lifecycle.d.ts +0 -8
- package/dist/functions/helpers/lifecycle.js +0 -24
- package/dist/functions/helpers/parse-function-name.d.ts +0 -8
- package/dist/functions/helpers/parse-function-name.js +0 -17
- package/dist/functions/http-client.d.ts +0 -2
- package/dist/functions/http-client.js +0 -18
- package/dist/io/delete-file.d.ts +0 -3
- package/dist/io/delete-file.js +0 -12
- package/dist/io/head-file.d.ts +0 -3
- package/dist/io/head-file.js +0 -17
- package/dist/io/list-objects.d.ts +0 -3
- package/dist/io/list-objects.js +0 -67
- package/dist/io/read-file.d.ts +0 -9
- package/dist/io/read-file.js +0 -18
- package/dist/io/write-file.d.ts +0 -5
- package/dist/io/write-file.js +0 -55
- package/dist/pricing/price-per-1-s.d.ts +0 -37
- package/dist/pricing/price-per-1-s.js +0 -822
- package/dist/regions.d.ts +0 -3
- package/dist/regions.js +0 -48
- package/dist/shared/aws-clients.d.ts +0 -11
- package/dist/shared/aws-clients.js +0 -51
- package/dist/shared/call-lambda-async.d.ts +0 -3
- package/dist/shared/call-lambda-async.js +0 -20
- package/dist/shared/call-lambda-streaming.d.ts +0 -7
- package/dist/shared/call-lambda-streaming.js +0 -126
- package/dist/shared/call-lambda-sync.d.ts +0 -3
- package/dist/shared/call-lambda-sync.js +0 -30
- package/dist/shared/check-credentials.d.ts +0 -1
- package/dist/shared/check-credentials.js +0 -39
- package/dist/shared/constants.d.ts +0 -26
- package/dist/shared/constants.js +0 -29
- package/dist/shared/content-disposition-header.d.ts +0 -2
- package/dist/shared/content-disposition-header.js +0 -50
- package/dist/shared/convert-to-serve-url.d.ts +0 -6
- package/dist/shared/convert-to-serve-url.js +0 -14
- package/dist/shared/encode-aws-url-params.d.ts +0 -1
- package/dist/shared/encode-aws-url-params.js +0 -7
- package/dist/shared/get-account-id.d.ts +0 -3
- package/dist/shared/get-account-id.js +0 -15
- package/dist/shared/get-aws-urls.d.ts +0 -26
- package/dist/shared/get-aws-urls.js +0 -31
- package/dist/shared/get-credentials.d.ts +0 -9
- package/dist/shared/get-credentials.js +0 -55
- package/dist/shared/get-env-variable.d.ts +0 -1
- package/dist/shared/get-env-variable.js +0 -15
- package/dist/shared/get-function-version.d.ts +0 -7
- package/dist/shared/get-function-version.js +0 -32
- package/dist/shared/get-s3-client.d.ts +0 -9
- package/dist/shared/get-s3-client.js +0 -14
- package/dist/shared/get-service-client.d.ts +0 -23
- package/dist/shared/get-service-client.js +0 -121
- package/dist/shared/is-flaky-error.d.ts +0 -1
- package/dist/shared/is-flaky-error.js +0 -77
- package/dist/shared/is-in-lambda.d.ts +0 -1
- package/dist/shared/is-in-lambda.js +0 -9
- package/dist/shared/is-likely-to-have-aws-profile.d.ts +0 -1
- package/dist/shared/is-likely-to-have-aws-profile.js +0 -50
- package/dist/shared/lambda-version-string.d.ts +0 -1
- package/dist/shared/lambda-version-string.js +0 -7
- package/dist/shared/lifecycle-rules.d.ts +0 -10
- package/dist/shared/lifecycle-rules.js +0 -61
- package/dist/shared/make-s3-url.d.ts +0 -6
- package/dist/shared/make-s3-url.js +0 -7
- package/dist/shared/p-limit.d.ts +0 -1
- package/dist/shared/p-limit.js +0 -57
- package/dist/shared/random-hash.d.ts +0 -1
- package/dist/shared/random-hash.js +0 -13
- package/dist/shared/validate-aws-region.d.ts +0 -2
- package/dist/shared/validate-aws-region.js +0 -9
- package/dist/shared/validate-bucketname.d.ts +0 -4
- package/dist/shared/validate-bucketname.js +0 -15
- package/dist/shared/validate-disk-size-in-mb.d.ts +0 -1
- package/dist/shared/validate-disk-size-in-mb.js +0 -23
- package/dist/shared/validate-lambda-codec.d.ts +0 -2
- package/dist/shared/validate-lambda-codec.js +0 -21
- package/dist/shared/validate-memory-size.d.ts +0 -1
- package/dist/shared/validate-memory-size.js +0 -22
- package/dist/shared/validate-presign-expiration.d.ts +0 -1
- package/dist/shared/validate-presign-expiration.js +0 -29
- package/dist/shared/validate-serveurl.d.ts +0 -1
- package/dist/shared/validate-serveurl.js +0 -9
package/dist/functions/index.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handler = exports.routine = void 0;
|
|
4
|
+
const lambda_client_1 = require("@remotion/lambda-client");
|
|
4
5
|
const serverless_1 = require("@remotion/serverless");
|
|
5
|
-
const aws_implementation_1 = require("./aws-implementation");
|
|
6
6
|
const aws_server_implementation_1 = require("./aws-server-implementation");
|
|
7
7
|
const streamify_response_1 = require("./helpers/streamify-response");
|
|
8
|
-
const http_client_1 = require("./http-client");
|
|
9
8
|
const routine = (params, responseStream, context) => {
|
|
10
9
|
const responseWriter = (0, serverless_1.streamWriter)(responseStream);
|
|
11
10
|
return (0, serverless_1.innerHandler)({
|
|
12
11
|
params,
|
|
13
12
|
responseWriter,
|
|
14
13
|
context,
|
|
15
|
-
providerSpecifics:
|
|
14
|
+
providerSpecifics: lambda_client_1.LambdaClientInternals.awsImplementation,
|
|
16
15
|
insideFunctionSpecifics: aws_server_implementation_1.serverAwsImplementation,
|
|
17
|
-
webhookClient: http_client_1.getWebhookClient,
|
|
18
16
|
});
|
|
19
17
|
};
|
|
20
18
|
exports.routine = routine;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type { EnhancedErrorInfo,
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
4
|
-
import { deleteFunction } from './api/delete-function';
|
|
5
|
-
import type { DeleteRenderInput } from './api/delete-render';
|
|
6
|
-
import { deleteRender } from './api/delete-render';
|
|
1
|
+
import type { AwsRegion, CustomCredentials, DeleteFunctionInput, DeleteRenderInput, EnhancedErrorInfo, EstimatePriceInput, GetAwsClientInput, GetAwsClientOutput, GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput, GetFunctionsInput, GetOrCreateBucketInput, GetOrCreateBucketOutput, GetRenderProgressInput, GetSitesInput, GetSitesOutput, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, RenderProgress, RenderStillOnLambdaInput, RenderStillOnLambdaOutput } from '@remotion/lambda-client';
|
|
2
|
+
import { deleteFunction, deleteRender, estimatePrice, getAwsClient, getCompositionsOnLambda, getFunctions, renderVideoOnLambda, validateWebhookSignature } from '@remotion/lambda-client';
|
|
3
|
+
import type { FunctionInfo } from '@remotion/serverless';
|
|
7
4
|
import type { DeleteSiteInput, DeleteSiteOutput } from './api/delete-site';
|
|
8
5
|
import { deleteSite } from './api/delete-site';
|
|
9
6
|
import type { DeployFunctionInput, DeployFunctionOutput } from './api/deploy-function';
|
|
@@ -12,51 +9,35 @@ import type { DeploySiteInput, DeploySiteOutput } from './api/deploy-site';
|
|
|
12
9
|
import { deploySite } from './api/deploy-site';
|
|
13
10
|
import type { DownloadMediaInput, DownloadMediaOutput } from './api/download-media';
|
|
14
11
|
import { downloadMedia } from './api/download-media';
|
|
15
|
-
import type { EstimatePriceInput } from './api/estimate-price';
|
|
16
|
-
import { estimatePrice } from './api/estimate-price';
|
|
17
|
-
import type { GetAwsClientInput, GetAwsClientOutput } from './api/get-aws-client';
|
|
18
|
-
import { getAwsClient } from './api/get-aws-client';
|
|
19
|
-
import type { GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput } from './api/get-compositions-on-lambda';
|
|
20
|
-
import { getCompositionsOnLambda } from './api/get-compositions-on-lambda';
|
|
21
12
|
import type { GetFunctionInfoInput } from './api/get-function-info';
|
|
22
13
|
import { getFunctionInfo } from './api/get-function-info';
|
|
23
|
-
import type { GetFunctionsInput } from './api/get-functions';
|
|
24
|
-
import { getFunctions } from './api/get-functions';
|
|
25
14
|
import { getOrCreateBucket } from './api/get-or-create-bucket';
|
|
26
15
|
import { getRegions } from './api/get-regions';
|
|
27
|
-
import type { GetRenderProgressInput } from './api/get-render-progress';
|
|
28
|
-
import type { GetSitesInput, GetSitesOutput } from './api/get-sites';
|
|
29
16
|
import type { SimulatePermissionsInput, SimulatePermissionsOutput } from './api/iam-validation/simulate';
|
|
30
17
|
import { simulatePermissions } from './api/iam-validation/simulate';
|
|
31
18
|
import { getRolePolicy, getUserPolicy } from './api/iam-validation/suggested-policy';
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
import type { RenderStillOnLambdaInput, RenderStillOnLambdaOutput } from './api/render-still-on-lambda';
|
|
35
|
-
import { validateWebhookSignature } from './api/validate-webhook-signature';
|
|
36
|
-
import { LambdaInternals, type _InternalAwsProvider, type _InternalOverallRenderProgress } from './internals';
|
|
37
|
-
import type { AwsRegion } from './regions';
|
|
38
|
-
import type { RenderProgress } from './shared/constants';
|
|
39
|
-
export type { WebhookPayload } from '@remotion/serverless';
|
|
19
|
+
import { LambdaInternals, type _InternalOverallRenderProgress } from './internals';
|
|
20
|
+
export type { WebhookPayload } from '@remotion/lambda-client';
|
|
40
21
|
/**
|
|
41
|
-
* @deprecated Import this from `@remotion/lambda
|
|
22
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
42
23
|
*/
|
|
43
24
|
declare const renderMediaOnLambda: (options: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
44
25
|
/**
|
|
45
|
-
* @deprecated Import this from `@remotion/lambda
|
|
26
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
46
27
|
*/
|
|
47
28
|
declare const getRenderProgress: (input: GetRenderProgressInput) => Promise<RenderProgress>;
|
|
48
29
|
/**
|
|
49
|
-
* @deprecated Import this from `@remotion/lambda
|
|
30
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
50
31
|
*/
|
|
51
32
|
declare const renderStillOnLambda: (input: RenderStillOnLambdaInput) => Promise<RenderStillOnLambdaOutput>;
|
|
52
33
|
/**
|
|
53
|
-
* @deprecated Import this from `@remotion/lambda
|
|
34
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
54
35
|
*/
|
|
55
|
-
declare const presignUrl: <CheckIfObjectExists extends boolean = false>({ region, bucketName, objectKey, checkIfObjectExists, expiresInSeconds, forcePathStyle, }: import("
|
|
36
|
+
declare const presignUrl: <CheckIfObjectExists extends boolean = false>({ region, bucketName, objectKey, checkIfObjectExists, expiresInSeconds, forcePathStyle, }: import("@remotion/lambda-client").PresignUrlInput<CheckIfObjectExists>) => Promise<CheckIfObjectExists extends true ? string | null : string>;
|
|
56
37
|
/**
|
|
57
|
-
* @deprecated Import this from `@remotion/lambda
|
|
38
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
58
39
|
*/
|
|
59
40
|
declare const getSites: ({ region, forceBucketName, forcePathStyle, }: GetSitesInput) => Promise<GetSitesOutput>;
|
|
60
41
|
export { deleteFunction, deleteRender, deleteSite, deployFunction, deploySite, downloadMedia, estimatePrice, getAwsClient, getCompositionsOnLambda, getFunctionInfo, getFunctions, getOrCreateBucket, getRegions, getRenderProgress, getRolePolicy, getSites, getUserPolicy, LambdaInternals, presignUrl, renderMediaOnLambda, renderStillOnLambda, renderVideoOnLambda, simulatePermissions, validateWebhookSignature, };
|
|
61
|
-
export type { AwsRegion, CustomCredentials, DeleteFunctionInput, DeleteRenderInput, DeleteSiteInput, DeleteSiteOutput, DeployFunctionInput, DeployFunctionOutput, DeploySiteInput, DeploySiteOutput, DownloadMediaInput, DownloadMediaOutput, EnhancedErrorInfo, EstimatePriceInput, FunctionInfo, GetAwsClientInput, GetAwsClientOutput, GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput, GetFunctionInfoInput, GetFunctionsInput, GetOrCreateBucketInput, GetOrCreateBucketOutput, GetRenderProgressInput, GetSitesInput, GetSitesOutput,
|
|
62
|
-
export {
|
|
42
|
+
export type { AwsRegion, CustomCredentials, DeleteFunctionInput, DeleteRenderInput, DeleteSiteInput, DeleteSiteOutput, DeployFunctionInput, DeployFunctionOutput, DeploySiteInput, DeploySiteOutput, DownloadMediaInput, DownloadMediaOutput, EnhancedErrorInfo, EstimatePriceInput, FunctionInfo, GetAwsClientInput, GetAwsClientOutput, GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput, GetFunctionInfoInput, GetFunctionsInput, GetOrCreateBucketInput, GetOrCreateBucketOutput, GetRenderProgressInput, GetSitesInput, GetSitesOutput, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, RenderProgress, RenderStillOnLambdaInput, RenderStillOnLambdaOutput, SimulatePermissionsInput, SimulatePermissionsOutput, };
|
|
43
|
+
export { _InternalOverallRenderProgress };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateWebhookSignature = exports.simulatePermissions = exports.renderVideoOnLambda = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.presignUrl = exports.LambdaInternals = exports.getUserPolicy = exports.getSites = exports.getRolePolicy = exports.getRenderProgress = exports.getRegions = exports.getOrCreateBucket = exports.getFunctions = exports.getFunctionInfo = exports.getCompositionsOnLambda = exports.getAwsClient = exports.estimatePrice = exports.downloadMedia = exports.deploySite = exports.deployFunction = exports.deleteSite = exports.deleteRender = exports.deleteFunction = void 0;
|
|
4
|
+
const lambda_client_1 = require("@remotion/lambda-client");
|
|
5
|
+
Object.defineProperty(exports, "deleteFunction", { enumerable: true, get: function () { return lambda_client_1.deleteFunction; } });
|
|
6
|
+
Object.defineProperty(exports, "deleteRender", { enumerable: true, get: function () { return lambda_client_1.deleteRender; } });
|
|
7
|
+
Object.defineProperty(exports, "estimatePrice", { enumerable: true, get: function () { return lambda_client_1.estimatePrice; } });
|
|
8
|
+
Object.defineProperty(exports, "getAwsClient", { enumerable: true, get: function () { return lambda_client_1.getAwsClient; } });
|
|
9
|
+
Object.defineProperty(exports, "getCompositionsOnLambda", { enumerable: true, get: function () { return lambda_client_1.getCompositionsOnLambda; } });
|
|
10
|
+
Object.defineProperty(exports, "getFunctions", { enumerable: true, get: function () { return lambda_client_1.getFunctions; } });
|
|
11
|
+
Object.defineProperty(exports, "renderVideoOnLambda", { enumerable: true, get: function () { return lambda_client_1.renderVideoOnLambda; } });
|
|
12
|
+
Object.defineProperty(exports, "validateWebhookSignature", { enumerable: true, get: function () { return lambda_client_1.validateWebhookSignature; } });
|
|
4
13
|
const no_react_1 = require("remotion/no-react");
|
|
5
|
-
const delete_function_1 = require("./api/delete-function");
|
|
6
|
-
Object.defineProperty(exports, "deleteFunction", { enumerable: true, get: function () { return delete_function_1.deleteFunction; } });
|
|
7
|
-
const delete_render_1 = require("./api/delete-render");
|
|
8
|
-
Object.defineProperty(exports, "deleteRender", { enumerable: true, get: function () { return delete_render_1.deleteRender; } });
|
|
9
14
|
const delete_site_1 = require("./api/delete-site");
|
|
10
15
|
Object.defineProperty(exports, "deleteSite", { enumerable: true, get: function () { return delete_site_1.deleteSite; } });
|
|
11
16
|
const deploy_function_1 = require("./api/deploy-function");
|
|
@@ -14,77 +19,61 @@ const deploy_site_1 = require("./api/deploy-site");
|
|
|
14
19
|
Object.defineProperty(exports, "deploySite", { enumerable: true, get: function () { return deploy_site_1.deploySite; } });
|
|
15
20
|
const download_media_1 = require("./api/download-media");
|
|
16
21
|
Object.defineProperty(exports, "downloadMedia", { enumerable: true, get: function () { return download_media_1.downloadMedia; } });
|
|
17
|
-
const estimate_price_1 = require("./api/estimate-price");
|
|
18
|
-
Object.defineProperty(exports, "estimatePrice", { enumerable: true, get: function () { return estimate_price_1.estimatePrice; } });
|
|
19
|
-
const get_aws_client_1 = require("./api/get-aws-client");
|
|
20
|
-
Object.defineProperty(exports, "getAwsClient", { enumerable: true, get: function () { return get_aws_client_1.getAwsClient; } });
|
|
21
|
-
const get_compositions_on_lambda_1 = require("./api/get-compositions-on-lambda");
|
|
22
|
-
Object.defineProperty(exports, "getCompositionsOnLambda", { enumerable: true, get: function () { return get_compositions_on_lambda_1.getCompositionsOnLambda; } });
|
|
23
22
|
const get_function_info_1 = require("./api/get-function-info");
|
|
24
23
|
Object.defineProperty(exports, "getFunctionInfo", { enumerable: true, get: function () { return get_function_info_1.getFunctionInfo; } });
|
|
25
|
-
const get_functions_1 = require("./api/get-functions");
|
|
26
|
-
Object.defineProperty(exports, "getFunctions", { enumerable: true, get: function () { return get_functions_1.getFunctions; } });
|
|
27
24
|
const get_or_create_bucket_1 = require("./api/get-or-create-bucket");
|
|
28
25
|
Object.defineProperty(exports, "getOrCreateBucket", { enumerable: true, get: function () { return get_or_create_bucket_1.getOrCreateBucket; } });
|
|
29
26
|
const get_regions_1 = require("./api/get-regions");
|
|
30
27
|
Object.defineProperty(exports, "getRegions", { enumerable: true, get: function () { return get_regions_1.getRegions; } });
|
|
31
|
-
const get_render_progress_1 = require("./api/get-render-progress");
|
|
32
|
-
const get_sites_1 = require("./api/get-sites");
|
|
33
28
|
const simulate_1 = require("./api/iam-validation/simulate");
|
|
34
29
|
Object.defineProperty(exports, "simulatePermissions", { enumerable: true, get: function () { return simulate_1.simulatePermissions; } });
|
|
35
30
|
const suggested_policy_1 = require("./api/iam-validation/suggested-policy");
|
|
36
31
|
Object.defineProperty(exports, "getRolePolicy", { enumerable: true, get: function () { return suggested_policy_1.getRolePolicy; } });
|
|
37
32
|
Object.defineProperty(exports, "getUserPolicy", { enumerable: true, get: function () { return suggested_policy_1.getUserPolicy; } });
|
|
38
|
-
const presign_url_1 = require("./api/presign-url");
|
|
39
|
-
const render_media_on_lambda_1 = require("./api/render-media-on-lambda");
|
|
40
|
-
Object.defineProperty(exports, "renderVideoOnLambda", { enumerable: true, get: function () { return render_media_on_lambda_1.renderVideoOnLambda; } });
|
|
41
|
-
const render_still_on_lambda_1 = require("./api/render-still-on-lambda");
|
|
42
|
-
const validate_webhook_signature_1 = require("./api/validate-webhook-signature");
|
|
43
|
-
Object.defineProperty(exports, "validateWebhookSignature", { enumerable: true, get: function () { return validate_webhook_signature_1.validateWebhookSignature; } });
|
|
44
33
|
const internals_1 = require("./internals");
|
|
45
34
|
Object.defineProperty(exports, "LambdaInternals", { enumerable: true, get: function () { return internals_1.LambdaInternals; } });
|
|
46
35
|
/**
|
|
47
|
-
* @deprecated Import this from `@remotion/lambda
|
|
36
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
48
37
|
*/
|
|
49
38
|
const renderMediaOnLambda = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
50
39
|
? () => {
|
|
51
|
-
throw new Error('renderMediaOnLambda() has moved to `@remotion/lambda
|
|
40
|
+
throw new Error('renderMediaOnLambda() has moved to `@remotion/lambda-client`. Please import it from there.');
|
|
52
41
|
}
|
|
53
|
-
:
|
|
42
|
+
: lambda_client_1.renderMediaOnLambda;
|
|
54
43
|
exports.renderMediaOnLambda = renderMediaOnLambda;
|
|
55
44
|
/**
|
|
56
|
-
* @deprecated Import this from `@remotion/lambda
|
|
45
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
57
46
|
*/
|
|
58
47
|
const getRenderProgress = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
59
48
|
? () => {
|
|
60
|
-
throw new Error('getRenderProgress() has moved to `@remotion/lambda
|
|
49
|
+
throw new Error('getRenderProgress() has moved to `@remotion/lambda-client`. Please import it from there.');
|
|
61
50
|
}
|
|
62
|
-
:
|
|
51
|
+
: lambda_client_1.getRenderProgress;
|
|
63
52
|
exports.getRenderProgress = getRenderProgress;
|
|
64
53
|
/**
|
|
65
|
-
* @deprecated Import this from `@remotion/lambda
|
|
54
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
66
55
|
*/
|
|
67
56
|
const renderStillOnLambda = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
68
57
|
? () => {
|
|
69
|
-
throw new Error('renderStillOnLambda() has moved to `@remotion/lambda
|
|
58
|
+
throw new Error('renderStillOnLambda() has moved to `@remotion/lambda-client`. Please import it from there.');
|
|
70
59
|
}
|
|
71
|
-
:
|
|
60
|
+
: lambda_client_1.renderStillOnLambda;
|
|
72
61
|
exports.renderStillOnLambda = renderStillOnLambda;
|
|
73
62
|
/**
|
|
74
|
-
* @deprecated Import this from `@remotion/lambda
|
|
63
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
75
64
|
*/
|
|
76
65
|
const presignUrl = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
77
66
|
? () => {
|
|
78
|
-
throw new Error('presignUrl() has moved to `@remotion/lambda
|
|
67
|
+
throw new Error('presignUrl() has moved to `@remotion/lambda-client`. Please import it from there.');
|
|
79
68
|
}
|
|
80
|
-
:
|
|
69
|
+
: lambda_client_1.presignUrl;
|
|
81
70
|
exports.presignUrl = presignUrl;
|
|
82
71
|
/**
|
|
83
|
-
* @deprecated Import this from `@remotion/lambda
|
|
72
|
+
* @deprecated Import this from `@remotion/lambda-client` instead
|
|
84
73
|
*/
|
|
85
74
|
const getSites = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
86
75
|
? () => {
|
|
87
|
-
throw new Error('getSites() has moved to `@remotion/lambda
|
|
76
|
+
throw new Error('getSites() has moved to `@remotion/lambda-client`. Please import it from there.');
|
|
88
77
|
}
|
|
89
|
-
:
|
|
78
|
+
: lambda_client_1.getSites;
|
|
90
79
|
exports.getSites = getSites;
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export declare const LambdaInternals: {
|
|
2
|
-
executeCommand: (args: string[], remotionRoot: string, logLevel: import("@remotion/
|
|
3
|
-
makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, }: import("./api/make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless/client").ServerlessStartPayload<import("./functions/aws-implementation").AwsProvider>>;
|
|
4
|
-
getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: import("./client").GetRenderProgressInput) => import("@remotion/serverless/client").ServerlessStatusPayload<import("./functions/aws-implementation").AwsProvider>;
|
|
5
|
-
makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, }: import("./api/render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless/client").ServerlessPayloads<import("./functions/aws-implementation").AwsProvider>[import("@remotion/serverless").ServerlessRoutines.still]>;
|
|
2
|
+
executeCommand: (args: string[], remotionRoot: string, logLevel: import("@remotion/serverless").LogLevel, _providerSpecifics: import("@remotion/serverless").ProviderSpecifics<import("@remotion/lambda-client").AwsProvider> | null, fullClientSpecifics: import("@remotion/serverless").FullClientSpecifics<import("@remotion/lambda-client").AwsProvider> | null) => Promise<void>;
|
|
6
3
|
internalDeploySite: (args_0: {
|
|
7
4
|
entryPoint: string;
|
|
8
5
|
bucketName: string;
|
|
9
|
-
region: import("
|
|
6
|
+
region: import("@remotion/lambda-client").AwsRegion;
|
|
10
7
|
} & {
|
|
11
8
|
siteName: string;
|
|
12
9
|
options: {
|
|
@@ -24,7 +21,7 @@ export declare const LambdaInternals: {
|
|
|
24
21
|
gitSource: import("@remotion/bundler").GitSource | null;
|
|
25
22
|
indent: boolean;
|
|
26
23
|
forcePathStyle: boolean;
|
|
27
|
-
} & import("@remotion/
|
|
24
|
+
} & import("@remotion/serverless").ToOptions<{
|
|
28
25
|
readonly logLevel: {
|
|
29
26
|
cliFlag: "log";
|
|
30
27
|
name: string;
|
|
@@ -34,11 +31,11 @@ export declare const LambdaInternals: {
|
|
|
34
31
|
getValue: ({ commandLine }: {
|
|
35
32
|
commandLine: Record<string, unknown>;
|
|
36
33
|
}) => {
|
|
37
|
-
value: import("@remotion/
|
|
34
|
+
value: import("@remotion/serverless").LogLevel;
|
|
38
35
|
source: string;
|
|
39
36
|
};
|
|
40
|
-
setConfig: (newLogLevel: import("@remotion/
|
|
41
|
-
type: import("@remotion/
|
|
37
|
+
setConfig: (newLogLevel: import("@remotion/serverless").LogLevel) => void;
|
|
38
|
+
type: import("@remotion/serverless").LogLevel;
|
|
42
39
|
};
|
|
43
40
|
readonly throwIfSiteExists: {
|
|
44
41
|
cliFlag: string;
|
|
@@ -56,8 +53,8 @@ export declare const LambdaInternals: {
|
|
|
56
53
|
type: boolean;
|
|
57
54
|
};
|
|
58
55
|
}> & {
|
|
59
|
-
providerSpecifics: import("@remotion/serverless").ProviderSpecifics<import("
|
|
60
|
-
fullClientSpecifics: import("@remotion/serverless").FullClientSpecifics<import("
|
|
56
|
+
providerSpecifics: import("@remotion/serverless").ProviderSpecifics<import("@remotion/lambda-client").AwsProvider>;
|
|
57
|
+
fullClientSpecifics: import("@remotion/serverless").FullClientSpecifics<import("@remotion/lambda-client").AwsProvider>;
|
|
61
58
|
}) => Promise<{
|
|
62
59
|
serveUrl: string;
|
|
63
60
|
siteName: string;
|
|
@@ -69,4 +66,3 @@ export declare const LambdaInternals: {
|
|
|
69
66
|
}>;
|
|
70
67
|
};
|
|
71
68
|
export type { OverallRenderProgress as _InternalOverallRenderProgress } from '@remotion/serverless';
|
|
72
|
-
export type { AwsProvider as _InternalAwsProvider } from './functions/aws-implementation';
|
package/dist/internals.js
CHANGED
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LambdaInternals = void 0;
|
|
4
4
|
const deploy_site_1 = require("./api/deploy-site");
|
|
5
|
-
const make_lambda_payload_1 = require("./api/make-lambda-payload");
|
|
6
5
|
const index_1 = require("./cli/index");
|
|
7
6
|
exports.LambdaInternals = {
|
|
8
7
|
executeCommand: index_1.executeCommand,
|
|
9
|
-
makeLambdaRenderMediaPayload: make_lambda_payload_1.makeLambdaRenderMediaPayload,
|
|
10
|
-
getRenderProgressPayload: make_lambda_payload_1.getRenderProgressPayload,
|
|
11
|
-
makeLambdaRenderStillPayload: make_lambda_payload_1.makeLambdaRenderStillPayload,
|
|
12
8
|
internalDeploySite: deploy_site_1.internalDeploySite,
|
|
13
9
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { AwsRegion } from '
|
|
1
|
+
import type { AwsRegion, RuntimePreference } from '@remotion/lambda-client';
|
|
2
2
|
import type { AwsLayer } from './hosted-layers';
|
|
3
|
-
declare const runtimePreferenceOptions: readonly ["default", "apple-emojis", "cjk"];
|
|
4
|
-
export type RuntimePreference = (typeof runtimePreferenceOptions)[number];
|
|
5
3
|
export declare const validateRuntimePreference: (option: unknown) => void;
|
|
6
4
|
export declare const getLayers: ({ option, region, }: {
|
|
7
5
|
option: RuntimePreference;
|
|
8
6
|
region: AwsRegion;
|
|
9
7
|
}) => AwsLayer[];
|
|
10
|
-
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLayers = exports.validateRuntimePreference = void 0;
|
|
4
|
+
const lambda_client_1 = require("@remotion/lambda-client");
|
|
4
5
|
const hosted_layers_1 = require("./hosted-layers");
|
|
5
|
-
const runtimePreferenceOptions = ['default', 'apple-emojis', 'cjk'];
|
|
6
6
|
const validateRuntimePreference = (option) => {
|
|
7
7
|
if (!option) {
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
|
-
if (!runtimePreferenceOptions.includes(option)) {
|
|
11
|
-
throw new Error(`Invalid runtime preference ${option}. Must be one of ${runtimePreferenceOptions.join(', ')}`);
|
|
10
|
+
if (!lambda_client_1.LambdaClientInternals.runtimePreferenceOptions.includes(option)) {
|
|
11
|
+
throw new Error(`Invalid runtime preference ${option}. Must be one of ${lambda_client_1.LambdaClientInternals.runtimePreferenceOptions.join(', ')}`);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
exports.validateRuntimePreference = validateRuntimePreference;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { _Object } from '@aws-sdk/client-s3';
|
|
2
|
+
import type { AwsProvider } from '@remotion/lambda-client';
|
|
2
3
|
import type { FullClientSpecifics } from '@remotion/serverless';
|
|
3
|
-
import type { AwsProvider } from '../functions/aws-implementation';
|
|
4
4
|
export declare const getS3DiffOperations: ({ objects, bundle, prefix, onProgress, fullClientSpecifics, }: {
|
|
5
5
|
objects: _Object[];
|
|
6
6
|
bundle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateTimeout = void 0;
|
|
4
|
-
const
|
|
4
|
+
const defaults_1 = require("../defaults");
|
|
5
5
|
const validateTimeout = (timeoutInSeconds) => {
|
|
6
6
|
if (typeof timeoutInSeconds !== 'number') {
|
|
7
7
|
throw new TypeError(`parameter 'timeoutInSeconds' must be a number, but got a ${typeof timeoutInSeconds}`);
|
|
@@ -12,8 +12,8 @@ const validateTimeout = (timeoutInSeconds) => {
|
|
|
12
12
|
if (!Number.isFinite(timeoutInSeconds)) {
|
|
13
13
|
throw new TypeError(`parameter 'timeoutInSeconds' must be finite, but is ${timeoutInSeconds}`);
|
|
14
14
|
}
|
|
15
|
-
if (timeoutInSeconds <
|
|
16
|
-
throw new TypeError(`parameter 'timeoutInSeconds' must be between ${
|
|
15
|
+
if (timeoutInSeconds < defaults_1.MIN_TIMEOUT || timeoutInSeconds > defaults_1.MAX_TIMEOUT) {
|
|
16
|
+
throw new TypeError(`parameter 'timeoutInSeconds' must be between ${defaults_1.MIN_TIMEOUT} and ${defaults_1.MAX_TIMEOUT}, but got ${timeoutInSeconds}`);
|
|
17
17
|
}
|
|
18
18
|
if (timeoutInSeconds % 1 !== 0) {
|
|
19
19
|
throw new TypeError(`parameter 'timeoutInSeconds' must be an integer but got ${timeoutInSeconds}`);
|
package/package.json
CHANGED
|
@@ -3,35 +3,36 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/lambda",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.261",
|
|
7
7
|
"description": "Render Remotion videos on AWS Lambda",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@aws-sdk/
|
|
14
|
-
"@aws-sdk/
|
|
13
|
+
"@aws-sdk/s3-request-presigner": "3.738.0",
|
|
14
|
+
"@aws-sdk/credential-providers": "3.738.0",
|
|
15
15
|
"@aws-sdk/client-lambda": "3.738.0",
|
|
16
16
|
"@aws-sdk/client-s3": "3.738.0",
|
|
17
|
-
"@aws-sdk/client-service-quotas": "3.738.0",
|
|
18
17
|
"@aws-sdk/client-sts": "3.738.0",
|
|
19
|
-
"@aws-sdk/
|
|
18
|
+
"@aws-sdk/client-iam": "3.738.0",
|
|
19
|
+
"@aws-sdk/client-cloudwatch-logs": "3.738.0",
|
|
20
|
+
"@aws-sdk/client-service-quotas": "3.738.0",
|
|
20
21
|
"@aws-sdk/lib-storage": "3.738.0",
|
|
21
|
-
"@
|
|
22
|
-
"@smithy/abort-controller": "3.1.1",
|
|
23
|
-
"mime-types": "2.1.34",
|
|
22
|
+
"@smithy/abort-controller": "4.0.1",
|
|
24
23
|
"zod": "3.22.3",
|
|
25
|
-
"@remotion/
|
|
26
|
-
"@remotion/
|
|
27
|
-
"@remotion/
|
|
28
|
-
"@remotion/serverless": "4.0.
|
|
29
|
-
"remotion": "4.0.
|
|
30
|
-
"@remotion/cli": "4.0.
|
|
24
|
+
"@remotion/bundler": "4.0.261",
|
|
25
|
+
"@remotion/renderer": "4.0.261",
|
|
26
|
+
"@remotion/lambda-client": "4.0.261",
|
|
27
|
+
"@remotion/serverless": "4.0.261",
|
|
28
|
+
"remotion": "4.0.261",
|
|
29
|
+
"@remotion/cli": "4.0.261",
|
|
30
|
+
"@remotion/streaming": "4.0.261"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/express": "^5.0.0",
|
|
34
34
|
"express": "4.21.0",
|
|
35
|
+
"mime-types": "2.1.34",
|
|
35
36
|
"@types/mime-types": "2.1.1",
|
|
36
37
|
"@types/minimist": "1.2.2",
|
|
37
38
|
"@types/prompt": "^1.1.0",
|
|
@@ -39,12 +40,12 @@
|
|
|
39
40
|
"next": "15.1.6",
|
|
40
41
|
"pureimage": "0.4.13",
|
|
41
42
|
"zip-lib": "^0.7.2",
|
|
42
|
-
"@remotion/bundler": "4.0.
|
|
43
|
-
"@remotion/
|
|
44
|
-
"@remotion/
|
|
43
|
+
"@remotion/bundler": "4.0.261",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.261",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.261"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"@remotion/bundler": "4.0.
|
|
48
|
+
"@remotion/bundler": "4.0.261"
|
|
48
49
|
},
|
|
49
50
|
"publishConfig": {
|
|
50
51
|
"access": "public"
|
|
@@ -52,20 +53,11 @@
|
|
|
52
53
|
"exports": {
|
|
53
54
|
"./package.json": "./package.json",
|
|
54
55
|
".": "./dist/index.js",
|
|
55
|
-
"./defaults": "./dist/defaults.js",
|
|
56
|
-
"./regions": "./dist/regions.js",
|
|
57
56
|
"./policies": "./dist/api/iam-validation/suggested-policy.js",
|
|
58
|
-
"./client": "./dist/client.js"
|
|
59
|
-
"./layers": "./dist/shared/hosted-layers.js"
|
|
57
|
+
"./client": "./dist/client.js"
|
|
60
58
|
},
|
|
61
59
|
"typesVersions": {
|
|
62
60
|
">=1.0": {
|
|
63
|
-
"defaults": [
|
|
64
|
-
"dist/defaults.d.ts"
|
|
65
|
-
],
|
|
66
|
-
"regions": [
|
|
67
|
-
"dist/regions.d.ts"
|
|
68
|
-
],
|
|
69
61
|
"policies": [
|
|
70
62
|
"dist/api/iam-validation/suggested-policy.d.ts"
|
|
71
63
|
],
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { WebhookErrorPayload, WebhookSuccessPayload, WebhookTimeoutPayload } from '@remotion/serverless';
|
|
2
|
-
export type NextWebhookArgs = {
|
|
3
|
-
testing?: boolean;
|
|
4
|
-
extraHeaders?: Record<string, string>;
|
|
5
|
-
secret: string;
|
|
6
|
-
onSuccess?: (payload: WebhookSuccessPayload) => void;
|
|
7
|
-
onTimeout?: (payload: WebhookTimeoutPayload) => void;
|
|
8
|
-
onError?: (payload: WebhookErrorPayload) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const appRouterWebhook: (options: NextWebhookArgs) => ((req: Request) => Promise<Response>);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appRouterWebhook = void 0;
|
|
4
|
-
const validate_webhook_signature_1 = require("./validate-webhook-signature");
|
|
5
|
-
const appRouterWebhook = (options) => {
|
|
6
|
-
const { testing, extraHeaders, secret, onSuccess, onTimeout, onError } = options;
|
|
7
|
-
return async function (req) {
|
|
8
|
-
let headers = extraHeaders || {};
|
|
9
|
-
if (testing) {
|
|
10
|
-
const testingheaders = {
|
|
11
|
-
'Access-Control-Allow-Origin': 'https://www.remotion.dev',
|
|
12
|
-
'Access-Control-Allow-Headers': 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, X-Remotion-Status, X-Remotion-Signature, X-Remotion-Mode',
|
|
13
|
-
'Access-Control-Allow-Methods': 'OPTIONS,POST',
|
|
14
|
-
};
|
|
15
|
-
headers = { ...headers, ...testingheaders };
|
|
16
|
-
}
|
|
17
|
-
if (req.method === 'OPTIONS') {
|
|
18
|
-
// do we have any use of the OPTIONS method other than the tester on webhooks page ? if so we can add a condition here to only return this if testing mode enabled
|
|
19
|
-
return new Response(null, {
|
|
20
|
-
headers,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
// Parse the body properly
|
|
24
|
-
const body = await req.json();
|
|
25
|
-
(0, validate_webhook_signature_1.validateWebhookSignature)({
|
|
26
|
-
secret,
|
|
27
|
-
body,
|
|
28
|
-
signatureHeader: req.headers.get('X-Remotion-Signature'),
|
|
29
|
-
});
|
|
30
|
-
const payload = body;
|
|
31
|
-
if (payload.type === 'success' && onSuccess) {
|
|
32
|
-
onSuccess(payload);
|
|
33
|
-
}
|
|
34
|
-
else if (payload.type === 'timeout' && onTimeout) {
|
|
35
|
-
onTimeout(payload);
|
|
36
|
-
}
|
|
37
|
-
else if (payload.type === 'error' && onError) {
|
|
38
|
-
onError(payload);
|
|
39
|
-
}
|
|
40
|
-
return new Response(JSON.stringify({ success: true }), { headers });
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.appRouterWebhook = appRouterWebhook;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bucketExistsInRegionImplementation = void 0;
|
|
4
|
-
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
|
-
const get_s3_client_1 = require("../shared/get-s3-client");
|
|
6
|
-
const bucketExistsInRegionImplementation = async ({ bucketName, region, expectedBucketOwner, forcePathStyle }) => {
|
|
7
|
-
var _a;
|
|
8
|
-
try {
|
|
9
|
-
const bucket = await (0, get_s3_client_1.getS3Client)({
|
|
10
|
-
region,
|
|
11
|
-
customCredentials: null,
|
|
12
|
-
forcePathStyle,
|
|
13
|
-
}).send(new client_s3_1.GetBucketLocationCommand({
|
|
14
|
-
Bucket: bucketName,
|
|
15
|
-
ExpectedBucketOwner: expectedBucketOwner !== null && expectedBucketOwner !== void 0 ? expectedBucketOwner : undefined,
|
|
16
|
-
}));
|
|
17
|
-
return ((_a = bucket.LocationConstraint) !== null && _a !== void 0 ? _a : 'us-east-1') === region;
|
|
18
|
-
}
|
|
19
|
-
catch (err) {
|
|
20
|
-
if (err.Code === 'NoSuchBucket') {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
throw err;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.bucketExistsInRegionImplementation = bucketExistsInRegionImplementation;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CloudProvider, ProviderSpecifics } from '@remotion/serverless';
|
|
2
|
-
export declare const cleanItems: <Provider extends CloudProvider>({ bucket, onAfterItemDeleted, onBeforeItemDeleted, region, list, providerSpecifics, forcePathStyle, }: {
|
|
3
|
-
bucket: string;
|
|
4
|
-
region: Provider["region"];
|
|
5
|
-
list: string[];
|
|
6
|
-
onBeforeItemDeleted: (data: {
|
|
7
|
-
bucketName: string;
|
|
8
|
-
itemName: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
onAfterItemDeleted: (data: {
|
|
11
|
-
bucketName: string;
|
|
12
|
-
itemName: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
providerSpecifics: ProviderSpecifics<Provider>;
|
|
15
|
-
forcePathStyle: boolean;
|
|
16
|
-
}) => Promise<void[]>;
|
package/dist/api/clean-items.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cleanItems = void 0;
|
|
4
|
-
const p_limit_1 = require("../shared/p-limit");
|
|
5
|
-
const limit = (0, p_limit_1.pLimit)(10);
|
|
6
|
-
const cleanItems = ({ bucket, onAfterItemDeleted, onBeforeItemDeleted, region, list, providerSpecifics, forcePathStyle, }) => {
|
|
7
|
-
return Promise.all(list.map((object) => limit(async () => {
|
|
8
|
-
onBeforeItemDeleted({
|
|
9
|
-
bucketName: bucket,
|
|
10
|
-
itemName: object,
|
|
11
|
-
});
|
|
12
|
-
await providerSpecifics.deleteFile({
|
|
13
|
-
bucketName: bucket,
|
|
14
|
-
key: object,
|
|
15
|
-
region,
|
|
16
|
-
customCredentials: null,
|
|
17
|
-
forcePathStyle,
|
|
18
|
-
});
|
|
19
|
-
onAfterItemDeleted({
|
|
20
|
-
bucketName: bucket,
|
|
21
|
-
itemName: object,
|
|
22
|
-
});
|
|
23
|
-
})));
|
|
24
|
-
};
|
|
25
|
-
exports.cleanItems = cleanItems;
|