@remotion/lambda-client 4.0.409 → 4.0.411

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.
@@ -71,7 +71,7 @@ export declare const LambdaClientInternals: {
71
71
  parseBucketName: (name: string) => {
72
72
  region: import("./regions").AwsRegion | null;
73
73
  };
74
- makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, licenseKey, offthreadVideoThreads, storageClass, requestHandler, }: import("./make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless-client").ServerlessStartPayload<import("./aws-provider").AwsProvider>>;
74
+ makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, licenseKey, offthreadVideoThreads, storageClass, requestHandler, isProduction, }: import("./make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless-client").ServerlessStartPayload<import("./aws-provider").AwsProvider>>;
75
75
  renderMediaOnLambdaOptionalToRequired: (options: import("./render-media-on-lambda").RenderMediaOnLambdaInput) => import("./make-lambda-payload").InnerRenderMediaOnLambdaInput;
76
76
  internalDeleteRender: (input: import("./delete-render").DeleteRenderInput & {
77
77
  providerSpecifics: import("@remotion/serverless-client").ProviderSpecifics<import("./aws-provider").AwsProvider>;
@@ -123,7 +123,7 @@ export declare const LambdaClientInternals: {
123
123
  forcePathStyle: boolean;
124
124
  requestHandler: Provider["requestHandler"] | null;
125
125
  }) => Promise<void[]>;
126
- makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, licenseKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, }: import("./render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless-client").ServerlessPayloads<import("./aws-provider").AwsProvider>[import("@remotion/serverless-client").ServerlessRoutines.still]>;
126
+ makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, licenseKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, isProduction, }: import("./render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless-client").ServerlessPayloads<import("./aws-provider").AwsProvider>[import("@remotion/serverless-client").ServerlessRoutines.still]>;
127
127
  getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: import("./get-render-progress").GetRenderProgressInput) => import("@remotion/serverless-client").ServerlessStatusPayload<import("./aws-provider").AwsProvider>;
128
128
  innerSpeculateFunctionName: ({ diskSizeInMb, memorySizeInMb, timeoutInSeconds, }: import("./speculate-function-name").SpeculateFunctionNameInput) => string;
129
129
  };
package/dist/cjs/index.js CHANGED
@@ -66556,7 +66556,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
66556
66556
  }
66557
66557
  }
66558
66558
  };
66559
- var VERSION = "4.0.409";
66559
+ var VERSION = "4.0.411";
66560
66560
  var isColorSupported = () => {
66561
66561
  const env = process.env || {};
66562
66562
  const isForceDisabled = "NO_COLOR" in env;
@@ -68873,6 +68873,9 @@ var callLambdaSyncWithoutRetry = async ({
68873
68873
  Payload,
68874
68874
  InvocationType: "RequestResponse"
68875
68875
  }));
68876
+ if (res.FunctionError) {
68877
+ throw new Error(`Lambda function returned error: ${res.FunctionError} ${res.LogResult}`);
68878
+ }
68876
68879
  const decoded = new TextDecoder("utf-8").decode(res.Payload);
68877
68880
  try {
68878
68881
  return JSON.parse(decoded);
@@ -71017,11 +71020,11 @@ var makeLambdaRenderMediaPayload = async ({
71017
71020
  preferLossless,
71018
71021
  forcePathStyle,
71019
71022
  metadata,
71020
- apiKey,
71021
71023
  licenseKey,
71022
71024
  offthreadVideoThreads,
71023
71025
  storageClass,
71024
- requestHandler
71026
+ requestHandler,
71027
+ isProduction
71025
71028
  }) => {
71026
71029
  const actualCodec = validateLambdaCodec(codec);
71027
71030
  validateServeUrl(serveUrl);
@@ -71092,11 +71095,11 @@ var makeLambdaRenderMediaPayload = async ({
71092
71095
  preferLossless: preferLossless ?? false,
71093
71096
  forcePathStyle: forcePathStyle ?? false,
71094
71097
  metadata: metadata ?? null,
71095
- apiKey: apiKey ?? null,
71096
71098
  licenseKey: licenseKey ?? null,
71097
71099
  offthreadVideoThreads: offthreadVideoThreads ?? null,
71098
71100
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
71099
- storageClass: storageClass ?? null
71101
+ storageClass: storageClass ?? null,
71102
+ isProduction
71100
71103
  };
71101
71104
  };
71102
71105
  var getRenderProgressPayload = ({
@@ -71139,12 +71142,12 @@ var makeLambdaRenderStillPayload = async ({
71139
71142
  offthreadVideoCacheSizeInBytes,
71140
71143
  deleteAfter,
71141
71144
  forcePathStyle,
71142
- apiKey,
71143
71145
  licenseKey,
71144
71146
  storageClass,
71145
71147
  requestHandler,
71146
71148
  offthreadVideoThreads,
71147
- mediaCacheSizeInBytes
71149
+ mediaCacheSizeInBytes,
71150
+ isProduction
71148
71151
  }) => {
71149
71152
  const stringifiedInputProps = serializeOrThrow(inputProps, "input-props");
71150
71153
  const serializedInputProps = await compressInputProps({
@@ -71191,11 +71194,11 @@ var makeLambdaRenderStillPayload = async ({
71191
71194
  type: ServerlessRoutines.still,
71192
71195
  streamed: true,
71193
71196
  forcePathStyle,
71194
- apiKey: apiKey ?? null,
71195
71197
  licenseKey: licenseKey ?? null,
71196
71198
  offthreadVideoThreads: offthreadVideoThreads ?? null,
71197
71199
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
71198
- storageClass: storageClass ?? null
71200
+ storageClass: storageClass ?? null,
71201
+ isProduction
71199
71202
  };
71200
71203
  };
71201
71204
 
@@ -71299,11 +71302,11 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
71299
71302
  forcePathStyle: options.forcePathStyle ?? false,
71300
71303
  indent: false,
71301
71304
  metadata: options.metadata ?? null,
71302
- apiKey: options.apiKey ?? null,
71303
- licenseKey: options.licenseKey ?? null,
71305
+ licenseKey: options.licenseKey ?? options.apiKey ?? null,
71304
71306
  storageClass: options.storageClass ?? null,
71305
71307
  requestHandler: options.requestHandler ?? null,
71306
- mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
71308
+ mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null,
71309
+ isProduction: options.isProduction ?? null
71307
71310
  };
71308
71311
  };
71309
71312
  var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
@@ -71412,12 +71415,12 @@ var renderStillOnLambda = (input) => {
71412
71415
  scale: input.scale ?? 1,
71413
71416
  timeoutInMilliseconds: input.timeoutInMilliseconds ?? 30000,
71414
71417
  forcePathStyle: input.forcePathStyle ?? false,
71415
- apiKey: input.apiKey ?? null,
71416
- licenseKey: input.licenseKey ?? null,
71418
+ licenseKey: input.licenseKey ?? input.apiKey ?? null,
71417
71419
  offthreadVideoThreads: input.offthreadVideoThreads ?? null,
71418
71420
  storageClass: input.storageClass ?? null,
71419
71421
  requestHandler: input.requestHandler ?? null,
71420
- mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null
71422
+ mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null,
71423
+ isProduction: input.isProduction ?? null
71421
71424
  });
71422
71425
  };
71423
71426
 
@@ -53,7 +53,8 @@ export type InnerRenderMediaOnLambdaInput = {
53
53
  metadata: Record<string, string> | null;
54
54
  storageClass: StorageClass | null;
55
55
  requestHandler: RequestHandler | null;
56
- } & ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda>;
57
- export declare const makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, apiKey, licenseKey, offthreadVideoThreads, storageClass, requestHandler, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
56
+ isProduction: boolean | null;
57
+ } & ToOptions<Omit<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda, 'apiKey'>>;
58
+ export declare const makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, concurrency, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, mediaCacheSizeInBytes, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, licenseKey, offthreadVideoThreads, storageClass, requestHandler, isProduction, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
58
59
  export declare const getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: GetRenderProgressInput) => ServerlessStatusPayload<AwsProvider>;
59
- export declare const makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, apiKey, licenseKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, }: RenderStillOnLambdaNonNullInput) => Promise<ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]>;
60
+ export declare const makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, licenseKey, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, isProduction, }: RenderStillOnLambdaNonNullInput) => Promise<ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]>;
@@ -47,7 +47,13 @@ export type RenderMediaOnLambdaInput = {
47
47
  metadata?: Record<string, string> | null;
48
48
  storageClass?: StorageClass | null;
49
49
  requestHandler?: RequestHandler;
50
- } & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda>>;
50
+ isProduction?: boolean;
51
+ } & {
52
+ /**
53
+ * @deprecated Use `licenseKey` instead
54
+ */
55
+ apiKey?: string | null;
56
+ } & Partial<ToOptions<Omit<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda, 'apiKey'>>>;
51
57
  export type RenderMediaOnLambdaOutput = {
52
58
  renderId: string;
53
59
  bucketName: string;
@@ -32,9 +32,10 @@ type OptionalParameters = {
32
32
  forcePathStyle: boolean;
33
33
  storageClass: StorageClass | null;
34
34
  requestHandler: RequestHandler | null | undefined;
35
+ isProduction: boolean | null;
35
36
  } & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnLambda>;
36
- export type RenderStillOnLambdaNonNullInput = MandatoryParameters & OptionalParameters;
37
- export type RenderStillOnLambdaInput = MandatoryParameters & Partial<OptionalParameters> & {
37
+ export type RenderStillOnLambdaNonNullInput = MandatoryParameters & Omit<OptionalParameters, 'apiKey'>;
38
+ export type RenderStillOnLambdaInput = MandatoryParameters & Partial<Omit<OptionalParameters, 'apiKey'>> & {
38
39
  requestHandler?: RequestHandler;
39
40
  };
40
41
  export type RenderStillOnLambdaOutput = {
@@ -57,5 +58,9 @@ export declare const renderStillOnLambda: (input: RenderStillOnLambdaInput & {
57
58
  * @deprecated Renamed to `logLevel`
58
59
  */
59
60
  dumpBrowserLogs?: boolean;
61
+ /**
62
+ * @deprecated Use `licenseKey` instead
63
+ */
64
+ apiKey?: string | null;
60
65
  }) => Promise<RenderStillOnLambdaOutput>;
61
66
  export {};
@@ -65899,7 +65899,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
65899
65899
  }
65900
65900
  }
65901
65901
  };
65902
- var VERSION = "4.0.409";
65902
+ var VERSION = "4.0.411";
65903
65903
  var isColorSupported = () => {
65904
65904
  const env = process.env || {};
65905
65905
  const isForceDisabled = "NO_COLOR" in env;
@@ -68216,6 +68216,9 @@ var callLambdaSyncWithoutRetry = async ({
68216
68216
  Payload,
68217
68217
  InvocationType: "RequestResponse"
68218
68218
  }));
68219
+ if (res.FunctionError) {
68220
+ throw new Error(`Lambda function returned error: ${res.FunctionError} ${res.LogResult}`);
68221
+ }
68219
68222
  const decoded = new TextDecoder("utf-8").decode(res.Payload);
68220
68223
  try {
68221
68224
  return JSON.parse(decoded);
@@ -70844,11 +70847,11 @@ var makeLambdaRenderMediaPayload = async ({
70844
70847
  preferLossless,
70845
70848
  forcePathStyle,
70846
70849
  metadata,
70847
- apiKey,
70848
70850
  licenseKey,
70849
70851
  offthreadVideoThreads,
70850
70852
  storageClass,
70851
- requestHandler
70853
+ requestHandler,
70854
+ isProduction
70852
70855
  }) => {
70853
70856
  const actualCodec = validateLambdaCodec(codec);
70854
70857
  validateServeUrl(serveUrl);
@@ -70919,11 +70922,11 @@ var makeLambdaRenderMediaPayload = async ({
70919
70922
  preferLossless: preferLossless ?? false,
70920
70923
  forcePathStyle: forcePathStyle ?? false,
70921
70924
  metadata: metadata ?? null,
70922
- apiKey: apiKey ?? null,
70923
70925
  licenseKey: licenseKey ?? null,
70924
70926
  offthreadVideoThreads: offthreadVideoThreads ?? null,
70925
70927
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
70926
- storageClass: storageClass ?? null
70928
+ storageClass: storageClass ?? null,
70929
+ isProduction
70927
70930
  };
70928
70931
  };
70929
70932
  var getRenderProgressPayload = ({
@@ -70966,12 +70969,12 @@ var makeLambdaRenderStillPayload = async ({
70966
70969
  offthreadVideoCacheSizeInBytes,
70967
70970
  deleteAfter,
70968
70971
  forcePathStyle,
70969
- apiKey,
70970
70972
  licenseKey,
70971
70973
  storageClass,
70972
70974
  requestHandler,
70973
70975
  offthreadVideoThreads,
70974
- mediaCacheSizeInBytes
70976
+ mediaCacheSizeInBytes,
70977
+ isProduction
70975
70978
  }) => {
70976
70979
  const stringifiedInputProps = serializeOrThrow(inputProps, "input-props");
70977
70980
  const serializedInputProps = await compressInputProps({
@@ -71018,11 +71021,11 @@ var makeLambdaRenderStillPayload = async ({
71018
71021
  type: ServerlessRoutines.still,
71019
71022
  streamed: true,
71020
71023
  forcePathStyle,
71021
- apiKey: apiKey ?? null,
71022
71024
  licenseKey: licenseKey ?? null,
71023
71025
  offthreadVideoThreads: offthreadVideoThreads ?? null,
71024
71026
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
71025
- storageClass: storageClass ?? null
71027
+ storageClass: storageClass ?? null,
71028
+ isProduction
71026
71029
  };
71027
71030
  };
71028
71031
 
@@ -71126,11 +71129,11 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
71126
71129
  forcePathStyle: options.forcePathStyle ?? false,
71127
71130
  indent: false,
71128
71131
  metadata: options.metadata ?? null,
71129
- apiKey: options.apiKey ?? null,
71130
- licenseKey: options.licenseKey ?? null,
71132
+ licenseKey: options.licenseKey ?? options.apiKey ?? null,
71131
71133
  storageClass: options.storageClass ?? null,
71132
71134
  requestHandler: options.requestHandler ?? null,
71133
- mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
71135
+ mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null,
71136
+ isProduction: options.isProduction ?? null
71134
71137
  };
71135
71138
  };
71136
71139
  var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
@@ -71239,12 +71242,12 @@ var renderStillOnLambda = (input) => {
71239
71242
  scale: input.scale ?? 1,
71240
71243
  timeoutInMilliseconds: input.timeoutInMilliseconds ?? 30000,
71241
71244
  forcePathStyle: input.forcePathStyle ?? false,
71242
- apiKey: input.apiKey ?? null,
71243
- licenseKey: input.licenseKey ?? null,
71245
+ licenseKey: input.licenseKey ?? input.apiKey ?? null,
71244
71246
  offthreadVideoThreads: input.offthreadVideoThreads ?? null,
71245
71247
  storageClass: input.storageClass ?? null,
71246
71248
  requestHandler: input.requestHandler ?? null,
71247
- mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null
71249
+ mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null,
71250
+ isProduction: input.isProduction ?? null
71248
71251
  });
71249
71252
  };
71250
71253
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda-client"
4
4
  },
5
5
  "name": "@remotion/lambda-client",
6
- "version": "4.0.409",
6
+ "version": "4.0.411",
7
7
  "main": "dist/cjs/index.js",
8
8
  "sideEffects": false,
9
9
  "scripts": {
@@ -26,12 +26,12 @@
26
26
  "@aws-sdk/lib-storage": "3.936.0",
27
27
  "mime-types": "2.1.34",
28
28
  "@aws-sdk/credential-provider-ini": "3.936.0",
29
- "@remotion/serverless-client": "4.0.409",
29
+ "@remotion/serverless-client": "4.0.410",
30
30
  "@types/express": "^5.0.0",
31
31
  "express": "4.21.0",
32
- "@remotion/eslint-config-internal": "4.0.409",
32
+ "@remotion/eslint-config-internal": "4.0.410",
33
33
  "eslint": "9.19.0",
34
- "next": "16.0.10",
34
+ "next": "16.1.5",
35
35
  "@types/mime-types": "2.1.1"
36
36
  },
37
37
  "publishConfig": {