@remotion/lambda 4.0.267 → 4.0.269

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 (37) hide show
  1. package/build.ts +1 -0
  2. package/bundle.ts +23 -0
  3. package/dist/api/create-function.js +3 -3
  4. package/dist/api/delete-site.js +3 -3
  5. package/dist/api/deploy-function.js +2 -2
  6. package/dist/api/deploy-site.js +3 -3
  7. package/dist/api/download-media.js +2 -2
  8. package/dist/api/get-function-info.js +2 -2
  9. package/dist/api/iam-validation/role-permissions.js +6 -6
  10. package/dist/api/iam-validation/user-permissions.js +4 -4
  11. package/dist/cli/commands/compositions/index.js +2 -2
  12. package/dist/cli/commands/functions/deploy.js +5 -5
  13. package/dist/cli/commands/functions/index.js +6 -6
  14. package/dist/cli/commands/functions/rm.js +2 -2
  15. package/dist/cli/commands/policies/policies.js +5 -5
  16. package/dist/cli/commands/quotas/increase.js +8 -8
  17. package/dist/cli/commands/quotas/index.js +3 -3
  18. package/dist/cli/commands/quotas/list.js +5 -5
  19. package/dist/cli/commands/render/progress.d.ts +1 -1
  20. package/dist/cli/commands/render/render.js +4 -4
  21. package/dist/cli/commands/sites/create.js +2 -2
  22. package/dist/cli/commands/sites/index.js +6 -6
  23. package/dist/cli/commands/still.js +4 -4
  24. package/dist/cli/get-aws-region.js +2 -2
  25. package/dist/cli/help.js +10 -10
  26. package/dist/cli/helpers/find-function-name.js +3 -3
  27. package/dist/cli/index.js +2 -2
  28. package/dist/esm/client.mjs +2 -0
  29. package/dist/esm/index.mjs +12886 -0
  30. package/dist/esm/policies.mjs +167 -0
  31. package/dist/policies.d.ts +1 -0
  32. package/dist/{defaults.js → policies.js} +1 -1
  33. package/dist/shared/function-zip-path.js +4 -1
  34. package/dist/shared/validate-timeout.js +3 -3
  35. package/package.json +35 -19
  36. package/remotionlambda-arm64.zip +0 -0
  37. package/dist/defaults.d.ts +0 -1
package/build.ts CHANGED
@@ -54,6 +54,7 @@ fs.cpSync(
54
54
  ),
55
55
  `${outdir}/mappings.wasm`,
56
56
  );
57
+
57
58
  await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);
58
59
 
59
60
  fs.rmSync(outdir, {recursive: true});
package/bundle.ts ADDED
@@ -0,0 +1,23 @@
1
+ import {buildPackage} from '../.monorepo/builder';
2
+
3
+ await buildPackage({
4
+ formats: {
5
+ cjs: 'use-tsc',
6
+ esm: 'build',
7
+ },
8
+ external: 'dependencies',
9
+ entrypoints: [
10
+ {
11
+ path: 'src/index.ts',
12
+ target: 'node',
13
+ },
14
+ {
15
+ path: 'src/client.ts',
16
+ target: 'node',
17
+ },
18
+ {
19
+ path: 'src/policies.ts',
20
+ target: 'node',
21
+ },
22
+ ],
23
+ });
@@ -4,10 +4,10 @@ exports.createFunction = void 0;
4
4
  const client_cloudwatch_logs_1 = require("@aws-sdk/client-cloudwatch-logs");
5
5
  const client_lambda_1 = require("@aws-sdk/client-lambda");
6
6
  const lambda_client_1 = require("@remotion/lambda-client");
7
+ const constants_1 = require("@remotion/lambda-client/constants");
7
8
  const renderer_1 = require("@remotion/renderer");
8
9
  const node_fs_1 = require("node:fs");
9
10
  const version_1 = require("remotion/version");
10
- const defaults_1 = require("../defaults");
11
11
  const get_layers_1 = require("../shared/get-layers");
12
12
  const lambda_insights_extensions_1 = require("../shared/lambda-insights-extensions");
13
13
  const suggested_policy_1 = require("./iam-validation/suggested-policy");
@@ -17,7 +17,7 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
17
17
  renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel }, 'Creating CloudWatch group');
18
18
  try {
19
19
  await lambda_client_1.LambdaClientInternals.getCloudWatchLogsClient(region).send(new client_cloudwatch_logs_1.CreateLogGroupCommand({
20
- logGroupName: `${defaults_1.LOG_GROUP_PREFIX}${functionName}`,
20
+ logGroupName: `${constants_1.LOG_GROUP_PREFIX}${functionName}`,
21
21
  }));
22
22
  renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel }, 'CloudWatch group successfully created');
23
23
  }
@@ -32,7 +32,7 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
32
32
  }
33
33
  renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel }, 'Adding retention policy to the CloudWatch group');
34
34
  await lambda_client_1.LambdaClientInternals.getCloudWatchLogsClient(region).send(new client_cloudwatch_logs_1.PutRetentionPolicyCommand({
35
- logGroupName: `${defaults_1.LOG_GROUP_PREFIX}${functionName}`,
35
+ logGroupName: `${constants_1.LOG_GROUP_PREFIX}${functionName}`,
36
36
  retentionInDays,
37
37
  }));
38
38
  renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel }, `Set retention to ${retentionInDays} days`);
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deleteSite = exports.internalDeleteSite = void 0;
4
4
  const lambda_client_1 = require("@remotion/lambda-client");
5
- const defaults_1 = require("../defaults");
5
+ const constants_1 = require("@remotion/lambda-client/constants");
6
6
  const internalDeleteSite = async ({ bucketName, siteName, region, onAfterItemDeleted, providerSpecifics, forcePathStyle, }) => {
7
7
  const accountId = await providerSpecifics.getAccountId({ region });
8
8
  let files = await providerSpecifics.listObjects({
9
9
  bucketName,
10
10
  // The `/` is important to not accidentially delete sites with the same name but containing a suffix.
11
- prefix: `${(0, defaults_1.getSitesKey)(siteName)}/`,
11
+ prefix: `${(0, constants_1.getSitesKey)(siteName)}/`,
12
12
  region,
13
13
  expectedBucketOwner: accountId,
14
14
  forcePathStyle,
@@ -31,7 +31,7 @@ const internalDeleteSite = async ({ bucketName, siteName, region, onAfterItemDel
31
31
  files = await providerSpecifics.listObjects({
32
32
  bucketName,
33
33
  // The `/` is important to not accidentially delete sites with the same name but containing a suffix.
34
- prefix: `${(0, defaults_1.getSitesKey)(siteName)}/`,
34
+ prefix: `${(0, constants_1.getSitesKey)(siteName)}/`,
35
35
  region,
36
36
  expectedBucketOwner: accountId,
37
37
  forcePathStyle,
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deployFunction = exports.internalDeployFunction = void 0;
4
4
  const lambda_client_1 = require("@remotion/lambda-client");
5
+ const constants_1 = require("@remotion/lambda-client/constants");
5
6
  const error_handling_1 = require("@remotion/renderer/error-handling");
6
7
  const version_1 = require("remotion/version");
7
- const defaults_1 = require("../defaults");
8
8
  const full_client_implementation_1 = require("../functions/full-client-implementation");
9
9
  const function_zip_path_1 = require("../shared/function-zip-path");
10
10
  const get_layers_1 = require("../shared/get-layers");
@@ -77,7 +77,7 @@ const deployFunction = ({ createCloudWatchLogGroup, memorySizeInMb, region, time
77
77
  logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : 'info',
78
78
  createCloudWatchLogGroup,
79
79
  customRoleArn: customRoleArn !== null && customRoleArn !== void 0 ? customRoleArn : undefined,
80
- diskSizeInMb: diskSizeInMb !== null && diskSizeInMb !== void 0 ? diskSizeInMb : defaults_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
80
+ diskSizeInMb: diskSizeInMb !== null && diskSizeInMb !== void 0 ? diskSizeInMb : constants_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
81
81
  enableLambdaInsights: enableLambdaInsights !== null && enableLambdaInsights !== void 0 ? enableLambdaInsights : false,
82
82
  memorySizeInMb,
83
83
  region,
@@ -5,10 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.deploySite = exports.internalDeploySite = void 0;
7
7
  const lambda_client_1 = require("@remotion/lambda-client");
8
+ const constants_1 = require("@remotion/lambda-client/constants");
8
9
  const error_handling_1 = require("@remotion/renderer/error-handling");
9
10
  const serverless_1 = require("@remotion/serverless");
10
11
  const node_fs_1 = __importDefault(require("node:fs"));
11
- const defaults_1 = require("../defaults");
12
12
  const full_client_implementation_1 = require("../functions/full-client-implementation");
13
13
  const get_s3_operations_1 = require("../shared/get-s3-operations");
14
14
  const validate_site_name_1 = require("../shared/validate-site-name");
@@ -17,7 +17,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
17
17
  lambda_client_1.LambdaClientInternals.validateAwsRegion(region);
18
18
  (0, serverless_1.validateBucketName)({
19
19
  bucketName,
20
- bucketNamePrefix: defaults_1.REMOTION_BUCKET_PREFIX,
20
+ bucketNamePrefix: constants_1.REMOTION_BUCKET_PREFIX,
21
21
  options: {
22
22
  mustStartWithRemotion: !(options === null || options === void 0 ? void 0 : options.bypassBucketNameValidation),
23
23
  },
@@ -34,7 +34,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
34
34
  if (!bucketExists) {
35
35
  throw new Error(`No bucket with the name ${bucketName} exists`);
36
36
  }
37
- const subFolder = (0, defaults_1.getSitesKey)(siteName);
37
+ const subFolder = (0, constants_1.getSitesKey)(siteName);
38
38
  const [files, bundled] = await Promise.all([
39
39
  providerSpecifics.listObjects({
40
40
  bucketName,
@@ -5,10 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.downloadMedia = exports.internalDownloadMedia = void 0;
7
7
  const lambda_client_1 = require("@remotion/lambda-client");
8
+ const constants_1 = require("@remotion/lambda-client/constants");
8
9
  const renderer_1 = require("@remotion/renderer");
9
10
  const serverless_1 = require("@remotion/serverless");
10
11
  const node_path_1 = __importDefault(require("node:path"));
11
- const defaults_1 = require("../defaults");
12
12
  const read_with_progress_1 = require("../functions/helpers/read-with-progress");
13
13
  const internalDownloadMedia = async (input) => {
14
14
  var _a, _b, _c, _d;
@@ -32,7 +32,7 @@ const internalDownloadMedia = async (input) => {
32
32
  renderMetadata: overallProgress.renderMetadata,
33
33
  bucketName: input.bucketName,
34
34
  customCredentials: (_a = input.customCredentials) !== null && _a !== void 0 ? _a : null,
35
- bucketNamePrefix: defaults_1.REMOTION_BUCKET_PREFIX,
35
+ bucketNamePrefix: constants_1.REMOTION_BUCKET_PREFIX,
36
36
  });
37
37
  const { sizeInBytes } = await (0, read_with_progress_1.lambdaDownloadFileWithProgress)({
38
38
  bucketName: renderBucketName,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFunctionInfo = void 0;
4
4
  const client_lambda_1 = require("@aws-sdk/client-lambda");
5
5
  const lambda_client_1 = require("@remotion/lambda-client");
6
- const defaults_1 = require("../defaults");
6
+ const constants_1 = require("@remotion/lambda-client/constants");
7
7
  /*
8
8
  * @description Gets information about a function given its name and region.
9
9
  * @see [Documentation](https://remotion.dev/docs/lambda/getfunctioninfo)
@@ -26,7 +26,7 @@ const getFunctionInfo = async ({ region, functionName, logLevel, }) => {
26
26
  timeoutInSeconds: (_a = functionInfo.Configuration) === null || _a === void 0 ? void 0 : _a.Timeout,
27
27
  memorySizeInMb: (_b = functionInfo.Configuration) === null || _b === void 0 ? void 0 : _b.MemorySize,
28
28
  version,
29
- diskSizeInMb: (_e = (_d = (_c = functionInfo.Configuration) === null || _c === void 0 ? void 0 : _c.EphemeralStorage) === null || _d === void 0 ? void 0 : _d.Size) !== null && _e !== void 0 ? _e : defaults_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
29
+ diskSizeInMb: (_e = (_d = (_c = functionInfo.Configuration) === null || _c === void 0 ? void 0 : _c.EphemeralStorage) === null || _d === void 0 ? void 0 : _d.Size) !== null && _e !== void 0 ? _e : constants_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
30
30
  };
31
31
  };
32
32
  exports.getFunctionInfo = getFunctionInfo;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rolePermissions = void 0;
4
- const defaults_1 = require("../../defaults");
4
+ const constants_1 = require("@remotion/lambda-client/constants");
5
5
  exports.rolePermissions = [
6
6
  {
7
7
  actions: ['s3:ListAllMyBuckets'],
@@ -18,21 +18,21 @@ exports.rolePermissions = [
18
18
  's3:PutObject',
19
19
  's3:GetBucketLocation',
20
20
  ],
21
- resource: [`arn:aws:s3:::${defaults_1.REMOTION_BUCKET_PREFIX}*`],
21
+ resource: [`arn:aws:s3:::${constants_1.REMOTION_BUCKET_PREFIX}*`],
22
22
  },
23
23
  {
24
24
  actions: ['lambda:InvokeFunction'],
25
- resource: [`arn:aws:lambda:*:*:function:${defaults_1.RENDER_FN_PREFIX}*`],
25
+ resource: [`arn:aws:lambda:*:*:function:${constants_1.RENDER_FN_PREFIX}*`],
26
26
  },
27
27
  {
28
28
  actions: ['logs:CreateLogGroup'],
29
- resource: [`arn:aws:logs:*:*:log-group:${defaults_1.LAMBDA_INSIGHTS_PREFIX}`],
29
+ resource: [`arn:aws:logs:*:*:log-group:${constants_1.LAMBDA_INSIGHTS_PREFIX}`],
30
30
  },
31
31
  {
32
32
  actions: ['logs:CreateLogStream', 'logs:PutLogEvents'],
33
33
  resource: [
34
- `arn:aws:logs:*:*:log-group:${defaults_1.LOG_GROUP_PREFIX}${defaults_1.RENDER_FN_PREFIX}*`,
35
- `arn:aws:logs:*:*:log-group:${defaults_1.LAMBDA_INSIGHTS_PREFIX}:*`,
34
+ `arn:aws:logs:*:*:log-group:${constants_1.LOG_GROUP_PREFIX}${constants_1.RENDER_FN_PREFIX}*`,
35
+ `arn:aws:logs:*:*:log-group:${constants_1.LAMBDA_INSIGHTS_PREFIX}:*`,
36
36
  ],
37
37
  },
38
38
  ];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requiredPermissions = void 0;
4
- const defaults_1 = require("../../defaults");
4
+ const constants_1 = require("@remotion/lambda-client/constants");
5
5
  const hosted_layers_1 = require("../../shared/hosted-layers");
6
6
  exports.requiredPermissions = [
7
7
  {
@@ -40,7 +40,7 @@ exports.requiredPermissions = [
40
40
  's3:PutBucketPublicAccessBlock',
41
41
  's3:PutLifecycleConfiguration',
42
42
  ],
43
- resource: [`arn:aws:s3:::${defaults_1.REMOTION_BUCKET_PREFIX}*`],
43
+ resource: [`arn:aws:s3:::${constants_1.REMOTION_BUCKET_PREFIX}*`],
44
44
  },
45
45
  {
46
46
  id: 'BucketListing',
@@ -63,13 +63,13 @@ exports.requiredPermissions = [
63
63
  'lambda:PutRuntimeManagementConfig',
64
64
  'lambda:TagResource',
65
65
  ],
66
- resource: [`arn:aws:lambda:*:*:function:${defaults_1.RENDER_FN_PREFIX}*`],
66
+ resource: [`arn:aws:lambda:*:*:function:${constants_1.RENDER_FN_PREFIX}*`],
67
67
  },
68
68
  {
69
69
  id: 'LogsRetention',
70
70
  actions: ['logs:CreateLogGroup', 'logs:PutRetentionPolicy'],
71
71
  resource: [
72
- `arn:aws:logs:*:*:log-group:${defaults_1.LOG_GROUP_PREFIX}${defaults_1.RENDER_FN_PREFIX}*`,
72
+ `arn:aws:logs:*:*:log-group:${constants_1.LOG_GROUP_PREFIX}${constants_1.RENDER_FN_PREFIX}*`,
73
73
  ],
74
74
  },
75
75
  {
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compositionsCommand = exports.COMPOSITIONS_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const lambda_client_1 = require("@remotion/lambda-client");
6
+ const constants_1 = require("@remotion/lambda-client/constants");
6
7
  const client_1 = require("@remotion/renderer/client");
7
- const defaults_1 = require("../../../defaults");
8
8
  const args_1 = require("../../args");
9
9
  const get_aws_region_1 = require("../../get-aws-region");
10
10
  const find_function_name_1 = require("../../helpers/find-function-name");
@@ -18,7 +18,7 @@ const compositionsCommand = async ({ args, logLevel, providerSpecifics, }) => {
18
18
  log_1.Log.error({ indent: false, logLevel }, 'No serve URL passed.');
19
19
  log_1.Log.info({ indent: false, logLevel }, 'Pass an additional argument specifying a URL where your Remotion project is hosted.');
20
20
  log_1.Log.info({ indent: false, logLevel });
21
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.COMPOSITIONS_COMMAND} <serve-url>`);
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
24
  const { envVariables, inputProps, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.functionsDeploySubcommand = exports.FUNCTIONS_DEPLOY_SUBCOMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const lambda_client_1 = require("@remotion/lambda-client");
6
+ const constants_1 = require("@remotion/lambda-client/constants");
6
7
  const version_1 = require("remotion/version");
7
8
  const deploy_function_1 = require("../../../api/deploy-function");
8
- const defaults_1 = require("../../../defaults");
9
9
  const validate_custom_role_arn_1 = require("../../../shared/validate-custom-role-arn");
10
10
  const validate_timeout_1 = require("../../../shared/validate-timeout");
11
11
  const validate_vpc_security_group_ids_1 = require("../../../shared/validate-vpc-security-group-ids");
@@ -17,13 +17,13 @@ exports.FUNCTIONS_DEPLOY_SUBCOMMAND = 'deploy';
17
17
  const functionsDeploySubcommand = async ({ logLevel, providerSpecifics, fullClientSpecifics, }) => {
18
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
19
19
  const region = (0, get_aws_region_1.getAwsRegion)();
20
- const timeoutInSeconds = (_a = args_1.parsedLambdaCli.timeout) !== null && _a !== void 0 ? _a : defaults_1.DEFAULT_TIMEOUT;
21
- const memorySizeInMb = (_b = args_1.parsedLambdaCli.memory) !== null && _b !== void 0 ? _b : defaults_1.DEFAULT_MEMORY_SIZE;
22
- const diskSizeInMb = (_c = args_1.parsedLambdaCli.disk) !== null && _c !== void 0 ? _c : defaults_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB;
20
+ const timeoutInSeconds = (_a = args_1.parsedLambdaCli.timeout) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_TIMEOUT;
21
+ const memorySizeInMb = (_b = args_1.parsedLambdaCli.memory) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_MEMORY_SIZE;
22
+ const diskSizeInMb = (_c = args_1.parsedLambdaCli.disk) !== null && _c !== void 0 ? _c : constants_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB;
23
23
  const customRoleArn = (_d = args_1.parsedLambdaCli['custom-role-arn']) !== null && _d !== void 0 ? _d : undefined;
24
24
  const createCloudWatchLogGroup = !args_1.parsedLambdaCli['disable-cloudwatch'];
25
25
  const enableLambdaInsights = (_e = args_1.parsedLambdaCli['enable-lambda-insights']) !== null && _e !== void 0 ? _e : false;
26
- const cloudWatchLogRetentionPeriodInDays = (_f = args_1.parsedLambdaCli['retention-period']) !== null && _f !== void 0 ? _f : defaults_1.DEFAULT_CLOUDWATCH_RETENTION_PERIOD;
26
+ const cloudWatchLogRetentionPeriodInDays = (_f = args_1.parsedLambdaCli['retention-period']) !== null && _f !== void 0 ? _f : constants_1.DEFAULT_CLOUDWATCH_RETENTION_PERIOD;
27
27
  const enableV5Runtime = (_g = args_1.parsedLambdaCli['enable-v5-runtime']) !== null && _g !== void 0 ? _g : undefined;
28
28
  if (enableV5Runtime) {
29
29
  log_1.Log.warn({ logLevel, indent: false }, `The --enable-v5-runtime flag is now enabled by default and has no function anymore.`);
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.functionsCommand = exports.FUNCTIONS_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
- const defaults_1 = require("../../../defaults");
5
+ const constants_1 = require("@remotion/lambda-client/constants");
6
6
  const quit_1 = require("../../helpers/quit");
7
7
  const deploy_1 = require("./deploy");
8
8
  const ls_1 = require("./ls");
@@ -10,20 +10,20 @@ const rm_1 = require("./rm");
10
10
  const rmall_1 = require("./rmall");
11
11
  exports.FUNCTIONS_COMMAND = 'functions';
12
12
  const printFunctionsHelp = (logLevel) => {
13
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} <subcommand>`);
13
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} <subcommand>`);
14
14
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
15
15
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, 'Available subcommands:');
16
16
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
17
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${ls_1.FUNCTIONS_LS_SUBCOMMAND}`);
17
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${ls_1.FUNCTIONS_LS_SUBCOMMAND}`);
18
18
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Lists the functions currently deployed'));
19
19
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
20
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${deploy_1.FUNCTIONS_DEPLOY_SUBCOMMAND}`);
20
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${deploy_1.FUNCTIONS_DEPLOY_SUBCOMMAND}`);
21
21
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Deploy a new Lambda function'));
22
22
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
23
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${rm_1.FUNCTIONS_RM_SUBCOMMAND} <function-name>`);
23
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${rm_1.FUNCTIONS_RM_SUBCOMMAND} <function-name>`);
24
24
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Delete a Lambda function'));
25
25
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
26
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${rmall_1.FUNCTIONS_RMALL_SUBCOMMAND}`);
26
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${rmall_1.FUNCTIONS_RMALL_SUBCOMMAND}`);
27
27
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Delete all functions in selected region'));
28
28
  };
29
29
  const functionsCommand = ({ args, logLevel, fullClientSpecifics, providerSpecifics, }) => {
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.functionsRmCommand = exports.FUNCTIONS_RM_SUBCOMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const lambda_client_1 = require("@remotion/lambda-client");
6
+ const constants_1 = require("@remotion/lambda-client/constants");
6
7
  const get_function_info_1 = require("../../../api/get-function-info");
7
- const defaults_1 = require("../../../defaults");
8
8
  const get_aws_region_1 = require("../../get-aws-region");
9
9
  const confirm_1 = require("../../helpers/confirm");
10
10
  const quit_1 = require("../../helpers/quit");
@@ -17,7 +17,7 @@ const functionsRmCommand = async (args, logLevel) => {
17
17
  if (args.length === 0) {
18
18
  log_1.Log.error({ indent: false, logLevel }, 'No function name passed.');
19
19
  log_1.Log.error({ indent: false, logLevel }, 'Pass another argument which is the name of the function you would like to remove.');
20
- log_1.Log.info({ indent: false, logLevel }, `You can run \`${defaults_1.BINARY_NAME} ${index_1.FUNCTIONS_COMMAND} ${ls_1.FUNCTIONS_LS_SUBCOMMAND}\` to see a list of deployed Lambda functions.`);
20
+ log_1.Log.info({ indent: false, logLevel }, `You can run \`${constants_1.BINARY_NAME} ${index_1.FUNCTIONS_COMMAND} ${ls_1.FUNCTIONS_LS_SUBCOMMAND}\` to see a list of deployed Lambda functions.`);
21
21
  (0, quit_1.quit)(1);
22
22
  }
23
23
  if (args[0] === '()') {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.policiesCommand = exports.POLICIES_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
- const defaults_1 = require("../../../defaults");
5
+ const constants_1 = require("@remotion/lambda-client/constants");
6
6
  const quit_1 = require("../../helpers/quit");
7
7
  const log_1 = require("../../log");
8
8
  const role_1 = require("./role");
@@ -10,17 +10,17 @@ const user_1 = require("./user");
10
10
  const validate_1 = require("./validate");
11
11
  exports.POLICIES_COMMAND = 'policies';
12
12
  const printPoliciesHelp = (logLevel) => {
13
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.POLICIES_COMMAND} <subcommand>`);
13
+ log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.POLICIES_COMMAND} <subcommand>`);
14
14
  log_1.Log.info({ indent: false, logLevel });
15
15
  log_1.Log.info({ indent: false, logLevel }, 'Available subcommands:');
16
16
  log_1.Log.info({ indent: false, logLevel }, '');
17
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.POLICIES_COMMAND} ${user_1.USER_SUBCOMMAND}`);
17
+ log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.POLICIES_COMMAND} ${user_1.USER_SUBCOMMAND}`);
18
18
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Print the suggested policy to be applied to the user that is attached to the access token.'));
19
19
  log_1.Log.info({ indent: false, logLevel });
20
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.POLICIES_COMMAND} ${role_1.ROLE_SUBCOMMAND}`);
20
+ log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.POLICIES_COMMAND} ${role_1.ROLE_SUBCOMMAND}`);
21
21
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Print the suggested policy to be applied to the role that is attached to the lambda function.'));
22
22
  log_1.Log.info({ indent: false, logLevel });
23
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.POLICIES_COMMAND} ${validate_1.VALIDATE_SUBCOMMAND}`);
23
+ log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.POLICIES_COMMAND} ${validate_1.VALIDATE_SUBCOMMAND}`);
24
24
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Validate the current policies setup is correct by running tests using the AWS policy simulator.'));
25
25
  };
26
26
  const policiesCommand = (args, logLevel) => {
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.quotasIncreaseCommand = exports.INCREASE_SUBCOMMAND = void 0;
4
4
  const client_service_quotas_1 = require("@aws-sdk/client-service-quotas");
5
5
  const lambda_client_1 = require("@remotion/lambda-client");
6
+ const constants_1 = require("@remotion/lambda-client/constants");
6
7
  const node_process_1 = require("node:process");
7
8
  const _1 = require(".");
8
- const defaults_1 = require("../../../defaults");
9
9
  const args_1 = require("../../args");
10
10
  const get_aws_region_1 = require("../../get-aws-region");
11
11
  const confirm_1 = require("../../helpers/confirm");
@@ -20,15 +20,15 @@ const quotasIncreaseCommand = async (logLevel) => {
20
20
  const region = (0, get_aws_region_1.getAwsRegion)();
21
21
  const [concurrencyLimit, defaultConcurrencyLimit, changes] = await Promise.all([
22
22
  lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.GetServiceQuotaCommand({
23
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
23
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
24
24
  ServiceCode: 'lambda',
25
25
  })),
26
26
  lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.GetAWSDefaultServiceQuotaCommand({
27
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
27
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
28
28
  ServiceCode: 'lambda',
29
29
  })),
30
30
  lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.ListRequestedServiceQuotaChangeHistoryByQuotaCommand({
31
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
31
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
32
32
  ServiceCode: 'lambda',
33
33
  })),
34
34
  ]);
@@ -49,7 +49,7 @@ const quotasIncreaseCommand = async (logLevel) => {
49
49
  log_1.Log.error({ indent: false, logLevel }, `Current limit of ${concurrencyCurrent} is already increased over the default (${defaultConcurrency}).`);
50
50
  log_1.Log.info({ indent: false, logLevel }, 'You can force the increase with the --force flag.');
51
51
  log_1.Log.info({ indent: false, logLevel }, 'You are more likely to get an increase if you attach a reason. Go so by going to the AWS console:');
52
- log_1.Log.info({ indent: false, logLevel }, makeQuotaUrl({ quotaId: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA, region }));
52
+ log_1.Log.info({ indent: false, logLevel }, makeQuotaUrl({ quotaId: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA, region }));
53
53
  (0, quit_1.quit)(1);
54
54
  }
55
55
  const newLimit = Math.floor(concurrencyCurrent / 5000) * 5000 + 5000;
@@ -62,7 +62,7 @@ const quotasIncreaseCommand = async (logLevel) => {
62
62
  }
63
63
  try {
64
64
  await lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.RequestServiceQuotaIncreaseCommand({
65
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
65
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
66
66
  DesiredValue: newLimit,
67
67
  ServiceCode: 'lambda',
68
68
  }));
@@ -71,13 +71,13 @@ const quotasIncreaseCommand = async (logLevel) => {
71
71
  if (err.name === 'DependencyAccessDeniedException') {
72
72
  log_1.Log.error({ indent: false, logLevel }, 'Could not request increase because this is a sub-account of another AWS account.');
73
73
  log_1.Log.error({ indent: false, logLevel }, `Please go to ${makeQuotaUrl({
74
- quotaId: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
74
+ quotaId: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
75
75
  region,
76
76
  })} to request the increase via the AWS console.`);
77
77
  return;
78
78
  }
79
79
  throw err;
80
80
  }
81
- log_1.Log.info({ indent: false, logLevel }, `Requested increase successfully. Run "${defaults_1.BINARY_NAME} ${_1.QUOTAS_COMMAND}" to check whether your request was approved.`);
81
+ 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
82
  };
83
83
  exports.quotasIncreaseCommand = quotasIncreaseCommand;
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.quotasCommand = exports.QUOTAS_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
- const defaults_1 = require("../../../defaults");
5
+ const constants_1 = require("@remotion/lambda-client/constants");
6
6
  const increase_1 = require("./increase");
7
7
  const list_1 = require("./list");
8
8
  exports.QUOTAS_COMMAND = 'quotas';
9
9
  const printHelp = (logLevel) => {
10
10
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, 'Available commands:');
11
11
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
12
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `npx ${defaults_1.BINARY_NAME} ${exports.QUOTAS_COMMAND}`);
12
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `npx ${constants_1.BINARY_NAME} ${exports.QUOTAS_COMMAND}`);
13
13
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('List relevant AWS Lambda quotas.'));
14
14
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
15
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `npx ${defaults_1.BINARY_NAME} ${exports.QUOTAS_COMMAND} ${increase_1.INCREASE_SUBCOMMAND}`);
15
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `npx ${constants_1.BINARY_NAME} ${exports.QUOTAS_COMMAND} ${increase_1.INCREASE_SUBCOMMAND}`);
16
16
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Increase Lambda quotas.'));
17
17
  };
18
18
  const quotasCommand = (args, logLevel) => {
@@ -4,8 +4,8 @@ exports.quotasListCommand = void 0;
4
4
  const client_service_quotas_1 = require("@aws-sdk/client-service-quotas");
5
5
  const cli_1 = require("@remotion/cli");
6
6
  const lambda_client_1 = require("@remotion/lambda-client");
7
+ const constants_1 = require("@remotion/lambda-client/constants");
7
8
  const _1 = require(".");
8
- const defaults_1 = require("../../../defaults");
9
9
  const get_aws_region_1 = require("../../get-aws-region");
10
10
  const log_1 = require("../../log");
11
11
  const increase_1 = require("./increase");
@@ -16,15 +16,15 @@ const quotasListCommand = async (logLevel) => {
16
16
  log_1.Log.info({ indent: false, logLevel });
17
17
  const [concurrencyLimit, defaultConcurrencyLimit, changes] = await Promise.all([
18
18
  lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.GetServiceQuotaCommand({
19
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
19
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
20
20
  ServiceCode: 'lambda',
21
21
  })),
22
22
  lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.GetAWSDefaultServiceQuotaCommand({
23
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
23
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
24
24
  ServiceCode: 'lambda',
25
25
  })),
26
26
  lambda_client_1.LambdaClientInternals.getServiceQuotasClient(region).send(new client_service_quotas_1.ListRequestedServiceQuotaChangeHistoryByQuotaCommand({
27
- QuotaCode: defaults_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
27
+ QuotaCode: constants_1.LAMBDA_CONCURRENCY_LIMIT_QUOTA,
28
28
  ServiceCode: 'lambda',
29
29
  })),
30
30
  ]);
@@ -45,7 +45,7 @@ const quotasListCommand = async (logLevel) => {
45
45
  log_1.Log.warn({ indent: false, logLevel }, `https://${region}.console.aws.amazon.com/support/home#/case/?displayId=${openCase.CaseId}`);
46
46
  }
47
47
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('The maximum amount of Lambda functions which can concurrently execute.'));
48
- log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Run \`npx ${defaults_1.BINARY_NAME} ${_1.QUOTAS_COMMAND} ${increase_1.INCREASE_SUBCOMMAND}\` to ask AWS to increase your limit.`));
48
+ log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Run \`npx ${constants_1.BINARY_NAME} ${_1.QUOTAS_COMMAND} ${increase_1.INCREASE_SUBCOMMAND}\` to ask AWS to increase your limit.`));
49
49
  log_1.Log.info({ indent: false, logLevel });
50
50
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('The maximum amount of concurrency increase in 10 seconds'));
51
51
  };
@@ -1,5 +1,5 @@
1
+ import type { RenderProgress } from '@remotion/lambda-client/constants';
1
2
  import type { CloudProvider, ReceivedArtifact } from '@remotion/serverless';
2
- import type { RenderProgress } from '../../../defaults';
3
3
  type DownloadedInfo = {
4
4
  totalSize: number | null;
5
5
  downloaded: number;
@@ -12,8 +12,8 @@ const path_1 = __importDefault(require("path"));
12
12
  const no_react_1 = require("remotion/no-react");
13
13
  const download_media_1 = require("../../../api/download-media");
14
14
  const lambda_client_1 = require("@remotion/lambda-client");
15
+ const constants_1 = require("@remotion/lambda-client/constants");
15
16
  const serverless_1 = require("@remotion/serverless");
16
- const defaults_1 = require("../../../defaults");
17
17
  const sleep_1 = require("../../../shared/sleep");
18
18
  const validate_retries_1 = require("../../../shared/validate-retries");
19
19
  const args_1 = require("../../args");
@@ -32,7 +32,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
32
32
  log_1.Log.error({ indent: false, logLevel }, 'No serve URL passed.');
33
33
  log_1.Log.info({ indent: false, logLevel }, 'Pass an additional argument specifying a URL where your Remotion project is hosted.');
34
34
  log_1.Log.info({ indent: false, logLevel });
35
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.RENDER_COMMAND} <serve-url> <composition-id> [output-location]`);
35
+ log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.RENDER_COMMAND} <serve-url> <composition-id> [output-location]`);
36
36
  (0, quit_1.quit)(1);
37
37
  }
38
38
  const region = (0, get_aws_region_1.getAwsRegion)();
@@ -182,9 +182,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
182
182
  uiImageFormat: null,
183
183
  });
184
184
  const functionName = await (0, find_function_name_1.findFunctionName)({ logLevel, providerSpecifics });
185
- const maxRetries = (_c = args_1.parsedLambdaCli['max-retries']) !== null && _c !== void 0 ? _c : defaults_1.DEFAULT_MAX_RETRIES;
185
+ const maxRetries = (_c = args_1.parsedLambdaCli['max-retries']) !== null && _c !== void 0 ? _c : constants_1.DEFAULT_MAX_RETRIES;
186
186
  (0, validate_retries_1.validateMaxRetries)(maxRetries);
187
- const privacy = (_d = args_1.parsedLambdaCli.privacy) !== null && _d !== void 0 ? _d : defaults_1.DEFAULT_OUTPUT_PRIVACY;
187
+ const privacy = (_d = args_1.parsedLambdaCli.privacy) !== null && _d !== void 0 ? _d : constants_1.DEFAULT_OUTPUT_PRIVACY;
188
188
  (0, serverless_1.validatePrivacy)(privacy, true);
189
189
  const framesPerLambda = (_e = args_1.parsedLambdaCli['frames-per-lambda']) !== null && _e !== void 0 ? _e : undefined;
190
190
  (0, serverless_1.validateFramesPerFunction)({
@@ -4,9 +4,9 @@ exports.sitesCreateSubcommand = exports.SITES_CREATE_SUBCOMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const config_1 = require("@remotion/cli/config");
6
6
  const client_1 = require("@remotion/renderer/client");
7
+ const constants_1 = require("@remotion/lambda-client/constants");
7
8
  const serverless_1 = require("@remotion/serverless");
8
9
  const no_react_1 = require("remotion/no-react");
9
- const defaults_1 = require("../../../defaults");
10
10
  const full_client_implementation_1 = require("../../../functions/full-client-implementation");
11
11
  const internals_1 = require("../../../internals");
12
12
  const validate_site_name_1 = require("../../../shared/validate-site-name");
@@ -29,7 +29,7 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementatio
29
29
  log_1.Log.error({ indent: false, logLevel }, 'No entry file passed.');
30
30
  log_1.Log.info({ indent: false, logLevel }, 'Pass an additional argument specifying the entry file of your Remotion project:');
31
31
  log_1.Log.info({ indent: false, logLevel });
32
- log_1.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} deploy <entry-file.ts>`);
32
+ log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} deploy <entry-file.ts>`);
33
33
  (0, quit_1.quit)(1);
34
34
  return;
35
35
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sitesCommand = exports.SITES_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
- const defaults_1 = require("../../../defaults");
5
+ const constants_1 = require("@remotion/lambda-client/constants");
6
6
  const quit_1 = require("../../helpers/quit");
7
7
  const create_1 = require("./create");
8
8
  const ls_1 = require("./ls");
@@ -10,20 +10,20 @@ const rm_1 = require("./rm");
10
10
  const rmall_1 = require("./rmall");
11
11
  exports.SITES_COMMAND = 'sites';
12
12
  const printSitesHelp = (logLevel) => {
13
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.SITES_COMMAND} <subcommand>`);
13
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} <subcommand>`);
14
14
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
15
15
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, 'Available subcommands:');
16
16
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
17
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.SITES_COMMAND} ${create_1.SITES_CREATE_SUBCOMMAND} <entry-point>`);
17
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} ${create_1.SITES_CREATE_SUBCOMMAND} <entry-point>`);
18
18
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Creates a new site based on a Remotion project'));
19
19
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
20
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.SITES_COMMAND} ${ls_1.SITES_LS_SUBCOMMAND}`);
20
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} ${ls_1.SITES_LS_SUBCOMMAND}`);
21
21
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Lists the sites currently deployed'));
22
22
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
23
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.SITES_COMMAND} ${rm_1.SITES_RM_COMMAND} <site-id>`);
23
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} ${rm_1.SITES_RM_COMMAND} <site-id>`);
24
24
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Remove a site from the S3 bucket.'));
25
25
  cli_1.CliInternals.Log.info({ indent: false, logLevel });
26
- cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${defaults_1.BINARY_NAME} ${exports.SITES_COMMAND} ${rmall_1.SITES_RMALL_COMMAND}`);
26
+ cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} ${rmall_1.SITES_RMALL_COMMAND}`);
27
27
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Remove all sites from the S3 bucket.'));
28
28
  };
29
29
  const sitesCommand = (args, remotionRoot, logLevel, providerSpecifics) => {