@remotion/cloudrun 4.0.424 → 4.0.426
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/dist/api/deploy-site.d.ts +1 -0
- package/dist/api/deploy-site.js +3 -2
- package/dist/api/render-media-on-cloudrun.d.ts +6 -2
- package/dist/api/render-media-on-cloudrun.js +6 -2
- package/dist/api/render-still-on-cloudrun.d.ts +7 -5
- package/dist/api/render-still-on-cloudrun.js +21 -17
- package/dist/cli/args.js +8 -1
- package/dist/cli/commands/render/index.js +40 -3
- package/dist/cli/commands/sites/create.js +3 -1
- package/dist/cli/commands/still.js +31 -3
- package/dist/functions/helpers/get-composition-from-body.d.ts +7 -3
- package/dist/functions/helpers/payloads.d.ts +138 -376
- package/dist/functions/helpers/payloads.js +10 -6
- package/dist/functions/render-media-single-thread.d.ts +7 -3
- package/dist/functions/render-media-single-thread.js +12 -10
- package/dist/functions/render-still-single-thread.d.ts +7 -3
- package/dist/functions/render-still-single-thread.js +5 -3
- package/dist/index.d.ts +13 -13
- package/package.json +8 -8
|
@@ -1,41 +1,81 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const downloadBehavior: z.ZodDiscriminatedUnion<
|
|
2
|
+
declare const downloadBehavior: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"play-in-browser">;
|
|
4
|
-
},
|
|
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
|
-
},
|
|
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<
|
|
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;
|
|
23
13
|
forceHeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
24
14
|
forceWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
25
|
-
|
|
15
|
+
forceFps: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
16
|
+
forceDurationInFrames: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
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
|
+
}>;
|
|
26
30
|
serializedInputPropsWithCustomSchema: z.ZodString;
|
|
27
31
|
jpegQuality: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
audioCodec: z.ZodNullable<z.ZodEnum<
|
|
32
|
+
audioCodec: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
aac: "aac";
|
|
34
|
+
mp3: "mp3";
|
|
35
|
+
opus: "opus";
|
|
36
|
+
"pcm-16": "pcm-16";
|
|
37
|
+
}>>;
|
|
29
38
|
audioBitrate: z.ZodNullable<z.ZodString>;
|
|
30
39
|
videoBitrate: z.ZodNullable<z.ZodString>;
|
|
31
40
|
encodingMaxRate: z.ZodNullable<z.ZodString>;
|
|
32
41
|
encodingBufferSize: z.ZodNullable<z.ZodString>;
|
|
33
42
|
crf: z.ZodNullable<z.ZodNumber>;
|
|
34
|
-
pixelFormat: z.ZodNullable<z.ZodEnum<
|
|
35
|
-
|
|
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
|
+
}>>;
|
|
36
58
|
scale: z.ZodNumber;
|
|
37
|
-
proResProfile: z.ZodNullable<z.ZodEnum<
|
|
38
|
-
|
|
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
|
+
}>>;
|
|
39
79
|
everyNthFrame: z.ZodNumber;
|
|
40
80
|
numberOfGifLoops: z.ZodNullable<z.ZodNumber>;
|
|
41
81
|
frameRange: z.ZodNullable<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNullable<z.ZodNumber>], null>, z.ZodNumber]>>;
|
|
@@ -43,30 +83,33 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
43
83
|
chromiumOptions: z.ZodOptional<z.ZodObject<{
|
|
44
84
|
ignoreCertificateErrors: z.ZodOptional<z.ZodBoolean>;
|
|
45
85
|
disableWebSecurity: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
gl: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
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
|
+
}>>>;
|
|
47
94
|
headless: z.ZodOptional<z.ZodBoolean>;
|
|
48
95
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
49
96
|
darkMode: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
},
|
|
51
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
52
|
-
disableWebSecurity?: boolean | undefined;
|
|
53
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
54
|
-
headless?: boolean | undefined;
|
|
55
|
-
userAgent?: string | null | undefined;
|
|
56
|
-
darkMode?: boolean | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
59
|
-
disableWebSecurity?: boolean | undefined;
|
|
60
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
61
|
-
headless?: boolean | undefined;
|
|
62
|
-
userAgent?: string | null | undefined;
|
|
63
|
-
darkMode?: boolean | undefined;
|
|
64
|
-
}>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
65
98
|
muted: z.ZodBoolean;
|
|
66
99
|
outputBucket: z.ZodString;
|
|
67
100
|
outName: z.ZodOptional<z.ZodString>;
|
|
68
|
-
privacy: z.ZodOptional<z.ZodEnum<
|
|
69
|
-
|
|
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
|
+
}>;
|
|
70
113
|
delayRenderTimeoutInMilliseconds: z.ZodNullable<z.ZodNumber>;
|
|
71
114
|
concurrency: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
72
115
|
enforceAudioTrack: z.ZodBoolean;
|
|
@@ -74,24 +117,19 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
74
117
|
offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
|
|
75
118
|
mediaCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
|
|
76
119
|
offthreadVideoThreads: z.ZodNullable<z.ZodNumber>;
|
|
77
|
-
colorSpace: z.ZodNullable<z.ZodEnum<
|
|
120
|
+
colorSpace: z.ZodNullable<z.ZodEnum<{
|
|
121
|
+
"bt2020-ncl": "bt2020-ncl";
|
|
122
|
+
bt601: "bt601";
|
|
123
|
+
bt709: "bt709";
|
|
124
|
+
default: "default";
|
|
125
|
+
}>>;
|
|
78
126
|
clientVersion: z.ZodString;
|
|
79
|
-
downloadBehavior: z.ZodDiscriminatedUnion<
|
|
127
|
+
downloadBehavior: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
128
|
type: z.ZodLiteral<"play-in-browser">;
|
|
81
|
-
},
|
|
82
|
-
type: "play-in-browser";
|
|
83
|
-
}, {
|
|
84
|
-
type: "play-in-browser";
|
|
85
|
-
}>, z.ZodObject<{
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
130
|
type: z.ZodLiteral<"download">;
|
|
87
131
|
fileName: z.ZodNullable<z.ZodString>;
|
|
88
|
-
},
|
|
89
|
-
type: "download";
|
|
90
|
-
fileName: string | null;
|
|
91
|
-
}, {
|
|
92
|
-
type: "download";
|
|
93
|
-
fileName: string | null;
|
|
94
|
-
}>]>;
|
|
132
|
+
}, z.core.$strip>], "type">;
|
|
95
133
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
96
134
|
renderIdOverride: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
97
135
|
renderStatusWebhook: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -99,196 +137,66 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
99
137
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
100
138
|
data: z.ZodAny;
|
|
101
139
|
webhookProgressInterval: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
headers: Record<string, string>;
|
|
105
|
-
data?: any;
|
|
106
|
-
webhookProgressInterval?: number | null | undefined;
|
|
107
|
-
}, {
|
|
108
|
-
url: string;
|
|
109
|
-
headers: Record<string, string>;
|
|
110
|
-
data?: any;
|
|
111
|
-
webhookProgressInterval?: number | null | undefined;
|
|
112
|
-
}>>>;
|
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
type: "media";
|
|
115
|
-
serveUrl: string;
|
|
116
|
-
composition: string;
|
|
117
|
-
forceHeight?: number | null | undefined;
|
|
118
|
-
forceWidth?: number | null | undefined;
|
|
119
|
-
codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
120
|
-
serializedInputPropsWithCustomSchema: string;
|
|
121
|
-
jpegQuality: number | null;
|
|
122
|
-
audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
123
|
-
audioBitrate: string | null;
|
|
124
|
-
videoBitrate: string | null;
|
|
125
|
-
encodingMaxRate: string | null;
|
|
126
|
-
encodingBufferSize: string | null;
|
|
127
|
-
crf: number | null;
|
|
128
|
-
pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
|
|
129
|
-
imageFormat: "jpeg" | "none" | "png" | null;
|
|
130
|
-
scale: number;
|
|
131
|
-
proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | null;
|
|
132
|
-
x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
|
|
133
|
-
everyNthFrame: number;
|
|
134
|
-
numberOfGifLoops: number | null;
|
|
135
|
-
frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
|
|
136
|
-
envVariables: Record<string, string>;
|
|
137
|
-
chromiumOptions?: {
|
|
138
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
139
|
-
disableWebSecurity?: boolean | undefined;
|
|
140
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
141
|
-
headless?: boolean | undefined;
|
|
142
|
-
userAgent?: string | null | undefined;
|
|
143
|
-
darkMode?: boolean | undefined;
|
|
144
|
-
} | undefined;
|
|
145
|
-
muted: boolean;
|
|
146
|
-
outputBucket: string;
|
|
147
|
-
outName?: string | undefined;
|
|
148
|
-
privacy?: "no-acl" | "private" | "public" | undefined;
|
|
149
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
150
|
-
delayRenderTimeoutInMilliseconds: number | null;
|
|
151
|
-
concurrency: string | number | null;
|
|
152
|
-
enforceAudioTrack: boolean;
|
|
153
|
-
preferLossless: boolean;
|
|
154
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
155
|
-
mediaCacheSizeInBytes: number | null;
|
|
156
|
-
offthreadVideoThreads: number | null;
|
|
157
|
-
colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
158
|
-
clientVersion: string;
|
|
159
|
-
downloadBehavior: {
|
|
160
|
-
type: "play-in-browser";
|
|
161
|
-
} | {
|
|
162
|
-
type: "download";
|
|
163
|
-
fileName: string | null;
|
|
164
|
-
};
|
|
165
|
-
metadata?: Record<string, string> | null | undefined;
|
|
166
|
-
renderIdOverride?: string | null | undefined;
|
|
167
|
-
renderStatusWebhook?: {
|
|
168
|
-
url: string;
|
|
169
|
-
headers: Record<string, string>;
|
|
170
|
-
data?: any;
|
|
171
|
-
webhookProgressInterval?: number | null | undefined;
|
|
172
|
-
} | null | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
type: "media";
|
|
175
|
-
serveUrl: string;
|
|
176
|
-
composition: string;
|
|
177
|
-
forceHeight?: number | null | undefined;
|
|
178
|
-
forceWidth?: number | null | undefined;
|
|
179
|
-
codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
180
|
-
serializedInputPropsWithCustomSchema: string;
|
|
181
|
-
jpegQuality: number | null;
|
|
182
|
-
audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
183
|
-
audioBitrate: string | null;
|
|
184
|
-
videoBitrate: string | null;
|
|
185
|
-
encodingMaxRate: string | null;
|
|
186
|
-
encodingBufferSize: string | null;
|
|
187
|
-
crf: number | null;
|
|
188
|
-
pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
|
|
189
|
-
imageFormat: "jpeg" | "none" | "png" | null;
|
|
190
|
-
scale: number;
|
|
191
|
-
proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | null;
|
|
192
|
-
x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
|
|
193
|
-
everyNthFrame: number;
|
|
194
|
-
numberOfGifLoops: number | null;
|
|
195
|
-
frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
|
|
196
|
-
envVariables: Record<string, string>;
|
|
197
|
-
chromiumOptions?: {
|
|
198
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
199
|
-
disableWebSecurity?: boolean | undefined;
|
|
200
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
201
|
-
headless?: boolean | undefined;
|
|
202
|
-
userAgent?: string | null | undefined;
|
|
203
|
-
darkMode?: boolean | undefined;
|
|
204
|
-
} | undefined;
|
|
205
|
-
muted: boolean;
|
|
206
|
-
outputBucket: string;
|
|
207
|
-
outName?: string | undefined;
|
|
208
|
-
privacy?: "no-acl" | "private" | "public" | undefined;
|
|
209
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
210
|
-
delayRenderTimeoutInMilliseconds: number | null;
|
|
211
|
-
concurrency: string | number | null;
|
|
212
|
-
enforceAudioTrack: boolean;
|
|
213
|
-
preferLossless: boolean;
|
|
214
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
215
|
-
mediaCacheSizeInBytes: number | null;
|
|
216
|
-
offthreadVideoThreads: number | null;
|
|
217
|
-
colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
218
|
-
clientVersion: string;
|
|
219
|
-
downloadBehavior: {
|
|
220
|
-
type: "play-in-browser";
|
|
221
|
-
} | {
|
|
222
|
-
type: "download";
|
|
223
|
-
fileName: string | null;
|
|
224
|
-
};
|
|
225
|
-
metadata?: Record<string, string> | null | undefined;
|
|
226
|
-
renderIdOverride?: string | null | undefined;
|
|
227
|
-
renderStatusWebhook?: {
|
|
228
|
-
url: string;
|
|
229
|
-
headers: Record<string, string>;
|
|
230
|
-
data?: any;
|
|
231
|
-
webhookProgressInterval?: number | null | undefined;
|
|
232
|
-
} | null | undefined;
|
|
233
|
-
}>, z.ZodObject<{
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
234
142
|
type: z.ZodLiteral<"still">;
|
|
235
143
|
serveUrl: z.ZodString;
|
|
236
144
|
composition: z.ZodString;
|
|
237
145
|
forceHeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
238
146
|
forceWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
147
|
+
forceFps: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
148
|
+
forceDurationInFrames: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
239
149
|
serializedInputPropsWithCustomSchema: z.ZodString;
|
|
240
150
|
jpegQuality: z.ZodOptional<z.ZodNumber>;
|
|
241
|
-
imageFormat: z.ZodEnum<
|
|
151
|
+
imageFormat: z.ZodEnum<{
|
|
152
|
+
jpeg: "jpeg";
|
|
153
|
+
pdf: "pdf";
|
|
154
|
+
png: "png";
|
|
155
|
+
webp: "webp";
|
|
156
|
+
}>;
|
|
242
157
|
scale: z.ZodNumber;
|
|
243
|
-
privacy: z.ZodEnum<
|
|
158
|
+
privacy: z.ZodEnum<{
|
|
159
|
+
"no-acl": "no-acl";
|
|
160
|
+
private: "private";
|
|
161
|
+
public: "public";
|
|
162
|
+
}>;
|
|
244
163
|
envVariables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
245
164
|
chromiumOptions: z.ZodOptional<z.ZodObject<{
|
|
246
165
|
ignoreCertificateErrors: z.ZodOptional<z.ZodBoolean>;
|
|
247
166
|
disableWebSecurity: z.ZodOptional<z.ZodBoolean>;
|
|
248
|
-
gl: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
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
|
+
}>>>;
|
|
249
175
|
headless: z.ZodOptional<z.ZodBoolean>;
|
|
250
176
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
251
177
|
darkMode: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
-
},
|
|
253
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
254
|
-
disableWebSecurity?: boolean | undefined;
|
|
255
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
256
|
-
headless?: boolean | undefined;
|
|
257
|
-
userAgent?: string | null | undefined;
|
|
258
|
-
darkMode?: boolean | undefined;
|
|
259
|
-
}, {
|
|
260
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
261
|
-
disableWebSecurity?: boolean | undefined;
|
|
262
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
263
|
-
headless?: boolean | undefined;
|
|
264
|
-
userAgent?: string | null | undefined;
|
|
265
|
-
darkMode?: boolean | undefined;
|
|
266
|
-
}>>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
267
179
|
outputBucket: z.ZodString;
|
|
268
180
|
outName: z.ZodNullable<z.ZodString>;
|
|
269
181
|
frame: z.ZodNumber;
|
|
270
182
|
delayRenderTimeoutInMilliseconds: z.ZodNumber;
|
|
271
|
-
logLevel: z.ZodEnum<
|
|
183
|
+
logLevel: z.ZodEnum<{
|
|
184
|
+
error: "error";
|
|
185
|
+
info: "info";
|
|
186
|
+
trace: "trace";
|
|
187
|
+
verbose: "verbose";
|
|
188
|
+
warn: "warn";
|
|
189
|
+
}>;
|
|
272
190
|
mediaCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
|
|
273
191
|
offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
|
|
274
192
|
offthreadVideoThreads: z.ZodNullable<z.ZodNumber>;
|
|
275
193
|
clientVersion: z.ZodString;
|
|
276
|
-
downloadBehavior: z.ZodDiscriminatedUnion<
|
|
194
|
+
downloadBehavior: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
277
195
|
type: z.ZodLiteral<"play-in-browser">;
|
|
278
|
-
},
|
|
279
|
-
type: "play-in-browser";
|
|
280
|
-
}, {
|
|
281
|
-
type: "play-in-browser";
|
|
282
|
-
}>, z.ZodObject<{
|
|
196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
197
|
type: z.ZodLiteral<"download">;
|
|
284
198
|
fileName: z.ZodNullable<z.ZodString>;
|
|
285
|
-
},
|
|
286
|
-
type: "download";
|
|
287
|
-
fileName: string | null;
|
|
288
|
-
}, {
|
|
289
|
-
type: "download";
|
|
290
|
-
fileName: string | null;
|
|
291
|
-
}>]>;
|
|
199
|
+
}, z.core.$strip>], "type">;
|
|
292
200
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
293
201
|
renderIdOverride: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
294
202
|
renderStatusWebhook: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -296,120 +204,14 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
296
204
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
297
205
|
data: z.ZodAny;
|
|
298
206
|
webhookProgressInterval: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
headers: Record<string, string>;
|
|
302
|
-
data?: any;
|
|
303
|
-
webhookProgressInterval?: number | null | undefined;
|
|
304
|
-
}, {
|
|
305
|
-
url: string;
|
|
306
|
-
headers: Record<string, string>;
|
|
307
|
-
data?: any;
|
|
308
|
-
webhookProgressInterval?: number | null | undefined;
|
|
309
|
-
}>>>;
|
|
310
|
-
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
type: "still";
|
|
312
|
-
serveUrl: string;
|
|
313
|
-
composition: string;
|
|
314
|
-
forceHeight?: number | null | undefined;
|
|
315
|
-
forceWidth?: number | null | undefined;
|
|
316
|
-
serializedInputPropsWithCustomSchema: string;
|
|
317
|
-
jpegQuality?: number | undefined;
|
|
318
|
-
imageFormat: "jpeg" | "pdf" | "png" | "webp";
|
|
319
|
-
scale: number;
|
|
320
|
-
privacy: "no-acl" | "private" | "public";
|
|
321
|
-
envVariables: Record<string, string>;
|
|
322
|
-
chromiumOptions?: {
|
|
323
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
324
|
-
disableWebSecurity?: boolean | undefined;
|
|
325
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
326
|
-
headless?: boolean | undefined;
|
|
327
|
-
userAgent?: string | null | undefined;
|
|
328
|
-
darkMode?: boolean | undefined;
|
|
329
|
-
} | undefined;
|
|
330
|
-
outputBucket: string;
|
|
331
|
-
outName: string | null;
|
|
332
|
-
frame: number;
|
|
333
|
-
delayRenderTimeoutInMilliseconds: number;
|
|
334
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
335
|
-
mediaCacheSizeInBytes: number | null;
|
|
336
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
337
|
-
offthreadVideoThreads: number | null;
|
|
338
|
-
clientVersion: string;
|
|
339
|
-
downloadBehavior: {
|
|
340
|
-
type: "play-in-browser";
|
|
341
|
-
} | {
|
|
342
|
-
type: "download";
|
|
343
|
-
fileName: string | null;
|
|
344
|
-
};
|
|
345
|
-
metadata?: Record<string, string> | null | undefined;
|
|
346
|
-
renderIdOverride?: string | null | undefined;
|
|
347
|
-
renderStatusWebhook?: {
|
|
348
|
-
url: string;
|
|
349
|
-
headers: Record<string, string>;
|
|
350
|
-
data?: any;
|
|
351
|
-
webhookProgressInterval?: number | null | undefined;
|
|
352
|
-
} | null | undefined;
|
|
353
|
-
}, {
|
|
354
|
-
type: "still";
|
|
355
|
-
serveUrl: string;
|
|
356
|
-
composition: string;
|
|
357
|
-
forceHeight?: number | null | undefined;
|
|
358
|
-
forceWidth?: number | null | undefined;
|
|
359
|
-
serializedInputPropsWithCustomSchema: string;
|
|
360
|
-
jpegQuality?: number | undefined;
|
|
361
|
-
imageFormat: "jpeg" | "pdf" | "png" | "webp";
|
|
362
|
-
scale: number;
|
|
363
|
-
privacy: "no-acl" | "private" | "public";
|
|
364
|
-
envVariables: Record<string, string>;
|
|
365
|
-
chromiumOptions?: {
|
|
366
|
-
ignoreCertificateErrors?: boolean | undefined;
|
|
367
|
-
disableWebSecurity?: boolean | undefined;
|
|
368
|
-
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
369
|
-
headless?: boolean | undefined;
|
|
370
|
-
userAgent?: string | null | undefined;
|
|
371
|
-
darkMode?: boolean | undefined;
|
|
372
|
-
} | undefined;
|
|
373
|
-
outputBucket: string;
|
|
374
|
-
outName: string | null;
|
|
375
|
-
frame: number;
|
|
376
|
-
delayRenderTimeoutInMilliseconds: number;
|
|
377
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
378
|
-
mediaCacheSizeInBytes: number | null;
|
|
379
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
380
|
-
offthreadVideoThreads: number | null;
|
|
381
|
-
clientVersion: string;
|
|
382
|
-
downloadBehavior: {
|
|
383
|
-
type: "play-in-browser";
|
|
384
|
-
} | {
|
|
385
|
-
type: "download";
|
|
386
|
-
fileName: string | null;
|
|
387
|
-
};
|
|
388
|
-
metadata?: Record<string, string> | null | undefined;
|
|
389
|
-
renderIdOverride?: string | null | undefined;
|
|
390
|
-
renderStatusWebhook?: {
|
|
391
|
-
url: string;
|
|
392
|
-
headers: Record<string, string>;
|
|
393
|
-
data?: any;
|
|
394
|
-
webhookProgressInterval?: number | null | undefined;
|
|
395
|
-
} | null | undefined;
|
|
396
|
-
}>]>;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
208
|
+
}, z.core.$strip>], "type">;
|
|
397
209
|
declare const renderFailResponsePayload: z.ZodObject<{
|
|
398
210
|
type: z.ZodLiteral<"error">;
|
|
399
211
|
message: z.ZodString;
|
|
400
212
|
name: z.ZodString;
|
|
401
213
|
stack: z.ZodString;
|
|
402
|
-
},
|
|
403
|
-
type: "error";
|
|
404
|
-
message: string;
|
|
405
|
-
name: string;
|
|
406
|
-
stack: string;
|
|
407
|
-
}, {
|
|
408
|
-
type: "error";
|
|
409
|
-
message: string;
|
|
410
|
-
name: string;
|
|
411
|
-
stack: string;
|
|
412
|
-
}>;
|
|
214
|
+
}, z.core.$strip>;
|
|
413
215
|
declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
414
216
|
type: z.ZodLiteral<"success">;
|
|
415
217
|
publicUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -417,24 +219,11 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
417
219
|
size: z.ZodNumber;
|
|
418
220
|
bucketName: z.ZodString;
|
|
419
221
|
renderId: z.ZodString;
|
|
420
|
-
privacy: z.ZodEnum<
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
size: number;
|
|
426
|
-
bucketName: string;
|
|
427
|
-
renderId: string;
|
|
428
|
-
privacy: "project-private" | "public-read";
|
|
429
|
-
}, {
|
|
430
|
-
type: "success";
|
|
431
|
-
publicUrl?: string | null | undefined;
|
|
432
|
-
cloudStorageUri: string;
|
|
433
|
-
size: number;
|
|
434
|
-
bucketName: string;
|
|
435
|
-
renderId: string;
|
|
436
|
-
privacy: "project-private" | "public-read";
|
|
437
|
-
}>;
|
|
222
|
+
privacy: z.ZodEnum<{
|
|
223
|
+
"project-private": "project-private";
|
|
224
|
+
"public-read": "public-read";
|
|
225
|
+
}>;
|
|
226
|
+
}, z.core.$strip>;
|
|
438
227
|
declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
|
|
439
228
|
type: z.ZodLiteral<"success">;
|
|
440
229
|
publicUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -442,24 +231,11 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
442
231
|
size: z.ZodNumber;
|
|
443
232
|
bucketName: z.ZodString;
|
|
444
233
|
renderId: z.ZodString;
|
|
445
|
-
privacy: z.ZodEnum<
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
size: number;
|
|
451
|
-
bucketName: string;
|
|
452
|
-
renderId: string;
|
|
453
|
-
privacy: "project-private" | "public-read";
|
|
454
|
-
}, {
|
|
455
|
-
type: "success";
|
|
456
|
-
publicUrl?: string | null | undefined;
|
|
457
|
-
cloudStorageUri: string;
|
|
458
|
-
size: number;
|
|
459
|
-
bucketName: string;
|
|
460
|
-
renderId: string;
|
|
461
|
-
privacy: "project-private" | "public-read";
|
|
462
|
-
}>;
|
|
234
|
+
privacy: z.ZodEnum<{
|
|
235
|
+
"project-private": "project-private";
|
|
236
|
+
"public-read": "public-read";
|
|
237
|
+
}>;
|
|
238
|
+
}, z.core.$strip>;
|
|
463
239
|
declare const cloudRunCrashResponse: z.ZodObject<{
|
|
464
240
|
type: z.ZodLiteral<"crash">;
|
|
465
241
|
cloudRunEndpoint: z.ZodString;
|
|
@@ -467,21 +243,7 @@ declare const cloudRunCrashResponse: z.ZodObject<{
|
|
|
467
243
|
requestStartTime: z.ZodString;
|
|
468
244
|
requestCrashTime: z.ZodString;
|
|
469
245
|
requestElapsedTimeInSeconds: z.ZodNumber;
|
|
470
|
-
},
|
|
471
|
-
type: "crash";
|
|
472
|
-
cloudRunEndpoint: string;
|
|
473
|
-
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
474
|
-
requestStartTime: string;
|
|
475
|
-
requestCrashTime: string;
|
|
476
|
-
requestElapsedTimeInSeconds: number;
|
|
477
|
-
}, {
|
|
478
|
-
type: "crash";
|
|
479
|
-
cloudRunEndpoint: string;
|
|
480
|
-
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
481
|
-
requestStartTime: string;
|
|
482
|
-
requestCrashTime: string;
|
|
483
|
-
requestElapsedTimeInSeconds: number;
|
|
484
|
-
}>;
|
|
246
|
+
}, z.core.$strip>;
|
|
485
247
|
export type CloudRunPayloadType = z.infer<typeof CloudRunPayload>;
|
|
486
248
|
export type RenderStillOnCloudrunOutput = z.infer<typeof renderStillOnCloudrunResponsePayload>;
|
|
487
249
|
export type RenderMediaOnCloudrunOutput = z.infer<typeof renderMediaOnCloudrunResponsePayload>;
|