@remotion/cloudrun 4.0.425 → 4.0.427

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.
@@ -16,6 +16,7 @@ type Options = {
16
16
  keyboardShortcutsEnabled?: boolean;
17
17
  askAIEnabled?: boolean;
18
18
  experimentalClientSideRenderingEnabled?: boolean;
19
+ rspack?: boolean;
19
20
  };
20
21
  type OptionalParameters = {
21
22
  siteName: string;
@@ -13,7 +13,7 @@ const validate_site_name_1 = require("../shared/validate-site-name");
13
13
  const get_cloud_storage_client_1 = require("./helpers/get-cloud-storage-client");
14
14
  const upload_dir_1 = require("./upload-dir");
15
15
  const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options, privacy, }) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
17
17
  (0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: true });
18
18
  (0, validate_site_name_1.validateSiteName)(siteName);
19
19
  const cloudStorageClient = (0, get_cloud_storage_client_1.getCloudStorageClient)();
@@ -47,6 +47,7 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
47
47
  renderDefaults: null,
48
48
  askAIEnabled: (_j = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _j !== void 0 ? _j : true,
49
49
  keyboardShortcutsEnabled: (_k = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _k !== void 0 ? _k : true,
50
+ rspack: (_l = options === null || options === void 0 ? void 0 : options.rspack) !== null && _l !== void 0 ? _l : false,
50
51
  }),
51
52
  ]);
52
53
  const { toDelete, toUpload, existingCount } = await (0, get_storage_operations_1.getStorageDiffOperations)({
@@ -58,7 +59,7 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
58
59
  (0, upload_dir_1.uploadDir)({
59
60
  bucket: bucketName,
60
61
  localDir: bundled,
61
- onProgress: (_l = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _l !== void 0 ? _l : (() => undefined),
62
+ onProgress: (_m = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _m !== void 0 ? _m : (() => undefined),
62
63
  keyPrefix: subFolder,
63
64
  toUpload,
64
65
  privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
@@ -76,13 +76,6 @@ export type RenderMediaOnCloudrunInput = {
76
76
  renderStatusWebhook?: z.infer<typeof CloudRunPayload>['renderStatusWebhook'];
77
77
  } & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>>;
78
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, 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, }: InternalRenderMediaOnCloudrun) => Promise<{
79
- type: "crash";
80
- cloudRunEndpoint: string;
81
- message: "Service crashed without sending a response. Check the logs in GCP console.";
82
- requestStartTime: string;
83
- requestCrashTime: string;
84
- requestElapsedTimeInSeconds: number;
85
- } | {
86
79
  type: "success";
87
80
  publicUrl?: string | null | undefined;
88
81
  cloudStorageUri: string;
@@ -90,15 +83,15 @@ export declare const internalRenderMediaOnCloudrun: ({ cloudRunUrl, serviceName,
90
83
  bucketName: string;
91
84
  renderId: string;
92
85
  privacy: "project-private" | "public-read";
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, 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, }: RenderMediaOnCloudrunInput) => Promise<{
86
+ } | {
95
87
  type: "crash";
96
88
  cloudRunEndpoint: string;
97
89
  message: "Service crashed without sending a response. Check the logs in GCP console.";
98
90
  requestStartTime: string;
99
91
  requestCrashTime: string;
100
92
  requestElapsedTimeInSeconds: number;
101
- } | {
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, 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, }: RenderMediaOnCloudrunInput) => Promise<{
102
95
  type: "success";
103
96
  publicUrl?: string | null | undefined;
104
97
  cloudStorageUri: string;
@@ -106,5 +99,12 @@ export declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region,
106
99
  bucketName: string;
107
100
  renderId: string;
108
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
109
  }>;
110
110
  export {};
@@ -31,10 +31,12 @@ 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;
34
+ type: "crash";
35
+ cloudRunEndpoint: string;
36
+ message: "Service crashed without sending a response. Check the logs in GCP console.";
37
+ requestStartTime: string;
38
+ requestCrashTime: string;
39
+ requestElapsedTimeInSeconds: number;
38
40
  } | {
39
41
  type: "success";
40
42
  publicUrl?: string | null | undefined;
@@ -44,11 +46,9 @@ export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput
44
46
  renderId: string;
45
47
  privacy: "project-private" | "public-read";
46
48
  } | {
47
- type: "crash";
48
- cloudRunEndpoint: string;
49
- message: "Service crashed without sending a response. Check the logs in GCP console.";
50
- requestStartTime: string;
51
- requestCrashTime: string;
52
- requestElapsedTimeInSeconds: number;
49
+ type: "error";
50
+ message: string;
51
+ name: string;
52
+ stack: string;
53
53
  }>;
54
54
  export {};
package/dist/cli/args.js CHANGED
@@ -2,8 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.forceFlagProvided = exports.parsedCloudrunCli = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
+ const CloudrunBooleanFlags = [
6
+ ...cli_1.CliInternals.BooleanFlags,
7
+ 'force',
8
+ 'yes',
9
+ 'y',
10
+ 'onlyAllocateCpuDuringRequestProcessing',
11
+ ];
5
12
  exports.parsedCloudrunCli = cli_1.CliInternals.minimist(process.argv.slice(2), {
6
- boolean: cli_1.CliInternals.BooleanFlags,
13
+ boolean: CloudrunBooleanFlags,
7
14
  string: ['_'],
8
15
  });
9
16
  exports.forceFlagProvided = exports.parsedCloudrunCli.f ||
@@ -14,7 +14,7 @@ const cloudrun_crash_logs_1 = require("../../helpers/cloudrun-crash-logs");
14
14
  const log_1 = require("../../log");
15
15
  const renderArgsCheck_1 = require("./helpers/renderArgsCheck");
16
16
  exports.RENDER_COMMAND = 'render';
17
- const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, numberOfGifLoopsOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
17
+ const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, 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, } = client_1.BrowserSafeApis.options;
18
18
  const renderCommand = async (args, remotionRoot, logLevel) => {
19
19
  var _a, _b, _c, _d;
20
20
  const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.RENDER_COMMAND, args, logLevel);
@@ -33,11 +33,23 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
33
33
  const audioCodec = client_1.BrowserSafeApis.options.audioCodecOption.getValue({
34
34
  commandLine: cli_1.CliInternals.parsedCli,
35
35
  }).value;
36
- const { envVariables, frameRange, inputProps, height, width, fps, durationInFrames, } = cli_1.CliInternals.getCliOptions({
36
+ const { envVariables, frameRange, inputProps } = cli_1.CliInternals.getCliOptions({
37
37
  isStill: false,
38
38
  logLevel,
39
39
  indent: false,
40
40
  });
41
+ const height = overrideHeightOption.getValue({
42
+ commandLine: cli_1.CliInternals.parsedCli,
43
+ }).value;
44
+ const width = overrideWidthOption.getValue({
45
+ commandLine: cli_1.CliInternals.parsedCli,
46
+ }).value;
47
+ const fps = overrideFpsOption.getValue({
48
+ commandLine: cli_1.CliInternals.parsedCli,
49
+ }).value;
50
+ const durationInFrames = overrideDurationOption.getValue({
51
+ commandLine: cli_1.CliInternals.parsedCli,
52
+ }).value;
41
53
  const pixelFormat = pixelFormatOption.getValue({
42
54
  commandLine: cli_1.CliInternals.parsedCli,
43
55
  }).value;
@@ -129,7 +129,9 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
129
129
  };
130
130
  updateProgress(false);
131
131
  },
132
- enableCaching: config_1.ConfigInternals.getWebpackCaching(),
132
+ enableCaching: client_1.BrowserSafeApis.options.bundleCacheOption.getValue({
133
+ commandLine: cli_1.CliInternals.parsedCli,
134
+ }).value,
133
135
  webpackOverride: (_b = config_1.ConfigInternals.getWebpackOverrideFn()) !== null && _b !== void 0 ? _b : ((f) => f),
134
136
  gitSource,
135
137
  bypassBucketNameValidation: true,
@@ -13,14 +13,26 @@ const cloudrun_crash_logs_1 = require("../helpers/cloudrun-crash-logs");
13
13
  const log_1 = require("../log");
14
14
  const renderArgsCheck_1 = require("./render/helpers/renderArgsCheck");
15
15
  exports.STILL_COMMAND = 'still';
16
- const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
16
+ const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = client_1.BrowserSafeApis.options;
17
17
  const stillCommand = async (args, remotionRoot, logLevel) => {
18
18
  const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.STILL_COMMAND, args, logLevel);
19
- const { envVariables, inputProps, stillFrame, height, width, fps, durationInFrames, } = cli_1.CliInternals.getCliOptions({
20
- isStill: false,
19
+ const { envVariables, inputProps, stillFrame } = cli_1.CliInternals.getCliOptions({
20
+ isStill: true,
21
21
  logLevel,
22
22
  indent: false,
23
23
  });
24
+ const height = overrideHeightOption.getValue({
25
+ commandLine: cli_1.CliInternals.parsedCli,
26
+ }).value;
27
+ const width = overrideWidthOption.getValue({
28
+ commandLine: cli_1.CliInternals.parsedCli,
29
+ }).value;
30
+ const fps = overrideFpsOption.getValue({
31
+ commandLine: cli_1.CliInternals.parsedCli,
32
+ }).value;
33
+ const durationInFrames = overrideDurationOption.getValue({
34
+ commandLine: cli_1.CliInternals.parsedCli,
35
+ }).value;
24
36
  const browserExecutable = browserExecutableOption.getValue({
25
37
  commandLine: cli_1.CliInternals.parsedCli,
26
38
  }).value;
@@ -22,7 +22,7 @@ export declare const getCompositionFromBody: (body: {
22
22
  x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
23
23
  everyNthFrame: number;
24
24
  numberOfGifLoops: number | null;
25
- frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
25
+ frameRange: number | [number, number | null] | null;
26
26
  envVariables: Record<string, string>;
27
27
  chromiumOptions?: {
28
28
  ignoreCertificateErrors?: boolean | undefined;
@@ -57,7 +57,7 @@ export declare const getCompositionFromBody: (body: {
57
57
  renderStatusWebhook?: {
58
58
  url: string;
59
59
  headers: Record<string, string>;
60
- data?: any;
60
+ data: any;
61
61
  webhookProgressInterval?: number | null | undefined;
62
62
  } | null | undefined;
63
63
  } | {
@@ -102,7 +102,7 @@ export declare const getCompositionFromBody: (body: {
102
102
  renderStatusWebhook?: {
103
103
  url: string;
104
104
  headers: Record<string, string>;
105
- data?: any;
105
+ data: any;
106
106
  webhookProgressInterval?: number | null | undefined;
107
107
  } | null | undefined;
108
108
  }) => Promise<import("remotion").VideoConfig>;
@@ -1,22 +1,12 @@
1
1
  import { z } from 'zod';
2
- declare const downloadBehavior: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2
+ declare const downloadBehavior: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
3
  type: z.ZodLiteral<"play-in-browser">;
4
- }, "strip", z.ZodTypeAny, {
5
- type: "play-in-browser";
6
- }, {
7
- type: "play-in-browser";
8
- }>, z.ZodObject<{
4
+ }, z.core.$strip>, z.ZodObject<{
9
5
  type: z.ZodLiteral<"download">;
10
6
  fileName: z.ZodNullable<z.ZodString>;
11
- }, "strip", z.ZodTypeAny, {
12
- type: "download";
13
- fileName: string | null;
14
- }, {
15
- type: "download";
16
- fileName: string | null;
17
- }>]>;
7
+ }, z.core.$strip>], "type">;
18
8
  export type DownloadBehavior = z.infer<typeof downloadBehavior>;
19
- export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9
+ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
20
10
  type: z.ZodLiteral<"media">;
21
11
  serveUrl: z.ZodString;
22
12
  composition: z.ZodString;
@@ -24,20 +14,68 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
24
14
  forceWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
25
15
  forceFps: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
26
16
  forceDurationInFrames: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
27
- codec: z.ZodEnum<["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"]>;
17
+ codec: z.ZodEnum<{
18
+ aac: "aac";
19
+ gif: "gif";
20
+ h264: "h264";
21
+ "h264-mkv": "h264-mkv";
22
+ "h264-ts": "h264-ts";
23
+ h265: "h265";
24
+ mp3: "mp3";
25
+ prores: "prores";
26
+ vp8: "vp8";
27
+ vp9: "vp9";
28
+ wav: "wav";
29
+ }>;
28
30
  serializedInputPropsWithCustomSchema: z.ZodString;
29
31
  jpegQuality: z.ZodNullable<z.ZodNumber>;
30
- audioCodec: z.ZodNullable<z.ZodEnum<["pcm-16", "aac", "mp3", "opus"]>>;
32
+ audioCodec: z.ZodNullable<z.ZodEnum<{
33
+ aac: "aac";
34
+ mp3: "mp3";
35
+ opus: "opus";
36
+ "pcm-16": "pcm-16";
37
+ }>>;
31
38
  audioBitrate: z.ZodNullable<z.ZodString>;
32
39
  videoBitrate: z.ZodNullable<z.ZodString>;
33
40
  encodingMaxRate: z.ZodNullable<z.ZodString>;
34
41
  encodingBufferSize: z.ZodNullable<z.ZodString>;
35
42
  crf: z.ZodNullable<z.ZodNumber>;
36
- pixelFormat: z.ZodNullable<z.ZodEnum<["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"]>>;
37
- imageFormat: z.ZodNullable<z.ZodEnum<["png", "jpeg", "none"]>>;
43
+ pixelFormat: z.ZodNullable<z.ZodEnum<{
44
+ yuv420p: "yuv420p";
45
+ yuv420p10le: "yuv420p10le";
46
+ yuv422p: "yuv422p";
47
+ yuv422p10le: "yuv422p10le";
48
+ yuv444p: "yuv444p";
49
+ yuv444p10le: "yuv444p10le";
50
+ yuva420p: "yuva420p";
51
+ yuva444p10le: "yuva444p10le";
52
+ }>>;
53
+ imageFormat: z.ZodNullable<z.ZodEnum<{
54
+ jpeg: "jpeg";
55
+ none: "none";
56
+ png: "png";
57
+ }>>;
38
58
  scale: z.ZodNumber;
39
- proResProfile: z.ZodNullable<z.ZodEnum<["4444-xq", "4444", "hq", "standard", "light", "proxy"]>>;
40
- x264Preset: z.ZodNullable<z.ZodEnum<["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"]>>;
59
+ proResProfile: z.ZodNullable<z.ZodEnum<{
60
+ 4444: "4444";
61
+ "4444-xq": "4444-xq";
62
+ hq: "hq";
63
+ light: "light";
64
+ proxy: "proxy";
65
+ standard: "standard";
66
+ }>>;
67
+ x264Preset: z.ZodNullable<z.ZodEnum<{
68
+ fast: "fast";
69
+ faster: "faster";
70
+ medium: "medium";
71
+ placebo: "placebo";
72
+ slow: "slow";
73
+ slower: "slower";
74
+ superfast: "superfast";
75
+ ultrafast: "ultrafast";
76
+ veryfast: "veryfast";
77
+ veryslow: "veryslow";
78
+ }>>;
41
79
  everyNthFrame: z.ZodNumber;
42
80
  numberOfGifLoops: z.ZodNullable<z.ZodNumber>;
43
81
  frameRange: z.ZodNullable<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNullable<z.ZodNumber>], null>, z.ZodNumber]>>;
@@ -45,30 +83,33 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
45
83
  chromiumOptions: z.ZodOptional<z.ZodObject<{
46
84
  ignoreCertificateErrors: z.ZodOptional<z.ZodBoolean>;
47
85
  disableWebSecurity: z.ZodOptional<z.ZodBoolean>;
48
- gl: z.ZodNullable<z.ZodOptional<z.ZodEnum<["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"]>>>;
86
+ gl: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
87
+ angle: "angle";
88
+ "angle-egl": "angle-egl";
89
+ egl: "egl";
90
+ swangle: "swangle";
91
+ swiftshader: "swiftshader";
92
+ vulkan: "vulkan";
93
+ }>>>;
49
94
  headless: z.ZodOptional<z.ZodBoolean>;
50
95
  userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
96
  darkMode: z.ZodOptional<z.ZodBoolean>;
52
- }, "strip", z.ZodTypeAny, {
53
- ignoreCertificateErrors?: boolean | undefined;
54
- disableWebSecurity?: boolean | undefined;
55
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
56
- headless?: boolean | undefined;
57
- userAgent?: string | null | undefined;
58
- darkMode?: boolean | undefined;
59
- }, {
60
- ignoreCertificateErrors?: boolean | undefined;
61
- disableWebSecurity?: boolean | undefined;
62
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
63
- headless?: boolean | undefined;
64
- userAgent?: string | null | undefined;
65
- darkMode?: boolean | undefined;
66
- }>>;
97
+ }, z.core.$strip>>;
67
98
  muted: z.ZodBoolean;
68
99
  outputBucket: z.ZodString;
69
100
  outName: z.ZodOptional<z.ZodString>;
70
- privacy: z.ZodOptional<z.ZodEnum<["public", "private", "no-acl"]>>;
71
- logLevel: z.ZodEnum<["trace", "verbose", "info", "warn", "error"]>;
101
+ privacy: z.ZodOptional<z.ZodEnum<{
102
+ "no-acl": "no-acl";
103
+ private: "private";
104
+ public: "public";
105
+ }>>;
106
+ logLevel: z.ZodEnum<{
107
+ error: "error";
108
+ info: "info";
109
+ trace: "trace";
110
+ verbose: "verbose";
111
+ warn: "warn";
112
+ }>;
72
113
  delayRenderTimeoutInMilliseconds: z.ZodNullable<z.ZodNumber>;
73
114
  concurrency: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
74
115
  enforceAudioTrack: z.ZodBoolean;
@@ -76,24 +117,19 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
76
117
  offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
77
118
  mediaCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
78
119
  offthreadVideoThreads: z.ZodNullable<z.ZodNumber>;
79
- colorSpace: z.ZodNullable<z.ZodEnum<["default", "bt601", "bt709", "bt2020-ncl"]>>;
120
+ colorSpace: z.ZodNullable<z.ZodEnum<{
121
+ "bt2020-ncl": "bt2020-ncl";
122
+ bt601: "bt601";
123
+ bt709: "bt709";
124
+ default: "default";
125
+ }>>;
80
126
  clientVersion: z.ZodString;
81
- downloadBehavior: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
127
+ downloadBehavior: z.ZodDiscriminatedUnion<[z.ZodObject<{
82
128
  type: z.ZodLiteral<"play-in-browser">;
83
- }, "strip", z.ZodTypeAny, {
84
- type: "play-in-browser";
85
- }, {
86
- type: "play-in-browser";
87
- }>, z.ZodObject<{
129
+ }, z.core.$strip>, z.ZodObject<{
88
130
  type: z.ZodLiteral<"download">;
89
131
  fileName: z.ZodNullable<z.ZodString>;
90
- }, "strip", z.ZodTypeAny, {
91
- type: "download";
92
- fileName: string | null;
93
- }, {
94
- type: "download";
95
- fileName: string | null;
96
- }>]>;
132
+ }, z.core.$strip>], "type">;
97
133
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
98
134
  renderIdOverride: z.ZodNullable<z.ZodOptional<z.ZodString>>;
99
135
  renderStatusWebhook: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -101,142 +137,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
101
137
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
102
138
  data: z.ZodAny;
103
139
  webhookProgressInterval: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
104
- }, "strip", z.ZodTypeAny, {
105
- url: string;
106
- headers: Record<string, string>;
107
- data?: any;
108
- webhookProgressInterval?: number | null | undefined;
109
- }, {
110
- url: string;
111
- headers: Record<string, string>;
112
- data?: any;
113
- webhookProgressInterval?: number | null | undefined;
114
- }>>>;
115
- }, "strip", z.ZodTypeAny, {
116
- type: "media";
117
- serveUrl: string;
118
- composition: string;
119
- forceHeight?: number | null | undefined;
120
- forceWidth?: number | null | undefined;
121
- forceFps?: number | null | undefined;
122
- forceDurationInFrames?: number | null | undefined;
123
- codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
124
- serializedInputPropsWithCustomSchema: string;
125
- jpegQuality: number | null;
126
- audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
127
- audioBitrate: string | null;
128
- videoBitrate: string | null;
129
- encodingMaxRate: string | null;
130
- encodingBufferSize: string | null;
131
- crf: number | null;
132
- pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
133
- imageFormat: "jpeg" | "none" | "png" | null;
134
- scale: number;
135
- proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | null;
136
- x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
137
- everyNthFrame: number;
138
- numberOfGifLoops: number | null;
139
- frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
140
- envVariables: Record<string, string>;
141
- chromiumOptions?: {
142
- ignoreCertificateErrors?: boolean | undefined;
143
- disableWebSecurity?: boolean | undefined;
144
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
145
- headless?: boolean | undefined;
146
- userAgent?: string | null | undefined;
147
- darkMode?: boolean | undefined;
148
- } | undefined;
149
- muted: boolean;
150
- outputBucket: string;
151
- outName?: string | undefined;
152
- privacy?: "no-acl" | "private" | "public" | undefined;
153
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
154
- delayRenderTimeoutInMilliseconds: number | null;
155
- concurrency: string | number | null;
156
- enforceAudioTrack: boolean;
157
- preferLossless: boolean;
158
- offthreadVideoCacheSizeInBytes: number | null;
159
- mediaCacheSizeInBytes: number | null;
160
- offthreadVideoThreads: number | null;
161
- colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
162
- clientVersion: string;
163
- downloadBehavior: {
164
- type: "play-in-browser";
165
- } | {
166
- type: "download";
167
- fileName: string | null;
168
- };
169
- metadata?: Record<string, string> | null | undefined;
170
- renderIdOverride?: string | null | undefined;
171
- renderStatusWebhook?: {
172
- url: string;
173
- headers: Record<string, string>;
174
- data?: any;
175
- webhookProgressInterval?: number | null | undefined;
176
- } | null | undefined;
177
- }, {
178
- type: "media";
179
- serveUrl: string;
180
- composition: string;
181
- forceHeight?: number | null | undefined;
182
- forceWidth?: number | null | undefined;
183
- forceFps?: number | null | undefined;
184
- forceDurationInFrames?: number | null | undefined;
185
- codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
186
- serializedInputPropsWithCustomSchema: string;
187
- jpegQuality: number | null;
188
- audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
189
- audioBitrate: string | null;
190
- videoBitrate: string | null;
191
- encodingMaxRate: string | null;
192
- encodingBufferSize: string | null;
193
- crf: number | null;
194
- pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
195
- imageFormat: "jpeg" | "none" | "png" | null;
196
- scale: number;
197
- proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | null;
198
- x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
199
- everyNthFrame: number;
200
- numberOfGifLoops: number | null;
201
- frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
202
- envVariables: Record<string, string>;
203
- chromiumOptions?: {
204
- ignoreCertificateErrors?: boolean | undefined;
205
- disableWebSecurity?: boolean | undefined;
206
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
207
- headless?: boolean | undefined;
208
- userAgent?: string | null | undefined;
209
- darkMode?: boolean | undefined;
210
- } | undefined;
211
- muted: boolean;
212
- outputBucket: string;
213
- outName?: string | undefined;
214
- privacy?: "no-acl" | "private" | "public" | undefined;
215
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
216
- delayRenderTimeoutInMilliseconds: number | null;
217
- concurrency: string | number | null;
218
- enforceAudioTrack: boolean;
219
- preferLossless: boolean;
220
- offthreadVideoCacheSizeInBytes: number | null;
221
- mediaCacheSizeInBytes: number | null;
222
- offthreadVideoThreads: number | null;
223
- colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
224
- clientVersion: string;
225
- downloadBehavior: {
226
- type: "play-in-browser";
227
- } | {
228
- type: "download";
229
- fileName: string | null;
230
- };
231
- metadata?: Record<string, string> | null | undefined;
232
- renderIdOverride?: string | null | undefined;
233
- renderStatusWebhook?: {
234
- url: string;
235
- headers: Record<string, string>;
236
- data?: any;
237
- webhookProgressInterval?: number | null | undefined;
238
- } | null | undefined;
239
- }>, z.ZodObject<{
140
+ }, z.core.$strip>>>;
141
+ }, z.core.$strip>, z.ZodObject<{
240
142
  type: z.ZodLiteral<"still">;
241
143
  serveUrl: z.ZodString;
242
144
  composition: z.ZodString;
@@ -246,57 +148,55 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
246
148
  forceDurationInFrames: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
247
149
  serializedInputPropsWithCustomSchema: z.ZodString;
248
150
  jpegQuality: z.ZodOptional<z.ZodNumber>;
249
- imageFormat: z.ZodEnum<["png", "jpeg", "pdf", "webp"]>;
151
+ imageFormat: z.ZodEnum<{
152
+ jpeg: "jpeg";
153
+ pdf: "pdf";
154
+ png: "png";
155
+ webp: "webp";
156
+ }>;
250
157
  scale: z.ZodNumber;
251
- privacy: z.ZodEnum<["public", "private", "no-acl"]>;
158
+ privacy: z.ZodEnum<{
159
+ "no-acl": "no-acl";
160
+ private: "private";
161
+ public: "public";
162
+ }>;
252
163
  envVariables: z.ZodRecord<z.ZodString, z.ZodString>;
253
164
  chromiumOptions: z.ZodOptional<z.ZodObject<{
254
165
  ignoreCertificateErrors: z.ZodOptional<z.ZodBoolean>;
255
166
  disableWebSecurity: z.ZodOptional<z.ZodBoolean>;
256
- gl: z.ZodNullable<z.ZodOptional<z.ZodEnum<["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"]>>>;
167
+ gl: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
168
+ angle: "angle";
169
+ "angle-egl": "angle-egl";
170
+ egl: "egl";
171
+ swangle: "swangle";
172
+ swiftshader: "swiftshader";
173
+ vulkan: "vulkan";
174
+ }>>>;
257
175
  headless: z.ZodOptional<z.ZodBoolean>;
258
176
  userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
259
177
  darkMode: z.ZodOptional<z.ZodBoolean>;
260
- }, "strip", z.ZodTypeAny, {
261
- ignoreCertificateErrors?: boolean | undefined;
262
- disableWebSecurity?: boolean | undefined;
263
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
264
- headless?: boolean | undefined;
265
- userAgent?: string | null | undefined;
266
- darkMode?: boolean | undefined;
267
- }, {
268
- ignoreCertificateErrors?: boolean | undefined;
269
- disableWebSecurity?: boolean | undefined;
270
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
271
- headless?: boolean | undefined;
272
- userAgent?: string | null | undefined;
273
- darkMode?: boolean | undefined;
274
- }>>;
178
+ }, z.core.$strip>>;
275
179
  outputBucket: z.ZodString;
276
180
  outName: z.ZodNullable<z.ZodString>;
277
181
  frame: z.ZodNumber;
278
182
  delayRenderTimeoutInMilliseconds: z.ZodNumber;
279
- logLevel: z.ZodEnum<["trace", "verbose", "info", "warn", "error"]>;
183
+ logLevel: z.ZodEnum<{
184
+ error: "error";
185
+ info: "info";
186
+ trace: "trace";
187
+ verbose: "verbose";
188
+ warn: "warn";
189
+ }>;
280
190
  mediaCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
281
191
  offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
282
192
  offthreadVideoThreads: z.ZodNullable<z.ZodNumber>;
283
193
  clientVersion: z.ZodString;
284
- downloadBehavior: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
194
+ downloadBehavior: z.ZodDiscriminatedUnion<[z.ZodObject<{
285
195
  type: z.ZodLiteral<"play-in-browser">;
286
- }, "strip", z.ZodTypeAny, {
287
- type: "play-in-browser";
288
- }, {
289
- type: "play-in-browser";
290
- }>, z.ZodObject<{
196
+ }, z.core.$strip>, z.ZodObject<{
291
197
  type: z.ZodLiteral<"download">;
292
198
  fileName: z.ZodNullable<z.ZodString>;
293
- }, "strip", z.ZodTypeAny, {
294
- type: "download";
295
- fileName: string | null;
296
- }, {
297
- type: "download";
298
- fileName: string | null;
299
- }>]>;
199
+ }, z.core.$strip>], "type">;
300
200
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
301
201
  renderIdOverride: z.ZodNullable<z.ZodOptional<z.ZodString>>;
302
202
  renderStatusWebhook: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -304,124 +204,14 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
304
204
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
305
205
  data: z.ZodAny;
306
206
  webhookProgressInterval: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
307
- }, "strip", z.ZodTypeAny, {
308
- url: string;
309
- headers: Record<string, string>;
310
- data?: any;
311
- webhookProgressInterval?: number | null | undefined;
312
- }, {
313
- url: string;
314
- headers: Record<string, string>;
315
- data?: any;
316
- webhookProgressInterval?: number | null | undefined;
317
- }>>>;
318
- }, "strip", z.ZodTypeAny, {
319
- type: "still";
320
- serveUrl: string;
321
- composition: string;
322
- forceHeight?: number | null | undefined;
323
- forceWidth?: number | null | undefined;
324
- forceFps?: number | null | undefined;
325
- forceDurationInFrames?: number | null | undefined;
326
- serializedInputPropsWithCustomSchema: string;
327
- jpegQuality?: number | undefined;
328
- imageFormat: "jpeg" | "pdf" | "png" | "webp";
329
- scale: number;
330
- privacy: "no-acl" | "private" | "public";
331
- envVariables: Record<string, string>;
332
- chromiumOptions?: {
333
- ignoreCertificateErrors?: boolean | undefined;
334
- disableWebSecurity?: boolean | undefined;
335
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
336
- headless?: boolean | undefined;
337
- userAgent?: string | null | undefined;
338
- darkMode?: boolean | undefined;
339
- } | undefined;
340
- outputBucket: string;
341
- outName: string | null;
342
- frame: number;
343
- delayRenderTimeoutInMilliseconds: number;
344
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
345
- mediaCacheSizeInBytes: number | null;
346
- offthreadVideoCacheSizeInBytes: number | null;
347
- offthreadVideoThreads: number | null;
348
- clientVersion: string;
349
- downloadBehavior: {
350
- type: "play-in-browser";
351
- } | {
352
- type: "download";
353
- fileName: string | null;
354
- };
355
- metadata?: Record<string, string> | null | undefined;
356
- renderIdOverride?: string | null | undefined;
357
- renderStatusWebhook?: {
358
- url: string;
359
- headers: Record<string, string>;
360
- data?: any;
361
- webhookProgressInterval?: number | null | undefined;
362
- } | null | undefined;
363
- }, {
364
- type: "still";
365
- serveUrl: string;
366
- composition: string;
367
- forceHeight?: number | null | undefined;
368
- forceWidth?: number | null | undefined;
369
- forceFps?: number | null | undefined;
370
- forceDurationInFrames?: number | null | undefined;
371
- serializedInputPropsWithCustomSchema: string;
372
- jpegQuality?: number | undefined;
373
- imageFormat: "jpeg" | "pdf" | "png" | "webp";
374
- scale: number;
375
- privacy: "no-acl" | "private" | "public";
376
- envVariables: Record<string, string>;
377
- chromiumOptions?: {
378
- ignoreCertificateErrors?: boolean | undefined;
379
- disableWebSecurity?: boolean | undefined;
380
- gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
381
- headless?: boolean | undefined;
382
- userAgent?: string | null | undefined;
383
- darkMode?: boolean | undefined;
384
- } | undefined;
385
- outputBucket: string;
386
- outName: string | null;
387
- frame: number;
388
- delayRenderTimeoutInMilliseconds: number;
389
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
390
- mediaCacheSizeInBytes: number | null;
391
- offthreadVideoCacheSizeInBytes: number | null;
392
- offthreadVideoThreads: number | null;
393
- clientVersion: string;
394
- downloadBehavior: {
395
- type: "play-in-browser";
396
- } | {
397
- type: "download";
398
- fileName: string | null;
399
- };
400
- metadata?: Record<string, string> | null | undefined;
401
- renderIdOverride?: string | null | undefined;
402
- renderStatusWebhook?: {
403
- url: string;
404
- headers: Record<string, string>;
405
- data?: any;
406
- webhookProgressInterval?: number | null | undefined;
407
- } | null | undefined;
408
- }>]>;
207
+ }, z.core.$strip>>>;
208
+ }, z.core.$strip>], "type">;
409
209
  declare const renderFailResponsePayload: z.ZodObject<{
410
210
  type: z.ZodLiteral<"error">;
411
211
  message: z.ZodString;
412
212
  name: z.ZodString;
413
213
  stack: z.ZodString;
414
- }, "strip", z.ZodTypeAny, {
415
- type: "error";
416
- message: string;
417
- name: string;
418
- stack: string;
419
- }, {
420
- type: "error";
421
- message: string;
422
- name: string;
423
- stack: string;
424
- }>;
214
+ }, z.core.$strip>;
425
215
  declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
426
216
  type: z.ZodLiteral<"success">;
427
217
  publicUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -429,24 +219,11 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
429
219
  size: z.ZodNumber;
430
220
  bucketName: z.ZodString;
431
221
  renderId: z.ZodString;
432
- privacy: z.ZodEnum<["public-read", "project-private"]>;
433
- }, "strip", z.ZodTypeAny, {
434
- type: "success";
435
- publicUrl?: string | null | undefined;
436
- cloudStorageUri: string;
437
- size: number;
438
- bucketName: string;
439
- renderId: string;
440
- privacy: "project-private" | "public-read";
441
- }, {
442
- type: "success";
443
- publicUrl?: string | null | undefined;
444
- cloudStorageUri: string;
445
- size: number;
446
- bucketName: string;
447
- renderId: string;
448
- privacy: "project-private" | "public-read";
449
- }>;
222
+ privacy: z.ZodEnum<{
223
+ "project-private": "project-private";
224
+ "public-read": "public-read";
225
+ }>;
226
+ }, z.core.$strip>;
450
227
  declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
451
228
  type: z.ZodLiteral<"success">;
452
229
  publicUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -454,24 +231,11 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
454
231
  size: z.ZodNumber;
455
232
  bucketName: z.ZodString;
456
233
  renderId: z.ZodString;
457
- privacy: z.ZodEnum<["public-read", "project-private"]>;
458
- }, "strip", z.ZodTypeAny, {
459
- type: "success";
460
- publicUrl?: string | null | undefined;
461
- cloudStorageUri: string;
462
- size: number;
463
- bucketName: string;
464
- renderId: string;
465
- privacy: "project-private" | "public-read";
466
- }, {
467
- type: "success";
468
- publicUrl?: string | null | undefined;
469
- cloudStorageUri: string;
470
- size: number;
471
- bucketName: string;
472
- renderId: string;
473
- privacy: "project-private" | "public-read";
474
- }>;
234
+ privacy: z.ZodEnum<{
235
+ "project-private": "project-private";
236
+ "public-read": "public-read";
237
+ }>;
238
+ }, z.core.$strip>;
475
239
  declare const cloudRunCrashResponse: z.ZodObject<{
476
240
  type: z.ZodLiteral<"crash">;
477
241
  cloudRunEndpoint: z.ZodString;
@@ -479,21 +243,7 @@ declare const cloudRunCrashResponse: z.ZodObject<{
479
243
  requestStartTime: z.ZodString;
480
244
  requestCrashTime: z.ZodString;
481
245
  requestElapsedTimeInSeconds: z.ZodNumber;
482
- }, "strip", z.ZodTypeAny, {
483
- type: "crash";
484
- cloudRunEndpoint: string;
485
- message: "Service crashed without sending a response. Check the logs in GCP console.";
486
- requestStartTime: string;
487
- requestCrashTime: string;
488
- requestElapsedTimeInSeconds: number;
489
- }, {
490
- type: "crash";
491
- cloudRunEndpoint: string;
492
- message: "Service crashed without sending a response. Check the logs in GCP console.";
493
- requestStartTime: string;
494
- requestCrashTime: string;
495
- requestElapsedTimeInSeconds: number;
496
- }>;
246
+ }, z.core.$strip>;
497
247
  export type CloudRunPayloadType = z.infer<typeof CloudRunPayload>;
498
248
  export type RenderStillOnCloudrunOutput = z.infer<typeof renderStillOnCloudrunResponsePayload>;
499
249
  export type RenderMediaOnCloudrunOutput = z.infer<typeof renderMediaOnCloudrunResponsePayload>;
@@ -57,7 +57,7 @@ exports.CloudRunPayload = zod_1.z.discriminatedUnion('type', [
57
57
  .tuple([zod_1.z.number(), zod_1.z.number().nullable()])
58
58
  .or(zod_1.z.number())
59
59
  .nullable(),
60
- envVariables: zod_1.z.record(zod_1.z.string()),
60
+ envVariables: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
61
61
  chromiumOptions: chromiumOptions.optional(),
62
62
  muted: zod_1.z.boolean(),
63
63
  outputBucket: zod_1.z.string(),
@@ -74,12 +74,12 @@ exports.CloudRunPayload = zod_1.z.discriminatedUnion('type', [
74
74
  colorSpace: zod_1.z.enum(client_1.BrowserSafeApis.validColorSpaces).nullable(),
75
75
  clientVersion: zod_1.z.string(),
76
76
  downloadBehavior,
77
- metadata: zod_1.z.record(zod_1.z.string()).optional().nullable(),
77
+ metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional().nullable(),
78
78
  renderIdOverride: zod_1.z.string().optional().nullable(),
79
79
  renderStatusWebhook: zod_1.z
80
80
  .object({
81
81
  url: zod_1.z.string(),
82
- headers: zod_1.z.record(zod_1.z.string()),
82
+ headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
83
83
  data: zod_1.z.any(),
84
84
  webhookProgressInterval: zod_1.z.number().min(0).max(1).optional().nullable(),
85
85
  })
@@ -99,7 +99,7 @@ exports.CloudRunPayload = zod_1.z.discriminatedUnion('type', [
99
99
  imageFormat: stillImageFormat,
100
100
  scale: zod_1.z.number(),
101
101
  privacy: zod_1.z.enum(['public', 'private', 'no-acl']),
102
- envVariables: zod_1.z.record(zod_1.z.string()),
102
+ envVariables: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
103
103
  chromiumOptions: chromiumOptions.optional(),
104
104
  outputBucket: zod_1.z.string(),
105
105
  outName: zod_1.z.string().nullable(),
@@ -111,12 +111,12 @@ exports.CloudRunPayload = zod_1.z.discriminatedUnion('type', [
111
111
  offthreadVideoThreads: zod_1.z.number().nullable(),
112
112
  clientVersion: zod_1.z.string(),
113
113
  downloadBehavior,
114
- metadata: zod_1.z.record(zod_1.z.string()).optional().nullable(),
114
+ metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional().nullable(),
115
115
  renderIdOverride: zod_1.z.string().optional().nullable(),
116
116
  renderStatusWebhook: zod_1.z
117
117
  .object({
118
118
  url: zod_1.z.string(),
119
- headers: zod_1.z.record(zod_1.z.string()),
119
+ headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
120
120
  data: zod_1.z.any(),
121
121
  webhookProgressInterval: zod_1.z.number().min(0).max(1).optional().nullable(),
122
122
  })
@@ -23,7 +23,7 @@ export declare const renderMediaSingleThread: (body: {
23
23
  x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
24
24
  everyNthFrame: number;
25
25
  numberOfGifLoops: number | null;
26
- frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
26
+ frameRange: number | [number, number | null] | null;
27
27
  envVariables: Record<string, string>;
28
28
  chromiumOptions?: {
29
29
  ignoreCertificateErrors?: boolean | undefined;
@@ -58,7 +58,7 @@ export declare const renderMediaSingleThread: (body: {
58
58
  renderStatusWebhook?: {
59
59
  url: string;
60
60
  headers: Record<string, string>;
61
- data?: any;
61
+ data: any;
62
62
  webhookProgressInterval?: number | null | undefined;
63
63
  } | null | undefined;
64
64
  } | {
@@ -103,7 +103,7 @@ export declare const renderMediaSingleThread: (body: {
103
103
  renderStatusWebhook?: {
104
104
  url: string;
105
105
  headers: Record<string, string>;
106
- data?: any;
106
+ data: any;
107
107
  webhookProgressInterval?: number | null | undefined;
108
108
  } | null | undefined;
109
109
  }, res: ff.Response<any, Record<string, any>>) => Promise<void>;
@@ -23,7 +23,7 @@ export declare const renderStillSingleThread: (body: {
23
23
  x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
24
24
  everyNthFrame: number;
25
25
  numberOfGifLoops: number | null;
26
- frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
26
+ frameRange: number | [number, number | null] | null;
27
27
  envVariables: Record<string, string>;
28
28
  chromiumOptions?: {
29
29
  ignoreCertificateErrors?: boolean | undefined;
@@ -58,7 +58,7 @@ export declare const renderStillSingleThread: (body: {
58
58
  renderStatusWebhook?: {
59
59
  url: string;
60
60
  headers: Record<string, string>;
61
- data?: any;
61
+ data: any;
62
62
  webhookProgressInterval?: number | null | undefined;
63
63
  } | null | undefined;
64
64
  } | {
@@ -103,7 +103,7 @@ export declare const renderStillSingleThread: (body: {
103
103
  renderStatusWebhook?: {
104
104
  url: string;
105
105
  headers: Record<string, string>;
106
- data?: any;
106
+ data: any;
107
107
  webhookProgressInterval?: number | null | undefined;
108
108
  } | null | undefined;
109
109
  }, res: ff.Response<any, Record<string, any>>) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -42,11 +42,6 @@ declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnC
42
42
  requestStartTime: string;
43
43
  requestCrashTime: string;
44
44
  requestElapsedTimeInSeconds: number;
45
- } | {
46
- type: "error";
47
- message: string;
48
- name: string;
49
- stack: string;
50
45
  } | {
51
46
  type: "success";
52
47
  publicUrl?: string | null | undefined;
@@ -55,6 +50,11 @@ declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnC
55
50
  bucketName: string;
56
51
  renderId: string;
57
52
  privacy: "project-private" | "public-read";
53
+ } | {
54
+ type: "error";
55
+ message: string;
56
+ name: string;
57
+ stack: string;
58
58
  }>;
59
59
  /**
60
60
  * @deprecated Import this from `@remotion/lambda/client` instead
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
4
4
  },
5
5
  "name": "@remotion/cloudrun",
6
- "version": "4.0.425",
6
+ "version": "4.0.427",
7
7
  "description": "Render Remotion videos on Google Cloud Run",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -21,17 +21,17 @@
21
21
  "@google-cloud/storage": "7.15.2",
22
22
  "@google-cloud/resource-manager": "5.3.1",
23
23
  "@google-cloud/logging": "11.2.0",
24
- "@remotion/bundler": "4.0.425",
25
- "@remotion/cli": "4.0.425",
26
- "@remotion/renderer": "4.0.425",
24
+ "@remotion/bundler": "4.0.427",
25
+ "@remotion/cli": "4.0.427",
26
+ "@remotion/renderer": "4.0.427",
27
27
  "google-auth-library": "8.7.0",
28
- "remotion": "4.0.425",
29
- "zod": "3.22.3"
28
+ "remotion": "4.0.427",
29
+ "zod": "4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
- "@remotion/compositor-linux-x64-gnu": "4.0.425",
32
+ "@remotion/compositor-linux-x64-gnu": "4.0.427",
33
33
  "@types/minimist": "1.2.2",
34
- "@remotion/eslint-config-internal": "4.0.425",
34
+ "@remotion/eslint-config-internal": "4.0.427",
35
35
  "eslint": "9.19.0",
36
36
  "@types/node": "20.12.14",
37
37
  "@typescript/native-preview": "7.0.0-dev.20260217.1"