@remotion/lambda-client 4.0.508 → 4.0.510
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/aws-provider.d.ts +1 -0
- package/dist/cjs/aws-region-metadata.d.ts +10 -0
- package/dist/cjs/convert-to-serve-url.d.ts +1 -1
- package/dist/cjs/get-aws-urls.d.ts +12 -4
- package/dist/cjs/index.d.ts +7 -1
- package/dist/cjs/index.js +748 -111
- package/dist/cjs/make-s3-url.d.ts +1 -1
- package/dist/cjs/price-per-1s.d.ts +9 -32
- package/dist/cjs/regions.d.ts +1 -1
- package/dist/cjs/regions.js +2 -0
- package/dist/cjs/validate-bucketname.d.ts +1 -1
- package/dist/esm/index.mjs +748 -111
- package/dist/esm/regions.mjs +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type AwsPartition = 'aws' | 'aws-cn';
|
|
2
|
+
export type AwsBillingCurrency = 'USD' | 'CNY';
|
|
3
|
+
export type AwsRegionMetadata = {
|
|
4
|
+
partition: AwsPartition;
|
|
5
|
+
dnsSuffix: 'amazonaws.com' | 'amazonaws.com.cn';
|
|
6
|
+
consoleDomain: 'console.aws.amazon.com' | 'console.amazonaws.cn';
|
|
7
|
+
billingCurrency: AwsBillingCurrency;
|
|
8
|
+
};
|
|
9
|
+
export declare const getAwsPartitionMetadata: (partition: AwsPartition) => AwsRegionMetadata;
|
|
10
|
+
export declare const getAwsRegionMetadata: (region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2") => AwsRegionMetadata;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const convertToServeUrlImplementation: ({ urlOrId, region, bucketName, }: {
|
|
2
2
|
urlOrId: string;
|
|
3
|
-
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
3
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
4
4
|
bucketName: string;
|
|
5
5
|
}) => string;
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
import type { GetLoggingUrlForRendererFunction, ServerlessRoutines } from '@remotion/serverless-client';
|
|
2
2
|
import type { AwsProvider } from './aws-provider';
|
|
3
3
|
export declare const getCloudwatchMethodUrl: ({ region, functionName, renderId, rendererFunctionName, method, }: {
|
|
4
|
-
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
4
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
5
5
|
functionName: string;
|
|
6
6
|
method: ServerlessRoutines;
|
|
7
7
|
rendererFunctionName: string | null;
|
|
8
8
|
renderId: string;
|
|
9
9
|
}) => string;
|
|
10
10
|
export declare const getLambdaInsightsUrl: ({ region, functionName, }: {
|
|
11
|
-
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
11
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
12
12
|
functionName: string;
|
|
13
13
|
}) => string;
|
|
14
14
|
export declare const getCloudwatchRendererUrl: GetLoggingUrlForRendererFunction<AwsProvider>;
|
|
15
15
|
export declare const getS3RenderUrl: ({ renderId, region, bucketName, }: {
|
|
16
16
|
renderId: string;
|
|
17
|
-
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
17
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
18
18
|
bucketName: string;
|
|
19
19
|
}) => string;
|
|
20
20
|
export declare const getProgressJsonUrl: ({ region, bucketName, renderId, }: {
|
|
21
|
-
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
21
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
22
22
|
bucketName: string;
|
|
23
23
|
renderId: string;
|
|
24
24
|
}) => string;
|
|
25
|
+
export declare const getLambdaFunctionUrl: ({ region, functionName, }: {
|
|
26
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
27
|
+
functionName: string;
|
|
28
|
+
}) => string;
|
|
29
|
+
export declare const getS3BucketUrl: ({ region, bucketName, }: {
|
|
30
|
+
region: "af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2";
|
|
31
|
+
bucketName: string;
|
|
32
|
+
}) => string;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ export type { EnhancedErrorInfo, GetOrCreateBucketInput, GetOrCreateBucketOutput
|
|
|
2
2
|
export type { RuntimePreference } from './runtime-preference';
|
|
3
3
|
import { getCloudWatchLogsClient, getIamClient, getLambdaClient, getServiceQuotasClient, getStsClient } from './aws-clients';
|
|
4
4
|
import { awsImplementation } from './aws-provider';
|
|
5
|
+
import { getAwsPartitionMetadata, getAwsRegionMetadata } from './aws-region-metadata';
|
|
5
6
|
import { parseJsonOrThrowSource } from './call-lambda-streaming';
|
|
6
7
|
import { cleanItems } from './clean-items';
|
|
7
8
|
import { DEFAULT_CLOUDWATCH_RETENTION_PERIOD, DEFAULT_EPHEMERAL_STORAGE_IN_MB, MAX_EPHEMERAL_STORAGE_IN_MB } from './constants';
|
|
8
9
|
import { convertToServeUrlImplementation } from './convert-to-serve-url';
|
|
9
10
|
import { internalDeleteRender } from './delete-render';
|
|
10
|
-
import { getCloudwatchMethodUrl, getCloudwatchRendererUrl, getS3RenderUrl } from './get-aws-urls';
|
|
11
|
+
import { getCloudwatchMethodUrl, getCloudwatchRendererUrl, getLambdaFunctionUrl, getS3BucketUrl, getS3RenderUrl } from './get-aws-urls';
|
|
11
12
|
import { getEnvVariable } from './get-env-variable';
|
|
12
13
|
import { getS3Client } from './get-s3-client';
|
|
13
14
|
import { internalGetSites } from './get-sites';
|
|
@@ -31,6 +32,7 @@ import { validateServeUrl } from './validate-serveurl';
|
|
|
31
32
|
export type { CustomCredentials, DeleteAfter, WebhookErrorPayload, WebhookPayload, WebhookSuccessPayload, WebhookTimeoutPayload, } from '@remotion/serverless-client';
|
|
32
33
|
export { appRouterWebhook, NextWebhookArgs } from './app-router-webhook';
|
|
33
34
|
export { AwsProvider } from './aws-provider';
|
|
35
|
+
export type { AwsBillingCurrency, AwsPartition, AwsRegionMetadata, } from './aws-region-metadata';
|
|
34
36
|
export type { RenderProgress } from './constants';
|
|
35
37
|
export { deleteFunction, DeleteFunctionInput } from './delete-function';
|
|
36
38
|
export { deleteRender, type DeleteRenderInput } from './delete-render';
|
|
@@ -63,6 +65,8 @@ export declare const LambdaClientInternals: {
|
|
|
63
65
|
parseJsonOrThrowSource: typeof parseJsonOrThrowSource;
|
|
64
66
|
getCloudwatchMethodUrl: typeof getCloudwatchMethodUrl;
|
|
65
67
|
getCloudwatchRendererUrl: typeof getCloudwatchRendererUrl;
|
|
68
|
+
getLambdaFunctionUrl: typeof getLambdaFunctionUrl;
|
|
69
|
+
getS3BucketUrl: typeof getS3BucketUrl;
|
|
66
70
|
MAX_EPHEMERAL_STORAGE_IN_MB: typeof MAX_EPHEMERAL_STORAGE_IN_MB;
|
|
67
71
|
parseFunctionName: typeof parseFunctionName;
|
|
68
72
|
isFlakyError: typeof isFlakyError;
|
|
@@ -92,4 +96,6 @@ export declare const LambdaClientInternals: {
|
|
|
92
96
|
makeLambdaRenderStillPayload: typeof makeLambdaRenderStillPayload;
|
|
93
97
|
getRenderProgressPayload: typeof getRenderProgressPayload;
|
|
94
98
|
innerSpeculateFunctionName: typeof innerSpeculateFunctionName;
|
|
99
|
+
getAwsPartitionMetadata: typeof getAwsPartitionMetadata;
|
|
100
|
+
getAwsRegionMetadata: typeof getAwsRegionMetadata;
|
|
95
101
|
};
|