@remotion/cloudrun 4.0.536 → 4.0.538

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 (58) hide show
  1. package/dist/api/get-buckets.d.ts +2 -1
  2. package/dist/api/get-buckets.js +1 -4
  3. package/dist/api/get-regions.d.ts +2 -1
  4. package/dist/api/get-sites.d.ts +1 -1
  5. package/dist/api/helpers/parse-service-name.d.ts +4 -3
  6. package/dist/api/iam-validation/testPermissions.d.ts +1 -1
  7. package/dist/api/render-media-on-cloudrun.d.ts +4 -33
  8. package/dist/api/render-still-on-cloudrun.d.ts +5 -5
  9. package/dist/cli/commands/permissions.d.ts +2 -1
  10. package/dist/cli/commands/permissions.js +1 -1
  11. package/dist/cli/commands/regions.d.ts +2 -1
  12. package/dist/cli/commands/regions.js +1 -1
  13. package/dist/cli/commands/render/helpers/renderArgsCheck.d.ts +2 -1
  14. package/dist/cli/commands/render/index.d.ts +2 -1
  15. package/dist/cli/commands/render/index.js +1 -1
  16. package/dist/cli/commands/services/deploy.d.ts +2 -1
  17. package/dist/cli/commands/services/deploy.js +1 -1
  18. package/dist/cli/commands/services/index.d.ts +2 -1
  19. package/dist/cli/commands/services/index.js +1 -1
  20. package/dist/cli/commands/services/ls.d.ts +2 -1
  21. package/dist/cli/commands/services/ls.js +1 -1
  22. package/dist/cli/commands/services/rm.d.ts +2 -1
  23. package/dist/cli/commands/services/rm.js +1 -1
  24. package/dist/cli/commands/services/rmall.d.ts +2 -1
  25. package/dist/cli/commands/services/rmall.js +1 -1
  26. package/dist/cli/commands/sites/create.d.ts +2 -1
  27. package/dist/cli/commands/sites/create.js +1 -1
  28. package/dist/cli/commands/sites/index.d.ts +2 -1
  29. package/dist/cli/commands/sites/index.js +1 -1
  30. package/dist/cli/commands/sites/ls.d.ts +2 -1
  31. package/dist/cli/commands/sites/ls.js +1 -1
  32. package/dist/cli/commands/sites/rm.d.ts +2 -1
  33. package/dist/cli/commands/sites/rm.js +1 -1
  34. package/dist/cli/commands/sites/rmall.d.ts +2 -1
  35. package/dist/cli/commands/sites/rmall.js +1 -1
  36. package/dist/cli/commands/still.d.ts +2 -1
  37. package/dist/cli/commands/still.js +1 -1
  38. package/dist/cli/get-gcp-region.d.ts +2 -1
  39. package/dist/cli/help.d.ts +47 -46
  40. package/dist/cli/helpers/cloudrun-crash-logs.d.ts +3 -8
  41. package/dist/cli/helpers/make-console-url.d.ts +2 -1
  42. package/dist/cli/index.d.ts +2 -1
  43. package/dist/cli/log.d.ts +2 -16
  44. package/dist/client.js +10 -10
  45. package/dist/functions/helpers/get-composition-from-body.d.ts +2 -111
  46. package/dist/functions/helpers/get-download-behavior-setting.d.ts +2 -6
  47. package/dist/functions/index.d.ts +1 -1
  48. package/dist/functions/render-media-single-thread.d.ts +2 -111
  49. package/dist/functions/render-still-single-thread.d.ts +2 -111
  50. package/dist/index.d.ts +6 -38
  51. package/dist/internals.d.ts +2 -1
  52. package/dist/pricing/gcp-regions.d.ts +1 -1
  53. package/dist/shared/random-hash.d.ts +1 -1
  54. package/dist/shared/read-dir.d.ts +1 -1
  55. package/dist/shared/validate-bucketname.d.ts +2 -1
  56. package/dist/shared/validate-gcp-codec.d.ts +2 -2
  57. package/dist/shared/validate-region.d.ts +2 -1
  58. package/package.json +9 -9
@@ -1,9 +1,10 @@
1
1
  import type { Bucket } from '@google-cloud/storage';
2
+ import type { GcpRegion } from '../pricing/gcp-regions';
2
3
  /**
3
4
  * @description Get a list of all buckets that were created by Remotion.
4
5
  * @param params.region GCP region to check. If not passed, all regions will be checked.
5
6
  * @returns {Promise<Bucket[]>} List of buckets returned by GCP.
6
7
  */
7
- export declare const getRemotionStorageBuckets: (region: "all regions" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => Promise<{
8
+ export declare const getRemotionStorageBuckets: (region: GcpRegion | 'all regions') => Promise<{
8
9
  remotionBuckets: Bucket[];
9
10
  }>;
@@ -14,10 +14,7 @@ const getRemotionStorageBuckets = async (region) => {
14
14
  if (!buckets) {
15
15
  return { remotionBuckets: [] };
16
16
  }
17
- let remotionBuckets = buckets.filter((b) => {
18
- var _a;
19
- return (_a = b.name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX);
20
- });
17
+ let remotionBuckets = buckets.filter((b) => { var _a; return (_a = b.name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX); });
21
18
  if (region !== 'all regions') {
22
19
  remotionBuckets = buckets.filter((b) => {
23
20
  var _a;
@@ -1 +1,2 @@
1
- export declare const getRegions: () => readonly ("asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4")[];
1
+ import type { GcpRegion } from '../pricing/gcp-regions';
2
+ export declare const getRegions: () => readonly GcpRegion[];
@@ -14,4 +14,4 @@ export type GetSitesOutput = {
14
14
  sites: Site[];
15
15
  buckets: BucketWithLocation[];
16
16
  };
17
- export declare const getSites: (region: "all regions" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => Promise<GetSitesOutput>;
17
+ export declare const getSites: (region: GcpRegion | 'all regions') => Promise<GetSitesOutput>;
@@ -1,7 +1,8 @@
1
- export declare const getGcpParent: (region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => string;
2
- export declare const parseServiceName: (fullServiceName: string, region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => {
1
+ import type { GcpRegion } from '../../pricing/gcp-regions';
2
+ export declare const getGcpParent: (region: GcpRegion) => string;
3
+ export declare const parseServiceName: (fullServiceName: string, region: GcpRegion) => {
3
4
  serviceName: string;
4
5
  remotionVersion: string;
5
- region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4";
6
+ region: GcpRegion;
6
7
  consoleUrl: string;
7
8
  };
@@ -9,5 +9,5 @@ type TestPermissionsInput = {
9
9
  type TestPermissionsOutput = {
10
10
  results: TestResult[];
11
11
  };
12
- export declare const testPermissions: (params?: TestPermissionsInput | undefined) => Promise<TestPermissionsOutput>;
12
+ export declare const testPermissions: (params?: TestPermissionsInput) => Promise<TestPermissionsOutput>;
13
13
  export {};
@@ -3,7 +3,7 @@ import { BrowserSafeApis } from '@remotion/renderer/client';
3
3
  import type { _InternalTypes } from 'remotion';
4
4
  import type { z } from 'zod';
5
5
  import type { Privacy } from '../defaults';
6
- import type { CloudRunPayload, DownloadBehavior } from '../functions/helpers/payloads';
6
+ import type { CloudRunCrashResponse, CloudRunPayload, DownloadBehavior, RenderMediaOnCloudrunOutput } from '../functions/helpers/payloads';
7
7
  import type { GcpRegion } from '../pricing/gcp-regions';
8
8
  import type { CloudrunCodec } from '../shared/validate-gcp-codec';
9
9
  type InternalRenderMediaOnCloudrun = {
@@ -75,36 +75,7 @@ export type RenderMediaOnCloudrunInput = {
75
75
  renderIdOverride?: z.infer<typeof CloudRunPayload>['renderIdOverride'];
76
76
  renderStatusWebhook?: z.infer<typeof CloudRunPayload>['renderStatusWebhook'];
77
77
  } & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>>;
78
- export declare const internalRenderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, renderIdOverride, renderStatusWebhook, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, gopSize, disableSharedMemoryCapture, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, forceFps, forceDurationInFrames, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, downloadBehavior, metadata, mediaCacheSizeInBytes, sampleRate, }: InternalRenderMediaOnCloudrun) => Promise<{
79
- type: "success";
80
- publicUrl?: string | null | undefined;
81
- cloudStorageUri: string;
82
- size: number;
83
- bucketName: string;
84
- renderId: string;
85
- privacy: "project-private" | "public-read";
86
- } | {
87
- type: "crash";
88
- cloudRunEndpoint: string;
89
- message: "Service crashed without sending a response. Check the logs in GCP console.";
90
- requestStartTime: string;
91
- requestCrashTime: string;
92
- requestElapsedTimeInSeconds: number;
93
- }>;
94
- export declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, gopSize, disableSharedMemoryCapture, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, forceFps, forceDurationInFrames, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, metadata, renderIdOverride, renderStatusWebhook, offthreadVideoThreads, mediaCacheSizeInBytes, sampleRate, }: RenderMediaOnCloudrunInput) => Promise<{
95
- type: "success";
96
- publicUrl?: string | null | undefined;
97
- cloudStorageUri: string;
98
- size: number;
99
- bucketName: string;
100
- renderId: string;
101
- privacy: "project-private" | "public-read";
102
- } | {
103
- type: "crash";
104
- cloudRunEndpoint: string;
105
- message: "Service crashed without sending a response. Check the logs in GCP console.";
106
- requestStartTime: string;
107
- requestCrashTime: string;
108
- requestElapsedTimeInSeconds: number;
109
- }>;
78
+ declare const internalRenderMediaOnCloudrunRaw: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, renderIdOverride, renderStatusWebhook, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, gopSize, disableSharedMemoryCapture, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, forceFps, forceDurationInFrames, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, downloadBehavior, metadata, mediaCacheSizeInBytes, sampleRate, }: InternalRenderMediaOnCloudrun) => Promise<RenderMediaOnCloudrunOutput | CloudRunCrashResponse>;
79
+ export declare const internalRenderMediaOnCloudrun: typeof internalRenderMediaOnCloudrunRaw;
80
+ export declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, gopSize, disableSharedMemoryCapture, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, forceFps, forceDurationInFrames, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, metadata, renderIdOverride, renderStatusWebhook, offthreadVideoThreads, mediaCacheSizeInBytes, sampleRate, }: RenderMediaOnCloudrunInput) => Promise<RenderMediaOnCloudrunOutput | CloudRunCrashResponse>;
110
81
  export {};
@@ -31,6 +31,11 @@ type OptionalParameters = {
31
31
  } & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnCloudRun>;
32
32
  export type RenderStillOnCloudrunInput = Partial<OptionalParameters> & MandatoryParameters;
33
33
  export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{
34
+ type: "error";
35
+ message: string;
36
+ name: string;
37
+ stack: string;
38
+ } | {
34
39
  type: "success";
35
40
  publicUrl?: string | null | undefined;
36
41
  cloudStorageUri: string;
@@ -38,11 +43,6 @@ export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput
38
43
  bucketName: string;
39
44
  renderId: string;
40
45
  privacy: "project-private" | "public-read";
41
- } | {
42
- type: "error";
43
- message: string;
44
- name: string;
45
- stack: string;
46
46
  } | {
47
47
  type: "crash";
48
48
  cloudRunEndpoint: string;
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { PERMISSIONS_COMMAND } from './command-names';
2
- export declare const permissionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const permissionsCommand: (logLevel: LogLevel) => Promise<void>;
@@ -5,7 +5,7 @@ const cli_1 = require("@remotion/cli");
5
5
  const testPermissions_1 = require("../../api/iam-validation/testPermissions");
6
6
  const is_in_cloud_task_1 = require("../../functions/helpers/is-in-cloud-task");
7
7
  const log_1 = require("../log");
8
- const command_names_1 = require("./command-names");
8
+ var command_names_1 = require("./command-names");
9
9
  Object.defineProperty(exports, "PERMISSIONS_COMMAND", { enumerable: true, get: function () { return command_names_1.PERMISSIONS_COMMAND; } });
10
10
  const permissionsCommand = async (logLevel) => {
11
11
  try {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { REGIONS_COMMAND } from './command-names';
2
- export declare const regionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
3
+ export declare const regionsCommand: (logLevel: LogLevel) => void;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.regionsCommand = exports.REGIONS_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const regions_1 = require("../../regions");
6
- const command_names_1 = require("./command-names");
6
+ var command_names_1 = require("./command-names");
7
7
  Object.defineProperty(exports, "REGIONS_COMMAND", { enumerable: true, get: function () { return command_names_1.REGIONS_COMMAND; } });
8
8
  const regionsCommand = (logLevel) => {
9
9
  cli_1.CliInternals.Log.info({ indent: false, logLevel }, regions_1.GCP_REGIONS.join(' '));
@@ -1,4 +1,5 @@
1
- export declare const renderArgsCheck: (subcommand: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<{
1
+ import type { LogLevel } from '@remotion/renderer';
2
+ export declare const renderArgsCheck: (subcommand: string, args: string[], logLevel: LogLevel) => Promise<{
2
3
  serveUrl: string;
3
4
  cloudRunUrl: any;
4
5
  outName: string | undefined;
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { RENDER_COMMAND } from '../command-names';
2
- export declare const renderCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const renderCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
@@ -14,7 +14,7 @@ const cloudrun_crash_logs_1 = require("../../helpers/cloudrun-crash-logs");
14
14
  const log_1 = require("../../log");
15
15
  const command_names_1 = require("../command-names");
16
16
  const renderArgsCheck_1 = require("./helpers/renderArgsCheck");
17
- const command_names_2 = require("../command-names");
17
+ var command_names_2 = require("../command-names");
18
18
  Object.defineProperty(exports, "RENDER_COMMAND", { enumerable: true, get: function () { return command_names_2.RENDER_COMMAND; } });
19
19
  const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, gopSizeOption, disableSharedMemoryCaptureOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, numberOfGifLoopsOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, sampleRateOption, concurrencyOption, } = client_1.BrowserSafeApis.options;
20
20
  const renderCommand = async (args, remotionRoot, logLevel) => {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { CLOUD_RUN_DEPLOY_SUBCOMMAND } from '../command-names';
2
- export declare const cloudRunDeploySubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const cloudRunDeploySubcommand: (logLevel: LogLevel) => Promise<void>;
@@ -14,7 +14,7 @@ const get_gcp_region_1 = require("../../get-gcp-region");
14
14
  const make_console_url_1 = require("../../helpers/make-console-url");
15
15
  const quit_1 = require("../../helpers/quit");
16
16
  const log_1 = require("../../log");
17
- const command_names_1 = require("../command-names");
17
+ var command_names_1 = require("../command-names");
18
18
  Object.defineProperty(exports, "CLOUD_RUN_DEPLOY_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.CLOUD_RUN_DEPLOY_SUBCOMMAND; } });
19
19
  const cloudRunDeploySubcommand = async (logLevel) => {
20
20
  var _a, _b, _c, _d, _e, _f;
@@ -1,5 +1,6 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  import type { ServiceInfo } from '../../../api/get-service-info';
2
3
  export { SERVICES_COMMAND } from '../command-names';
3
4
  export declare const LEFT_COL = 20;
4
5
  export declare const displayServiceInfo: (service: ServiceInfo) => string;
5
- export declare const servicesCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void> | undefined;
6
+ export declare const servicesCommand: (args: string[], logLevel: LogLevel) => Promise<void> | undefined;
@@ -10,7 +10,7 @@ const deploy_1 = require("./deploy");
10
10
  const ls_1 = require("./ls");
11
11
  const rm_1 = require("./rm");
12
12
  const rmall_1 = require("./rmall");
13
- const command_names_2 = require("../command-names");
13
+ var command_names_2 = require("../command-names");
14
14
  Object.defineProperty(exports, "SERVICES_COMMAND", { enumerable: true, get: function () { return command_names_2.SERVICES_COMMAND; } });
15
15
  exports.LEFT_COL = 20;
16
16
  const displayServiceInfo = (service) => {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SERVICES_LS_SUBCOMMAND } from '../command-names';
2
- export declare const servicesLsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const servicesLsCommand: (logLevel: LogLevel) => Promise<void>;
@@ -6,7 +6,7 @@ const _1 = require(".");
6
6
  const get_services_1 = require("../../../api/get-services");
7
7
  const get_gcp_region_1 = require("../../get-gcp-region");
8
8
  const log_1 = require("../../log");
9
- const command_names_1 = require("../command-names");
9
+ var command_names_1 = require("../command-names");
10
10
  Object.defineProperty(exports, "SERVICES_LS_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SERVICES_LS_SUBCOMMAND; } });
11
11
  const servicesLsCommand = async (logLevel) => {
12
12
  const region = (0, get_gcp_region_1.getGcpRegion)();
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SERVICES_RM_SUBCOMMAND } from '../command-names';
2
- export declare const servicesRmCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const servicesRmCommand: (args: string[], logLevel: LogLevel) => Promise<void>;
@@ -11,7 +11,7 @@ const quit_1 = require("../../helpers/quit");
11
11
  const log_1 = require("../../log");
12
12
  const index_1 = require("./index");
13
13
  const ls_1 = require("./ls");
14
- const command_names_1 = require("../command-names");
14
+ var command_names_1 = require("../command-names");
15
15
  Object.defineProperty(exports, "SERVICES_RM_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SERVICES_RM_SUBCOMMAND; } });
16
16
  const servicesRmCommand = async (args, logLevel) => {
17
17
  if (args.length === 0) {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SERVICES_RMALL_SUBCOMMAND } from '../command-names';
2
- export declare const servicesRmallCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const servicesRmallCommand: (logLevel: LogLevel) => Promise<void>;
@@ -8,7 +8,7 @@ const get_gcp_region_1 = require("../../get-gcp-region");
8
8
  const confirm_1 = require("../../helpers/confirm");
9
9
  const log_1 = require("../../log");
10
10
  const index_1 = require("./index");
11
- const command_names_1 = require("../command-names");
11
+ var command_names_1 = require("../command-names");
12
12
  Object.defineProperty(exports, "SERVICES_RMALL_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SERVICES_RMALL_SUBCOMMAND; } });
13
13
  const servicesRmallCommand = async (logLevel) => {
14
14
  const region = (0, get_gcp_region_1.getGcpRegion)();
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SITES_CREATE_SUBCOMMAND } from '../command-names';
2
- export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
@@ -17,7 +17,7 @@ const progress_bar_1 = require("../../helpers/progress-bar");
17
17
  const quit_1 = require("../../helpers/quit");
18
18
  const log_1 = require("../../log");
19
19
  const { disableGitSourceOption, askAIOption, keyboardShortcutsOption, rspackOption, } = client_1.BrowserSafeApis.options;
20
- const command_names_1 = require("../command-names");
20
+ var command_names_1 = require("../command-names");
21
21
  Object.defineProperty(exports, "SITES_CREATE_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SITES_CREATE_SUBCOMMAND; } });
22
22
  const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
23
23
  var _a, _b, _c;
@@ -1,4 +1,5 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  import type { Site } from '../../../api/get-sites';
2
3
  export { SITES_COMMAND } from '../command-names';
3
4
  export declare const displaySiteInfo: (site: Site) => string;
4
- export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean> | undefined;
5
+ export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void | boolean> | undefined;
@@ -10,7 +10,7 @@ const create_1 = require("./create");
10
10
  const ls_1 = require("./ls");
11
11
  const rm_1 = require("./rm");
12
12
  const rmall_1 = require("./rmall");
13
- const command_names_2 = require("../command-names");
13
+ var command_names_2 = require("../command-names");
14
14
  Object.defineProperty(exports, "SITES_COMMAND", { enumerable: true, get: function () { return command_names_2.SITES_COMMAND; } });
15
15
  const displaySiteInfo = (site) => {
16
16
  return [
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SITES_LS_SUBCOMMAND } from '../command-names';
2
- export declare const sitesLsSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean>;
3
+ export declare const sitesLsSubcommand: (logLevel: LogLevel) => Promise<void | boolean>;
@@ -7,7 +7,7 @@ const get_sites_1 = require("../../../api/get-sites");
7
7
  const args_1 = require("../../args");
8
8
  const get_gcp_region_1 = require("../../get-gcp-region");
9
9
  const log_1 = require("../../log");
10
- const command_names_1 = require("../command-names");
10
+ var command_names_1 = require("../command-names");
11
11
  Object.defineProperty(exports, "SITES_LS_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SITES_LS_SUBCOMMAND; } });
12
12
  const sitesLsSubcommand = async (logLevel) => {
13
13
  // check if --allRegions flag is provided
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SITES_RM_COMMAND } from '../command-names';
2
- export declare const sitesRmSubcommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const sitesRmSubcommand: (args: string[], logLevel: LogLevel) => Promise<void>;
@@ -11,7 +11,7 @@ const confirm_1 = require("../../helpers/confirm");
11
11
  const quit_1 = require("../../helpers/quit");
12
12
  const log_1 = require("../../log");
13
13
  const ls_1 = require("./ls");
14
- const command_names_1 = require("../command-names");
14
+ var command_names_1 = require("../command-names");
15
15
  Object.defineProperty(exports, "SITES_RM_COMMAND", { enumerable: true, get: function () { return command_names_1.SITES_RM_COMMAND; } });
16
16
  const sitesRmSubcommand = async (args, logLevel) => {
17
17
  if (args.length === 0) {
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { SITES_RMALL_COMMAND } from '../command-names';
2
- export declare const sitesRmallSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const sitesRmallSubcommand: (logLevel: LogLevel) => Promise<void>;
@@ -8,7 +8,7 @@ const args_1 = require("../../args");
8
8
  const get_gcp_region_1 = require("../../get-gcp-region");
9
9
  const confirm_1 = require("../../helpers/confirm");
10
10
  const log_1 = require("../../log");
11
- const command_names_1 = require("../command-names");
11
+ var command_names_1 = require("../command-names");
12
12
  Object.defineProperty(exports, "SITES_RMALL_COMMAND", { enumerable: true, get: function () { return command_names_1.SITES_RMALL_COMMAND; } });
13
13
  const sitesRmallSubcommand = async (logLevel) => {
14
14
  const allRegions = args_1.parsedCloudrunCli['all-regions'];
@@ -1,2 +1,3 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export { STILL_COMMAND } from './command-names';
2
- export declare const stillCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
3
+ export declare const stillCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
@@ -13,7 +13,7 @@ const cloudrun_crash_logs_1 = require("../helpers/cloudrun-crash-logs");
13
13
  const log_1 = require("../log");
14
14
  const command_names_1 = require("./command-names");
15
15
  const renderArgsCheck_1 = require("./render/helpers/renderArgsCheck");
16
- const command_names_2 = require("./command-names");
16
+ var command_names_2 = require("./command-names");
17
17
  Object.defineProperty(exports, "STILL_COMMAND", { enumerable: true, get: function () { return command_names_2.STILL_COMMAND; } });
18
18
  const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = client_1.BrowserSafeApis.options;
19
19
  const stillCommand = async (args, remotionRoot, logLevel) => {
@@ -1 +1,2 @@
1
- export declare const getGcpRegion: () => "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4";
1
+ import type { GcpRegion } from '../pricing/gcp-regions';
2
+ export declare const getGcpRegion: () => GcpRegion;
@@ -1,14 +1,15 @@
1
+ import type { LogLevel } from '@remotion/renderer';
1
2
  export declare const cloudrunCommandHelp: readonly [{
2
3
  readonly path: readonly [];
3
- readonly args: " <command>";
4
- readonly description: "Control Remotion Cloud Run.";
5
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli";
4
+ readonly args: ' <command>';
5
+ readonly description: 'Control Remotion Cloud Run.';
6
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli';
6
7
  readonly options: readonly [];
7
8
  }, {
8
9
  readonly path: readonly ["render"];
9
- readonly args: " <serve-url|site-name> [<composition-id>] [<output-location>]";
10
- readonly description: "Render Remotion media on GCP Cloud Run.";
11
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/render";
10
+ readonly args: ' <serve-url|site-name> [<composition-id>] [<output-location>]';
11
+ readonly description: 'Render Remotion media on GCP Cloud Run.';
12
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/render';
12
13
  readonly options: {
13
14
  flag: string;
14
15
  description: string;
@@ -16,9 +17,9 @@ export declare const cloudrunCommandHelp: readonly [{
16
17
  }[];
17
18
  }, {
18
19
  readonly path: readonly ["still"];
19
- readonly args: " <serve-url|site-name> [<still-id>] [<output-location>]";
20
- readonly description: "Render a Remotion still on GCP Cloud Run.";
21
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/still";
20
+ readonly args: ' <serve-url|site-name> [<still-id>] [<output-location>]';
21
+ readonly description: 'Render a Remotion still on GCP Cloud Run.';
22
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/still';
22
23
  readonly options: {
23
24
  flag: string;
24
25
  description: string;
@@ -26,15 +27,15 @@ export declare const cloudrunCommandHelp: readonly [{
26
27
  }[];
27
28
  }, {
28
29
  readonly path: readonly ["services"];
29
- readonly args: " <command>";
30
- readonly description: "Deploy and manage Cloud Run services on GCP.";
31
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/services";
30
+ readonly args: ' <command>';
31
+ readonly description: 'Deploy and manage Cloud Run services on GCP.';
32
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services';
32
33
  readonly options: readonly [];
33
34
  }, {
34
35
  readonly path: readonly ["services", "deploy"];
35
- readonly args: "";
36
- readonly description: "Deploy a new Cloud Run service.";
37
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/services/deploy";
36
+ readonly args: '';
37
+ readonly description: 'Deploy a new Cloud Run service.';
38
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/deploy';
38
39
  readonly options: {
39
40
  flag: string;
40
41
  description: string;
@@ -42,9 +43,9 @@ export declare const cloudrunCommandHelp: readonly [{
42
43
  }[];
43
44
  }, {
44
45
  readonly path: readonly ["services", "ls"];
45
- readonly args: "";
46
- readonly description: "List deployed Cloud Run services.";
47
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/services/ls";
46
+ readonly args: '';
47
+ readonly description: 'List deployed Cloud Run services.';
48
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/ls';
48
49
  readonly options: {
49
50
  flag: string;
50
51
  description: string;
@@ -52,9 +53,9 @@ export declare const cloudrunCommandHelp: readonly [{
52
53
  }[];
53
54
  }, {
54
55
  readonly path: readonly ["services", "rm"];
55
- readonly args: " <service-name...>";
56
- readonly description: "Delete one or more Cloud Run services.";
57
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/services/rm";
56
+ readonly args: ' <service-name...>';
57
+ readonly description: 'Delete one or more Cloud Run services.';
58
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/rm';
58
59
  readonly options: {
59
60
  flag: string;
60
61
  description: string;
@@ -62,9 +63,9 @@ export declare const cloudrunCommandHelp: readonly [{
62
63
  }[];
63
64
  }, {
64
65
  readonly path: readonly ["services", "rmall"];
65
- readonly args: "";
66
- readonly description: "Delete all Cloud Run services in the selected region.";
67
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/services/rmall";
66
+ readonly args: '';
67
+ readonly description: 'Delete all Cloud Run services in the selected region.';
68
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/rmall';
68
69
  readonly options: {
69
70
  flag: string;
70
71
  description: string;
@@ -72,15 +73,15 @@ export declare const cloudrunCommandHelp: readonly [{
72
73
  }[];
73
74
  }, {
74
75
  readonly path: readonly ["sites"];
75
- readonly args: " <command>";
76
- readonly description: "Deploy and manage Remotion projects.";
77
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/sites";
76
+ readonly args: ' <command>';
77
+ readonly description: 'Deploy and manage Remotion projects.';
78
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites';
78
79
  readonly options: readonly [];
79
80
  }, {
80
81
  readonly path: readonly ["sites", "create"];
81
- readonly args: " <entry-point>?";
82
- readonly description: "Bundle and upload a Remotion project.";
83
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/sites/create";
82
+ readonly args: ' <entry-point>?';
83
+ readonly description: 'Bundle and upload a Remotion project.';
84
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/create';
84
85
  readonly options: {
85
86
  flag: string;
86
87
  description: string;
@@ -88,9 +89,9 @@ export declare const cloudrunCommandHelp: readonly [{
88
89
  }[];
89
90
  }, {
90
91
  readonly path: readonly ["sites", "ls"];
91
- readonly args: "";
92
- readonly description: "List deployed Remotion projects.";
93
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/sites/ls";
92
+ readonly args: '';
93
+ readonly description: 'List deployed Remotion projects.';
94
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/ls';
94
95
  readonly options: {
95
96
  flag: string;
96
97
  description: string;
@@ -98,9 +99,9 @@ export declare const cloudrunCommandHelp: readonly [{
98
99
  }[];
99
100
  }, {
100
101
  readonly path: readonly ["sites", "rm"];
101
- readonly args: " <site-name...>";
102
- readonly description: "Delete one or more deployed Remotion projects.";
103
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/sites/rm";
102
+ readonly args: ' <site-name...>';
103
+ readonly description: 'Delete one or more deployed Remotion projects.';
104
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/rm';
104
105
  readonly options: {
105
106
  flag: string;
106
107
  description: string;
@@ -108,9 +109,9 @@ export declare const cloudrunCommandHelp: readonly [{
108
109
  }[];
109
110
  }, {
110
111
  readonly path: readonly ["sites", "rmall"];
111
- readonly args: "";
112
- readonly description: "Delete all deployed Remotion projects.";
113
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/sites/rmall";
112
+ readonly args: '';
113
+ readonly description: 'Delete all deployed Remotion projects.';
114
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/rmall';
114
115
  readonly options: {
115
116
  flag: string;
116
117
  description: string;
@@ -118,16 +119,16 @@ export declare const cloudrunCommandHelp: readonly [{
118
119
  }[];
119
120
  }, {
120
121
  readonly path: readonly ["permissions"];
121
- readonly args: "";
122
- readonly description: "View and validate required GCP permissions.";
123
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/permissions";
122
+ readonly args: '';
123
+ readonly description: 'View and validate required GCP permissions.';
124
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/permissions';
124
125
  readonly options: readonly [];
125
126
  }, {
126
127
  readonly path: readonly ["regions"];
127
- readonly args: "";
128
- readonly description: "Show the supported GCP regions.";
129
- readonly documentation: "https://www.remotion.dev/docs/cloudrun/cli/regions";
128
+ readonly args: '';
129
+ readonly description: 'Show the supported GCP regions.';
130
+ readonly documentation: 'https://www.remotion.dev/docs/cloudrun/cli/regions';
130
131
  readonly options: readonly [];
131
132
  }];
132
133
  export declare const getCloudrunHelp: (selectedPath: readonly string[]) => string[];
133
- export declare const printHelp: (selectedPath: readonly string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
134
+ export declare const printHelp: (selectedPath: readonly string[], logLevel: LogLevel) => void;
@@ -1,8 +1,3 @@
1
- export declare const displayCrashLogs: (res: {
2
- type: "crash";
3
- cloudRunEndpoint: string;
4
- message: "Service crashed without sending a response. Check the logs in GCP console.";
5
- requestStartTime: string;
6
- requestCrashTime: string;
7
- requestElapsedTimeInSeconds: number;
8
- }, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
1
+ import type { LogLevel } from '@remotion/renderer';
2
+ import type { CloudRunCrashResponse } from '../../functions/helpers/payloads';
3
+ export declare const displayCrashLogs: (res: CloudRunCrashResponse, logLevel: LogLevel) => Promise<void>;