@remotion/lambda 4.0.423 → 4.0.425

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 (52) 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/compositions/index.js +11 -2
  13. package/dist/cli/commands/functions/deploy.d.ts +1 -2
  14. package/dist/cli/commands/functions/index.d.ts +1 -2
  15. package/dist/cli/commands/functions/ls.d.ts +1 -2
  16. package/dist/cli/commands/functions/rm.d.ts +1 -2
  17. package/dist/cli/commands/functions/rmall.d.ts +1 -2
  18. package/dist/cli/commands/policies/policies.d.ts +1 -2
  19. package/dist/cli/commands/policies/role.d.ts +1 -2
  20. package/dist/cli/commands/policies/user.d.ts +1 -2
  21. package/dist/cli/commands/policies/validate.d.ts +1 -2
  22. package/dist/cli/commands/quotas/increase.d.ts +1 -1
  23. package/dist/cli/commands/quotas/increase.js +4 -4
  24. package/dist/cli/commands/quotas/index.d.ts +1 -2
  25. package/dist/cli/commands/quotas/list.d.ts +1 -2
  26. package/dist/cli/commands/regions.d.ts +1 -2
  27. package/dist/cli/commands/render/progress.d.ts +1 -1
  28. package/dist/cli/commands/render/progress.js +6 -3
  29. package/dist/cli/commands/render/render.d.ts +1 -2
  30. package/dist/cli/commands/render/render.js +28 -3
  31. package/dist/cli/commands/sites/create.d.ts +1 -2
  32. package/dist/cli/commands/sites/index.d.ts +1 -2
  33. package/dist/cli/commands/sites/ls.d.ts +1 -2
  34. package/dist/cli/commands/sites/rm.d.ts +1 -2
  35. package/dist/cli/commands/sites/rmall.d.ts +1 -2
  36. package/dist/cli/commands/still.d.ts +1 -2
  37. package/dist/cli/commands/still.js +26 -10
  38. package/dist/cli/get-aws-region.d.ts +1 -2
  39. package/dist/cli/help.d.ts +1 -2
  40. package/dist/cli/helpers/find-function-name.d.ts +1 -2
  41. package/dist/cli/helpers/get-webhook-custom-data.d.ts +1 -2
  42. package/dist/cli/index.d.ts +2 -3
  43. package/dist/cli/index.js +2 -1
  44. package/dist/cli/log.js +1 -1
  45. package/dist/esm/index.mjs +83 -31
  46. package/dist/functions/helpers/get-current-region.d.ts +1 -2
  47. package/dist/functions/helpers/read-with-progress.d.ts +4 -2
  48. package/dist/index.d.ts +2 -6
  49. package/dist/internals.d.ts +11 -73
  50. package/dist/shared/get-layers.d.ts +2 -3
  51. package/package.json +16 -15
  52. 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>;
@@ -11,7 +11,7 @@ const find_function_name_1 = require("../../helpers/find-function-name");
11
11
  const quit_1 = require("../../helpers/quit");
12
12
  const log_1 = require("../../log");
13
13
  exports.COMPOSITIONS_COMMAND = 'compositions';
14
- const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, darkModeOption, } = client_1.BrowserSafeApis.options;
14
+ const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, darkModeOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
15
15
  const compositionsCommand = async ({ args, logLevel, providerSpecifics, }) => {
16
16
  const serveUrl = args[0];
17
17
  if (!serveUrl) {
@@ -21,11 +21,20 @@ const compositionsCommand = async ({ args, logLevel, providerSpecifics, }) => {
21
21
  log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.COMPOSITIONS_COMMAND} <serve-url>`);
22
22
  (0, quit_1.quit)(1);
23
23
  }
24
- const { envVariables, inputProps, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
24
+ const { envVariables, inputProps } = cli_1.CliInternals.getCliOptions({
25
25
  isStill: false,
26
26
  logLevel,
27
27
  indent: false,
28
28
  });
29
+ const userAgent = userAgentOption.getValue({
30
+ commandLine: cli_1.CliInternals.parsedCli,
31
+ }).value;
32
+ const disableWebSecurity = disableWebSecurityOption.getValue({
33
+ commandLine: cli_1.CliInternals.parsedCli,
34
+ }).value;
35
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
36
+ commandLine: cli_1.CliInternals.parsedCli,
37
+ }).value;
29
38
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
30
39
  commandLine: cli_1.CliInternals.parsedCli,
31
40
  }).value;
@@ -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>;
@@ -24,7 +24,7 @@ const quit_1 = require("../../helpers/quit");
24
24
  const log_1 = require("../../log");
25
25
  const progress_1 = require("./progress");
26
26
  exports.RENDER_COMMAND = 'render';
27
- const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
27
+ const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
28
28
  const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
29
29
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
30
30
  const serveUrl = args[0];
@@ -36,11 +36,32 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
36
36
  (0, quit_1.quit)(1);
37
37
  }
38
38
  const region = (0, get_aws_region_1.getAwsRegion)();
39
- const { envVariables, frameRange, inputProps, pixelFormat, proResProfile, everyNthFrame, height, width, browserExecutable, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
39
+ const { envVariables, frameRange, inputProps, height, width, fps, durationInFrames, } = cli_1.CliInternals.getCliOptions({
40
40
  isStill: false,
41
41
  logLevel,
42
42
  indent: false,
43
43
  });
44
+ const pixelFormat = pixelFormatOption.getValue({
45
+ commandLine: cli_1.CliInternals.parsedCli,
46
+ }).value;
47
+ const browserExecutable = browserExecutableOption.getValue({
48
+ commandLine: cli_1.CliInternals.parsedCli,
49
+ }).value;
50
+ const everyNthFrame = everyNthFrameOption.getValue({
51
+ commandLine: cli_1.CliInternals.parsedCli,
52
+ }).value;
53
+ const proResProfile = proResProfileOption.getValue({
54
+ commandLine: cli_1.CliInternals.parsedCli,
55
+ }).value;
56
+ const userAgent = userAgentOption.getValue({
57
+ commandLine: cli_1.CliInternals.parsedCli,
58
+ }).value;
59
+ const disableWebSecurity = disableWebSecurityOption.getValue({
60
+ commandLine: cli_1.CliInternals.parsedCli,
61
+ }).value;
62
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
63
+ commandLine: cli_1.CliInternals.parsedCli,
64
+ }).value;
44
65
  const x264Preset = x264Option.getValue({
45
66
  commandLine: cli_1.CliInternals.parsedCli,
46
67
  }).value;
@@ -148,6 +169,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
148
169
  chromiumOptions,
149
170
  envVariables,
150
171
  height,
172
+ width,
173
+ fps,
174
+ durationInFrames,
151
175
  indent,
152
176
  serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
153
177
  indent: undefined,
@@ -159,7 +183,6 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
159
183
  serveUrlOrWebpackUrl: serveUrl,
160
184
  timeoutInMilliseconds,
161
185
  logLevel,
162
- width,
163
186
  server,
164
187
  offthreadVideoCacheSizeInBytes,
165
188
  offthreadVideoThreads,
@@ -233,6 +256,8 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
233
256
  encodingMaxRate,
234
257
  forceHeight: height,
235
258
  forceWidth: width,
259
+ forceFps: fps,
260
+ forceDurationInFrames: durationInFrames,
236
261
  webhook: args_1.parsedLambdaCli.webhook
237
262
  ? {
238
263
  url: args_1.parsedLambdaCli.webhook,
@@ -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>;