hot-updater 0.12.0 → 0.12.1

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.
@@ -0,0 +1,28 @@
1
+ import type { BucketLocationConstraint } from "@hot-updater/aws/sdk";
2
+ export declare function createOrSelectIamRole({ region, credentials, }: {
3
+ region: BucketLocationConstraint;
4
+ credentials: {
5
+ accessKeyId: string;
6
+ secretAccessKey: string;
7
+ };
8
+ }): Promise<string>;
9
+ /**
10
+ * Deploy Lambda@Edge function
11
+ * - Zip the local ./lambda folder, create a function in us-east-1 region,
12
+ * - Publish a new version of the function
13
+ */
14
+ export declare const deployLambdaEdge: (credentials: {
15
+ accessKeyId: string;
16
+ secretAccessKey: string;
17
+ } | undefined, lambdaRoleArn: string) => Promise<{
18
+ lambdaName: string;
19
+ functionArn: string;
20
+ }>;
21
+ export declare const createCloudFrontDistribution: (credentials: {
22
+ accessKeyId: string;
23
+ secretAccessKey: string;
24
+ } | undefined, region: string, bucketName: string, functionArn: string) => Promise<{
25
+ distributionId: string;
26
+ distributionDomain: string;
27
+ }>;
28
+ export declare const initAwsS3LambdaEdge: () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { BucketLocationConstraint } from "@hot-updater/aws/sdk";
2
+ export declare const regionLocationMap: Record<BucketLocationConstraint, string>;