@remotion/lambda 4.0.245 → 4.0.247

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.
Files changed (212) hide show
  1. package/dist/api/app-router-webhook.d.ts +10 -0
  2. package/dist/api/app-router-webhook.js +43 -0
  3. package/dist/api/delete-function.d.ts +4 -6
  4. package/dist/api/delete-render.js +2 -4
  5. package/dist/api/delete-site.js +1 -2
  6. package/dist/api/deploy-function.d.ts +5 -1
  7. package/dist/api/deploy-function.js +16 -14
  8. package/dist/api/deploy-site.d.ts +2 -2
  9. package/dist/api/deploy-site.js +11 -14
  10. package/dist/api/download-media.js +2 -4
  11. package/dist/api/get-aws-client.d.ts +1 -1
  12. package/dist/api/get-compositions-on-lambda.d.ts +1 -1
  13. package/dist/api/get-compositions-on-lambda.js +10 -6
  14. package/dist/api/get-function-info.d.ts +1 -7
  15. package/dist/api/get-functions.d.ts +1 -1
  16. package/dist/api/get-render-progress.js +2 -4
  17. package/dist/api/get-sites.js +1 -2
  18. package/dist/api/make-lambda-payload.d.ts +2 -1
  19. package/dist/api/make-lambda-payload.js +19 -13
  20. package/dist/api/pages-router-webhook.d.ts +3 -0
  21. package/dist/api/pages-router-webhook.js +47 -0
  22. package/dist/api/render-media-on-lambda.d.ts +1 -1
  23. package/dist/api/render-media-on-lambda.js +2 -2
  24. package/dist/api/render-still-on-lambda.d.ts +2 -3
  25. package/dist/api/render-still-on-lambda.js +3 -2
  26. package/dist/api/upload-dir.d.ts +1 -7
  27. package/dist/api/upload-dir.js +2 -6
  28. package/dist/cli/args.d.ts +2 -1
  29. package/dist/cli/commands/compositions/index.d.ts +7 -1
  30. package/dist/cli/commands/compositions/index.js +2 -2
  31. package/dist/cli/commands/functions/deploy.d.ts +7 -1
  32. package/dist/cli/commands/functions/deploy.js +3 -1
  33. package/dist/cli/commands/functions/index.d.ts +8 -1
  34. package/dist/cli/commands/functions/index.js +8 -4
  35. package/dist/cli/commands/functions/ls.d.ts +6 -1
  36. package/dist/cli/commands/functions/ls.js +2 -3
  37. package/dist/cli/commands/functions/rmall.d.ts +6 -1
  38. package/dist/cli/commands/functions/rmall.js +2 -3
  39. package/dist/cli/commands/render/render.d.ts +6 -1
  40. package/dist/cli/commands/render/render.js +10 -7
  41. package/dist/cli/commands/sites/create.js +2 -0
  42. package/dist/cli/commands/sites/index.d.ts +1 -1
  43. package/dist/cli/commands/sites/index.js +4 -4
  44. package/dist/cli/commands/still.d.ts +2 -2
  45. package/dist/cli/commands/still.js +6 -5
  46. package/dist/cli/get-aws-region.js +0 -4
  47. package/dist/cli/helpers/find-function-name.d.ts +6 -1
  48. package/dist/cli/helpers/find-function-name.js +4 -5
  49. package/dist/cli/index.d.ts +2 -2
  50. package/dist/cli/index.js +36 -16
  51. package/dist/client.d.ts +17 -22
  52. package/dist/client.js +17 -13
  53. package/dist/functions/aws-implementation.d.ts +13 -1
  54. package/dist/functions/aws-implementation.js +46 -0
  55. package/dist/functions/aws-server-implementation.d.ts +2 -0
  56. package/dist/functions/aws-server-implementation.js +25 -0
  57. package/dist/functions/full-client-implementation.d.ts +3 -0
  58. package/dist/functions/full-client-implementation.js +16 -0
  59. package/dist/functions/helpers/clean-tmpdir.js +1 -3
  60. package/dist/functions/helpers/get-current-region.js +0 -4
  61. package/dist/functions/helpers/get-output-url-from-metadata.d.ts +3 -7
  62. package/dist/functions/helpers/get-output-url-from-metadata.js +1 -1
  63. package/dist/functions/helpers/lifecycle.d.ts +4 -2
  64. package/dist/functions/helpers/lifecycle.js +3 -18
  65. package/dist/functions/helpers/timer.d.ts +2 -4
  66. package/dist/functions/index.d.ts +1 -8
  67. package/dist/functions/index.js +12 -235
  68. package/dist/index.d.ts +6 -6
  69. package/dist/index.js +1 -1
  70. package/dist/internals.d.ts +6 -5
  71. package/dist/shared/check-credentials.js +2 -3
  72. package/dist/shared/constants.d.ts +2 -91
  73. package/dist/shared/constants.js +1 -8
  74. package/dist/shared/convert-to-serve-url.js +2 -2
  75. package/dist/shared/get-account-id.d.ts +3 -4
  76. package/dist/shared/get-account-id.js +3 -3
  77. package/dist/shared/get-aws-urls.d.ts +4 -8
  78. package/dist/shared/get-aws-urls.js +1 -1
  79. package/dist/shared/get-function-version.js +4 -4
  80. package/dist/shared/get-s3-operations.d.ts +4 -1
  81. package/dist/shared/get-s3-operations.js +2 -3
  82. package/dist/shared/get-service-client.js +2 -2
  83. package/dist/shared/read-dir.d.ts +2 -10
  84. package/dist/shared/read-dir.js +5 -4
  85. package/dist/shared/validate-bucketname.d.ts +1 -1
  86. package/package.json +15 -15
  87. package/remotionlambda-arm64.zip +0 -0
  88. package/dist/api/__mocks__/clean-items.d.ts +0 -2
  89. package/dist/api/__mocks__/clean-items.js +0 -24
  90. package/dist/api/__mocks__/create-function.d.ts +0 -2
  91. package/dist/api/__mocks__/create-function.js +0 -21
  92. package/dist/api/__mocks__/delete-function.d.ts +0 -2
  93. package/dist/api/__mocks__/delete-function.js +0 -9
  94. package/dist/api/__mocks__/get-functions.d.ts +0 -2
  95. package/dist/api/__mocks__/get-functions.js +0 -9
  96. package/dist/api/__mocks__/upload-dir.d.ts +0 -3
  97. package/dist/api/__mocks__/upload-dir.js +0 -47
  98. package/dist/api/mock-functions.d.ts +0 -18
  99. package/dist/api/mock-functions.js +0 -36
  100. package/dist/cli/helpers/__mocks__/quit.d.ts +0 -1
  101. package/dist/cli/helpers/__mocks__/quit.js +0 -7
  102. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +0 -7
  103. package/dist/functions/chunk-optimization/plan-frame-ranges.js +0 -17
  104. package/dist/functions/chunk-optimization/types.d.ts +0 -8
  105. package/dist/functions/chunk-optimization/types.js +0 -2
  106. package/dist/functions/helpers/__mocks__/get-browser-instance.d.ts +0 -3
  107. package/dist/functions/helpers/__mocks__/get-browser-instance.js +0 -12
  108. package/dist/functions/helpers/__mocks__/leak-detection.d.ts +0 -4
  109. package/dist/functions/helpers/__mocks__/leak-detection.js +0 -9
  110. package/dist/functions/helpers/__mocks__/timer.d.ts +0 -2
  111. package/dist/functions/helpers/__mocks__/timer.js +0 -10
  112. package/dist/functions/helpers/best-frames-per-lambda-param.d.ts +0 -1
  113. package/dist/functions/helpers/best-frames-per-lambda-param.js +0 -17
  114. package/dist/functions/helpers/calculate-chunk-times.d.ts +0 -5
  115. package/dist/functions/helpers/calculate-chunk-times.js +0 -29
  116. package/dist/functions/helpers/calculate-price-from-bucket.d.ts +0 -15
  117. package/dist/functions/helpers/calculate-price-from-bucket.js +0 -30
  118. package/dist/functions/helpers/can-concat-seamlessly.d.ts +0 -3
  119. package/dist/functions/helpers/can-concat-seamlessly.js +0 -17
  120. package/dist/functions/helpers/cleanup-props.d.ts +0 -8
  121. package/dist/functions/helpers/cleanup-props.js +0 -23
  122. package/dist/functions/helpers/concat-videos.d.ts +0 -23
  123. package/dist/functions/helpers/concat-videos.js +0 -54
  124. package/dist/functions/helpers/create-post-render-data.d.ts +0 -17
  125. package/dist/functions/helpers/create-post-render-data.js +0 -67
  126. package/dist/functions/helpers/find-output-file-in-bucket.d.ts +0 -14
  127. package/dist/functions/helpers/find-output-file-in-bucket.js +0 -38
  128. package/dist/functions/helpers/format-costs-info.d.ts +0 -2
  129. package/dist/functions/helpers/format-costs-info.js +0 -23
  130. package/dist/functions/helpers/get-overall-progress-s3.d.ts +0 -10
  131. package/dist/functions/helpers/get-overall-progress-s3.js +0 -24
  132. package/dist/functions/helpers/get-overall-progress.d.ts +0 -9
  133. package/dist/functions/helpers/get-overall-progress.js +0 -23
  134. package/dist/functions/helpers/get-progress.d.ts +0 -15
  135. package/dist/functions/helpers/get-progress.js +0 -254
  136. package/dist/functions/helpers/get-retry-stats.d.ts +0 -5
  137. package/dist/functions/helpers/get-retry-stats.js +0 -2
  138. package/dist/functions/helpers/inspect-errors.d.ts +0 -4
  139. package/dist/functions/helpers/inspect-errors.js +0 -39
  140. package/dist/functions/helpers/is-warm.d.ts +0 -2
  141. package/dist/functions/helpers/is-warm.js +0 -10
  142. package/dist/functions/helpers/leak-detection.d.ts +0 -4
  143. package/dist/functions/helpers/leak-detection.js +0 -40
  144. package/dist/functions/helpers/make-timeout-error.d.ts +0 -10
  145. package/dist/functions/helpers/make-timeout-error.js +0 -31
  146. package/dist/functions/helpers/make-timeout-message.d.ts +0 -10
  147. package/dist/functions/helpers/make-timeout-message.js +0 -75
  148. package/dist/functions/helpers/merge-chunks.d.ts +0 -36
  149. package/dist/functions/helpers/merge-chunks.js +0 -84
  150. package/dist/functions/helpers/min-max.d.ts +0 -2
  151. package/dist/functions/helpers/min-max.js +0 -33
  152. package/dist/functions/helpers/on-downloads-logger.d.ts +0 -2
  153. package/dist/functions/helpers/on-downloads-logger.js +0 -29
  154. package/dist/functions/helpers/overall-render-progress.d.ts +0 -59
  155. package/dist/functions/helpers/overall-render-progress.js +0 -180
  156. package/dist/functions/helpers/print-concurrency-curve.d.ts +0 -1
  157. package/dist/functions/helpers/print-concurrency-curve.js +0 -8
  158. package/dist/functions/helpers/print-logging-helper.d.ts +0 -4
  159. package/dist/functions/helpers/print-logging-helper.js +0 -12
  160. package/dist/functions/helpers/render-has-audio-video.d.ts +0 -6
  161. package/dist/functions/helpers/render-has-audio-video.js +0 -21
  162. package/dist/functions/helpers/request-context.d.ts +0 -5
  163. package/dist/functions/helpers/request-context.js +0 -2
  164. package/dist/functions/helpers/stream-renderer.d.ts +0 -17
  165. package/dist/functions/helpers/stream-renderer.js +0 -148
  166. package/dist/functions/launch.d.ts +0 -10
  167. package/dist/functions/launch.js +0 -596
  168. package/dist/functions/progress.d.ts +0 -11
  169. package/dist/functions/progress.js +0 -51
  170. package/dist/functions/renderer.d.ts +0 -17
  171. package/dist/functions/renderer.js +0 -341
  172. package/dist/functions/start.d.ts +0 -13
  173. package/dist/functions/start.js +0 -113
  174. package/dist/functions/still.d.ts +0 -19
  175. package/dist/functions/still.js +0 -330
  176. package/dist/shared/__mocks__/aws-clients.d.ts +0 -2
  177. package/dist/shared/__mocks__/aws-clients.js +0 -62
  178. package/dist/shared/__mocks__/bundle-site.d.ts +0 -2
  179. package/dist/shared/__mocks__/bundle-site.js +0 -32
  180. package/dist/shared/__mocks__/check-credentials.d.ts +0 -1
  181. package/dist/shared/__mocks__/check-credentials.js +0 -5
  182. package/dist/shared/__mocks__/get-account-id.d.ts +0 -2
  183. package/dist/shared/__mocks__/get-account-id.js +0 -11
  184. package/dist/shared/__mocks__/read-dir.d.ts +0 -2
  185. package/dist/shared/__mocks__/read-dir.js +0 -13
  186. package/dist/shared/call-lambda.d.ts +0 -16
  187. package/dist/shared/call-lambda.js +0 -149
  188. package/dist/shared/cleanup-serialized-input-props.d.ts +0 -14
  189. package/dist/shared/cleanup-serialized-input-props.js +0 -34
  190. package/dist/shared/docs-url.d.ts +0 -1
  191. package/dist/shared/docs-url.js +0 -4
  192. package/dist/shared/get-most-expensive-chunks.d.ts +0 -8
  193. package/dist/shared/get-most-expensive-chunks.js +0 -28
  194. package/dist/shared/invoke-webhook.d.ts +0 -48
  195. package/dist/shared/invoke-webhook.js +0 -140
  196. package/dist/shared/parse-lambda-timings-key.d.ts +0 -5
  197. package/dist/shared/parse-lambda-timings-key.js +0 -2
  198. package/dist/shared/return-values.d.ts +0 -16
  199. package/dist/shared/return-values.js +0 -2
  200. package/dist/shared/stackback.d.ts +0 -6
  201. package/dist/shared/stackback.js +0 -59
  202. package/dist/shared/validate-download-behavior.d.ts +0 -1
  203. package/dist/shared/validate-download-behavior.js +0 -21
  204. package/dist/shared/validate-frames-per-lambda.d.ts +0 -4
  205. package/dist/shared/validate-frames-per-lambda.js +0 -29
  206. package/dist/shared/validate-privacy.d.ts +0 -2
  207. package/dist/shared/validate-privacy.js +0 -14
  208. package/dist/shared/validate.d.ts +0 -4
  209. package/dist/shared/validate.js +0 -8
  210. package/dist/shared/why-is-node-running.d.ts +0 -15
  211. package/dist/shared/why-is-node-running.js +0 -88
  212. package/vitest.config.mts +0 -11
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EnhancedErrorInfo, LambdaErrorInfo } from '@remotion/serverless';
1
+ import type { EnhancedErrorInfo, FunctionInfo, LambdaErrorInfo } from '@remotion/serverless';
2
2
  import type { CustomCredentials, GetOrCreateBucketInput, GetOrCreateBucketOutput } from '@remotion/serverless/client';
3
3
  import type { DeleteFunctionInput } from './api/delete-function';
4
4
  import { deleteFunction } from './api/delete-function';
@@ -18,7 +18,7 @@ import type { GetAwsClientInput, GetAwsClientOutput } from './api/get-aws-client
18
18
  import { getAwsClient } from './api/get-aws-client';
19
19
  import type { GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput } from './api/get-compositions-on-lambda';
20
20
  import { getCompositionsOnLambda } from './api/get-compositions-on-lambda';
21
- import type { FunctionInfo, GetFunctionInfoInput } from './api/get-function-info';
21
+ import type { GetFunctionInfoInput } from './api/get-function-info';
22
22
  import { getFunctionInfo } from './api/get-function-info';
23
23
  import type { GetFunctionsInput } from './api/get-functions';
24
24
  import { getFunctions } from './api/get-functions';
@@ -33,10 +33,10 @@ import type { RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput } from './api/
33
33
  import { renderVideoOnLambda } from './api/render-media-on-lambda';
34
34
  import type { RenderStillOnLambdaInput, RenderStillOnLambdaOutput } from './api/render-still-on-lambda';
35
35
  import { validateWebhookSignature } from './api/validate-webhook-signature';
36
- import { LambdaInternals, _InternalAwsProvider, _InternalOverallRenderProgress } from './internals';
36
+ import { LambdaInternals, type _InternalAwsProvider, type _InternalOverallRenderProgress } from './internals';
37
37
  import type { AwsRegion } from './regions';
38
38
  import type { RenderProgress } from './shared/constants';
39
- import type { WebhookPayload } from './shared/invoke-webhook';
39
+ export type { WebhookPayload } from '@remotion/serverless';
40
40
  /**
41
41
  * @deprecated Import this from `@remotion/lambda/client` instead
42
42
  */
@@ -57,6 +57,6 @@ declare const presignUrl: <CheckIfObjectExists extends boolean = false>({ region
57
57
  * @deprecated Import this from `@remotion/lambda/client` instead
58
58
  */
59
59
  declare const getSites: ({ region, forceBucketName, forcePathStyle, }: GetSitesInput) => Promise<GetSitesOutput>;
60
- export { LambdaInternals, deleteFunction, deleteRender, deleteSite, deployFunction, deploySite, downloadMedia, estimatePrice, getAwsClient, getCompositionsOnLambda, getFunctionInfo, getFunctions, getOrCreateBucket, getRegions, getRenderProgress, getRolePolicy, getSites, getUserPolicy, presignUrl, renderMediaOnLambda, renderStillOnLambda, renderVideoOnLambda, simulatePermissions, validateWebhookSignature, };
61
- export type { AwsRegion, CustomCredentials, DeleteFunctionInput, DeleteRenderInput, DeleteSiteInput, DeleteSiteOutput, DeployFunctionInput, DeployFunctionOutput, DeploySiteInput, DeploySiteOutput, DownloadMediaInput, DownloadMediaOutput, EnhancedErrorInfo, EstimatePriceInput, FunctionInfo, GetAwsClientInput, GetAwsClientOutput, GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput, GetFunctionInfoInput, GetFunctionsInput, GetOrCreateBucketInput, GetOrCreateBucketOutput, GetRenderProgressInput, GetSitesInput, GetSitesOutput, LambdaErrorInfo, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, RenderProgress, RenderStillOnLambdaInput, RenderStillOnLambdaOutput, SimulatePermissionsInput, SimulatePermissionsOutput, WebhookPayload, };
60
+ export { deleteFunction, deleteRender, deleteSite, deployFunction, deploySite, downloadMedia, estimatePrice, getAwsClient, getCompositionsOnLambda, getFunctionInfo, getFunctions, getOrCreateBucket, getRegions, getRenderProgress, getRolePolicy, getSites, getUserPolicy, LambdaInternals, presignUrl, renderMediaOnLambda, renderStillOnLambda, renderVideoOnLambda, simulatePermissions, validateWebhookSignature, };
61
+ export type { AwsRegion, CustomCredentials, DeleteFunctionInput, DeleteRenderInput, DeleteSiteInput, DeleteSiteOutput, DeployFunctionInput, DeployFunctionOutput, DeploySiteInput, DeploySiteOutput, DownloadMediaInput, DownloadMediaOutput, EnhancedErrorInfo, EstimatePriceInput, FunctionInfo, GetAwsClientInput, GetAwsClientOutput, GetCompositionsOnLambdaInput, GetCompositionsOnLambdaOutput, GetFunctionInfoInput, GetFunctionsInput, GetOrCreateBucketInput, GetOrCreateBucketOutput, GetRenderProgressInput, GetSitesInput, GetSitesOutput, LambdaErrorInfo, RenderMediaOnLambdaInput, RenderMediaOnLambdaOutput, RenderProgress, RenderStillOnLambdaInput, RenderStillOnLambdaOutput, SimulatePermissionsInput, SimulatePermissionsOutput, };
62
62
  export { _InternalAwsProvider, _InternalOverallRenderProgress };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateWebhookSignature = exports.simulatePermissions = exports.renderVideoOnLambda = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.presignUrl = exports.getUserPolicy = exports.getSites = exports.getRolePolicy = exports.getRenderProgress = exports.getRegions = exports.getOrCreateBucket = exports.getFunctions = exports.getFunctionInfo = exports.getCompositionsOnLambda = exports.getAwsClient = exports.estimatePrice = exports.downloadMedia = exports.deploySite = exports.deployFunction = exports.deleteSite = exports.deleteRender = exports.deleteFunction = exports.LambdaInternals = void 0;
3
+ exports.validateWebhookSignature = exports.simulatePermissions = exports.renderVideoOnLambda = exports.renderStillOnLambda = exports.renderMediaOnLambda = exports.presignUrl = exports.LambdaInternals = exports.getUserPolicy = exports.getSites = exports.getRolePolicy = exports.getRenderProgress = exports.getRegions = exports.getOrCreateBucket = exports.getFunctions = exports.getFunctionInfo = exports.getCompositionsOnLambda = exports.getAwsClient = exports.estimatePrice = exports.downloadMedia = exports.deploySite = exports.deployFunction = exports.deleteSite = exports.deleteRender = exports.deleteFunction = void 0;
4
4
  const no_react_1 = require("remotion/no-react");
5
5
  const delete_function_1 = require("./api/delete-function");
6
6
  Object.defineProperty(exports, "deleteFunction", { enumerable: true, get: function () { return delete_function_1.deleteFunction; } });
@@ -1,8 +1,8 @@
1
1
  export declare const LambdaInternals: {
2
- executeCommand: (args: string[], remotionRoot: string, logLevel: import("@remotion/renderer").LogLevel, implementation: import("@remotion/serverless").ProviderSpecifics<import("./functions/aws-implementation").AwsProvider> | null) => Promise<void>;
2
+ executeCommand: (args: string[], remotionRoot: string, logLevel: import("@remotion/renderer").LogLevel, providerSpecifics: import("@remotion/serverless").ProviderSpecifics<import("./functions/aws-implementation").AwsProvider> | null, fullClientSpecifics: import("@remotion/serverless").FullClientSpecifics<import("./functions/aws-implementation").AwsProvider> | null) => Promise<void>;
3
3
  makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, 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, deleteAfter, colorSpace, preferLossless, forcePathStyle, metadata, }: import("./api/make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless/client").ServerlessStartPayload<import("./functions/aws-implementation").AwsProvider>>;
4
4
  getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: import("./client").GetRenderProgressInput) => import("@remotion/serverless/client").ServerlessStatusPayload<import("./functions/aws-implementation").AwsProvider>;
5
- makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, }: import("./api/render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless/client").ServerlessPayloads<import("./functions/aws-implementation").AwsProvider>[import("@remotion/serverless/client").ServerlessRoutines.still]>;
5
+ makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, }: import("./api/render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless/client").ServerlessPayloads<import("./functions/aws-implementation").AwsProvider>[import("@remotion/serverless").ServerlessRoutines.still]>;
6
6
  internalDeploySite: (args_0: {
7
7
  entryPoint: string;
8
8
  bucketName: string;
@@ -11,7 +11,7 @@ export declare const LambdaInternals: {
11
11
  siteName: string;
12
12
  options: {
13
13
  onBundleProgress?: (progress: number) => void;
14
- onUploadProgress?: (upload: import("./api/upload-dir").UploadDirProgress) => void;
14
+ onUploadProgress?: (upload: import("@remotion/serverless").UploadDirProgress) => void;
15
15
  onDiffingProgress?: (bytes: number, done: boolean) => void;
16
16
  webpackOverride?: import("@remotion/bundler").WebpackOverrideFn;
17
17
  ignoreRegisterRootWarning?: boolean;
@@ -57,6 +57,7 @@ export declare const LambdaInternals: {
57
57
  };
58
58
  }> & {
59
59
  providerSpecifics: import("@remotion/serverless").ProviderSpecifics<import("./functions/aws-implementation").AwsProvider>;
60
+ fullClientSpecifics: import("@remotion/serverless").FullClientSpecifics<import("./functions/aws-implementation").AwsProvider>;
60
61
  }) => Promise<{
61
62
  serveUrl: string;
62
63
  siteName: string;
@@ -67,5 +68,5 @@ export declare const LambdaInternals: {
67
68
  };
68
69
  }>;
69
70
  };
70
- export { AwsProvider as _InternalAwsProvider } from './functions/aws-implementation';
71
- export { OverallRenderProgress as _InternalOverallRenderProgress } from './functions/helpers/overall-render-progress';
71
+ export type { OverallRenderProgress as _InternalOverallRenderProgress } from '@remotion/serverless';
72
+ export type { AwsProvider as _InternalAwsProvider } from './functions/aws-implementation';
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkCredentials = void 0;
4
4
  const client_1 = require("@remotion/serverless/client");
5
5
  const is_cli_1 = require("../cli/is-cli");
6
- const docs_url_1 = require("./docs-url");
7
6
  const is_likely_to_have_aws_profile_1 = require("./is-likely-to-have-aws-profile");
8
7
  const messageForVariable = (variable) => {
9
8
  return [
@@ -11,8 +10,8 @@ const messageForVariable = (variable) => {
11
10
  (0, is_cli_1.getIsCli)()
12
11
  ? null
13
12
  : `- Environment variables from a '.env' file are not automatically read if you are calling the Node.JS APIs, in that case you need to load the file yourself or set the environment variables manually.`,
14
- `- Please refer to the Remotion Lambda docs (${docs_url_1.DOCS_URL}/docs/lambda/setup) to see how to generate the credentials for your AWS account and then set the environment variables.`,
15
- `- For more reasons see the troubleshooting page: ${docs_url_1.DOCS_URL}/docs/lambda/troubleshooting/permissions`,
13
+ `- Please refer to the Remotion Lambda docs (${client_1.DOCS_URL}/docs/lambda/setup) to see how to generate the credentials for your AWS account and then set the environment variables.`,
14
+ `- For more reasons see the troubleshooting page: ${client_1.DOCS_URL}/docs/lambda/troubleshooting/permissions`,
16
15
  ]
17
16
  .filter(client_1.truthy)
18
17
  .join('\n');
@@ -1,22 +1,17 @@
1
- import type { CloudProvider, EnhancedErrorInfo, ReceivedArtifact } from '@remotion/serverless';
2
- import { type DeleteAfter, type Privacy, type RenderMetadata } from '@remotion/serverless/client';
1
+ import type { GenericRenderProgress } from '@remotion/serverless';
2
+ import { type Privacy } from '@remotion/serverless/client';
3
3
  import type { AwsProvider } from '../functions/aws-implementation';
4
- import type { ChunkRetry } from '../functions/helpers/get-retry-stats';
5
4
  import type { AwsRegion } from '../regions';
6
- import type { ExpensiveChunk } from './get-most-expensive-chunks';
7
5
  export declare const MIN_MEMORY = 512;
8
6
  export declare const MAX_MEMORY = 10240;
9
7
  export declare const DEFAULT_MEMORY_SIZE = 2048;
10
8
  export declare const DEFAULT_TIMEOUT = 120;
11
9
  export declare const MIN_TIMEOUT = 15;
12
10
  export declare const MAX_TIMEOUT = 900;
13
- export declare const MINIMUM_FRAMES_PER_LAMBDA = 4;
14
11
  export declare const DEFAULT_FRAMES_PER_LAMBDA = 20;
15
12
  export declare const BINARY_NAME = "remotion lambda";
16
- export declare const COMMAND_NOT_FOUND = "Command not found";
17
13
  export declare const DEFAULT_REGION: AwsRegion;
18
14
  export declare const DEFAULT_MAX_RETRIES = 1;
19
- export declare const MAX_FUNCTIONS_PER_RENDER = 200;
20
15
  export declare const MAX_EPHEMERAL_STORAGE_IN_MB = 10240;
21
16
  export declare const DEFAULT_EPHEMERAL_STORAGE_IN_MB: number;
22
17
  export declare const MIN_EPHEMERAL_STORAGE_IN_MB = 512;
@@ -26,89 +21,5 @@ export declare const RENDER_FN_PREFIX = "remotion-render-";
26
21
  export declare const LOG_GROUP_PREFIX = "/aws/lambda/";
27
22
  export declare const LAMBDA_INSIGHTS_PREFIX = "/aws/lambda-insights";
28
23
  export declare const getSitesKey: (siteId: string) => string;
29
- export declare const RENDERER_PATH_TOKEN = "remotion-bucket";
30
- export declare const CONCAT_FOLDER_TOKEN = "remotion-concat";
31
- export declare const REMOTION_CONCATED_TOKEN = "remotion-concated-token";
32
- export declare const REMOTION_FILELIST_TOKEN = "remotion-filelist";
33
- export type AfterRenderCost = {
34
- estimatedCost: number;
35
- estimatedDisplayCost: string;
36
- currency: string;
37
- disclaimer: string;
38
- };
39
- export type PostRenderData<Provider extends CloudProvider> = {
40
- cost: AfterRenderCost;
41
- outputFile: string;
42
- outputSize: number;
43
- renderSize: number;
44
- timeToFinish: number;
45
- timeToRenderFrames: number;
46
- errors: EnhancedErrorInfo[];
47
- startTime: number;
48
- endTime: number;
49
- filesCleanedUp: number;
50
- timeToEncode: number;
51
- timeToCleanUp: number;
52
- timeToRenderChunks: number;
53
- retriesInfo: ChunkRetry[];
54
- mostExpensiveFrameRanges: ExpensiveChunk[] | undefined;
55
- estimatedBillingDurationInMilliseconds: number;
56
- deleteAfter: DeleteAfter | null;
57
- timeToCombine: number | null;
58
- artifactProgress: ReceivedArtifact<Provider>[];
59
- };
60
- export type CostsInfo = {
61
- accruedSoFar: number;
62
- displayCost: string;
63
- currency: string;
64
- disclaimer: string;
65
- };
66
- export type CleanupInfo = {
67
- doneIn: number | null;
68
- minFilesToDelete: number;
69
- filesDeleted: number;
70
- };
71
- type EncodingProgress = {
72
- framesEncoded: number;
73
- combinedFrames: number;
74
- timeToCombine: number | null;
75
- };
76
- export type GenericRenderProgress<Provider extends CloudProvider> = {
77
- chunks: number;
78
- done: boolean;
79
- encodingStatus: EncodingProgress | null;
80
- costs: CostsInfo;
81
- renderId: string;
82
- renderMetadata: RenderMetadata<Provider> | null;
83
- bucket: string;
84
- outputFile: string | null;
85
- outKey: string | null;
86
- outBucket: string | null;
87
- timeToFinish: number | null;
88
- errors: EnhancedErrorInfo[];
89
- fatalErrorEncountered: boolean;
90
- currentTime: number;
91
- renderSize: number;
92
- lambdasInvoked: number;
93
- cleanup: CleanupInfo | null;
94
- timeToFinishChunks: number | null;
95
- timeToRenderFrames: number | null;
96
- timeToEncode: number | null;
97
- overallProgress: number;
98
- retriesInfo: ChunkRetry[];
99
- mostExpensiveFrameRanges: ExpensiveChunk[] | null;
100
- framesRendered: number;
101
- outputSizeInBytes: number | null;
102
- type: 'success';
103
- estimatedBillingDurationInMilliseconds: number | null;
104
- combinedFrames: number;
105
- timeToCombine: number | null;
106
- timeoutTimestamp: number;
107
- functionLaunched: number;
108
- serveUrlOpened: number | null;
109
- compositionValidated: number | null;
110
- artifacts: ReceivedArtifact<Provider>[];
111
- };
112
24
  export type RenderProgress = GenericRenderProgress<AwsProvider>;
113
25
  export declare const LAMBDA_CONCURRENCY_LIMIT_QUOTA = "L-B99A9384";
114
- export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = exports.REMOTION_FILELIST_TOKEN = exports.REMOTION_CONCATED_TOKEN = exports.CONCAT_FOLDER_TOKEN = exports.RENDERER_PATH_TOKEN = exports.getSitesKey = exports.LAMBDA_INSIGHTS_PREFIX = exports.LOG_GROUP_PREFIX = exports.RENDER_FN_PREFIX = exports.DEFAULT_CLOUDWATCH_RETENTION_PERIOD = exports.DEFAULT_OUTPUT_PRIVACY = exports.MIN_EPHEMERAL_STORAGE_IN_MB = exports.DEFAULT_EPHEMERAL_STORAGE_IN_MB = exports.MAX_EPHEMERAL_STORAGE_IN_MB = exports.MAX_FUNCTIONS_PER_RENDER = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_REGION = exports.COMMAND_NOT_FOUND = exports.BINARY_NAME = exports.DEFAULT_FRAMES_PER_LAMBDA = exports.MINIMUM_FRAMES_PER_LAMBDA = exports.MAX_TIMEOUT = exports.MIN_TIMEOUT = exports.DEFAULT_TIMEOUT = exports.DEFAULT_MEMORY_SIZE = exports.MAX_MEMORY = exports.MIN_MEMORY = void 0;
3
+ exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = exports.getSitesKey = exports.LAMBDA_INSIGHTS_PREFIX = exports.LOG_GROUP_PREFIX = exports.RENDER_FN_PREFIX = exports.DEFAULT_CLOUDWATCH_RETENTION_PERIOD = exports.DEFAULT_OUTPUT_PRIVACY = exports.MIN_EPHEMERAL_STORAGE_IN_MB = exports.DEFAULT_EPHEMERAL_STORAGE_IN_MB = exports.MAX_EPHEMERAL_STORAGE_IN_MB = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_REGION = exports.BINARY_NAME = exports.DEFAULT_FRAMES_PER_LAMBDA = exports.MAX_TIMEOUT = exports.MIN_TIMEOUT = exports.DEFAULT_TIMEOUT = exports.DEFAULT_MEMORY_SIZE = exports.MAX_MEMORY = exports.MIN_MEMORY = void 0;
4
4
  const no_react_1 = require("remotion/no-react");
5
5
  exports.MIN_MEMORY = 512;
6
6
  exports.MAX_MEMORY = 10240;
@@ -8,13 +8,10 @@ exports.DEFAULT_MEMORY_SIZE = 2048;
8
8
  exports.DEFAULT_TIMEOUT = 120;
9
9
  exports.MIN_TIMEOUT = 15;
10
10
  exports.MAX_TIMEOUT = 900;
11
- exports.MINIMUM_FRAMES_PER_LAMBDA = 4;
12
11
  exports.DEFAULT_FRAMES_PER_LAMBDA = 20;
13
12
  exports.BINARY_NAME = 'remotion lambda';
14
- exports.COMMAND_NOT_FOUND = 'Command not found';
15
13
  exports.DEFAULT_REGION = 'us-east-1';
16
14
  exports.DEFAULT_MAX_RETRIES = 1;
17
- exports.MAX_FUNCTIONS_PER_RENDER = 200;
18
15
  exports.MAX_EPHEMERAL_STORAGE_IN_MB = 10240;
19
16
  exports.DEFAULT_EPHEMERAL_STORAGE_IN_MB = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
20
17
  ? exports.MAX_EPHEMERAL_STORAGE_IN_MB
@@ -27,8 +24,4 @@ exports.LOG_GROUP_PREFIX = '/aws/lambda/';
27
24
  exports.LAMBDA_INSIGHTS_PREFIX = '/aws/lambda-insights';
28
25
  const getSitesKey = (siteId) => `sites/${siteId}`;
29
26
  exports.getSitesKey = getSitesKey;
30
- exports.RENDERER_PATH_TOKEN = 'remotion-bucket';
31
- exports.CONCAT_FOLDER_TOKEN = 'remotion-concat';
32
- exports.REMOTION_CONCATED_TOKEN = 'remotion-concated-token';
33
- exports.REMOTION_FILELIST_TOKEN = 'remotion-filelist';
34
27
  exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = 'L-B99A9384';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.convertToServeUrlImplementation = void 0;
4
- const docs_url_1 = require("./docs-url");
4
+ const client_1 = require("@remotion/serverless/client");
5
5
  const convertToServeUrlImplementation = ({ urlOrId, region, bucketName, }) => {
6
6
  if (urlOrId.startsWith('src/')) {
7
- throw new Error(`Remotion Lambda can only render based on a URL in the cloud. It seems like you passed a local file: ${urlOrId}. Read the setup guide for Remotion Lambda ${docs_url_1.DOCS_URL}/docs/lambda/setup`);
7
+ throw new Error(`Remotion Lambda can only render based on a URL in the cloud. It seems like you passed a local file: ${urlOrId}. Read the setup guide for Remotion Lambda ${client_1.DOCS_URL}/docs/lambda/setup`);
8
8
  }
9
9
  if (urlOrId.startsWith('http://') || urlOrId.startsWith('https://')) {
10
10
  return urlOrId;
@@ -1,4 +1,3 @@
1
- import type { AwsRegion } from '../regions';
2
- export declare const getAccountId: (options: {
3
- region: AwsRegion;
4
- }) => Promise<string>;
1
+ import type { GetAccountId } from '@remotion/serverless';
2
+ import type { AwsProvider } from '../functions/aws-implementation';
3
+ export declare const getAccountIdImplementation: GetAccountId<AwsProvider>;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAccountId = void 0;
3
+ exports.getAccountIdImplementation = void 0;
4
4
  const client_sts_1 = require("@aws-sdk/client-sts");
5
5
  const aws_clients_1 = require("./aws-clients");
6
6
  const validate_aws_region_1 = require("./validate-aws-region");
7
- const getAccountId = async (options) => {
7
+ const getAccountIdImplementation = async (options) => {
8
8
  (0, validate_aws_region_1.validateAwsRegion)(options.region);
9
9
  const callerIdentity = await (0, aws_clients_1.getStsClient)(options.region).send(new client_sts_1.GetCallerIdentityCommand({}));
10
10
  if (!callerIdentity.Account) {
@@ -12,4 +12,4 @@ const getAccountId = async (options) => {
12
12
  }
13
13
  return callerIdentity.Account;
14
14
  };
15
- exports.getAccountId = getAccountId;
15
+ exports.getAccountIdImplementation = getAccountIdImplementation;
@@ -1,5 +1,7 @@
1
+ import type { GetLoggingUrlForRendererFunction } from '@remotion/serverless';
1
2
  import type { ServerlessRoutines } from '@remotion/serverless/client';
2
- import type { AwsRegion } from '../client';
3
+ import type { AwsProvider } from '../functions/aws-implementation';
4
+ import type { AwsRegion } from '../regions';
3
5
  export declare const getCloudwatchMethodUrl: ({ region, functionName, renderId, rendererFunctionName, method, }: {
4
6
  region: AwsRegion;
5
7
  functionName: string;
@@ -11,13 +13,7 @@ export declare const getLambdaInsightsUrl: ({ region, functionName, }: {
11
13
  region: AwsRegion;
12
14
  functionName: string;
13
15
  }) => string;
14
- export declare const getCloudwatchRendererUrl: ({ region, functionName, renderId, rendererFunctionName, chunk, }: {
15
- region: AwsRegion;
16
- functionName: string;
17
- rendererFunctionName: string | null;
18
- renderId: string;
19
- chunk: null | number;
20
- }) => string;
16
+ export declare const getCloudwatchRendererUrl: GetLoggingUrlForRendererFunction<AwsProvider>;
21
17
  export declare const getS3RenderUrl: ({ renderId, region, bucketName, }: {
22
18
  renderId: string;
23
19
  region: AwsRegion;
@@ -15,7 +15,7 @@ const getLambdaInsightsUrl = ({ region, functionName, }) => {
15
15
  return `https://${region}.console.aws.amazon.com/cloudwatch/home?region=${region}#lambda-insights:functions/${functionName}`;
16
16
  };
17
17
  exports.getLambdaInsightsUrl = getLambdaInsightsUrl;
18
- const getCloudwatchRendererUrl = ({ region, functionName, renderId, rendererFunctionName, chunk, }) => {
18
+ const getCloudwatchRendererUrl = ({ region, functionName, renderId, rendererFunctionName, chunk }) => {
19
19
  const functionNameToUse = rendererFunctionName !== null && rendererFunctionName !== void 0 ? rendererFunctionName : functionName;
20
20
  const query = `"method=renderer,renderId=${renderId}${chunk === null ? '' : `,chunk=${chunk},`}"`;
21
21
  return cloudWatchUrlWithQuery({ region, functionNameToUse, query });
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFunctionVersion = void 0;
4
4
  const client_1 = require("@remotion/serverless/client");
5
- const call_lambda_1 = require("./call-lambda");
6
- const constants_1 = require("./constants");
5
+ const aws_implementation_1 = require("../functions/aws-implementation");
7
6
  const getFunctionVersion = async ({ functionName, region, logLevel, }) => {
8
7
  try {
9
- const result = await (0, call_lambda_1.callLambda)({
8
+ const result = await aws_implementation_1.awsImplementation.callFunctionSync({
10
9
  functionName,
11
10
  payload: {
12
11
  logLevel,
12
+ type: client_1.ServerlessRoutines.info,
13
13
  },
14
14
  region,
15
15
  type: client_1.ServerlessRoutines.info,
@@ -19,7 +19,7 @@ const getFunctionVersion = async ({ functionName, region, logLevel, }) => {
19
19
  }
20
20
  catch (err) {
21
21
  // Prerelease versions had no info command
22
- if (err.message.includes(constants_1.COMMAND_NOT_FOUND)) {
22
+ if (err.message.includes(client_1.COMMAND_NOT_FOUND)) {
23
23
  return 'n/a';
24
24
  }
25
25
  // Bug in certain version of AWS S3 kit
@@ -1,9 +1,12 @@
1
1
  import type { _Object } from '@aws-sdk/client-s3';
2
- export declare const getS3DiffOperations: ({ objects, bundle, prefix, onProgress, }: {
2
+ import type { FullClientSpecifics } from '@remotion/serverless';
3
+ import type { AwsProvider } from '../functions/aws-implementation';
4
+ export declare const getS3DiffOperations: ({ objects, bundle, prefix, onProgress, fullClientSpecifics, }: {
3
5
  objects: _Object[];
4
6
  bundle: string;
5
7
  prefix: string;
6
8
  onProgress: (bytes: number) => void;
9
+ fullClientSpecifics: FullClientSpecifics<AwsProvider>;
7
10
  }) => Promise<{
8
11
  toDelete: _Object[];
9
12
  toUpload: string[];
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getS3DiffOperations = void 0;
4
- const read_dir_1 = require("./read-dir");
5
- const getS3DiffOperations = async ({ objects, bundle, prefix, onProgress, }) => {
4
+ const getS3DiffOperations = async ({ objects, bundle, prefix, onProgress, fullClientSpecifics, }) => {
6
5
  var _a, _b, _c;
7
6
  let totalBytes = 0;
8
- const dir = (0, read_dir_1.readDirectory)({
7
+ const dir = fullClientSpecifics.readDirectory({
9
8
  dir: bundle,
10
9
  etags: {},
11
10
  originalDir: bundle,
@@ -7,9 +7,9 @@ const client_lambda_1 = require("@aws-sdk/client-lambda");
7
7
  const client_s3_1 = require("@aws-sdk/client-s3");
8
8
  const client_service_quotas_1 = require("@aws-sdk/client-service-quotas");
9
9
  const client_sts_1 = require("@aws-sdk/client-sts");
10
+ const client_1 = require("@remotion/serverless/client");
10
11
  const no_react_1 = require("remotion/no-react");
11
12
  const check_credentials_1 = require("./check-credentials");
12
- const constants_1 = require("./constants");
13
13
  const get_credentials_1 = require("./get-credentials");
14
14
  const getCredentialsHash = ({ customCredentials, region, service, forcePathStyle, }) => {
15
15
  const hashComponents = {};
@@ -83,7 +83,7 @@ const getServiceClient = ({ region, service, customCredentials, forcePathStyle,
83
83
  const lambdaOptions = service === 'lambda'
84
84
  ? {
85
85
  httpsAgent: {
86
- maxSockets: constants_1.MAX_FUNCTIONS_PER_RENDER * 2,
86
+ maxSockets: client_1.MAX_FUNCTIONS_PER_RENDER * 2,
87
87
  },
88
88
  }
89
89
  : undefined;
@@ -1,10 +1,2 @@
1
- export declare function readDirectory({ dir, etags, originalDir, onProgress, }: {
2
- dir: string;
3
- etags: {
4
- [key: string]: () => Promise<string>;
5
- };
6
- originalDir: string;
7
- onProgress: (bytes: number) => void;
8
- }): {
9
- [key: string]: () => Promise<string>;
10
- };
1
+ import type { ReadDir } from '@remotion/serverless';
2
+ export declare const readDirectory: ReadDir;
@@ -23,13 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.readDirectory = readDirectory;
26
+ exports.readDirectory = void 0;
27
27
  const fs = __importStar(require("node:fs"));
28
28
  const path = __importStar(require("node:path"));
29
29
  const get_etag_1 = require("./get-etag");
30
30
  // Function to recursively read a directory and return a list of files
31
31
  // with their etags and file names
32
- function readDirectory({ dir, etags, originalDir, onProgress, }) {
32
+ const readDirectory = ({ dir, etags, originalDir, onProgress, }) => {
33
33
  const files = fs.readdirSync(dir);
34
34
  for (const file of files) {
35
35
  if (file.startsWith('.DS_Store'))
@@ -38,7 +38,7 @@ function readDirectory({ dir, etags, originalDir, onProgress, }) {
38
38
  if (fs.lstatSync(filePath).isDirectory()) {
39
39
  etags = {
40
40
  ...etags,
41
- ...readDirectory({
41
+ ...(0, exports.readDirectory)({
42
42
  dir: filePath,
43
43
  etags,
44
44
  originalDir,
@@ -57,4 +57,5 @@ function readDirectory({ dir, etags, originalDir, onProgress, }) {
57
57
  }
58
58
  // Return the list of files with their etags and file names
59
59
  return etags;
60
- }
60
+ };
61
+ exports.readDirectory = readDirectory;
@@ -1,4 +1,4 @@
1
- import type { AwsRegion } from '../client';
1
+ import type { AwsRegion } from '../regions';
2
2
  export declare const parseBucketName: (name: string) => {
3
3
  region: AwsRegion | null;
4
4
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.245",
6
+ "version": "4.0.247",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -22,28 +22,28 @@
22
22
  "@aws-sdk/s3-request-presigner": "3.645.0",
23
23
  "mime-types": "2.1.34",
24
24
  "zod": "3.22.3",
25
- "@remotion/serverless": "4.0.245",
26
- "@remotion/streaming": "4.0.245",
27
- "@remotion/bundler": "4.0.245",
28
- "remotion": "4.0.245",
29
- "@remotion/studio-server": "4.0.245",
30
- "@remotion/cli": "4.0.245",
31
- "@remotion/renderer": "4.0.245"
25
+ "remotion": "4.0.247",
26
+ "@remotion/cli": "4.0.247",
27
+ "@remotion/bundler": "4.0.247",
28
+ "@remotion/renderer": "4.0.247",
29
+ "@remotion/serverless": "4.0.247",
30
+ "@remotion/streaming": "4.0.247",
31
+ "@remotion/studio-server": "4.0.247"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/mime-types": "2.1.1",
35
35
  "@types/minimist": "1.2.2",
36
36
  "@types/prompt": "^1.1.0",
37
37
  "pureimage": "0.4.13",
38
- "vitest": "0.31.1",
39
38
  "zip-lib": "^0.7.2",
39
+ "next": "15.1.2",
40
40
  "eslint": "9.14.0",
41
- "@remotion/eslint-config-internal": "4.0.245",
42
- "@remotion/compositor-linux-arm64-gnu": "4.0.245",
43
- "@remotion/bundler": "4.0.245"
41
+ "@remotion/compositor-linux-arm64-gnu": "4.0.247",
42
+ "@remotion/bundler": "4.0.247",
43
+ "@remotion/eslint-config-internal": "4.0.247"
44
44
  },
45
45
  "peerDependencies": {
46
- "@remotion/bundler": "4.0.245"
46
+ "@remotion/bundler": "4.0.247"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
@@ -77,8 +77,8 @@
77
77
  "scripts": {
78
78
  "formatting": "prettier src --check",
79
79
  "lint": "eslint src",
80
- "testlambda": "vitest src/test/integration --run",
81
- "test": "vitest src/test/unit --run",
80
+ "testlambda": "bun test src/test/integration",
81
+ "test": "bun test src/test/unit",
82
82
  "make": "tsc -d && bun build.ts"
83
83
  }
84
84
  }
Binary file
@@ -1,2 +0,0 @@
1
- import type { cleanItems as original } from '../clean-items';
2
- export declare const cleanItems: typeof original;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cleanItems = void 0;
4
- const mock_store_1 = require("../../test/mocks/mock-store");
5
- const cleanItems = (input) => {
6
- var _a, _b;
7
- for (const item of input.list) {
8
- (_a = input.onBeforeItemDeleted) === null || _a === void 0 ? void 0 : _a.call(input, {
9
- bucketName: input.bucket,
10
- itemName: item,
11
- });
12
- (0, mock_store_1.mockDeleteS3File)({
13
- key: item,
14
- bucketName: input.bucket,
15
- region: input.region,
16
- });
17
- (_b = input.onAfterItemDeleted) === null || _b === void 0 ? void 0 : _b.call(input, {
18
- bucketName: input.bucket,
19
- itemName: item,
20
- });
21
- }
22
- return Promise.resolve([]);
23
- };
24
- exports.cleanItems = cleanItems;
@@ -1,2 +0,0 @@
1
- import type { createFunction as original } from '../create-function';
2
- export declare const createFunction: typeof original;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFunction = void 0;
4
- const version_1 = require("remotion/version");
5
- const defaults_1 = require("../../defaults");
6
- const mock_functions_1 = require("../mock-functions");
7
- const createFunction = (input) => {
8
- if (!input.alreadyCreated) {
9
- (0, mock_functions_1.addFunction)({
10
- functionName: input.functionName,
11
- memorySizeInMb: defaults_1.DEFAULT_MEMORY_SIZE,
12
- timeoutInSeconds: input.timeoutInSeconds,
13
- version: version_1.VERSION,
14
- diskSizeInMb: defaults_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
15
- }, input.region);
16
- }
17
- return Promise.resolve({
18
- FunctionName: input.functionName,
19
- });
20
- };
21
- exports.createFunction = createFunction;
@@ -1,2 +0,0 @@
1
- import type { deleteFunction as original } from '../delete-function';
2
- export declare const deleteFunction: typeof original;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteFunction = void 0;
4
- const mock_functions_1 = require("../mock-functions");
5
- const deleteFunction = ({ region, functionName }) => {
6
- (0, mock_functions_1.deleteMockFunction)(functionName, region);
7
- return Promise.resolve();
8
- };
9
- exports.deleteFunction = deleteFunction;
@@ -1,2 +0,0 @@
1
- import type { getFunctions as original } from '../get-functions';
2
- export declare const getFunctions: typeof original;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFunctions = void 0;
4
- const version_1 = require("remotion/version");
5
- const mock_functions_1 = require("../mock-functions");
6
- const getFunctions = ({ region, compatibleOnly }) => {
7
- return Promise.resolve((0, mock_functions_1.getAllMockFunctions)(region, compatibleOnly ? version_1.VERSION : null));
8
- };
9
- exports.getFunctions = getFunctions;
@@ -1,3 +0,0 @@
1
- import type { MockFile, uploadDir as original } from '../upload-dir';
2
- export declare const getDirFiles: (dir: string) => MockFile[];
3
- export declare const uploadDir: typeof original;