@awsless/awsless 0.0.147 → 0.0.149
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/app.json +1 -1
- package/dist/bin.js +227 -121
- package/dist/features/cognito-client-secret/bundle.zip +0 -0
- package/dist/features/delete-bucket/bundle.zip +0 -0
- package/dist/features/delete-hosted-zone/bundle.zip +0 -0
- package/dist/features/global-exports/bundle.zip +0 -0
- package/dist/features/invalidate-cache/bundle.zip +0 -0
- package/dist/features/upload-bucket-asset/bundle.zip +0 -0
- package/dist/index.d.ts +7 -12
- package/dist/index.js +3 -0
- package/dist/json.js +13 -2
- package/dist/stack.json +1 -1
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ declare const AppSchema: z.ZodObject<{
|
|
|
40
40
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
41
41
|
region: z.ZodEnum<["us-east-2", "us-east-1", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-2", "ap-southeast-3", "ap-southeast-4", "ap-south-1", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3", "eu-south-2", "eu-north-1", "eu-central-2", "me-south-1", "me-central-1", "sa-east-1"]>;
|
|
42
42
|
profile: z.ZodString;
|
|
43
|
-
stage: z.ZodDefault<z.ZodString>;
|
|
44
43
|
defaults: z.ZodDefault<z.ZodObject<{
|
|
45
44
|
auth: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
46
45
|
allowUserRegistration: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3220,7 +3219,6 @@ declare const AppSchema: z.ZodObject<{
|
|
|
3220
3219
|
name: string;
|
|
3221
3220
|
region: "us-east-2" | "us-east-1" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-south-1" | "eu-west-3" | "eu-south-2" | "eu-north-1" | "eu-central-2" | "me-south-1" | "me-central-1" | "sa-east-1";
|
|
3222
3221
|
profile: string;
|
|
3223
|
-
stage: string;
|
|
3224
3222
|
defaults: {
|
|
3225
3223
|
function: {
|
|
3226
3224
|
handler: string;
|
|
@@ -3595,7 +3593,6 @@ declare const AppSchema: z.ZodObject<{
|
|
|
3595
3593
|
region: "us-east-2" | "us-east-1" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-south-1" | "eu-west-3" | "eu-south-2" | "eu-north-1" | "eu-central-2" | "me-south-1" | "me-central-1" | "sa-east-1";
|
|
3596
3594
|
profile: string;
|
|
3597
3595
|
$schema?: string | undefined;
|
|
3598
|
-
stage?: string | undefined;
|
|
3599
3596
|
defaults?: {
|
|
3600
3597
|
auth?: Record<string, {
|
|
3601
3598
|
allowUserRegistration?: boolean | undefined;
|
|
@@ -4081,7 +4078,6 @@ declare const StackSchema: z.ZodObject<{
|
|
|
4081
4078
|
}[] | undefined;
|
|
4082
4079
|
}>]>>;
|
|
4083
4080
|
auth: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
4084
|
-
access: z.ZodDefault<z.ZodBoolean>;
|
|
4085
4081
|
triggers: z.ZodOptional<z.ZodObject<{
|
|
4086
4082
|
beforeToken: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodObject<{
|
|
4087
4083
|
file: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -5653,7 +5649,6 @@ declare const StackSchema: z.ZodObject<{
|
|
|
5653
5649
|
} | undefined;
|
|
5654
5650
|
}>>;
|
|
5655
5651
|
}, "strip", z.ZodTypeAny, {
|
|
5656
|
-
access: boolean;
|
|
5657
5652
|
triggers?: {
|
|
5658
5653
|
beforeToken?: string | {
|
|
5659
5654
|
file: string;
|
|
@@ -5927,7 +5922,6 @@ declare const StackSchema: z.ZodObject<{
|
|
|
5927
5922
|
} | undefined;
|
|
5928
5923
|
} | undefined;
|
|
5929
5924
|
}, {
|
|
5930
|
-
access?: boolean | undefined;
|
|
5931
5925
|
triggers?: {
|
|
5932
5926
|
beforeToken?: string | {
|
|
5933
5927
|
file: string;
|
|
@@ -9042,7 +9036,6 @@ declare const StackSchema: z.ZodObject<{
|
|
|
9042
9036
|
}[] | undefined;
|
|
9043
9037
|
} | undefined;
|
|
9044
9038
|
auth?: Record<string, {
|
|
9045
|
-
access: boolean;
|
|
9046
9039
|
triggers?: {
|
|
9047
9040
|
beforeToken?: string | {
|
|
9048
9041
|
file: string;
|
|
@@ -9956,7 +9949,6 @@ declare const StackSchema: z.ZodObject<{
|
|
|
9956
9949
|
}[] | undefined;
|
|
9957
9950
|
} | undefined;
|
|
9958
9951
|
auth?: Record<string, {
|
|
9959
|
-
access?: boolean | undefined;
|
|
9960
9952
|
triggers?: {
|
|
9961
9953
|
beforeToken?: string | {
|
|
9962
9954
|
file: string;
|
|
@@ -10836,10 +10828,13 @@ declare const StackSchema: z.ZodObject<{
|
|
|
10836
10828
|
}> | undefined;
|
|
10837
10829
|
tests?: string | string[] | undefined;
|
|
10838
10830
|
}>;
|
|
10839
|
-
type StackConfig = z.output<typeof StackSchema
|
|
10831
|
+
type StackConfig = z.output<typeof StackSchema> & {
|
|
10832
|
+
file: string;
|
|
10833
|
+
};
|
|
10840
10834
|
|
|
10841
10835
|
type Config$1 = {
|
|
10842
10836
|
app: AppConfig;
|
|
10837
|
+
stage: string;
|
|
10843
10838
|
stacks: StackConfig[];
|
|
10844
10839
|
account: string;
|
|
10845
10840
|
credentials: Credentials;
|
|
@@ -10909,7 +10904,7 @@ declare abstract class Resource {
|
|
|
10909
10904
|
};
|
|
10910
10905
|
};
|
|
10911
10906
|
};
|
|
10912
|
-
abstract properties(): object;
|
|
10907
|
+
protected abstract properties(): object;
|
|
10913
10908
|
}
|
|
10914
10909
|
declare class Group {
|
|
10915
10910
|
readonly children: Array<Resource | Asset>;
|
|
@@ -10992,7 +10987,7 @@ declare class Url extends Resource {
|
|
|
10992
10987
|
private props;
|
|
10993
10988
|
constructor(logicalId: string, props: UrlProps);
|
|
10994
10989
|
get url(): string;
|
|
10995
|
-
properties(): {
|
|
10990
|
+
protected properties(): {
|
|
10996
10991
|
Cors: {
|
|
10997
10992
|
[x: string]: unknown;
|
|
10998
10993
|
};
|
|
@@ -11049,7 +11044,7 @@ declare class Function$1 extends Resource {
|
|
|
11049
11044
|
actions: string[];
|
|
11050
11045
|
resources: string[];
|
|
11051
11046
|
};
|
|
11052
|
-
properties(): {
|
|
11047
|
+
protected properties(): {
|
|
11053
11048
|
Environment: {
|
|
11054
11049
|
Variables: Record<string, string>;
|
|
11055
11050
|
};
|
package/dist/index.js
CHANGED
|
@@ -85,6 +85,9 @@ var getAuthProps = (name) => {
|
|
|
85
85
|
const id = constantCase(name);
|
|
86
86
|
return {
|
|
87
87
|
name: getAuthName(name),
|
|
88
|
+
// userPoolId: env[`AWSLESS_CLIENT_AUTH_${id}_USER_POOL_ID`]!,
|
|
89
|
+
// clientId: env[`AWSLESS_CLIENT_AUTH_${id}_CLIENT_ID`]!,
|
|
90
|
+
// clientSecret: env[`AWSLESS_CLIENT_AUTH_${id}_CLIENT_SECRET`]!,
|
|
88
91
|
userPoolId: env[`AUTH_${id}_USER_POOL_ID`],
|
|
89
92
|
clientId: env[`AUTH_${id}_CLIENT_ID`],
|
|
90
93
|
clientSecret: env[`AUTH_${id}_CLIENT_SECRET`]
|
package/dist/json.js
CHANGED
|
@@ -385,7 +385,10 @@ var TriggersSchema = z10.object({
|
|
|
385
385
|
var AuthSchema = z10.record(
|
|
386
386
|
ResourceIdSchema,
|
|
387
387
|
z10.object({
|
|
388
|
-
access:
|
|
388
|
+
// access: z
|
|
389
|
+
// .boolean()
|
|
390
|
+
// .default(false)
|
|
391
|
+
// .describe('Give access to every function in this stack to your cognito instance.'),
|
|
389
392
|
triggers: TriggersSchema.optional()
|
|
390
393
|
})
|
|
391
394
|
).optional().describe("Define the auth triggers in your stack.");
|
|
@@ -714,6 +717,10 @@ var SitesSchema = z23.record(
|
|
|
714
717
|
subDomain: z23.string().optional(),
|
|
715
718
|
static: LocalDirectorySchema.optional().describe("Specifies the path to the static files directory."),
|
|
716
719
|
ssr: FunctionSchema.optional().describe("Specifies the ssr file."),
|
|
720
|
+
// bind: z.object({
|
|
721
|
+
// auth:
|
|
722
|
+
// h
|
|
723
|
+
// }).optional(),
|
|
717
724
|
// ssr: z.union([
|
|
718
725
|
// FunctionSchema.optional(),
|
|
719
726
|
// z.object({
|
|
@@ -888,7 +895,11 @@ var AppSchema = z28.object({
|
|
|
888
895
|
name: ResourceIdSchema.describe("App name."),
|
|
889
896
|
region: RegionSchema.describe("The AWS region to deploy to."),
|
|
890
897
|
profile: z28.string().describe("The AWS profile to deploy to."),
|
|
891
|
-
stage:
|
|
898
|
+
// stage: z
|
|
899
|
+
// .string()
|
|
900
|
+
// .regex(/^[a-z]+$/)
|
|
901
|
+
// .default('prod')
|
|
902
|
+
// .describe('The deployment stage.'),
|
|
892
903
|
defaults: z28.object({
|
|
893
904
|
auth: AuthDefaultSchema,
|
|
894
905
|
domains: DomainsDefaultSchema,
|