@remotion/lambda-client 4.0.398 → 4.0.399
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/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +39 -33
- package/dist/cjs/make-lambda-payload.d.ts +2 -2
- package/dist/esm/index.mjs +26 -20
- package/package.json +3 -3
- package/dist/app-router-webhook.d.ts +0 -10
- package/dist/app-router-webhook.js +0 -43
- package/dist/apply-lifecycle.d.ts +0 -8
- package/dist/apply-lifecycle.js +0 -18
- package/dist/aws-clients.d.ts +0 -12
- package/dist/aws-clients.js +0 -56
- package/dist/aws-provider.d.ts +0 -27
- package/dist/aws-provider.js +0 -94
- package/dist/bucket-exists.d.ts +0 -3
- package/dist/bucket-exists.js +0 -27
- package/dist/call-lambda-async.d.ts +0 -2
- package/dist/call-lambda-async.js +0 -20
- package/dist/call-lambda-streaming.d.ts +0 -6
- package/dist/call-lambda-streaming.js +0 -126
- package/dist/call-lambda-sync.d.ts +0 -2
- package/dist/call-lambda-sync.js +0 -30
- package/dist/check-credentials.d.ts +0 -1
- package/dist/check-credentials.js +0 -39
- package/dist/clean-items.d.ts +0 -17
- package/dist/clean-items.js +0 -26
- package/dist/constants.d.ts +0 -25
- package/dist/constants.js +0 -26
- package/dist/content-disposition-header.d.ts +0 -2
- package/dist/content-disposition-header.js +0 -50
- package/dist/convert-to-serve-url.d.ts +0 -6
- package/dist/convert-to-serve-url.js +0 -14
- package/dist/create-bucket.d.ts +0 -3
- package/dist/create-bucket.js +0 -65
- package/dist/delete-file.d.ts +0 -3
- package/dist/delete-file.js +0 -17
- package/dist/delete-function.d.ts +0 -7
- package/dist/delete-function.js +0 -15
- package/dist/delete-render.d.ts +0 -22
- package/dist/delete-render.js +0 -90
- package/dist/encode-aws-url-params.d.ts +0 -1
- package/dist/encode-aws-url-params.js +0 -7
- package/dist/estimate-price.d.ts +0 -17
- package/dist/estimate-price.js +0 -45
- package/dist/express-webhook.d.ts +0 -3
- package/dist/express-webhook.js +0 -46
- package/dist/get-account-id.d.ts +0 -3
- package/dist/get-account-id.js +0 -15
- package/dist/get-aws-client.d.ts +0 -32
- package/dist/get-aws-client.js +0 -67
- package/dist/get-aws-urls.d.ts +0 -25
- package/dist/get-aws-urls.js +0 -31
- package/dist/get-buckets.d.ts +0 -9
- package/dist/get-buckets.js +0 -64
- package/dist/get-compositions-on-lambda.d.ts +0 -20
- package/dist/get-compositions-on-lambda.js +0 -62
- package/dist/get-credentials.d.ts +0 -9
- package/dist/get-credentials.js +0 -55
- package/dist/get-env-variable.d.ts +0 -1
- package/dist/get-env-variable.js +0 -15
- package/dist/get-function-name.d.ts +0 -8
- package/dist/get-function-name.js +0 -17
- package/dist/get-function-version.d.ts +0 -9
- package/dist/get-function-version.js +0 -35
- package/dist/get-functions.d.ts +0 -10
- package/dist/get-functions.js +0 -80
- package/dist/get-output-url-from-metadata.d.ts +0 -3
- package/dist/get-output-url-from-metadata.js +0 -18
- package/dist/get-render-progress.d.ts +0 -17
- package/dist/get-render-progress.js +0 -47
- package/dist/get-s3-client.d.ts +0 -11
- package/dist/get-s3-client.js +0 -15
- package/dist/get-service-client.d.ts +0 -25
- package/dist/get-service-client.js +0 -131
- package/dist/get-sites.d.ts +0 -31
- package/dist/get-sites.js +0 -83
- package/dist/head-file.d.ts +0 -3
- package/dist/head-file.js +0 -18
- package/dist/index.d.ts +0 -129
- package/dist/index.js +0 -108
- package/dist/is-cli.d.ts +0 -2
- package/dist/is-cli.js +0 -10
- package/dist/is-flaky-error.d.ts +0 -1
- package/dist/is-flaky-error.js +0 -78
- package/dist/is-in-lambda.d.ts +0 -1
- package/dist/is-in-lambda.js +0 -9
- package/dist/is-likely-to-have-aws-profile.d.ts +0 -1
- package/dist/is-likely-to-have-aws-profile.js +0 -50
- package/dist/lambda-version-string.d.ts +0 -1
- package/dist/lambda-version-string.js +0 -7
- package/dist/lifecycle-rules.d.ts +0 -12
- package/dist/lifecycle-rules.js +0 -73
- package/dist/lifecycle.d.ts +0 -7
- package/dist/lifecycle.js +0 -24
- package/dist/list-objects.d.ts +0 -3
- package/dist/list-objects.js +0 -70
- package/dist/make-lambda-payload.d.ts +0 -59
- package/dist/make-lambda-payload.js +0 -150
- package/dist/make-s3-url.d.ts +0 -6
- package/dist/make-s3-url.js +0 -7
- package/dist/p-limit.d.ts +0 -1
- package/dist/p-limit.js +0 -57
- package/dist/pages-router-webhook.d.ts +0 -5
- package/dist/pages-router-webhook.js +0 -48
- package/dist/parse-function-name.d.ts +0 -8
- package/dist/parse-function-name.js +0 -17
- package/dist/presign-url.d.ts +0 -17
- package/dist/presign-url.js +0 -66
- package/dist/price-per-1s.d.ts +0 -37
- package/dist/price-per-1s.js +0 -822
- package/dist/random-hash.d.ts +0 -1
- package/dist/random-hash.js +0 -13
- package/dist/read-file.d.ts +0 -11
- package/dist/read-file.js +0 -19
- package/dist/regions.d.ts +0 -3
- package/dist/regions.js +0 -48
- package/dist/render-media-on-lambda.d.ts +0 -66
- package/dist/render-media-on-lambda.js +0 -133
- package/dist/render-still-on-lambda.d.ts +0 -61
- package/dist/render-still-on-lambda.js +0 -121
- package/dist/runtime-preference.d.ts +0 -2
- package/dist/runtime-preference.js +0 -8
- package/dist/speculate-function-name.d.ts +0 -7
- package/dist/speculate-function-name.js +0 -39
- package/dist/types.d.ts +0 -4
- package/dist/types.js +0 -2
- package/dist/validate-aws-region.d.ts +0 -2
- package/dist/validate-aws-region.js +0 -9
- package/dist/validate-bucketname.d.ts +0 -4
- package/dist/validate-bucketname.js +0 -15
- package/dist/validate-disk-size-in-mb.d.ts +0 -1
- package/dist/validate-disk-size-in-mb.js +0 -23
- package/dist/validate-lambda-codec.d.ts +0 -2
- package/dist/validate-lambda-codec.js +0 -21
- package/dist/validate-memory-size.d.ts +0 -1
- package/dist/validate-memory-size.js +0 -22
- package/dist/validate-presign-expiration.d.ts +0 -1
- package/dist/validate-presign-expiration.js +0 -29
- package/dist/validate-serveurl.d.ts +0 -1
- package/dist/validate-serveurl.js +0 -9
- package/dist/validate-webhook-signature.d.ts +0 -5
- package/dist/validate-webhook-signature.js +0 -28
- package/dist/write-file.d.ts +0 -5
- package/dist/write-file.js +0 -83
package/dist/cjs/index.d.ts
CHANGED
|
@@ -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, 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, apiKey, licenseKey, offthreadVideoThreads, storageClass, requestHandler, }: 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, 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, 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]>;
|
|
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
|
@@ -65826,12 +65826,12 @@ __export(exports_src, {
|
|
|
65826
65826
|
module.exports = __toCommonJS(exports_src);
|
|
65827
65827
|
|
|
65828
65828
|
// src/get-service-client.ts
|
|
65829
|
-
var import_client_cloudwatch_logs = __toESM(require_dist_cjs64());
|
|
65830
|
-
var import_client_iam = __toESM(require_dist_cjs66());
|
|
65831
|
-
var import_client_lambda = __toESM(require_dist_cjs67());
|
|
65832
|
-
var import_client_s3 = __toESM(require_dist_cjs77());
|
|
65833
|
-
var import_client_service_quotas = __toESM(require_dist_cjs78());
|
|
65834
|
-
var import_client_sts = __toESM(require_dist_cjs79());
|
|
65829
|
+
var import_client_cloudwatch_logs = __toESM(require_dist_cjs64(), 1);
|
|
65830
|
+
var import_client_iam = __toESM(require_dist_cjs66(), 1);
|
|
65831
|
+
var import_client_lambda = __toESM(require_dist_cjs67(), 1);
|
|
65832
|
+
var import_client_s3 = __toESM(require_dist_cjs77(), 1);
|
|
65833
|
+
var import_client_service_quotas = __toESM(require_dist_cjs78(), 1);
|
|
65834
|
+
var import_client_sts = __toESM(require_dist_cjs79(), 1);
|
|
65835
65835
|
|
|
65836
65836
|
// ../serverless-client/dist/esm/index.mjs
|
|
65837
65837
|
var tty = __toESM(require("tty"));
|
|
@@ -66556,7 +66556,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
66556
66556
|
}
|
|
66557
66557
|
}
|
|
66558
66558
|
};
|
|
66559
|
-
var VERSION = "4.0.
|
|
66559
|
+
var VERSION = "4.0.399";
|
|
66560
66560
|
var isColorSupported = () => {
|
|
66561
66561
|
const env = process.env || {};
|
|
66562
66562
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -68466,7 +68466,7 @@ var checkCredentials = () => {
|
|
|
68466
68466
|
};
|
|
68467
68467
|
|
|
68468
68468
|
// src/get-credentials.ts
|
|
68469
|
-
var import_credential_provider_ini = __toESM(require_dist_cjs56());
|
|
68469
|
+
var import_credential_provider_ini = __toESM(require_dist_cjs56(), 1);
|
|
68470
68470
|
|
|
68471
68471
|
// src/is-in-lambda.ts
|
|
68472
68472
|
var isInsideLambda = () => Boolean(typeof process !== "undefined" && process?.env?.__RESERVED_IS_INSIDE_REMOTION_LAMBDA);
|
|
@@ -68677,7 +68677,7 @@ var getStsClient = (region, requestHandler) => {
|
|
|
68677
68677
|
var import_node_events = require("node:events");
|
|
68678
68678
|
|
|
68679
68679
|
// src/bucket-exists.ts
|
|
68680
|
-
var import_client_s32 = __toESM(require_dist_cjs77());
|
|
68680
|
+
var import_client_s32 = __toESM(require_dist_cjs77(), 1);
|
|
68681
68681
|
|
|
68682
68682
|
// src/get-s3-client.ts
|
|
68683
68683
|
var getS3Client = ({
|
|
@@ -68723,7 +68723,7 @@ var bucketExistsInRegionImplementation = async ({
|
|
|
68723
68723
|
};
|
|
68724
68724
|
|
|
68725
68725
|
// src/call-lambda-async.ts
|
|
68726
|
-
var import_client_lambda2 = __toESM(require_dist_cjs67());
|
|
68726
|
+
var import_client_lambda2 = __toESM(require_dist_cjs67(), 1);
|
|
68727
68727
|
var callFunctionAsyncImplementation = async ({
|
|
68728
68728
|
functionName,
|
|
68729
68729
|
payload,
|
|
@@ -68745,7 +68745,7 @@ var callFunctionAsyncImplementation = async ({
|
|
|
68745
68745
|
};
|
|
68746
68746
|
|
|
68747
68747
|
// src/call-lambda-streaming.ts
|
|
68748
|
-
var import_client_lambda3 = __toESM(require_dist_cjs67());
|
|
68748
|
+
var import_client_lambda3 = __toESM(require_dist_cjs67(), 1);
|
|
68749
68749
|
var STREAM_STALL_TIMEOUT = 30000;
|
|
68750
68750
|
var LAMBDA_STREAM_STALL = `AWS did not invoke Lambda in ${STREAM_STALL_TIMEOUT}ms`;
|
|
68751
68751
|
var parseJsonOrThrowSource = (data, type) => {
|
|
@@ -68860,7 +68860,7 @@ var callFunctionWithStreamingImplementation = async (options) => {
|
|
|
68860
68860
|
};
|
|
68861
68861
|
|
|
68862
68862
|
// src/call-lambda-sync.ts
|
|
68863
|
-
var import_client_lambda4 = __toESM(require_dist_cjs67());
|
|
68863
|
+
var import_client_lambda4 = __toESM(require_dist_cjs67(), 1);
|
|
68864
68864
|
var callLambdaSyncWithoutRetry = async ({
|
|
68865
68865
|
functionName,
|
|
68866
68866
|
payload,
|
|
@@ -68918,7 +68918,7 @@ var convertToServeUrlImplementation = ({
|
|
|
68918
68918
|
};
|
|
68919
68919
|
|
|
68920
68920
|
// src/create-bucket.ts
|
|
68921
|
-
var import_client_s33 = __toESM(require_dist_cjs77());
|
|
68921
|
+
var import_client_s33 = __toESM(require_dist_cjs77(), 1);
|
|
68922
68922
|
var createBucket = async ({ region, bucketName, forcePathStyle, requestHandler }) => {
|
|
68923
68923
|
await getS3Client({
|
|
68924
68924
|
region,
|
|
@@ -68977,7 +68977,7 @@ var createBucket = async ({ region, bucketName, forcePathStyle, requestHandler }
|
|
|
68977
68977
|
};
|
|
68978
68978
|
|
|
68979
68979
|
// src/delete-file.ts
|
|
68980
|
-
var import_client_s34 = __toESM(require_dist_cjs77());
|
|
68980
|
+
var import_client_s34 = __toESM(require_dist_cjs77(), 1);
|
|
68981
68981
|
var lambdaDeleteFileImplementation = async ({
|
|
68982
68982
|
bucketName,
|
|
68983
68983
|
key,
|
|
@@ -68998,7 +68998,7 @@ var lambdaDeleteFileImplementation = async ({
|
|
|
68998
68998
|
};
|
|
68999
68999
|
|
|
69000
69000
|
// src/delete-function.ts
|
|
69001
|
-
var import_client_lambda5 = __toESM(require_dist_cjs67());
|
|
69001
|
+
var import_client_lambda5 = __toESM(require_dist_cjs67(), 1);
|
|
69002
69002
|
var deleteFunction = async ({
|
|
69003
69003
|
region,
|
|
69004
69004
|
functionName,
|
|
@@ -69936,7 +69936,7 @@ var estimatePrice = ({
|
|
|
69936
69936
|
};
|
|
69937
69937
|
|
|
69938
69938
|
// src/get-account-id.ts
|
|
69939
|
-
var import_client_sts2 = __toESM(require_dist_cjs79());
|
|
69939
|
+
var import_client_sts2 = __toESM(require_dist_cjs79(), 1);
|
|
69940
69940
|
var getAccountIdImplementation = async (options) => {
|
|
69941
69941
|
validateAwsRegion(options.region);
|
|
69942
69942
|
const callerIdentity = await getStsClient(options.region, null).send(new import_client_sts2.GetCallerIdentityCommand({}));
|
|
@@ -69997,7 +69997,7 @@ var getProgressJsonUrl = ({
|
|
|
69997
69997
|
};
|
|
69998
69998
|
|
|
69999
69999
|
// src/get-buckets.ts
|
|
70000
|
-
var import_client_s35 = __toESM(require_dist_cjs77());
|
|
70000
|
+
var import_client_s35 = __toESM(require_dist_cjs77(), 1);
|
|
70001
70001
|
|
|
70002
70002
|
// src/validate-bucketname.ts
|
|
70003
70003
|
var parseBucketName = (name) => {
|
|
@@ -70067,7 +70067,7 @@ var getRemotionBuckets = async ({
|
|
|
70067
70067
|
};
|
|
70068
70068
|
|
|
70069
70069
|
// src/get-functions.ts
|
|
70070
|
-
var import_client_lambda6 = __toESM(require_dist_cjs67());
|
|
70070
|
+
var import_client_lambda6 = __toESM(require_dist_cjs67(), 1);
|
|
70071
70071
|
|
|
70072
70072
|
// src/get-function-version.ts
|
|
70073
70073
|
var getFunctionVersion = async ({
|
|
@@ -70190,7 +70190,7 @@ var getOutputUrlFromMetadata = ({
|
|
|
70190
70190
|
};
|
|
70191
70191
|
|
|
70192
70192
|
// src/head-file.ts
|
|
70193
|
-
var import_client_s36 = __toESM(require_dist_cjs77());
|
|
70193
|
+
var import_client_s36 = __toESM(require_dist_cjs77(), 1);
|
|
70194
70194
|
var lambdaHeadFileImplementation = async ({
|
|
70195
70195
|
bucketName,
|
|
70196
70196
|
key,
|
|
@@ -70275,7 +70275,7 @@ var isFlakyError = (err) => {
|
|
|
70275
70275
|
};
|
|
70276
70276
|
|
|
70277
70277
|
// src/lifecycle-rules.ts
|
|
70278
|
-
var import_client_s37 = __toESM(require_dist_cjs77());
|
|
70278
|
+
var import_client_s37 = __toESM(require_dist_cjs77(), 1);
|
|
70279
70279
|
|
|
70280
70280
|
// src/apply-lifecycle.ts
|
|
70281
70281
|
var deleteLifeCycleInput = ({
|
|
@@ -70404,7 +70404,7 @@ var applyLifeCyleOperation = async ({
|
|
|
70404
70404
|
};
|
|
70405
70405
|
|
|
70406
70406
|
// src/list-objects.ts
|
|
70407
|
-
var import_client_s38 = __toESM(require_dist_cjs77());
|
|
70407
|
+
var import_client_s38 = __toESM(require_dist_cjs77(), 1);
|
|
70408
70408
|
var lambdaLsImplementation = async ({
|
|
70409
70409
|
bucketName,
|
|
70410
70410
|
prefix,
|
|
@@ -70498,7 +70498,7 @@ var randomHashImplementation = () => {
|
|
|
70498
70498
|
};
|
|
70499
70499
|
|
|
70500
70500
|
// src/read-file.ts
|
|
70501
|
-
var import_client_s39 = __toESM(require_dist_cjs77());
|
|
70501
|
+
var import_client_s39 = __toESM(require_dist_cjs77(), 1);
|
|
70502
70502
|
var lambdaReadFileImplementation = async ({
|
|
70503
70503
|
bucketName,
|
|
70504
70504
|
key,
|
|
@@ -70521,9 +70521,9 @@ var lambdaReadFileImplementation = async ({
|
|
|
70521
70521
|
};
|
|
70522
70522
|
|
|
70523
70523
|
// src/write-file.ts
|
|
70524
|
-
var import_client_s310 = __toESM(require_dist_cjs77());
|
|
70525
|
-
var import_lib_storage = __toESM(require_dist_cjs81());
|
|
70526
|
-
var import_mime_types = __toESM(require_mime_types());
|
|
70524
|
+
var import_client_s310 = __toESM(require_dist_cjs77(), 1);
|
|
70525
|
+
var import_lib_storage = __toESM(require_dist_cjs81(), 1);
|
|
70526
|
+
var import_mime_types = __toESM(require_mime_types(), 1);
|
|
70527
70527
|
|
|
70528
70528
|
// src/content-disposition-header.ts
|
|
70529
70529
|
var problematicCharacters = {
|
|
@@ -71018,6 +71018,7 @@ var makeLambdaRenderMediaPayload = async ({
|
|
|
71018
71018
|
forcePathStyle,
|
|
71019
71019
|
metadata,
|
|
71020
71020
|
apiKey,
|
|
71021
|
+
licenseKey,
|
|
71021
71022
|
offthreadVideoThreads,
|
|
71022
71023
|
storageClass,
|
|
71023
71024
|
requestHandler
|
|
@@ -71092,6 +71093,7 @@ var makeLambdaRenderMediaPayload = async ({
|
|
|
71092
71093
|
forcePathStyle: forcePathStyle ?? false,
|
|
71093
71094
|
metadata: metadata ?? null,
|
|
71094
71095
|
apiKey: apiKey ?? null,
|
|
71096
|
+
licenseKey: licenseKey ?? null,
|
|
71095
71097
|
offthreadVideoThreads: offthreadVideoThreads ?? null,
|
|
71096
71098
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
|
|
71097
71099
|
storageClass: storageClass ?? null
|
|
@@ -71138,6 +71140,7 @@ var makeLambdaRenderStillPayload = async ({
|
|
|
71138
71140
|
deleteAfter,
|
|
71139
71141
|
forcePathStyle,
|
|
71140
71142
|
apiKey,
|
|
71143
|
+
licenseKey,
|
|
71141
71144
|
storageClass,
|
|
71142
71145
|
requestHandler,
|
|
71143
71146
|
offthreadVideoThreads,
|
|
@@ -71189,6 +71192,7 @@ var makeLambdaRenderStillPayload = async ({
|
|
|
71189
71192
|
streamed: true,
|
|
71190
71193
|
forcePathStyle,
|
|
71191
71194
|
apiKey: apiKey ?? null,
|
|
71195
|
+
licenseKey: licenseKey ?? null,
|
|
71192
71196
|
offthreadVideoThreads: offthreadVideoThreads ?? null,
|
|
71193
71197
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
|
|
71194
71198
|
storageClass: storageClass ?? null
|
|
@@ -71296,6 +71300,7 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
|
|
|
71296
71300
|
indent: false,
|
|
71297
71301
|
metadata: options.metadata ?? null,
|
|
71298
71302
|
apiKey: options.apiKey ?? null,
|
|
71303
|
+
licenseKey: options.licenseKey ?? null,
|
|
71299
71304
|
storageClass: options.storageClass ?? null,
|
|
71300
71305
|
requestHandler: options.requestHandler ?? null,
|
|
71301
71306
|
mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
|
|
@@ -71408,6 +71413,7 @@ var renderStillOnLambda = (input) => {
|
|
|
71408
71413
|
timeoutInMilliseconds: input.timeoutInMilliseconds ?? 30000,
|
|
71409
71414
|
forcePathStyle: input.forcePathStyle ?? false,
|
|
71410
71415
|
apiKey: input.apiKey ?? null,
|
|
71416
|
+
licenseKey: input.licenseKey ?? null,
|
|
71411
71417
|
offthreadVideoThreads: input.offthreadVideoThreads ?? null,
|
|
71412
71418
|
storageClass: input.storageClass ?? null,
|
|
71413
71419
|
requestHandler: input.requestHandler ?? null,
|
|
@@ -71614,12 +71620,12 @@ var expressWebhook = (options) => {
|
|
|
71614
71620
|
};
|
|
71615
71621
|
};
|
|
71616
71622
|
// src/get-aws-client.ts
|
|
71617
|
-
var CloudWatchSDK = __toESM(require_dist_cjs64());
|
|
71618
|
-
var IamSdk = __toESM(require_dist_cjs66());
|
|
71619
|
-
var LambdaSDK = __toESM(require_dist_cjs67());
|
|
71620
|
-
var S3SDK = __toESM(require_dist_cjs77());
|
|
71621
|
-
var ServiceQuotasSDK = __toESM(require_dist_cjs78());
|
|
71622
|
-
var StsSdk = __toESM(require_dist_cjs79());
|
|
71623
|
+
var CloudWatchSDK = __toESM(require_dist_cjs64(), 1);
|
|
71624
|
+
var IamSdk = __toESM(require_dist_cjs66(), 1);
|
|
71625
|
+
var LambdaSDK = __toESM(require_dist_cjs67(), 1);
|
|
71626
|
+
var S3SDK = __toESM(require_dist_cjs77(), 1);
|
|
71627
|
+
var ServiceQuotasSDK = __toESM(require_dist_cjs78(), 1);
|
|
71628
|
+
var StsSdk = __toESM(require_dist_cjs79(), 1);
|
|
71623
71629
|
var getAwsClient = ({
|
|
71624
71630
|
region,
|
|
71625
71631
|
service,
|
|
@@ -71748,8 +71754,8 @@ var getRenderProgress = async (input) => {
|
|
|
71748
71754
|
return result;
|
|
71749
71755
|
};
|
|
71750
71756
|
// src/presign-url.ts
|
|
71751
|
-
var import_client_s311 = __toESM(require_dist_cjs77());
|
|
71752
|
-
var import_s3_request_presigner = __toESM(require_dist_cjs83());
|
|
71757
|
+
var import_client_s311 = __toESM(require_dist_cjs77(), 1);
|
|
71758
|
+
var import_s3_request_presigner = __toESM(require_dist_cjs83(), 1);
|
|
71753
71759
|
|
|
71754
71760
|
// src/validate-presign-expiration.ts
|
|
71755
71761
|
var MAX_PRESIGN_EXPIRATION = 604800;
|
|
@@ -54,6 +54,6 @@ export type InnerRenderMediaOnLambdaInput = {
|
|
|
54
54
|
storageClass: StorageClass | null;
|
|
55
55
|
requestHandler: RequestHandler | null;
|
|
56
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, offthreadVideoThreads, storageClass, requestHandler, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
|
|
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>>;
|
|
58
58
|
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, storageClass, requestHandler, offthreadVideoThreads, mediaCacheSizeInBytes, }: RenderStillOnLambdaNonNullInput) => Promise<ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]>;
|
|
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]>;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4713,7 +4713,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4713
4713
|
});
|
|
4714
4714
|
}
|
|
4715
4715
|
async loadEventStreamCapability() {
|
|
4716
|
-
const { EventStreamSerde } = await Promise.resolve().then(() => __toESM(require_event_streams()
|
|
4716
|
+
const { EventStreamSerde } = await Promise.resolve().then(() => __toESM(require_event_streams()));
|
|
4717
4717
|
return new EventStreamSerde({
|
|
4718
4718
|
marshaller: this.getEventStreamMarshaller(),
|
|
4719
4719
|
serializer: this.serializer,
|
|
@@ -16896,7 +16896,7 @@ var require_dist_cjs48 = __commonJS((exports) => {
|
|
|
16896
16896
|
}
|
|
16897
16897
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
16898
16898
|
try {
|
|
16899
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
16899
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
16900
16900
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
16901
16901
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
16902
16902
|
} catch (e) {}
|
|
@@ -17618,7 +17618,7 @@ var require_dist_cjs50 = __commonJS((exports) => {
|
|
|
17618
17618
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
17619
17619
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
17620
17620
|
var getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
17621
|
-
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc()
|
|
17621
|
+
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc()));
|
|
17622
17622
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop];
|
|
17623
17623
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
17624
17624
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -17628,7 +17628,7 @@ var require_dist_cjs50 = __commonJS((exports) => {
|
|
|
17628
17628
|
return ssoOidcClient;
|
|
17629
17629
|
};
|
|
17630
17630
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
17631
|
-
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc()
|
|
17631
|
+
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc()));
|
|
17632
17632
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
17633
17633
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
17634
17634
|
clientId: ssoToken.clientId,
|
|
@@ -19430,7 +19430,7 @@ var require_dist_cjs53 = __commonJS((exports) => {
|
|
|
19430
19430
|
return this.profileData.login_session;
|
|
19431
19431
|
}
|
|
19432
19432
|
async refresh(token) {
|
|
19433
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await Promise.resolve().then(() => __toESM(require_signin()
|
|
19433
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await Promise.resolve().then(() => __toESM(require_signin()));
|
|
19434
19434
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
19435
19435
|
const isH2 = (requestHandler2) => {
|
|
19436
19436
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
@@ -20739,19 +20739,19 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20739
20739
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
20740
20740
|
const sourceProvidersMap = {
|
|
20741
20741
|
EcsContainer: async (options) => {
|
|
20742
|
-
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()
|
|
20743
|
-
const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
20742
|
+
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()));
|
|
20743
|
+
const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
20744
20744
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
20745
20745
|
return async () => propertyProvider.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
20746
20746
|
},
|
|
20747
20747
|
Ec2InstanceMetadata: async (options) => {
|
|
20748
20748
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
20749
|
-
const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
20749
|
+
const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
20750
20750
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
20751
20751
|
},
|
|
20752
20752
|
Environment: async (options) => {
|
|
20753
20753
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
20754
|
-
const { fromEnv } = await Promise.resolve().then(() => __toESM(require_dist_cjs42()
|
|
20754
|
+
const { fromEnv } = await Promise.resolve().then(() => __toESM(require_dist_cjs42()));
|
|
20755
20755
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
20756
20756
|
}
|
|
20757
20757
|
};
|
|
@@ -20784,7 +20784,7 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20784
20784
|
const profileData = profiles[profileName];
|
|
20785
20785
|
const { source_profile, region } = profileData;
|
|
20786
20786
|
if (!options.roleAssumer) {
|
|
20787
|
-
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM(require_sts()
|
|
20787
|
+
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM(require_sts()));
|
|
20788
20788
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
20789
20789
|
...options.clientConfig,
|
|
20790
20790
|
credentialProviderLogger: options.logger,
|
|
@@ -20837,12 +20837,12 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20837
20837
|
return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
20838
20838
|
};
|
|
20839
20839
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
20840
|
-
var resolveProcessCredentials = async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs54()
|
|
20840
|
+
var resolveProcessCredentials = async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs54())).then(({ fromProcess }) => fromProcess({
|
|
20841
20841
|
...options,
|
|
20842
20842
|
profile
|
|
20843
20843
|
})().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
20844
20844
|
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
20845
|
-
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()
|
|
20845
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
|
|
20846
20846
|
return fromSSO({
|
|
20847
20847
|
profile,
|
|
20848
20848
|
logger: options.logger,
|
|
@@ -20870,7 +20870,7 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20870
20870
|
return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
20871
20871
|
};
|
|
20872
20872
|
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
20873
|
-
var resolveWebIdentityCredentials = async (profile, options) => Promise.resolve().then(() => __toESM(require_dist_cjs55()
|
|
20873
|
+
var resolveWebIdentityCredentials = async (profile, options) => Promise.resolve().then(() => __toESM(require_dist_cjs55())).then(({ fromTokenFile }) => fromTokenFile({
|
|
20874
20874
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
20875
20875
|
roleArn: profile.role_arn,
|
|
20876
20876
|
roleSessionName: profile.role_session_name,
|
|
@@ -20927,10 +20927,10 @@ var require_dist_cjs57 = __commonJS((exports) => {
|
|
|
20927
20927
|
var sharedIniFileLoader = require_dist_cjs36();
|
|
20928
20928
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
20929
20929
|
var remoteProvider = async (init) => {
|
|
20930
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
20930
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
20931
20931
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
20932
20932
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
20933
|
-
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()
|
|
20933
|
+
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()));
|
|
20934
20934
|
return propertyProvider.chain(fromHttp(init), fromContainerMetadata(init));
|
|
20935
20935
|
}
|
|
20936
20936
|
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
@@ -21027,22 +21027,22 @@ var require_dist_cjs57 = __commonJS((exports) => {
|
|
|
21027
21027
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
21028
21028
|
throw new propertyProvider.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
21029
21029
|
}
|
|
21030
|
-
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()
|
|
21030
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
|
|
21031
21031
|
return fromSSO(init)(awsIdentityProperties);
|
|
21032
21032
|
},
|
|
21033
21033
|
async (awsIdentityProperties) => {
|
|
21034
21034
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
21035
|
-
const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs56()
|
|
21035
|
+
const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs56()));
|
|
21036
21036
|
return fromIni(init)(awsIdentityProperties);
|
|
21037
21037
|
},
|
|
21038
21038
|
async (awsIdentityProperties) => {
|
|
21039
21039
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
21040
|
-
const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs54()
|
|
21040
|
+
const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs54()));
|
|
21041
21041
|
return fromProcess(init)(awsIdentityProperties);
|
|
21042
21042
|
},
|
|
21043
21043
|
async (awsIdentityProperties) => {
|
|
21044
21044
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
21045
|
-
const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs55()
|
|
21045
|
+
const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs55()));
|
|
21046
21046
|
return fromTokenFile(init)(awsIdentityProperties);
|
|
21047
21047
|
},
|
|
21048
21048
|
async () => {
|
|
@@ -65899,7 +65899,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
65899
65899
|
}
|
|
65900
65900
|
}
|
|
65901
65901
|
};
|
|
65902
|
-
var VERSION = "4.0.
|
|
65902
|
+
var VERSION = "4.0.399";
|
|
65903
65903
|
var isColorSupported = () => {
|
|
65904
65904
|
const env = process.env || {};
|
|
65905
65905
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -70845,6 +70845,7 @@ var makeLambdaRenderMediaPayload = async ({
|
|
|
70845
70845
|
forcePathStyle,
|
|
70846
70846
|
metadata,
|
|
70847
70847
|
apiKey,
|
|
70848
|
+
licenseKey,
|
|
70848
70849
|
offthreadVideoThreads,
|
|
70849
70850
|
storageClass,
|
|
70850
70851
|
requestHandler
|
|
@@ -70919,6 +70920,7 @@ var makeLambdaRenderMediaPayload = async ({
|
|
|
70919
70920
|
forcePathStyle: forcePathStyle ?? false,
|
|
70920
70921
|
metadata: metadata ?? null,
|
|
70921
70922
|
apiKey: apiKey ?? null,
|
|
70923
|
+
licenseKey: licenseKey ?? null,
|
|
70922
70924
|
offthreadVideoThreads: offthreadVideoThreads ?? null,
|
|
70923
70925
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
|
|
70924
70926
|
storageClass: storageClass ?? null
|
|
@@ -70965,6 +70967,7 @@ var makeLambdaRenderStillPayload = async ({
|
|
|
70965
70967
|
deleteAfter,
|
|
70966
70968
|
forcePathStyle,
|
|
70967
70969
|
apiKey,
|
|
70970
|
+
licenseKey,
|
|
70968
70971
|
storageClass,
|
|
70969
70972
|
requestHandler,
|
|
70970
70973
|
offthreadVideoThreads,
|
|
@@ -71016,6 +71019,7 @@ var makeLambdaRenderStillPayload = async ({
|
|
|
71016
71019
|
streamed: true,
|
|
71017
71020
|
forcePathStyle,
|
|
71018
71021
|
apiKey: apiKey ?? null,
|
|
71022
|
+
licenseKey: licenseKey ?? null,
|
|
71019
71023
|
offthreadVideoThreads: offthreadVideoThreads ?? null,
|
|
71020
71024
|
mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
|
|
71021
71025
|
storageClass: storageClass ?? null
|
|
@@ -71123,6 +71127,7 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
|
|
|
71123
71127
|
indent: false,
|
|
71124
71128
|
metadata: options.metadata ?? null,
|
|
71125
71129
|
apiKey: options.apiKey ?? null,
|
|
71130
|
+
licenseKey: options.licenseKey ?? null,
|
|
71126
71131
|
storageClass: options.storageClass ?? null,
|
|
71127
71132
|
requestHandler: options.requestHandler ?? null,
|
|
71128
71133
|
mediaCacheSizeInBytes: options.mediaCacheSizeInBytes ?? null
|
|
@@ -71235,6 +71240,7 @@ var renderStillOnLambda = (input) => {
|
|
|
71235
71240
|
timeoutInMilliseconds: input.timeoutInMilliseconds ?? 30000,
|
|
71236
71241
|
forcePathStyle: input.forcePathStyle ?? false,
|
|
71237
71242
|
apiKey: input.apiKey ?? null,
|
|
71243
|
+
licenseKey: input.licenseKey ?? null,
|
|
71238
71244
|
offthreadVideoThreads: input.offthreadVideoThreads ?? null,
|
|
71239
71245
|
storageClass: input.storageClass ?? null,
|
|
71240
71246
|
requestHandler: input.requestHandler ?? null,
|
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.
|
|
6
|
+
"version": "4.0.399",
|
|
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.
|
|
29
|
+
"@remotion/serverless-client": "4.0.399",
|
|
30
30
|
"@types/express": "^5.0.0",
|
|
31
31
|
"express": "4.21.0",
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.399",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.0.10",
|
|
35
35
|
"@types/mime-types": "2.1.1"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { WebhookErrorPayload, WebhookSuccessPayload, WebhookTimeoutPayload } from '@remotion/serverless-client';
|
|
2
|
-
export type NextWebhookArgs = {
|
|
3
|
-
testing?: boolean;
|
|
4
|
-
extraHeaders?: Record<string, string>;
|
|
5
|
-
secret: string;
|
|
6
|
-
onSuccess?: (payload: WebhookSuccessPayload) => void;
|
|
7
|
-
onTimeout?: (payload: WebhookTimeoutPayload) => void;
|
|
8
|
-
onError?: (payload: WebhookErrorPayload) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const appRouterWebhook: (options: NextWebhookArgs) => ((req: Request) => Promise<Response>);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appRouterWebhook = void 0;
|
|
4
|
-
const validate_webhook_signature_1 = require("./validate-webhook-signature");
|
|
5
|
-
const appRouterWebhook = (options) => {
|
|
6
|
-
const { testing, extraHeaders, secret, onSuccess, onTimeout, onError } = options;
|
|
7
|
-
return async function (req) {
|
|
8
|
-
let headers = extraHeaders || {};
|
|
9
|
-
if (testing) {
|
|
10
|
-
const testingheaders = {
|
|
11
|
-
'Access-Control-Allow-Origin': 'https://www.remotion.dev',
|
|
12
|
-
'Access-Control-Allow-Headers': 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, X-Remotion-Status, X-Remotion-Signature, X-Remotion-Mode',
|
|
13
|
-
'Access-Control-Allow-Methods': 'OPTIONS,POST',
|
|
14
|
-
};
|
|
15
|
-
headers = { ...headers, ...testingheaders };
|
|
16
|
-
}
|
|
17
|
-
if (req.method === 'OPTIONS') {
|
|
18
|
-
// do we have any use of the OPTIONS method other than the tester on webhooks page ? if so we can add a condition here to only return this if testing mode enabled
|
|
19
|
-
return new Response(null, {
|
|
20
|
-
headers,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
// Parse the body properly
|
|
24
|
-
const body = await req.json();
|
|
25
|
-
(0, validate_webhook_signature_1.validateWebhookSignature)({
|
|
26
|
-
secret,
|
|
27
|
-
body,
|
|
28
|
-
signatureHeader: req.headers.get('X-Remotion-Signature'),
|
|
29
|
-
});
|
|
30
|
-
const payload = body;
|
|
31
|
-
if (payload.type === 'success' && onSuccess) {
|
|
32
|
-
onSuccess(payload);
|
|
33
|
-
}
|
|
34
|
-
else if (payload.type === 'timeout' && onTimeout) {
|
|
35
|
-
onTimeout(payload);
|
|
36
|
-
}
|
|
37
|
-
else if (payload.type === 'error' && onError) {
|
|
38
|
-
onError(payload);
|
|
39
|
-
}
|
|
40
|
-
return new Response(JSON.stringify({ success: true }), { headers });
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.appRouterWebhook = appRouterWebhook;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DeleteBucketLifecycleCommandInput, LifecycleRule, PutBucketLifecycleConfigurationCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
export declare const deleteLifeCycleInput: ({ bucketName, }: {
|
|
3
|
-
bucketName: string;
|
|
4
|
-
}) => DeleteBucketLifecycleCommandInput;
|
|
5
|
-
export declare const createLifeCycleInput: ({ bucketName, lcRules, }: {
|
|
6
|
-
bucketName: string;
|
|
7
|
-
lcRules: LifecycleRule[];
|
|
8
|
-
}) => PutBucketLifecycleConfigurationCommandInput;
|
package/dist/apply-lifecycle.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLifeCycleInput = exports.deleteLifeCycleInput = void 0;
|
|
4
|
-
const deleteLifeCycleInput = ({ bucketName, }) => {
|
|
5
|
-
return {
|
|
6
|
-
Bucket: bucketName,
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
exports.deleteLifeCycleInput = deleteLifeCycleInput;
|
|
10
|
-
const createLifeCycleInput = ({ bucketName, lcRules, }) => {
|
|
11
|
-
return {
|
|
12
|
-
Bucket: bucketName,
|
|
13
|
-
LifecycleConfiguration: {
|
|
14
|
-
Rules: lcRules,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
exports.createLifeCycleInput = createLifeCycleInput;
|
package/dist/aws-clients.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { CloudWatchLogsClient } from '@aws-sdk/client-cloudwatch-logs';
|
|
2
|
-
import type { IAMClient } from '@aws-sdk/client-iam';
|
|
3
|
-
import type { LambdaClient } from '@aws-sdk/client-lambda';
|
|
4
|
-
import type { ServiceQuotasClient } from '@aws-sdk/client-service-quotas';
|
|
5
|
-
import type { STSClient } from '@aws-sdk/client-sts';
|
|
6
|
-
import type { AwsRegion } from './regions';
|
|
7
|
-
import type { RequestHandler } from './types';
|
|
8
|
-
export declare const getCloudWatchLogsClient: (region: AwsRegion, requestHandler: RequestHandler | null) => CloudWatchLogsClient;
|
|
9
|
-
export declare const getLambdaClient: (region: AwsRegion, _timeoutInTest: number | undefined, requestHandler: RequestHandler | null) => LambdaClient;
|
|
10
|
-
export declare const getIamClient: (region: AwsRegion, requestHandler: RequestHandler | null) => IAMClient;
|
|
11
|
-
export declare const getServiceQuotasClient: (region: AwsRegion, requestHandler: RequestHandler | null) => ServiceQuotasClient;
|
|
12
|
-
export declare const getStsClient: (region: AwsRegion, requestHandler: RequestHandler | null) => STSClient;
|
package/dist/aws-clients.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStsClient = exports.getServiceQuotasClient = exports.getIamClient = exports.getLambdaClient = exports.getCloudWatchLogsClient = void 0;
|
|
4
|
-
const get_service_client_1 = require("./get-service-client");
|
|
5
|
-
const getCloudWatchLogsClient = (region, requestHandler) => {
|
|
6
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
7
|
-
region,
|
|
8
|
-
service: 'cloudwatch',
|
|
9
|
-
customCredentials: null,
|
|
10
|
-
forcePathStyle: false,
|
|
11
|
-
requestHandler,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
exports.getCloudWatchLogsClient = getCloudWatchLogsClient;
|
|
15
|
-
const getLambdaClient = (region,
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17
|
-
_timeoutInTest, requestHandler) => {
|
|
18
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
19
|
-
region,
|
|
20
|
-
service: 'lambda',
|
|
21
|
-
customCredentials: null,
|
|
22
|
-
forcePathStyle: false,
|
|
23
|
-
requestHandler,
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
exports.getLambdaClient = getLambdaClient;
|
|
27
|
-
const getIamClient = (region, requestHandler) => {
|
|
28
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
29
|
-
region,
|
|
30
|
-
service: 'iam',
|
|
31
|
-
customCredentials: null,
|
|
32
|
-
forcePathStyle: false,
|
|
33
|
-
requestHandler,
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
exports.getIamClient = getIamClient;
|
|
37
|
-
const getServiceQuotasClient = (region, requestHandler) => {
|
|
38
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
39
|
-
region,
|
|
40
|
-
service: 'servicequotas',
|
|
41
|
-
customCredentials: null,
|
|
42
|
-
forcePathStyle: false,
|
|
43
|
-
requestHandler,
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
exports.getServiceQuotasClient = getServiceQuotasClient;
|
|
47
|
-
const getStsClient = (region, requestHandler) => {
|
|
48
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
49
|
-
region,
|
|
50
|
-
service: 'sts',
|
|
51
|
-
customCredentials: null,
|
|
52
|
-
forcePathStyle: false,
|
|
53
|
-
requestHandler,
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.getStsClient = getStsClient;
|