@remotion/cloudrun 4.0.139 → 4.0.140
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.
- package/.turbo/turbo-build.log +3 -3
- package/dist/api/deploy-service.d.ts +1 -0
- package/dist/api/deploy-service.js +1 -0
- package/dist/api/deploy-site.d.ts +23 -20
- package/dist/api/deploy-site.js +17 -6
- package/dist/api/helpers/get-cloudrun-endpoint.d.ts +2 -2
- package/dist/api/render-media-on-cloudrun.d.ts +3 -1
- package/dist/api/render-media-on-cloudrun.js +2 -1
- package/dist/api/render-still-on-cloudrun.d.ts +39 -15
- package/dist/api/render-still-on-cloudrun.js +38 -10
- package/dist/cli/commands/render/index.js +1 -0
- package/dist/cli/commands/services/deploy.js +1 -0
- package/dist/functions/helpers/payloads.d.ts +3 -3
- package/dist/functions/helpers/payloads.js +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @remotion/cloudrun@4.0.
|
|
2
|
+
> @remotion/cloudrun@4.0.139 build /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
3
|
> tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @remotion/cloudrun@4.0.
|
|
6
|
+
> @remotion/cloudrun@4.0.139 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
|
|
7
7
|
> ts-node src/admin/bundle-renderLogic.ts
|
|
8
8
|
|
|
9
9
|
distribution bundled.
|
|
10
10
|
|
|
11
|
-
> @remotion/cloudrun@4.0.
|
|
11
|
+
> @remotion/cloudrun@4.0.139 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
|
|
12
12
|
> ts-node src/admin/bundle-installer.ts
|
|
13
13
|
|
|
14
14
|
Making reproducible build with gtar
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import type { GitSource, WebpackOverrideFn } from '@remotion/bundler';
|
|
2
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
2
3
|
import type { UploadDirProgress } from './upload-dir';
|
|
4
|
+
type Options = {
|
|
5
|
+
onBundleProgress?: (progress: number) => void;
|
|
6
|
+
onUploadProgress?: (upload: UploadDirProgress) => void;
|
|
7
|
+
webpackOverride?: WebpackOverrideFn;
|
|
8
|
+
ignoreRegisterRootWarning?: boolean;
|
|
9
|
+
enableCaching?: boolean;
|
|
10
|
+
publicDir?: string | null;
|
|
11
|
+
rootDir?: string;
|
|
12
|
+
bypassBucketNameValidation?: boolean;
|
|
13
|
+
gitSource?: GitSource | null;
|
|
14
|
+
};
|
|
15
|
+
export type RawDeploySiteInput = {
|
|
16
|
+
entryPoint: string;
|
|
17
|
+
bucketName: string;
|
|
18
|
+
siteName: string;
|
|
19
|
+
options: Options;
|
|
20
|
+
logLevel: LogLevel;
|
|
21
|
+
indent: boolean;
|
|
22
|
+
};
|
|
3
23
|
export type DeploySiteInput = {
|
|
4
24
|
entryPoint: string;
|
|
5
25
|
bucketName: string;
|
|
6
26
|
siteName?: string;
|
|
7
|
-
options?:
|
|
8
|
-
onBundleProgress?: (progress: number) => void;
|
|
9
|
-
onUploadProgress?: (upload: UploadDirProgress) => void;
|
|
10
|
-
webpackOverride?: WebpackOverrideFn;
|
|
11
|
-
ignoreRegisterRootWarning?: boolean;
|
|
12
|
-
enableCaching?: boolean;
|
|
13
|
-
publicDir?: string | null;
|
|
14
|
-
rootDir?: string;
|
|
15
|
-
bypassBucketNameValidation?: boolean;
|
|
16
|
-
gitSource?: GitSource | null;
|
|
17
|
-
};
|
|
27
|
+
options?: Options;
|
|
18
28
|
};
|
|
19
29
|
export type DeploySiteOutput = Promise<{
|
|
20
30
|
serveUrl: string;
|
|
@@ -33,12 +43,5 @@ export type DeploySiteOutput = Promise<{
|
|
|
33
43
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
34
44
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
35
45
|
*/
|
|
36
|
-
export declare const deploySite: (
|
|
37
|
-
|
|
38
|
-
siteName: string;
|
|
39
|
-
stats: {
|
|
40
|
-
uploadedFiles: number;
|
|
41
|
-
deletedFiles: number;
|
|
42
|
-
untouchedFiles: number;
|
|
43
|
-
};
|
|
44
|
-
}>;
|
|
46
|
+
export declare const deploySite: (input: DeploySiteInput) => DeploySiteOutput;
|
|
47
|
+
export {};
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -12,15 +12,14 @@ const validate_bucketname_1 = require("../shared/validate-bucketname");
|
|
|
12
12
|
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
|
-
const
|
|
15
|
+
const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options, }) => {
|
|
16
16
|
var _a, _b, _c, _d;
|
|
17
17
|
(0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: true });
|
|
18
|
-
|
|
19
|
-
(0, validate_site_name_1.validateSiteName)(siteId);
|
|
18
|
+
(0, validate_site_name_1.validateSiteName)(siteName);
|
|
20
19
|
const cloudStorageClient = (0, get_cloud_storage_client_1.getCloudStorageClient)();
|
|
21
20
|
// check if bucket exists
|
|
22
21
|
await cloudStorageClient.bucket(bucketName).get();
|
|
23
|
-
const subFolder = (0, constants_1.getSitesKey)(
|
|
22
|
+
const subFolder = (0, constants_1.getSitesKey)(siteName);
|
|
24
23
|
// gcpLs is a function that lists all files in a bucket
|
|
25
24
|
const [files, bundled] = await Promise.all([
|
|
26
25
|
(0, io_1.cloudrunLs)({
|
|
@@ -61,7 +60,7 @@ const deploySiteRaw = async ({ entryPoint, bucketName, siteName, options, }) =>
|
|
|
61
60
|
]);
|
|
62
61
|
return {
|
|
63
62
|
serveUrl: (0, make_storage_url_1.makeStorageServeUrl)({ bucketName, subFolder }),
|
|
64
|
-
siteName
|
|
63
|
+
siteName,
|
|
65
64
|
stats: {
|
|
66
65
|
uploadedFiles: toUpload.length,
|
|
67
66
|
deletedFiles: toDelete.length,
|
|
@@ -69,6 +68,7 @@ const deploySiteRaw = async ({ entryPoint, bucketName, siteName, options, }) =>
|
|
|
69
68
|
},
|
|
70
69
|
};
|
|
71
70
|
};
|
|
71
|
+
const errorHandled = pure_1.NoReactAPIs.wrapWithErrorHandling(internalDeploySiteRaw);
|
|
72
72
|
/**
|
|
73
73
|
* @description Deploys a Remotion project to a GCP storage bucket to prepare it for rendering on Cloud Run.
|
|
74
74
|
* @link https://remotion.dev/docs/cloudrun/deploysite
|
|
@@ -77,4 +77,15 @@ const deploySiteRaw = async ({ entryPoint, bucketName, siteName, options, }) =>
|
|
|
77
77
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
78
78
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
const deploySite = (input) => {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
return errorHandled({
|
|
83
|
+
bucketName: input.bucketName,
|
|
84
|
+
entryPoint: input.entryPoint,
|
|
85
|
+
indent: false,
|
|
86
|
+
logLevel: 'info',
|
|
87
|
+
options: (_a = input.options) !== null && _a !== void 0 ? _a : {},
|
|
88
|
+
siteName: (_b = input.siteName) !== null && _b !== void 0 ? _b : (0, random_hash_1.randomHash)(),
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
exports.deploySite = deploySite;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type getCloudrunEndpointInput = {
|
|
2
|
-
cloudRunUrl?: string;
|
|
3
|
-
serviceName?: string;
|
|
2
|
+
cloudRunUrl?: string | null;
|
|
3
|
+
serviceName?: string | null;
|
|
4
4
|
region?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const getCloudrunEndpoint: ({ cloudRunUrl, serviceName, region, }: getCloudrunEndpointInput) => Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioCodec, ChromiumOptions, FrameRange, PixelFormat, ProResProfile, ToOptions, VideoImageFormat } from '@remotion/renderer';
|
|
1
|
+
import type { AudioCodec, ChromiumOptions, FrameRange, LogLevel, PixelFormat, ProResProfile, ToOptions, VideoImageFormat } from '@remotion/renderer';
|
|
2
2
|
import type { BrowserSafeApis } from '@remotion/renderer/client';
|
|
3
3
|
import type { CloudRunCrashResponse, RenderMediaOnCloudrunOutput } from '../functions/helpers/payloads';
|
|
4
4
|
import type { GcpRegion } from '../pricing/gcp-regions';
|
|
@@ -28,6 +28,8 @@ type InternalRenderMediaOnCloudrun = {
|
|
|
28
28
|
forceHeight?: number | null;
|
|
29
29
|
concurrency: number | string | null;
|
|
30
30
|
preferLossless: boolean | undefined;
|
|
31
|
+
indent: boolean;
|
|
32
|
+
logLevel: LogLevel;
|
|
31
33
|
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>>;
|
|
32
34
|
export type RenderMediaOnCloudrunInput = {
|
|
33
35
|
cloudRunUrl?: string;
|
|
@@ -199,13 +199,14 @@ const renderMediaOnCloudrun = ({ cloudRunUrl, serviceName, region, serveUrl, com
|
|
|
199
199
|
muted: muted !== null && muted !== void 0 ? muted : undefined,
|
|
200
200
|
forceWidth: forceWidth !== null && forceWidth !== void 0 ? forceWidth : null,
|
|
201
201
|
forceHeight: forceHeight !== null && forceHeight !== void 0 ? forceHeight : null,
|
|
202
|
-
logLevel: logLevel !== null && logLevel !== void 0 ? logLevel :
|
|
202
|
+
logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : 'info',
|
|
203
203
|
delayRenderTimeoutInMilliseconds: delayRenderTimeoutInMilliseconds !== null && delayRenderTimeoutInMilliseconds !== void 0 ? delayRenderTimeoutInMilliseconds : undefined,
|
|
204
204
|
concurrency: concurrency !== null && concurrency !== void 0 ? concurrency : null,
|
|
205
205
|
enforceAudioTrack: enforceAudioTrack !== null && enforceAudioTrack !== void 0 ? enforceAudioTrack : undefined,
|
|
206
206
|
preferLossless: preferLossless !== null && preferLossless !== void 0 ? preferLossless : undefined,
|
|
207
207
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : undefined,
|
|
208
208
|
colorSpace: colorSpace !== null && colorSpace !== void 0 ? colorSpace : undefined,
|
|
209
|
+
indent: false,
|
|
209
210
|
});
|
|
210
211
|
};
|
|
211
212
|
exports.renderMediaOnCloudrun = renderMediaOnCloudrun;
|
|
@@ -1,22 +1,46 @@
|
|
|
1
1
|
import type { ChromiumOptions, StillImageFormat, ToOptions } from '@remotion/renderer';
|
|
2
2
|
import { BrowserSafeApis } from '@remotion/renderer/client';
|
|
3
|
-
import type { CloudRunCrashResponse, ErrorResponsePayload, RenderStillOnCloudrunOutput } from '../functions/helpers/payloads';
|
|
4
3
|
import type { GcpRegion } from '../pricing/gcp-regions';
|
|
5
|
-
|
|
6
|
-
cloudRunUrl?: string;
|
|
7
|
-
serviceName?: string;
|
|
4
|
+
type MandatoryParameters = {
|
|
8
5
|
region: GcpRegion;
|
|
9
6
|
serveUrl: string;
|
|
10
7
|
composition: string;
|
|
11
|
-
inputProps?: Record<string, unknown>;
|
|
12
|
-
privacy?: 'public' | 'private';
|
|
13
|
-
forceBucketName?: string;
|
|
14
|
-
outName?: string;
|
|
15
8
|
imageFormat: StillImageFormat;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
};
|
|
10
|
+
type OptionalParameters = {
|
|
11
|
+
cloudRunUrl: string | null;
|
|
12
|
+
serviceName: string | null;
|
|
13
|
+
inputProps: Record<string, unknown>;
|
|
14
|
+
privacy: 'public' | 'private';
|
|
15
|
+
forceBucketName: string | null;
|
|
16
|
+
outName: string | null;
|
|
17
|
+
envVariables: Record<string, string>;
|
|
18
|
+
frame: number;
|
|
19
|
+
chromiumOptions: ChromiumOptions;
|
|
20
|
+
forceWidth: number | null;
|
|
21
|
+
forceHeight: number | null;
|
|
22
|
+
indent: boolean;
|
|
23
|
+
} & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnCloudRun>;
|
|
24
|
+
export type RenderStillOnCloudrunInput = Partial<OptionalParameters> & MandatoryParameters;
|
|
25
|
+
export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{
|
|
26
|
+
type: "success";
|
|
27
|
+
privacy: "public-read" | "project-private";
|
|
28
|
+
cloudStorageUri: string;
|
|
29
|
+
size: number;
|
|
30
|
+
bucketName: string;
|
|
31
|
+
renderId: string;
|
|
32
|
+
publicUrl?: string | null | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
type: "error";
|
|
35
|
+
message: string;
|
|
36
|
+
name: string;
|
|
37
|
+
stack: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: "crash";
|
|
40
|
+
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
41
|
+
cloudRunEndpoint: string;
|
|
42
|
+
requestStartTime: string;
|
|
43
|
+
requestCrashTime: string;
|
|
44
|
+
requestElapsedTimeInSeconds: number;
|
|
45
|
+
}>;
|
|
46
|
+
export {};
|
|
@@ -5,6 +5,7 @@ const client_1 = require("@remotion/renderer/client");
|
|
|
5
5
|
const pure_1 = require("@remotion/renderer/pure");
|
|
6
6
|
const no_react_1 = require("remotion/no-react");
|
|
7
7
|
const version_1 = require("remotion/version");
|
|
8
|
+
const defaults_1 = require("../defaults");
|
|
8
9
|
const validate_privacy_1 = require("../shared/validate-privacy");
|
|
9
10
|
const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
10
11
|
const get_or_create_bucket_1 = require("./get-or-create-bucket");
|
|
@@ -34,7 +35,7 @@ const get_cloudrun_endpoint_1 = require("./helpers/get-cloudrun-endpoint");
|
|
|
34
35
|
* @param params.delayRenderTimeoutInMilliseconds A number describing how long the render may take to resolve all delayRender() calls before it times out.
|
|
35
36
|
* @returns {Promise<RenderStillOnCloudrunOutput>} See documentation for detailed structure
|
|
36
37
|
*/
|
|
37
|
-
const
|
|
38
|
+
const internalRenderStillOnCloudRun = async ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, forceBucketName, privacy, outName, imageFormat, envVariables, frame, jpegQuality, chromiumOptions, scale, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, offthreadVideoCacheSizeInBytes, }) => {
|
|
38
39
|
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
39
40
|
if (privacy)
|
|
40
41
|
(0, validate_privacy_1.validatePrivacy)(privacy);
|
|
@@ -54,24 +55,24 @@ const renderStillOnCloudrunRaw = async ({ cloudRunUrl, serviceName, region, serv
|
|
|
54
55
|
}).serializedString,
|
|
55
56
|
outputBucket,
|
|
56
57
|
outName,
|
|
57
|
-
privacy
|
|
58
|
+
privacy,
|
|
58
59
|
imageFormat,
|
|
59
|
-
envVariables
|
|
60
|
+
envVariables,
|
|
60
61
|
jpegQuality,
|
|
61
62
|
chromiumOptions,
|
|
62
|
-
scale
|
|
63
|
+
scale,
|
|
63
64
|
forceWidth,
|
|
64
65
|
forceHeight,
|
|
65
|
-
frame
|
|
66
|
+
frame,
|
|
66
67
|
type: 'still',
|
|
67
|
-
logLevel
|
|
68
|
-
delayRenderTimeoutInMilliseconds
|
|
69
|
-
offthreadVideoCacheSizeInBytes
|
|
68
|
+
logLevel,
|
|
69
|
+
delayRenderTimeoutInMilliseconds,
|
|
70
|
+
offthreadVideoCacheSizeInBytes,
|
|
70
71
|
clientVersion: version_1.VERSION,
|
|
71
72
|
};
|
|
72
73
|
const client = await (0, get_auth_client_for_url_1.getAuthClientForUrl)(cloudRunEndpoint);
|
|
73
74
|
const postResponse = await client.request({
|
|
74
|
-
url:
|
|
75
|
+
url: cloudRunEndpoint,
|
|
75
76
|
method: 'POST',
|
|
76
77
|
data,
|
|
77
78
|
responseType: 'stream',
|
|
@@ -125,4 +126,31 @@ const renderStillOnCloudrunRaw = async ({ cloudRunUrl, serviceName, region, serv
|
|
|
125
126
|
});
|
|
126
127
|
return renderResponse;
|
|
127
128
|
};
|
|
128
|
-
|
|
129
|
+
const errorHandled = pure_1.NoReactAPIs.wrapWithErrorHandling(internalRenderStillOnCloudRun);
|
|
130
|
+
const renderStillOnCloudrun = (options) => {
|
|
131
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
132
|
+
return errorHandled({
|
|
133
|
+
chromiumOptions: (_a = options.chromiumOptions) !== null && _a !== void 0 ? _a : {},
|
|
134
|
+
cloudRunUrl: (_b = options.cloudRunUrl) !== null && _b !== void 0 ? _b : null,
|
|
135
|
+
composition: options.composition,
|
|
136
|
+
delayRenderTimeoutInMilliseconds: (_c = options.delayRenderTimeoutInMilliseconds) !== null && _c !== void 0 ? _c : defaults_1.DEFAULT_TIMEOUT,
|
|
137
|
+
envVariables: (_d = options.envVariables) !== null && _d !== void 0 ? _d : {},
|
|
138
|
+
forceBucketName: (_e = options.forceBucketName) !== null && _e !== void 0 ? _e : null,
|
|
139
|
+
forceHeight: (_f = options.forceHeight) !== null && _f !== void 0 ? _f : null,
|
|
140
|
+
forceWidth: (_g = options.forceWidth) !== null && _g !== void 0 ? _g : null,
|
|
141
|
+
frame: (_h = options.frame) !== null && _h !== void 0 ? _h : 0,
|
|
142
|
+
imageFormat: options.imageFormat,
|
|
143
|
+
indent: (_j = options.indent) !== null && _j !== void 0 ? _j : false,
|
|
144
|
+
inputProps: (_k = options.inputProps) !== null && _k !== void 0 ? _k : {},
|
|
145
|
+
jpegQuality: (_l = options.jpegQuality) !== null && _l !== void 0 ? _l : client_1.BrowserSafeApis.DEFAULT_JPEG_QUALITY,
|
|
146
|
+
logLevel: (_m = options.logLevel) !== null && _m !== void 0 ? _m : 'info',
|
|
147
|
+
offthreadVideoCacheSizeInBytes: (_o = options.offthreadVideoCacheSizeInBytes) !== null && _o !== void 0 ? _o : null,
|
|
148
|
+
outName: (_p = options.outName) !== null && _p !== void 0 ? _p : null,
|
|
149
|
+
privacy: (_q = options.privacy) !== null && _q !== void 0 ? _q : 'public',
|
|
150
|
+
region: options.region,
|
|
151
|
+
scale: (_r = options.scale) !== null && _r !== void 0 ? _r : 1,
|
|
152
|
+
serveUrl: options.serveUrl,
|
|
153
|
+
serviceName: (_s = options.serviceName) !== null && _s !== void 0 ? _s : null,
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
exports.renderStillOnCloudrun = renderStillOnCloudrun;
|
|
@@ -229,6 +229,7 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
|
|
|
229
229
|
preferLossless: false,
|
|
230
230
|
offthreadVideoCacheSizeInBytes,
|
|
231
231
|
colorSpace,
|
|
232
|
+
indent: false,
|
|
232
233
|
});
|
|
233
234
|
if (res.type === 'crash') {
|
|
234
235
|
(0, cloudrun_crash_logs_1.displayCrashLogs)(res, logLevel);
|
|
@@ -172,7 +172,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
172
172
|
userAgent?: string | null | undefined;
|
|
173
173
|
}>>;
|
|
174
174
|
outputBucket: z.ZodString;
|
|
175
|
-
outName: z.
|
|
175
|
+
outName: z.ZodNullable<z.ZodString>;
|
|
176
176
|
frame: z.ZodNumber;
|
|
177
177
|
delayRenderTimeoutInMilliseconds: z.ZodNumber;
|
|
178
178
|
logLevel: z.ZodEnum<["verbose", "info", "warn", "error"]>;
|
|
@@ -187,6 +187,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
187
187
|
scale: number;
|
|
188
188
|
envVariables: Record<string, string>;
|
|
189
189
|
outputBucket: string;
|
|
190
|
+
outName: string | null;
|
|
190
191
|
privacy: "public" | "private";
|
|
191
192
|
logLevel: "error" | "verbose" | "info" | "warn";
|
|
192
193
|
delayRenderTimeoutInMilliseconds: number;
|
|
@@ -203,7 +204,6 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
203
204
|
headless?: boolean | undefined;
|
|
204
205
|
userAgent?: string | null | undefined;
|
|
205
206
|
} | undefined;
|
|
206
|
-
outName?: string | undefined;
|
|
207
207
|
}, {
|
|
208
208
|
type: "still";
|
|
209
209
|
serveUrl: string;
|
|
@@ -213,6 +213,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
213
213
|
scale: number;
|
|
214
214
|
envVariables: Record<string, string>;
|
|
215
215
|
outputBucket: string;
|
|
216
|
+
outName: string | null;
|
|
216
217
|
privacy: "public" | "private";
|
|
217
218
|
logLevel: "error" | "verbose" | "info" | "warn";
|
|
218
219
|
delayRenderTimeoutInMilliseconds: number;
|
|
@@ -229,7 +230,6 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
229
230
|
headless?: boolean | undefined;
|
|
230
231
|
userAgent?: string | null | undefined;
|
|
231
232
|
} | undefined;
|
|
232
|
-
outName?: string | undefined;
|
|
233
233
|
}>]>;
|
|
234
234
|
declare const renderFailResponsePayload: z.ZodObject<{
|
|
235
235
|
type: z.ZodLiteral<"error">;
|
|
@@ -71,7 +71,7 @@ exports.CloudRunPayload = zod_1.z.discriminatedUnion('type', [
|
|
|
71
71
|
envVariables: zod_1.z.record(zod_1.z.string()),
|
|
72
72
|
chromiumOptions: chromiumOptions.optional(),
|
|
73
73
|
outputBucket: zod_1.z.string(),
|
|
74
|
-
outName: zod_1.z.string().
|
|
74
|
+
outName: zod_1.z.string().nullable(),
|
|
75
75
|
frame: zod_1.z.number(),
|
|
76
76
|
delayRenderTimeoutInMilliseconds: zod_1.z.number(),
|
|
77
77
|
logLevel,
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveU
|
|
|
35
35
|
/**
|
|
36
36
|
* @deprecated Import this from `@remotion/cloudrun/client` instead
|
|
37
37
|
*/
|
|
38
|
-
declare const renderStillOnCloudrun: (
|
|
38
|
+
declare const renderStillOnCloudrun: (options: import("./api/render-still-on-cloudrun").RenderStillOnCloudrunInput) => Promise<{
|
|
39
39
|
type: "success";
|
|
40
40
|
privacy: "public-read" | "project-private";
|
|
41
41
|
cloudStorageUri: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cloudrun",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.140",
|
|
4
4
|
"description": "GCP Cloud Run alternative to lambda rendering",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"@google-cloud/logging": "^10.5.0",
|
|
13
13
|
"google-auth-library": "^8.7.0",
|
|
14
14
|
"zod": "^3.22.3",
|
|
15
|
-
"@remotion/bundler": "4.0.
|
|
16
|
-
"@remotion/cli": "4.0.
|
|
17
|
-
"
|
|
18
|
-
"remotion": "4.0.
|
|
15
|
+
"@remotion/bundler": "4.0.140",
|
|
16
|
+
"@remotion/cli": "4.0.140",
|
|
17
|
+
"remotion": "4.0.140",
|
|
18
|
+
"@remotion/renderer": "4.0.140"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@jonny/eslint-config": "3.0.281",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
27
27
|
"ts-node": "10.9.2",
|
|
28
28
|
"vitest": "0.31.1",
|
|
29
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
29
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.140"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
"./package.json": "./package.json",
|