@remotion/lambda-client 4.0.409 → 4.0.410

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.410";
66560
66560
  var isColorSupported = () => {
66561
66561
  const env = process.env || {};
66562
66562
  const isForceDisabled = "NO_COLOR" in env;
@@ -71017,11 +71017,11 @@ var makeLambdaRenderMediaPayload = async ({
71017
71017
  preferLossless,
71018
71018
  forcePathStyle,
71019
71019
  metadata,
71020
- apiKey,
71021
71020
  licenseKey,
71022
71021
  offthreadVideoThreads,
71023
71022
  storageClass,
71024
- requestHandler
71023
+ requestHandler,
71024
+ isProduction
71025
71025
  }) => {
71026
71026
  const actualCodec = validateLambdaCodec(codec);
71027
71027
  validateServeUrl(serveUrl);
@@ -71092,11 +71092,11 @@ var makeLambdaRenderMediaPayload = async ({
71092
71092
  preferLossless: preferLossless ?? false,
71093
71093
  forcePathStyle: forcePathStyle ?? false,
71094
71094
  metadata: metadata ?? null,
71095
- apiKey: apiKey ?? null,
71096
71095
  licenseKey: licenseKey ?? null,
71097
71096
  offthreadVideoThreads: offthreadVideoThreads ?? null,
71098
71097
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
71099
- storageClass: storageClass ?? null
71098
+ storageClass: storageClass ?? null,
71099
+ isProduction
71100
71100
  };
71101
71101
  };
71102
71102
  var getRenderProgressPayload = ({
@@ -71139,12 +71139,12 @@ var makeLambdaRenderStillPayload = async ({
71139
71139
  offthreadVideoCacheSizeInBytes,
71140
71140
  deleteAfter,
71141
71141
  forcePathStyle,
71142
- apiKey,
71143
71142
  licenseKey,
71144
71143
  storageClass,
71145
71144
  requestHandler,
71146
71145
  offthreadVideoThreads,
71147
- mediaCacheSizeInBytes
71146
+ mediaCacheSizeInBytes,
71147
+ isProduction
71148
71148
  }) => {
71149
71149
  const stringifiedInputProps = serializeOrThrow(inputProps, "input-props");
71150
71150
  const serializedInputProps = await compressInputProps({
@@ -71191,11 +71191,11 @@ var makeLambdaRenderStillPayload = async ({
71191
71191
  type: ServerlessRoutines.still,
71192
71192
  streamed: true,
71193
71193
  forcePathStyle,
71194
- apiKey: apiKey ?? null,
71195
71194
  licenseKey: licenseKey ?? null,
71196
71195
  offthreadVideoThreads: offthreadVideoThreads ?? null,
71197
71196
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
71198
- storageClass: storageClass ?? null
71197
+ storageClass: storageClass ?? null,
71198
+ isProduction
71199
71199
  };
71200
71200
  };
71201
71201
 
@@ -71299,11 +71299,11 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
71299
71299
  forcePathStyle: options.forcePathStyle ?? false,
71300
71300
  indent: false,
71301
71301
  metadata: options.metadata ?? null,
71302
- apiKey: options.apiKey ?? null,
71303
- licenseKey: options.licenseKey ?? null,
71302
+ licenseKey: options.licenseKey ?? options.apiKey ?? null,
71304
71303
  storageClass: options.storageClass ?? null,
71305
71304
  requestHandler: options.requestHandler ?? null,
71306
- mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
71305
+ mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null,
71306
+ isProduction: options.isProduction ?? null
71307
71307
  };
71308
71308
  };
71309
71309
  var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
@@ -71412,12 +71412,12 @@ var renderStillOnLambda = (input) => {
71412
71412
  scale: input.scale ?? 1,
71413
71413
  timeoutInMilliseconds: input.timeoutInMilliseconds ?? 30000,
71414
71414
  forcePathStyle: input.forcePathStyle ?? false,
71415
- apiKey: input.apiKey ?? null,
71416
- licenseKey: input.licenseKey ?? null,
71415
+ licenseKey: input.licenseKey ?? input.apiKey ?? null,
71417
71416
  offthreadVideoThreads: input.offthreadVideoThreads ?? null,
71418
71417
  storageClass: input.storageClass ?? null,
71419
71418
  requestHandler: input.requestHandler ?? null,
71420
- mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null
71419
+ mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null,
71420
+ isProduction: input.isProduction ?? null
71421
71421
  });
71422
71422
  };
71423
71423
 
@@ -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.410";
65903
65903
  var isColorSupported = () => {
65904
65904
  const env = process.env || {};
65905
65905
  const isForceDisabled = "NO_COLOR" in env;
@@ -70844,11 +70844,11 @@ var makeLambdaRenderMediaPayload = async ({
70844
70844
  preferLossless,
70845
70845
  forcePathStyle,
70846
70846
  metadata,
70847
- apiKey,
70848
70847
  licenseKey,
70849
70848
  offthreadVideoThreads,
70850
70849
  storageClass,
70851
- requestHandler
70850
+ requestHandler,
70851
+ isProduction
70852
70852
  }) => {
70853
70853
  const actualCodec = validateLambdaCodec(codec);
70854
70854
  validateServeUrl(serveUrl);
@@ -70919,11 +70919,11 @@ var makeLambdaRenderMediaPayload = async ({
70919
70919
  preferLossless: preferLossless ?? false,
70920
70920
  forcePathStyle: forcePathStyle ?? false,
70921
70921
  metadata: metadata ?? null,
70922
- apiKey: apiKey ?? null,
70923
70922
  licenseKey: licenseKey ?? null,
70924
70923
  offthreadVideoThreads: offthreadVideoThreads ?? null,
70925
70924
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
70926
- storageClass: storageClass ?? null
70925
+ storageClass: storageClass ?? null,
70926
+ isProduction
70927
70927
  };
70928
70928
  };
70929
70929
  var getRenderProgressPayload = ({
@@ -70966,12 +70966,12 @@ var makeLambdaRenderStillPayload = async ({
70966
70966
  offthreadVideoCacheSizeInBytes,
70967
70967
  deleteAfter,
70968
70968
  forcePathStyle,
70969
- apiKey,
70970
70969
  licenseKey,
70971
70970
  storageClass,
70972
70971
  requestHandler,
70973
70972
  offthreadVideoThreads,
70974
- mediaCacheSizeInBytes
70973
+ mediaCacheSizeInBytes,
70974
+ isProduction
70975
70975
  }) => {
70976
70976
  const stringifiedInputProps = serializeOrThrow(inputProps, "input-props");
70977
70977
  const serializedInputProps = await compressInputProps({
@@ -71018,11 +71018,11 @@ var makeLambdaRenderStillPayload = async ({
71018
71018
  type: ServerlessRoutines.still,
71019
71019
  streamed: true,
71020
71020
  forcePathStyle,
71021
- apiKey: apiKey ?? null,
71022
71021
  licenseKey: licenseKey ?? null,
71023
71022
  offthreadVideoThreads: offthreadVideoThreads ?? null,
71024
71023
  mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
71025
- storageClass: storageClass ?? null
71024
+ storageClass: storageClass ?? null,
71025
+ isProduction
71026
71026
  };
71027
71027
  };
71028
71028
 
@@ -71126,11 +71126,11 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
71126
71126
  forcePathStyle: options.forcePathStyle ?? false,
71127
71127
  indent: false,
71128
71128
  metadata: options.metadata ?? null,
71129
- apiKey: options.apiKey ?? null,
71130
- licenseKey: options.licenseKey ?? null,
71129
+ licenseKey: options.licenseKey ?? options.apiKey ?? null,
71131
71130
  storageClass: options.storageClass ?? null,
71132
71131
  requestHandler: options.requestHandler ?? null,
71133
- mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
71132
+ mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null,
71133
+ isProduction: options.isProduction ?? null
71134
71134
  };
71135
71135
  };
71136
71136
  var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
@@ -71239,12 +71239,12 @@ var renderStillOnLambda = (input) => {
71239
71239
  scale: input.scale ?? 1,
71240
71240
  timeoutInMilliseconds: input.timeoutInMilliseconds ?? 30000,
71241
71241
  forcePathStyle: input.forcePathStyle ?? false,
71242
- apiKey: input.apiKey ?? null,
71243
- licenseKey: input.licenseKey ?? null,
71242
+ licenseKey: input.licenseKey ?? input.apiKey ?? null,
71244
71243
  offthreadVideoThreads: input.offthreadVideoThreads ?? null,
71245
71244
  storageClass: input.storageClass ?? null,
71246
71245
  requestHandler: input.requestHandler ?? null,
71247
- mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null
71246
+ mediaCacheSizeInBytes: input.mediaCacheSizeInBytes ?? null,
71247
+ isProduction: input.isProduction ?? null
71248
71248
  });
71249
71249
  };
71250
71250
 
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.410",
7
7
  "main": "dist/cjs/index.js",
8
8
  "sideEffects": false,
9
9
  "scripts": {
@@ -26,10 +26,10 @@
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
34
  "next": "16.0.10",
35
35
  "@types/mime-types": "2.1.1"