@remotion/lambda 4.0.423 → 4.0.424

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/api/create-function.d.ts +4 -2
  2. package/dist/api/delete-site.d.ts +1 -1
  3. package/dist/api/deploy-function.d.ts +3 -3
  4. package/dist/api/deploy-site.d.ts +4 -71
  5. package/dist/api/deploy-site.js +13 -12
  6. package/dist/api/get-function-info.js +2 -1
  7. package/dist/api/get-or-create-bucket.d.ts +1 -1
  8. package/dist/api/get-regions.d.ts +1 -2
  9. package/dist/api/iam-validation/simulate-rule.d.ts +4 -2
  10. package/dist/api/upload-dir.d.ts +4 -2
  11. package/dist/cli/commands/compositions/index.d.ts +1 -2
  12. package/dist/cli/commands/functions/deploy.d.ts +1 -2
  13. package/dist/cli/commands/functions/index.d.ts +1 -2
  14. package/dist/cli/commands/functions/ls.d.ts +1 -2
  15. package/dist/cli/commands/functions/rm.d.ts +1 -2
  16. package/dist/cli/commands/functions/rmall.d.ts +1 -2
  17. package/dist/cli/commands/policies/policies.d.ts +1 -2
  18. package/dist/cli/commands/policies/role.d.ts +1 -2
  19. package/dist/cli/commands/policies/user.d.ts +1 -2
  20. package/dist/cli/commands/policies/validate.d.ts +1 -2
  21. package/dist/cli/commands/quotas/increase.d.ts +1 -1
  22. package/dist/cli/commands/quotas/increase.js +4 -4
  23. package/dist/cli/commands/quotas/index.d.ts +1 -2
  24. package/dist/cli/commands/quotas/list.d.ts +1 -2
  25. package/dist/cli/commands/regions.d.ts +1 -2
  26. package/dist/cli/commands/render/progress.d.ts +1 -1
  27. package/dist/cli/commands/render/progress.js +6 -3
  28. package/dist/cli/commands/render/render.d.ts +1 -2
  29. package/dist/cli/commands/sites/create.d.ts +1 -2
  30. package/dist/cli/commands/sites/index.d.ts +1 -2
  31. package/dist/cli/commands/sites/ls.d.ts +1 -2
  32. package/dist/cli/commands/sites/rm.d.ts +1 -2
  33. package/dist/cli/commands/sites/rmall.d.ts +1 -2
  34. package/dist/cli/commands/still.d.ts +1 -2
  35. package/dist/cli/commands/still.js +10 -8
  36. package/dist/cli/get-aws-region.d.ts +1 -2
  37. package/dist/cli/help.d.ts +1 -2
  38. package/dist/cli/helpers/find-function-name.d.ts +1 -2
  39. package/dist/cli/helpers/get-webhook-custom-data.d.ts +1 -2
  40. package/dist/cli/index.d.ts +2 -3
  41. package/dist/cli/index.js +2 -1
  42. package/dist/cli/log.js +1 -1
  43. package/dist/esm/index.mjs +11 -8
  44. package/dist/functions/helpers/get-current-region.d.ts +1 -2
  45. package/dist/functions/helpers/read-with-progress.d.ts +4 -2
  46. package/dist/index.d.ts +2 -6
  47. package/dist/internals.d.ts +11 -73
  48. package/dist/shared/get-layers.d.ts +2 -3
  49. package/package.json +15 -14
  50. package/remotionlambda-arm64.zip +0 -0
@@ -1,7 +1,7 @@
1
1
  import type { RequestHandler } from '@remotion/lambda-client';
2
2
  import { type AwsRegion, type RuntimePreference } from '@remotion/lambda-client';
3
3
  import type { LogLevel } from '@remotion/renderer';
4
- export declare const createFunction: ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, alreadyCreated, retentionInDays, ephemerealStorageInMb, customRoleArn, enableLambdaInsights, logLevel, vpcSubnetIds, vpcSecurityGroupIds, runtimePreference, requestHandler, }: {
4
+ type CreateFunctionInput = {
5
5
  createCloudWatchLogGroup: boolean;
6
6
  region: AwsRegion;
7
7
  zipFile: string;
@@ -19,6 +19,8 @@ export declare const createFunction: ({ createCloudWatchLogGroup, region, zipFil
19
19
  vpcSecurityGroupIds: string;
20
20
  runtimePreference: RuntimePreference;
21
21
  requestHandler: RequestHandler | null;
22
- }) => Promise<{
22
+ };
23
+ export declare const createFunction: ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, alreadyCreated, retentionInDays, ephemerealStorageInMb, customRoleArn, enableLambdaInsights, logLevel, vpcSubnetIds, vpcSecurityGroupIds, runtimePreference, requestHandler, }: CreateFunctionInput) => Promise<{
23
24
  FunctionName: string;
24
25
  }>;
26
+ export {};
@@ -19,7 +19,7 @@ export type DeleteSiteOptionalInput = MandatoryParameters & Partial<OptionalPara
19
19
  export type DeleteSiteOutput = {
20
20
  totalSizeInBytes: number;
21
21
  };
22
- export declare const internalDeleteSite: ({ bucketName, siteName, region, onAfterItemDeleted, providerSpecifics, forcePathStyle, requestHandler, }: DeleteSiteInput & {
22
+ export declare const internalDeleteSite: ({ bucketName, siteName, region, onAfterItemDeleted, providerSpecifics, forcePathStyle, requestHandler, }: MandatoryParameters & OptionalParameters & {
23
23
  providerSpecifics: ProviderSpecifics<AwsProvider>;
24
24
  }) => Promise<DeleteSiteOutput>;
25
25
  export declare const deleteSite: (props: DeleteSiteOptionalInput) => Promise<DeleteSiteOutput>;
@@ -25,11 +25,11 @@ export type DeployFunctionOutput = {
25
25
  functionName: string;
26
26
  alreadyExisted: boolean;
27
27
  };
28
- export declare const internalDeployFunction: <Provider extends CloudProvider>(params: MandatoryParameters & OptionalParameters & {
28
+ export declare const internalDeployFunction: <Provider extends CloudProvider<string, Record<string, unknown>, Record<string, unknown>, string, object>>(params: MandatoryParameters & OptionalParameters & {
29
29
  providerSpecifics: ProviderSpecifics<Provider>;
30
30
  fullClientSpecifics: FullClientSpecifics<Provider>;
31
31
  }) => Promise<DeployFunctionOutput>;
32
- export declare const deployFunction: ({ createCloudWatchLogGroup, memorySizeInMb, region, timeoutInSeconds, cloudWatchLogRetentionPeriodInDays, customRoleArn, enableLambdaInsights, indent, logLevel, enableV5Runtime, vpcSubnetIds, vpcSecurityGroupIds, runtimePreference, diskSizeInMb, requestHandler, }: DeployFunctionInput & {
33
- enableV5Runtime?: boolean;
32
+ export declare const deployFunction: ({ createCloudWatchLogGroup, memorySizeInMb, region, timeoutInSeconds, cloudWatchLogRetentionPeriodInDays, customRoleArn, enableLambdaInsights, indent, logLevel, enableV5Runtime, vpcSubnetIds, vpcSecurityGroupIds, runtimePreference, diskSizeInMb, requestHandler, }: MandatoryParameters & Partial<OptionalParameters> & {
33
+ enableV5Runtime?: boolean | undefined;
34
34
  }) => Promise<DeployFunctionOutput>;
35
35
  export {};
@@ -41,77 +41,10 @@ export type DeploySiteOutput = Promise<{
41
41
  untouchedFiles: number;
42
42
  };
43
43
  }>;
44
- export declare const internalDeploySite: (args_0: MandatoryParameters & {
45
- siteName: string;
46
- options: {
47
- onBundleProgress?: (progress: number) => void;
48
- onUploadProgress?: (upload: UploadDirProgress) => void;
49
- onDiffingProgress?: (bytes: number, done: boolean) => void;
50
- webpackOverride?: WebpackOverrideFn;
51
- ignoreRegisterRootWarning?: boolean;
52
- enableCaching?: boolean;
53
- publicDir?: string | null;
54
- rootDir?: string;
55
- bypassBucketNameValidation?: boolean;
56
- keyboardShortcutsEnabled?: boolean;
57
- askAIEnabled?: boolean;
58
- experimentalClientSideRenderingEnabled?: boolean;
59
- };
60
- privacy: "public" | "no-acl";
61
- gitSource: GitSource | null;
62
- indent: boolean;
63
- forcePathStyle: boolean;
64
- requestHandler: RequestHandler | null;
65
- } & ToOptions<{
66
- readonly logLevel: {
67
- cliFlag: "log";
68
- name: string;
69
- ssrName: string;
70
- description: () => import("react/jsx-runtime").JSX.Element;
71
- docLink: string;
72
- getValue: ({ commandLine }: {
73
- commandLine: Record<string, unknown>;
74
- }) => {
75
- value: "error" | "info" | "trace" | "verbose" | "warn";
76
- source: string;
77
- };
78
- setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
79
- type: "error" | "info" | "trace" | "verbose" | "warn";
80
- };
81
- readonly throwIfSiteExists: {
82
- cliFlag: string;
83
- description: () => string;
84
- docLink: string;
85
- getValue: ({ commandLine }: {
86
- commandLine: Record<string, unknown>;
87
- }) => {
88
- source: string;
89
- value: boolean;
90
- };
91
- name: string;
92
- setConfig: () => never;
93
- ssrName: string;
94
- type: boolean;
95
- };
96
- }> & {
44
+ export type InternalDeploySiteInput = MandatoryParameters & OptionalParameters & {
97
45
  providerSpecifics: ProviderSpecifics<AwsProvider>;
98
46
  fullClientSpecifics: FullClientSpecifics<AwsProvider>;
99
- }) => Promise<{
100
- serveUrl: string;
101
- siteName: string;
102
- stats: {
103
- uploadedFiles: number;
104
- deletedFiles: number;
105
- untouchedFiles: number;
106
- };
107
- }>;
108
- export declare const deploySite: (args: DeploySiteInput) => Promise<{
109
- serveUrl: string;
110
- siteName: string;
111
- stats: {
112
- uploadedFiles: number;
113
- deletedFiles: number;
114
- untouchedFiles: number;
115
- };
116
- }>;
47
+ };
48
+ export declare const internalDeploySite: (input: InternalDeploySiteInput) => DeploySiteOutput;
49
+ export declare const deploySite: (args: DeploySiteInput) => DeploySiteOutput;
117
50
  export {};
@@ -13,7 +13,8 @@ const full_client_implementation_1 = require("../functions/full-client-implement
13
13
  const get_s3_operations_1 = require("../shared/get-s3-operations");
14
14
  const validate_site_name_1 = require("../shared/validate-site-name");
15
15
  const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options, region, privacy, gitSource, throwIfSiteExists, providerSpecifics, forcePathStyle, fullClientSpecifics, requestHandler, }) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
16
+ var _a, _b;
17
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
17
18
  lambda_client_1.LambdaClientInternals.validateAwsRegion(region);
18
19
  (0, serverless_1.validateBucketName)({
19
20
  bucketName,
@@ -48,12 +49,12 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
48
49
  }),
49
50
  fullClientSpecifics.bundleSite({
50
51
  publicPath: `/${subFolder}/`,
51
- webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
52
- enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
53
- publicDir: (_c = options === null || options === void 0 ? void 0 : options.publicDir) !== null && _c !== void 0 ? _c : null,
54
- rootDir: (_d = options === null || options === void 0 ? void 0 : options.rootDir) !== null && _d !== void 0 ? _d : null,
55
- ignoreRegisterRootWarning: (_e = options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning) !== null && _e !== void 0 ? _e : false,
56
- onProgress: (_f = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _f !== void 0 ? _f : (() => undefined),
52
+ webpackOverride: (_c = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _c !== void 0 ? _c : ((f) => f),
53
+ enableCaching: (_d = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _d !== void 0 ? _d : true,
54
+ publicDir: (_e = options === null || options === void 0 ? void 0 : options.publicDir) !== null && _e !== void 0 ? _e : null,
55
+ rootDir: (_f = options === null || options === void 0 ? void 0 : options.rootDir) !== null && _f !== void 0 ? _f : null,
56
+ ignoreRegisterRootWarning: (_g = options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning) !== null && _g !== void 0 ? _g : false,
57
+ onProgress: (_h = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _h !== void 0 ? _h : (() => undefined),
57
58
  entryPoint,
58
59
  gitSource,
59
60
  bufferStateDelayInMilliseconds: null,
@@ -62,10 +63,10 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
62
63
  onPublicDirCopyProgress: () => undefined,
63
64
  onSymlinkDetected: () => undefined,
64
65
  outDir: null,
65
- askAIEnabled: (_g = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _g !== void 0 ? _g : true,
66
+ askAIEnabled: (_j = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _j !== void 0 ? _j : true,
66
67
  audioLatencyHint: null,
67
- experimentalClientSideRenderingEnabled: (_h = options === null || options === void 0 ? void 0 : options.experimentalClientSideRenderingEnabled) !== null && _h !== void 0 ? _h : false,
68
- keyboardShortcutsEnabled: (_j = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _j !== void 0 ? _j : true,
68
+ experimentalClientSideRenderingEnabled: (_k = options === null || options === void 0 ? void 0 : options.experimentalClientSideRenderingEnabled) !== null && _k !== void 0 ? _k : false,
69
+ keyboardShortcutsEnabled: (_l = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _l !== void 0 ? _l : true,
69
70
  renderDefaults: null,
70
71
  }),
71
72
  ]);
@@ -76,7 +77,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
76
77
  .map((f) => f.Key)
77
78
  .join(', '));
78
79
  }
79
- (_k = options.onDiffingProgress) === null || _k === void 0 ? void 0 : _k.call(options, 0, false);
80
+ (_a = options.onDiffingProgress) === null || _a === void 0 ? void 0 : _a.call(options, 0, false);
80
81
  let totalBytes = 0;
81
82
  const { toDelete, toUpload, existingCount } = await (0, get_s3_operations_1.getS3DiffOperations)({
82
83
  objects: files,
@@ -89,7 +90,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
89
90
  },
90
91
  fullClientSpecifics,
91
92
  });
92
- (_l = options.onDiffingProgress) === null || _l === void 0 ? void 0 : _l.call(options, totalBytes, true);
93
+ (_b = options.onDiffingProgress) === null || _b === void 0 ? void 0 : _b.call(options, totalBytes, true);
93
94
  await Promise.all([
94
95
  fullClientSpecifics.uploadDir({
95
96
  bucket: bucketName,
@@ -9,7 +9,8 @@ const constants_1 = require("@remotion/lambda-client/constants");
9
9
  * @see [Documentation](https://remotion.dev/docs/lambda/getfunctioninfo)
10
10
  */
11
11
  const getFunctionInfo = async ({ region, functionName, logLevel, requestHandler, }) => {
12
- var _a, _b, _c, _d, _e;
12
+ var _a, _b, _c, _d;
13
+ var _e;
13
14
  lambda_client_1.LambdaClientInternals.validateAwsRegion(region);
14
15
  const [functionInfo, version] = await Promise.all([
15
16
  lambda_client_1.LambdaClientInternals.getLambdaClient(region, undefined, requestHandler).send(new client_lambda_1.GetFunctionCommand({
@@ -1,3 +1,3 @@
1
1
  import type { AwsProvider } from '@remotion/lambda-client';
2
2
  import type { GetOrCreateBucketInput } from '@remotion/serverless';
3
- export declare const getOrCreateBucket: (options: GetOrCreateBucketInput<AwsProvider>) => Promise<import("@remotion/lambda-client").GetOrCreateBucketOutput>;
3
+ export declare const getOrCreateBucket: (options: GetOrCreateBucketInput<AwsProvider>) => Promise<import("@remotion/serverless-client").GetOrCreateBucketOutput>;
@@ -1,6 +1,5 @@
1
- import type { AwsRegion } from '@remotion/lambda-client';
2
1
  type Options = {
3
2
  enabledByDefaultOnly?: boolean;
4
3
  };
5
- export declare const getRegions: (options?: Options) => readonly AwsRegion[];
4
+ export declare const getRegions: (options?: Options | undefined) => readonly ("af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2")[];
6
5
  export {};
@@ -4,11 +4,13 @@ export type SimulationResult = {
4
4
  decision: EvalDecision;
5
5
  name: string;
6
6
  };
7
- export declare const simulateRule: (options: {
7
+ type SimulateRuleOptions = {
8
8
  region: AwsRegion;
9
9
  actionNames: string[];
10
10
  arn: string;
11
11
  resource: string[];
12
12
  retries: number;
13
13
  requestHandler: RequestHandler | null;
14
- }) => Promise<SimulationResult[]>;
14
+ };
15
+ export declare const simulateRule: (options: SimulateRuleOptions) => Promise<SimulationResult[]>;
16
+ export {};
@@ -4,7 +4,7 @@ export type MockFile = {
4
4
  name: string;
5
5
  content: string;
6
6
  };
7
- export declare const uploadDir: ({ bucket, region, localDir, onProgress, keyPrefix, privacy, toUpload, forcePathStyle, requestHandler, }: {
7
+ type UploadDirInput = {
8
8
  bucket: string;
9
9
  region: AwsRegion;
10
10
  localDir: string;
@@ -14,4 +14,6 @@ export declare const uploadDir: ({ bucket, region, localDir, onProgress, keyPref
14
14
  toUpload: string[];
15
15
  forcePathStyle: boolean;
16
16
  requestHandler: RequestHandler | null;
17
- }) => Promise<void>;
17
+ };
18
+ export declare const uploadDir: ({ bucket, region, localDir, onProgress, keyPrefix, privacy, toUpload, forcePathStyle, requestHandler, }: UploadDirInput) => Promise<void>;
19
+ export {};
@@ -1,9 +1,8 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const COMPOSITIONS_COMMAND = "compositions";
5
4
  export declare const compositionsCommand: ({ args, logLevel, providerSpecifics, }: {
6
5
  args: string[];
7
- logLevel: LogLevel;
6
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
8
7
  providerSpecifics: ProviderSpecifics<AwsProvider>;
9
8
  }) => Promise<void>;
@@ -1,9 +1,8 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import { FullClientSpecifics, ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const FUNCTIONS_DEPLOY_SUBCOMMAND = "deploy";
5
4
  export declare const functionsDeploySubcommand: ({ logLevel, providerSpecifics, fullClientSpecifics, }: {
6
- logLevel: LogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
7
6
  providerSpecifics: ProviderSpecifics<AwsProvider>;
8
7
  fullClientSpecifics: FullClientSpecifics<AwsProvider>;
9
8
  }) => Promise<void>;
@@ -1,10 +1,9 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  import { FullClientSpecifics, ProviderSpecifics } from '@remotion/serverless';
3
2
  import { AwsProvider } from '../../../client';
4
3
  export declare const FUNCTIONS_COMMAND = "functions";
5
4
  export declare const functionsCommand: ({ args, logLevel, fullClientSpecifics, providerSpecifics, }: {
6
5
  args: string[];
7
- logLevel: LogLevel;
6
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
8
7
  providerSpecifics: ProviderSpecifics<AwsProvider>;
9
8
  fullClientSpecifics: FullClientSpecifics<AwsProvider>;
10
9
  }) => Promise<void> | undefined;
@@ -1,8 +1,7 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const FUNCTIONS_LS_SUBCOMMAND = "ls";
5
4
  export declare const functionsLsCommand: ({ logLevel, providerSpecifics, }: {
6
- logLevel: LogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
7
6
  providerSpecifics: ProviderSpecifics<AwsProvider>;
8
7
  }) => Promise<void>;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const FUNCTIONS_RM_SUBCOMMAND = "rm";
3
- export declare const functionsRmCommand: (args: string[], logLevel: LogLevel) => Promise<void>;
2
+ export declare const functionsRmCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,8 +1,7 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const FUNCTIONS_RMALL_SUBCOMMAND = "rmall";
5
4
  export declare const functionsRmallCommand: ({ logLevel, providerSpecifics, }: {
6
- logLevel: LogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
7
6
  providerSpecifics: ProviderSpecifics<AwsProvider>;
8
7
  }) => Promise<void>;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const POLICIES_COMMAND = "policies";
3
- export declare const policiesCommand: (args: string[], logLevel: LogLevel) => void | Promise<void>;
2
+ export declare const policiesCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void | Promise<void>;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const ROLE_SUBCOMMAND = "role";
3
- export declare const roleSubcommand: (logLevel: LogLevel) => void;
2
+ export declare const roleSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const USER_SUBCOMMAND = "user";
3
- export declare const userSubcommand: (logLevel: LogLevel) => void;
2
+ export declare const userSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const VALIDATE_SUBCOMMAND = "validate";
3
- export declare const validateSubcommand: (logLevel: LogLevel) => Promise<void>;
2
+ export declare const validateSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import { RequestHandler } from '@remotion/lambda-client';
2
2
  import type { LogLevel } from '@remotion/renderer';
3
3
  export declare const INCREASE_SUBCOMMAND = "increase";
4
- export declare const quotasIncreaseCommand: (logLevel: LogLevel, requestHandler: RequestHandler | null) => Promise<void>;
4
+ export declare function quotasIncreaseCommand(logLevel: LogLevel, requestHandler: RequestHandler | null): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.quotasIncreaseCommand = exports.INCREASE_SUBCOMMAND = void 0;
3
+ exports.INCREASE_SUBCOMMAND = void 0;
4
+ exports.quotasIncreaseCommand = quotasIncreaseCommand;
4
5
  const client_service_quotas_1 = require("@aws-sdk/client-service-quotas");
5
6
  const lambda_client_1 = require("@remotion/lambda-client");
6
7
  const constants_1 = require("@remotion/lambda-client/constants");
@@ -15,7 +16,7 @@ exports.INCREASE_SUBCOMMAND = 'increase';
15
16
  const makeQuotaUrl = ({ region, quotaId, }) => {
16
17
  return `https://${region}.console.aws.amazon.com/servicequotas/home/services/lambda/quotas/${quotaId}`;
17
18
  };
18
- const quotasIncreaseCommand = async (logLevel, requestHandler) => {
19
+ async function quotasIncreaseCommand(logLevel, requestHandler) {
19
20
  var _a, _b, _c;
20
21
  const region = (0, get_aws_region_1.getAwsRegion)();
21
22
  const [concurrencyLimit, defaultConcurrencyLimit, changes] = await Promise.all([
@@ -79,5 +80,4 @@ const quotasIncreaseCommand = async (logLevel, requestHandler) => {
79
80
  throw err;
80
81
  }
81
82
  log_1.Log.info({ indent: false, logLevel }, `Requested increase successfully. Run "${constants_1.BINARY_NAME} ${_1.QUOTAS_COMMAND}" to check whether your request was approved.`);
82
- };
83
- exports.quotasIncreaseCommand = quotasIncreaseCommand;
83
+ }
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const QUOTAS_COMMAND = "quotas";
3
- export declare const quotasCommand: (args: string[], logLevel: LogLevel) => Promise<void> | undefined;
2
+ export declare const quotasCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void> | undefined;
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const quotasListCommand: (logLevel: LogLevel) => Promise<void>;
1
+ export declare const quotasListCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const REGIONS_COMMAND = "regions";
3
- export declare const regionsCommand: (logLevel: LogLevel) => void;
2
+ export declare const regionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
@@ -5,7 +5,7 @@ type DownloadedInfo = {
5
5
  downloaded: number;
6
6
  doneIn: number | null;
7
7
  };
8
- export declare const makeArtifactProgress: <Provider extends CloudProvider>(artifactProgress: ReceivedArtifact<Provider>[]) => string | null;
8
+ export declare const makeArtifactProgress: <Provider extends CloudProvider<string, Record<string, unknown>, Record<string, unknown>, string, object>>(artifactProgress: ReceivedArtifact<Provider>[]) => string | null;
9
9
  export declare const makeProgressString: ({ downloadInfo, overall, }: {
10
10
  overall: RenderProgress;
11
11
  downloadInfo: DownloadedInfo | null;
@@ -30,7 +30,8 @@ const makeEvaluationProgress = (overall) => {
30
30
  ].join(' ');
31
31
  };
32
32
  const makeInvokeProgress = (overall) => {
33
- var _a, _b;
33
+ var _a;
34
+ var _b;
34
35
  const invokeProgress = {
35
36
  lambdasInvoked: overall.lambdasInvoked,
36
37
  totalLambdas: (_b = (_a = overall.renderMetadata) === null || _a === void 0 ? void 0 : _a.estimatedRenderLambdaInvokations) !== null && _b !== void 0 ? _b : null,
@@ -54,7 +55,8 @@ const makeInvokeProgress = (overall) => {
54
55
  ].filter(no_react_1.NoReactInternals.truthy);
55
56
  };
56
57
  const makeRenderProgress = (progress) => {
57
- var _a, _b;
58
+ var _a;
59
+ var _b;
58
60
  const framesEncoded = (_b = (_a = progress.encodingStatus) === null || _a === void 0 ? void 0 : _a.framesEncoded) !== null && _b !== void 0 ? _b : 0;
59
61
  const totalFrames = progress.renderMetadata && progress.renderMetadata.type === 'video'
60
62
  ? renderer_1.RenderInternals.getFramesToRender(progress.renderMetadata.frameRange, progress.renderMetadata.everyNthFrame).length
@@ -92,7 +94,8 @@ function getTotalFrames(status) {
92
94
  : null;
93
95
  }
94
96
  const makeCombinationProgress = (prog) => {
95
- var _a, _b;
97
+ var _a;
98
+ var _b;
96
99
  const encodingProgress = {
97
100
  framesEncoded: (_b = (_a = prog.encodingStatus) === null || _a === void 0 ? void 0 : _a.framesEncoded) !== null && _b !== void 0 ? _b : 0,
98
101
  combinedFrames: prog.combinedFrames,
@@ -1,10 +1,9 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  import { AwsProvider } from '@remotion/lambda-client';
3
2
  import type { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const RENDER_COMMAND = "render";
5
4
  export declare const renderCommand: ({ args, remotionRoot, logLevel, providerSpecifics, }: {
6
5
  args: string[];
7
6
  remotionRoot: string;
8
- logLevel: LogLevel;
7
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
9
8
  providerSpecifics: ProviderSpecifics<AwsProvider>;
10
9
  }) => Promise<never>;
@@ -1,5 +1,4 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  import { AwsProvider } from '@remotion/lambda-client';
3
2
  import type { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const SITES_CREATE_SUBCOMMAND = "create";
5
- export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: LogLevel, implementation: ProviderSpecifics<AwsProvider>) => Promise<void>;
4
+ export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn", implementation: ProviderSpecifics<AwsProvider>) => Promise<void>;
@@ -1,5 +1,4 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import type { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const SITES_COMMAND = "sites";
5
- export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: LogLevel, providerSpecifics: ProviderSpecifics<AwsProvider>) => Promise<boolean | void> | undefined;
4
+ export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn", providerSpecifics: ProviderSpecifics<AwsProvider>) => Promise<void | boolean> | undefined;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const SITES_LS_SUBCOMMAND = "ls";
3
- export declare const sitesLsSubcommand: (logLevel: LogLevel) => Promise<boolean | void>;
2
+ export declare const sitesLsSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean>;
@@ -1,5 +1,4 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import type { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const SITES_RM_COMMAND = "rm";
5
- export declare const sitesRmSubcommand: (args: string[], logLevel: LogLevel, implementation: ProviderSpecifics<AwsProvider>) => Promise<undefined>;
4
+ export declare const sitesRmSubcommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn", implementation: ProviderSpecifics<AwsProvider>) => Promise<undefined>;
@@ -1,5 +1,4 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import type { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const SITES_RMALL_COMMAND = "rmall";
5
- export declare const sitesRmallSubcommand: (logLevel: LogLevel, implementation: ProviderSpecifics<AwsProvider>) => Promise<void>;
4
+ export declare const sitesRmallSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn", implementation: ProviderSpecifics<AwsProvider>) => Promise<void>;
@@ -1,10 +1,9 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import type { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const STILL_COMMAND = "still";
5
4
  export declare const stillCommand: ({ args, remotionRoot, logLevel, providerSpecifics, }: {
6
5
  args: string[];
7
6
  remotionRoot: string;
8
- logLevel: LogLevel;
7
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
9
8
  providerSpecifics: ProviderSpecifics<AwsProvider>;
10
9
  }) => Promise<void>;
@@ -25,7 +25,7 @@ const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scale
25
25
  const { parsedCli, determineFinalStillImageFormat, chalk, getCliOptions, formatBytes, getCompositionWithDimensionOverride, } = cli_1.CliInternals;
26
26
  exports.STILL_COMMAND = 'still';
27
27
  const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
28
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
28
+ var _a, _b, _c, _d, _e, _f, _g, _h;
29
29
  const serveUrl = args[0];
30
30
  if (!serveUrl) {
31
31
  log_1.Log.error({ indent: false, logLevel }, 'No serve URL passed.');
@@ -132,13 +132,15 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
132
132
  (0, validate_retries_1.validateMaxRetries)(maxRetries);
133
133
  const privacy = (_c = args_1.parsedLambdaCli.privacy) !== null && _c !== void 0 ? _c : constants_1.DEFAULT_OUTPUT_PRIVACY;
134
134
  (0, serverless_1.validatePrivacy)(privacy, true);
135
+ const { stillImageFormatOption } = client_1.BrowserSafeApis.options;
135
136
  const { format: imageFormat, source: imageFormatReason } = determineFinalStillImageFormat({
136
137
  downloadName,
137
138
  outName: outName !== null && outName !== void 0 ? outName : null,
138
- cliFlag: (_d = parsedCli['image-format']) !== null && _d !== void 0 ? _d : null,
139
+ configuredImageFormat: stillImageFormatOption.getValue({
140
+ commandLine: parsedCli,
141
+ }).value,
139
142
  isLambda: true,
140
143
  fromUi: null,
141
- configImageFormat: (_e = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _e !== void 0 ? _e : null,
142
144
  });
143
145
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Function: ${cli_1.CliInternals.makeHyperlink({ text: functionName, fallback: functionName, url: `https://${(0, get_aws_region_1.getAwsRegion)()}.console.aws.amazon.com/lambda/home#/functions/${functionName}?tab=code` })}`));
144
146
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Image Format = ${imageFormat} (${imageFormatReason})`));
@@ -181,17 +183,17 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
181
183
  })} (if enabled)`);
182
184
  },
183
185
  deleteAfter: deleteAfter !== null && deleteAfter !== void 0 ? deleteAfter : null,
184
- storageClass: (_f = args_1.parsedLambdaCli['storage-class']) !== null && _f !== void 0 ? _f : null,
185
- licenseKey: (_g = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.licenseKeyOption.cliFlag]) !== null && _g !== void 0 ? _g : null,
186
+ storageClass: (_d = args_1.parsedLambdaCli['storage-class']) !== null && _d !== void 0 ? _d : null,
187
+ licenseKey: (_e = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.licenseKeyOption.cliFlag]) !== null && _e !== void 0 ? _e : null,
186
188
  downloadBehavior: { type: 'play-in-browser' },
187
- forceBucketName: (_h = args_1.parsedLambdaCli['force-bucket-name']) !== null && _h !== void 0 ? _h : null,
188
- forcePathStyle: (_j = args_1.parsedLambdaCli['force-path-style']) !== null && _j !== void 0 ? _j : false,
189
+ forceBucketName: (_f = args_1.parsedLambdaCli['force-bucket-name']) !== null && _f !== void 0 ? _f : null,
190
+ forcePathStyle: (_g = args_1.parsedLambdaCli['force-path-style']) !== null && _g !== void 0 ? _g : false,
189
191
  indent: false,
190
192
  offthreadVideoCacheSizeInBytes,
191
193
  offthreadVideoThreads: null,
192
194
  requestHandler: null,
193
195
  mediaCacheSizeInBytes,
194
- isProduction: (_k = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.isProductionOption.cliFlag]) !== null && _k !== void 0 ? _k : true,
196
+ isProduction: (_h = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.isProductionOption.cliFlag]) !== null && _h !== void 0 ? _h : true,
195
197
  });
196
198
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Render ID: ${cli_1.CliInternals.makeHyperlink({ text: res.renderId, fallback: res.renderId, url: lambda_client_1.LambdaClientInternals.getS3RenderUrl({ bucketName: res.bucketName, renderId: res.renderId, region: (0, get_aws_region_1.getAwsRegion)() }) })}`));
197
199
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Bucket: ${cli_1.CliInternals.makeHyperlink({ text: res.bucketName, fallback: res.bucketName, url: `https://${(0, get_aws_region_1.getAwsRegion)()}.console.aws.amazon.com/s3/buckets/${res.bucketName}/?region=${(0, get_aws_region_1.getAwsRegion)()}` })}`));
@@ -1,2 +1 @@
1
- import { AwsRegion } from '@remotion/lambda-client';
2
- export declare const getAwsRegion: () => AwsRegion;
1
+ export declare const getAwsRegion: () => "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const printHelp: (logLevel: LogLevel) => void;
1
+ export declare const printHelp: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
@@ -1,7 +1,6 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import { ProviderSpecifics } from '@remotion/serverless';
4
3
  export declare const findFunctionName: ({ logLevel, providerSpecifics, }: {
5
- logLevel: LogLevel;
4
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
6
5
  providerSpecifics: ProviderSpecifics<AwsProvider>;
7
6
  }) => Promise<string>;
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const getWebhookCustomData: (logLevel: LogLevel) => Record<string, unknown> | null;
1
+ export declare const getWebhookCustomData: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Record<string, unknown> | null;
@@ -1,5 +1,4 @@
1
1
  import { AwsProvider } from '@remotion/lambda-client';
2
- import type { LogLevel } from '@remotion/renderer';
3
2
  import { FullClientSpecifics, type ProviderSpecifics } from '@remotion/serverless';
4
- export declare const executeCommand: (args: string[], remotionRoot: string, logLevel: LogLevel, _providerSpecifics: ProviderSpecifics<AwsProvider> | null, fullClientSpecifics: FullClientSpecifics<AwsProvider> | null) => Promise<void>;
5
- export declare const cli: (logLevel: LogLevel) => Promise<void>;
3
+ export declare const executeCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn", _providerSpecifics: ProviderSpecifics<AwsProvider> | null, fullClientSpecifics: FullClientSpecifics<AwsProvider> | null) => Promise<void>;
4
+ export declare const cli: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
package/dist/cli/index.js CHANGED
@@ -116,7 +116,8 @@ const matchCommand = ({ args, remotionRoot, logLevel, providerSpecifics, fullCli
116
116
  (0, quit_1.quit)(1);
117
117
  };
118
118
  const executeCommand = async (args, remotionRoot, logLevel, _providerSpecifics, fullClientSpecifics) => {
119
- var _a, _b, _c, _d, _e, _f;
119
+ var _a, _b, _c, _d, _e;
120
+ var _f;
120
121
  try {
121
122
  const providerSpecifics = _providerSpecifics !== null && _providerSpecifics !== void 0 ? _providerSpecifics : lambda_client_1.LambdaClientInternals.awsImplementation;
122
123
  await matchCommand({
package/dist/cli/log.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Log = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
- exports.Log = cli_1.CliInternals.Log;
5
+ ({ Log: exports.Log } = cli_1.CliInternals);
@@ -8604,7 +8604,7 @@ var require_package = __commonJS((exports, module) => {
8604
8604
  url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
8605
8605
  },
8606
8606
  name: "@remotion/lambda",
8607
- version: "4.0.423",
8607
+ version: "4.0.424",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
@@ -8613,7 +8613,7 @@ var require_package = __commonJS((exports, module) => {
8613
8613
  lint: "eslint src",
8614
8614
  testlambda: "exit 0",
8615
8615
  test: "bun test src/test/unit",
8616
- make: "tsc -d && bun --env-file=../.env.bundle bundle.ts",
8616
+ make: "tsgo -d && bun --env-file=../.env.bundle bundle.ts",
8617
8617
  makeruntime: "bun build.ts",
8618
8618
  prepublishOnly: "bun build.ts && bun ensure-version-match.js"
8619
8619
  },
@@ -8652,7 +8652,8 @@ var require_package = __commonJS((exports, module) => {
8652
8652
  eslint: "catalog:",
8653
8653
  next: "catalog:",
8654
8654
  pureimage: "0.4.13",
8655
- "@types/node": "catalog:"
8655
+ "@types/node": "catalog:",
8656
+ "@typescript/native-preview": "catalog:"
8656
8657
  },
8657
8658
  peerDependencies: {
8658
8659
  "@remotion/bundler": "workspace:*"
@@ -11229,7 +11230,7 @@ var makeQuotaUrl = ({
11229
11230
  }) => {
11230
11231
  return `https://${region}.console.aws.amazon.com/servicequotas/home/services/lambda/quotas/${quotaId}`;
11231
11232
  };
11232
- var quotasIncreaseCommand = async (logLevel, requestHandler) => {
11233
+ async function quotasIncreaseCommand(logLevel, requestHandler) {
11233
11234
  const region = getAwsRegion();
11234
11235
  const [concurrencyLimit, defaultConcurrencyLimit, changes] = await Promise.all([
11235
11236
  LambdaClientInternals17.getServiceQuotasClient(region, requestHandler).send(new GetServiceQuotaCommand({
@@ -11291,7 +11292,7 @@ var quotasIncreaseCommand = async (logLevel, requestHandler) => {
11291
11292
  throw err;
11292
11293
  }
11293
11294
  Log.info({ indent: false, logLevel }, `Requested increase successfully. Run "${BINARY_NAME6} ${QUOTAS_COMMAND}" to check whether your request was approved.`);
11294
- };
11295
+ }
11295
11296
 
11296
11297
  // src/cli/commands/quotas/list.ts
11297
11298
  import {
@@ -12650,13 +12651,15 @@ var stillCommand = async ({
12650
12651
  validateMaxRetries(maxRetries);
12651
12652
  const privacy = parsedLambdaCli.privacy ?? DEFAULT_OUTPUT_PRIVACY2;
12652
12653
  validatePrivacy3(privacy, true);
12654
+ const { stillImageFormatOption } = BrowserSafeApis5.options;
12653
12655
  const { format: imageFormat, source: imageFormatReason } = determineFinalStillImageFormat({
12654
12656
  downloadName,
12655
12657
  outName: outName ?? null,
12656
- cliFlag: parsedCli["image-format"] ?? null,
12658
+ configuredImageFormat: stillImageFormatOption.getValue({
12659
+ commandLine: parsedCli
12660
+ }).value,
12657
12661
  isLambda: true,
12658
- fromUi: null,
12659
- configImageFormat: ConfigInternals3.getUserPreferredStillImageFormat() ?? null
12662
+ fromUi: null
12660
12663
  });
12661
12664
  Log.info({ indent: false, logLevel }, CliInternals21.chalk.gray(`Function: ${CliInternals21.makeHyperlink({ text: functionName, fallback: functionName, url: `https://${getAwsRegion()}.console.aws.amazon.com/lambda/home#/functions/${functionName}?tab=code` })}`));
12662
12665
  Log.info({ indent: false, logLevel }, CliInternals21.chalk.gray(`Image Format = ${imageFormat} (${imageFormatReason})`));
@@ -1,2 +1 @@
1
- import type { AwsRegion } from '@remotion/lambda-client';
2
- export declare const getCurrentRegionInFunctionImplementation: () => AwsRegion;
1
+ export declare const getCurrentRegionInFunctionImplementation: () => "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
@@ -6,7 +6,7 @@ export type LambdaReadFileProgress = (progress: {
6
6
  downloaded: number;
7
7
  percent: number;
8
8
  }) => unknown;
9
- export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, forcePathStyle, requestHandler, abortSignal, }: {
9
+ type LambdaDownloadFileWithProgressInput = {
10
10
  bucketName: string;
11
11
  key: string;
12
12
  region: AwsRegion;
@@ -18,7 +18,9 @@ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region,
18
18
  forcePathStyle: boolean;
19
19
  requestHandler: RequestHandler;
20
20
  abortSignal: AbortSignal;
21
- }) => Promise<{
21
+ };
22
+ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, forcePathStyle, requestHandler, abortSignal, }: LambdaDownloadFileWithProgressInput) => Promise<{
22
23
  sizeInBytes: number;
23
24
  to: string;
24
25
  }>;
26
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
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';
2
+ import { deleteFunction, deleteRender, renderStillOnLambda as deprecatedRenderStillOnLambda, estimatePrice, getAwsClient, getCompositionsOnLambda, getFunctions, renderVideoOnLambda, validateWebhookSignature } from '@remotion/lambda-client';
3
3
  import type { FunctionInfo } from '@remotion/serverless';
4
4
  import type { DeleteSiteInput, DeleteSiteOutput } from './api/delete-site';
5
5
  import { deleteSite } from './api/delete-site';
@@ -29,11 +29,7 @@ declare const getRenderProgress: (input: GetRenderProgressInput) => Promise<Rend
29
29
  /**
30
30
  * @deprecated Import this from `@remotion/lambda-client` instead
31
31
  */
32
- declare const renderStillOnLambda: (input: RenderStillOnLambdaInput & {
33
- quality?: never;
34
- dumpBrowserLogs?: boolean;
35
- apiKey?: string | null;
36
- }) => Promise<RenderStillOnLambdaOutput>;
32
+ declare const renderStillOnLambda: typeof deprecatedRenderStillOnLambda;
37
33
  /**
38
34
  * @deprecated Import this from `@remotion/lambda-client` instead
39
35
  */
@@ -1,76 +1,14 @@
1
+ import type { AwsProvider, AwsRegion, RuntimePreference } from '@remotion/lambda-client';
2
+ import type { LogLevel } from '@remotion/renderer';
3
+ import type { FullClientSpecifics, ProviderSpecifics } from '@remotion/serverless';
4
+ import type { DeploySiteOutput, InternalDeploySiteInput } from './api/deploy-site';
5
+ import type { AwsLayer } from './shared/hosted-layers';
1
6
  export declare const LambdaInternals: {
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>;
3
- internalDeploySite: (args_0: {
4
- entryPoint: string;
5
- bucketName: string;
6
- region: import("@remotion/lambda-client").AwsRegion;
7
- } & {
8
- siteName: string;
9
- options: {
10
- onBundleProgress?: (progress: number) => void;
11
- onUploadProgress?: (upload: import("@remotion/serverless").UploadDirProgress) => void;
12
- onDiffingProgress?: (bytes: number, done: boolean) => void;
13
- webpackOverride?: import("@remotion/bundler").WebpackOverrideFn;
14
- ignoreRegisterRootWarning?: boolean;
15
- enableCaching?: boolean;
16
- publicDir?: string | null;
17
- rootDir?: string;
18
- bypassBucketNameValidation?: boolean;
19
- keyboardShortcutsEnabled?: boolean;
20
- askAIEnabled?: boolean;
21
- experimentalClientSideRenderingEnabled?: boolean;
22
- };
23
- privacy: "public" | "no-acl";
24
- gitSource: import("@remotion/bundler").GitSource | null;
25
- indent: boolean;
26
- forcePathStyle: boolean;
27
- requestHandler: import("@remotion/lambda-client").RequestHandler | null;
28
- } & import("@remotion/serverless").ToOptions<{
29
- readonly logLevel: {
30
- cliFlag: "log";
31
- name: string;
32
- ssrName: string;
33
- description: () => import("react/jsx-runtime").JSX.Element;
34
- docLink: string;
35
- getValue: ({ commandLine }: {
36
- commandLine: Record<string, unknown>;
37
- }) => {
38
- value: "error" | "info" | "trace" | "verbose" | "warn";
39
- source: string;
40
- };
41
- setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
42
- type: "error" | "info" | "trace" | "verbose" | "warn";
43
- };
44
- readonly throwIfSiteExists: {
45
- cliFlag: string;
46
- description: () => string;
47
- docLink: string;
48
- getValue: ({ commandLine }: {
49
- commandLine: Record<string, unknown>;
50
- }) => {
51
- source: string;
52
- value: boolean;
53
- };
54
- name: string;
55
- setConfig: () => never;
56
- ssrName: string;
57
- type: boolean;
58
- };
59
- }> & {
60
- providerSpecifics: import("@remotion/serverless").ProviderSpecifics<import("@remotion/lambda-client").AwsProvider>;
61
- fullClientSpecifics: import("@remotion/serverless").FullClientSpecifics<import("@remotion/lambda-client").AwsProvider>;
62
- }) => Promise<{
63
- serveUrl: string;
64
- siteName: string;
65
- stats: {
66
- uploadedFiles: number;
67
- deletedFiles: number;
68
- untouchedFiles: number;
69
- };
70
- }>;
71
- getLayers: ({ option, region, }: {
72
- option: import("@remotion/lambda-client").RuntimePreference;
73
- region: import("@remotion/lambda-client").AwsRegion;
74
- }) => import("./shared/hosted-layers").AwsLayer[];
7
+ executeCommand: (args: string[], remotionRoot: string, logLevel: LogLevel, providerSpecifics: ProviderSpecifics<AwsProvider> | null, fullClientSpecifics: FullClientSpecifics<AwsProvider> | null) => Promise<void>;
8
+ internalDeploySite: (input: InternalDeploySiteInput) => DeploySiteOutput;
9
+ getLayers: (options: {
10
+ option: RuntimePreference;
11
+ region: AwsRegion;
12
+ }) => AwsLayer[];
75
13
  };
76
14
  export type { OverallRenderProgress as _InternalOverallRenderProgress } from '@remotion/serverless';
@@ -1,7 +1,6 @@
1
- import type { AwsRegion, RuntimePreference } from '@remotion/lambda-client';
2
1
  import type { AwsLayer } from './hosted-layers';
3
2
  export declare const validateRuntimePreference: (option: unknown) => void;
4
3
  export declare const getLayers: ({ option, region, }: {
5
- option: RuntimePreference;
6
- region: AwsRegion;
4
+ option: "apple-emojis" | "cjk" | "default";
5
+ region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
7
6
  }) => AwsLayer[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.423",
6
+ "version": "4.0.424",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -12,7 +12,7 @@
12
12
  "lint": "eslint src",
13
13
  "testlambda": "exit 0",
14
14
  "test": "bun test src/test/unit",
15
- "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts",
15
+ "make": "tsgo -d && bun --env-file=../.env.bundle bundle.ts",
16
16
  "makeruntime": "bun build.ts",
17
17
  "prepublishOnly": "bun build.ts && bun ensure-version-match.js"
18
18
  },
@@ -28,22 +28,22 @@
28
28
  "@aws-sdk/client-cloudwatch-logs": "3.986.0",
29
29
  "@aws-sdk/client-service-quotas": "3.986.0",
30
30
  "@aws-sdk/lib-storage": "3.986.0",
31
- "@remotion/bundler": "4.0.423",
32
- "@remotion/cli": "4.0.423",
33
- "@remotion/lambda-client": "4.0.423",
34
- "@remotion/renderer": "4.0.423",
35
- "@remotion/serverless": "4.0.423",
36
- "@remotion/streaming": "4.0.423",
31
+ "@remotion/bundler": "4.0.424",
32
+ "@remotion/cli": "4.0.424",
33
+ "@remotion/lambda-client": "4.0.424",
34
+ "@remotion/renderer": "4.0.424",
35
+ "@remotion/serverless": "4.0.424",
36
+ "@remotion/streaming": "4.0.424",
37
37
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.423",
38
+ "remotion": "4.0.424",
39
39
  "zod": "3.22.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@remotion/bundler": "4.0.423",
42
+ "@remotion/bundler": "4.0.424",
43
43
  "@types/express": "^5.0.0",
44
44
  "express": "4.21.0",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.423",
46
- "@remotion/eslint-config-internal": "4.0.423",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.424",
46
+ "@remotion/eslint-config-internal": "4.0.424",
47
47
  "mime-types": "2.1.34",
48
48
  "@types/mime-types": "2.1.1",
49
49
  "@types/minimist": "1.2.2",
@@ -51,10 +51,11 @@
51
51
  "eslint": "9.19.0",
52
52
  "next": "16.1.5",
53
53
  "pureimage": "0.4.13",
54
- "@types/node": "20.12.14"
54
+ "@types/node": "20.12.14",
55
+ "@typescript/native-preview": "7.0.0-dev.20260217.1"
55
56
  },
56
57
  "peerDependencies": {
57
- "@remotion/bundler": "4.0.423"
58
+ "@remotion/bundler": "4.0.424"
58
59
  },
59
60
  "publishConfig": {
60
61
  "access": "public"
Binary file