qlara 0.1.0

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/aws.d.cts ADDED
@@ -0,0 +1,45 @@
1
+ import { P as ProviderResources, Q as QlaraProvider } from './types-gl2xFqEX.cjs';
2
+
3
+ interface AwsConfig {
4
+ stackName?: string;
5
+ bucketName?: string;
6
+ distributionId?: string;
7
+ distributionDomain?: string;
8
+ edgeFunctionArn?: string;
9
+ rendererFunctionArn?: string;
10
+ }
11
+ interface AwsResources extends ProviderResources {
12
+ provider: 'aws';
13
+ region: string;
14
+ stackName: string;
15
+ bucketName: string;
16
+ distributionId: string;
17
+ distributionDomain: string;
18
+ edgeFunctionArn: string;
19
+ rendererFunctionArn: string;
20
+ }
21
+ /**
22
+ * AWS provider for Qlara.
23
+ *
24
+ * All resources are deployed in us-east-1 (Lambda@Edge requirement).
25
+ * CloudFront serves from edge locations globally regardless.
26
+ *
27
+ * Usage — Qlara manages everything:
28
+ * ```typescript
29
+ * aws()
30
+ * ```
31
+ *
32
+ * Usage — bring your own infrastructure:
33
+ * ```typescript
34
+ * aws({
35
+ * bucketName: 'my-bucket',
36
+ * distributionId: 'E1234567890',
37
+ * distributionDomain: 'd111111abcdef.cloudfront.net',
38
+ * edgeFunctionArn: 'arn:aws:lambda:us-east-1:123456789:function:my-edge',
39
+ * rendererFunctionArn: 'arn:aws:lambda:us-east-1:123456789:function:my-renderer',
40
+ * })
41
+ * ```
42
+ */
43
+ declare function aws(awsConfig?: AwsConfig): QlaraProvider;
44
+
45
+ export { type AwsConfig, type AwsResources, aws };
package/dist/aws.d.ts ADDED
@@ -0,0 +1,45 @@
1
+ import { P as ProviderResources, Q as QlaraProvider } from './types-gl2xFqEX.js';
2
+
3
+ interface AwsConfig {
4
+ stackName?: string;
5
+ bucketName?: string;
6
+ distributionId?: string;
7
+ distributionDomain?: string;
8
+ edgeFunctionArn?: string;
9
+ rendererFunctionArn?: string;
10
+ }
11
+ interface AwsResources extends ProviderResources {
12
+ provider: 'aws';
13
+ region: string;
14
+ stackName: string;
15
+ bucketName: string;
16
+ distributionId: string;
17
+ distributionDomain: string;
18
+ edgeFunctionArn: string;
19
+ rendererFunctionArn: string;
20
+ }
21
+ /**
22
+ * AWS provider for Qlara.
23
+ *
24
+ * All resources are deployed in us-east-1 (Lambda@Edge requirement).
25
+ * CloudFront serves from edge locations globally regardless.
26
+ *
27
+ * Usage — Qlara manages everything:
28
+ * ```typescript
29
+ * aws()
30
+ * ```
31
+ *
32
+ * Usage — bring your own infrastructure:
33
+ * ```typescript
34
+ * aws({
35
+ * bucketName: 'my-bucket',
36
+ * distributionId: 'E1234567890',
37
+ * distributionDomain: 'd111111abcdef.cloudfront.net',
38
+ * edgeFunctionArn: 'arn:aws:lambda:us-east-1:123456789:function:my-edge',
39
+ * rendererFunctionArn: 'arn:aws:lambda:us-east-1:123456789:function:my-renderer',
40
+ * })
41
+ * ```
42
+ */
43
+ declare function aws(awsConfig?: AwsConfig): QlaraProvider;
44
+
45
+ export { type AwsConfig, type AwsResources, aws };