@awsless/awsless 0.0.42 → 0.0.43

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/bin.cjs CHANGED
@@ -770,8 +770,9 @@ var LocalFileSchema = import_zod3.z.string().refine(async (path) => {
770
770
  }, `File doesn't exist`);
771
771
 
772
772
  // src/schema/resource-id.ts
773
+ var import_change_case3 = require("change-case");
773
774
  var import_zod4 = require("zod");
774
- var ResourceIdSchema = import_zod4.z.string().min(3).max(24).regex(/^[a-z\-]+$/, "Invalid resource ID");
775
+ var ResourceIdSchema = import_zod4.z.string().min(3).max(24).regex(/^[a-z\-]+$/i, "Invalid resource ID").transform((value) => (0, import_change_case3.paramCase)(value));
775
776
 
776
777
  // src/schema/size.ts
777
778
  var import_zod5 = require("zod");
@@ -1030,7 +1031,7 @@ var hasOnFailure = (config) => {
1030
1031
  };
1031
1032
 
1032
1033
  // src/plugins/function.ts
1033
- var import_change_case4 = require("change-case");
1034
+ var import_change_case5 = require("change-case");
1034
1035
 
1035
1036
  // src/util/path.ts
1036
1037
  var import_promises2 = require("fs/promises");
@@ -1085,7 +1086,7 @@ var import_path6 = require("path");
1085
1086
  // src/util/type-gen.ts
1086
1087
  var import_promises3 = require("fs/promises");
1087
1088
  var import_path4 = require("path");
1088
- var import_change_case3 = require("change-case");
1089
+ var import_change_case4 = require("change-case");
1089
1090
  var generateResourceTypes = async (config) => {
1090
1091
  const plugins = [
1091
1092
  ...defaultPlugins,
@@ -1137,7 +1138,7 @@ var TypeGen = class {
1137
1138
  lines.push(...[
1138
1139
  "// Imports",
1139
1140
  ...Array.from(this.imports.entries()).map(([varName, path]) => {
1140
- return `import ${(0, import_change_case3.camelCase)(varName)} from '${path}'`;
1141
+ return `import ${(0, import_change_case4.camelCase)(varName)} from '${path}'`;
1141
1142
  }),
1142
1143
  ""
1143
1144
  ]);
@@ -1155,7 +1156,7 @@ var TypeGen = class {
1155
1156
  `declare module '${this.module}' {`,
1156
1157
  ` interface ${this.interfaceName} {`,
1157
1158
  ...Array.from(this.types.entries()).map(([propName, type]) => {
1158
- return ` readonly ${(0, import_change_case3.camelCase)(propName)}: ${type}`;
1159
+ return ` readonly ${(0, import_change_case4.camelCase)(propName)}: ${type}`;
1159
1160
  }),
1160
1161
  ` }`,
1161
1162
  `}`,
@@ -1178,7 +1179,7 @@ var TypeObject = class {
1178
1179
  return [
1179
1180
  "{",
1180
1181
  ...Array.from(this.types.entries()).map(([propName, type]) => {
1181
- return ` readonly ${(0, import_change_case3.camelCase)(propName)}: ${type}`;
1182
+ return ` readonly ${(0, import_change_case4.camelCase)(propName)}: ${type}`;
1182
1183
  }),
1183
1184
  " }"
1184
1185
  ].join("\n");
@@ -1337,7 +1338,7 @@ var functionPlugin = definePlugin({
1337
1338
  for (const stack of config.stacks) {
1338
1339
  const list3 = new TypeObject();
1339
1340
  for (const [name, fileOrProps] of Object.entries(stack.functions || {})) {
1340
- const varName = (0, import_change_case4.camelCase)(`${stack.name}-${name}`);
1341
+ const varName = (0, import_change_case5.camelCase)(`${stack.name}-${name}`);
1341
1342
  const funcName = formatName(`${config.name}-${stack.name}-${name}`);
1342
1343
  const file = typeof fileOrProps === "string" ? fileOrProps : fileOrProps.file;
1343
1344
  const relFile = (0, import_path6.relative)(directories.types, file);
@@ -1577,7 +1578,7 @@ var Queue = class extends Resource {
1577
1578
  };
1578
1579
 
1579
1580
  // src/formation/resource/lambda/event-source-mapping.ts
1580
- var import_change_case5 = require("change-case");
1581
+ var import_change_case6 = require("change-case");
1581
1582
  var EventSourceMapping = class extends Resource {
1582
1583
  constructor(logicalId, props) {
1583
1584
  super("AWS::Lambda::EventSourceMapping", logicalId);
@@ -1599,7 +1600,7 @@ var EventSourceMapping = class extends Resource {
1599
1600
  ...this.attr("ParallelizationFactor", this.props.parallelizationFactor),
1600
1601
  ...this.attr("TumblingWindowInSeconds", this.props.tumblingWindow?.toSeconds()),
1601
1602
  ...this.attr("BisectBatchOnFunctionError", this.props.bisectBatchOnError),
1602
- ...this.attr("StartingPosition", this.props.startingPosition && (0, import_change_case5.constantCase)(this.props.startingPosition)),
1603
+ ...this.attr("StartingPosition", this.props.startingPosition && (0, import_change_case6.constantCase)(this.props.startingPosition)),
1603
1604
  ...this.attr("StartingPositionTimestamp", this.props.startingPositionTimestamp),
1604
1605
  ...this.props.maxConcurrency ? {
1605
1606
  ScalingConfig: {
@@ -1640,7 +1641,7 @@ var SqsEventSource = class extends Group {
1640
1641
  };
1641
1642
 
1642
1643
  // src/plugins/queue.ts
1643
- var import_change_case6 = require("change-case");
1644
+ var import_change_case7 = require("change-case");
1644
1645
  var import_path8 = require("path");
1645
1646
  var RetentionPeriodSchema = DurationSchema.refine(durationMin(Duration.minutes(1)), "Minimum retention period is 1 minute").refine(durationMax(Duration.days(14)), "Maximum retention period is 14 days");
1646
1647
  var VisibilityTimeoutSchema = DurationSchema.refine(durationMax(Duration.hours(12)), "Maximum visibility timeout is 12 hours");
@@ -1765,7 +1766,7 @@ var queuePlugin = definePlugin({
1765
1766
  for (const stack of config.stacks) {
1766
1767
  const list3 = new TypeObject();
1767
1768
  for (const [name, fileOrProps] of Object.entries(stack.queues || {})) {
1768
- const varName = (0, import_change_case6.camelCase)(`${stack.name}-${name}`);
1769
+ const varName = (0, import_change_case7.camelCase)(`${stack.name}-${name}`);
1769
1770
  const queueName = formatName(`${config.name}-${stack.name}-${name}`);
1770
1771
  const file = typeof fileOrProps === "string" ? fileOrProps : typeof fileOrProps.consumer === "string" ? fileOrProps.consumer : fileOrProps.consumer.file;
1771
1772
  const relFile = (0, import_path8.relative)(directories.types, file);
@@ -1795,7 +1796,7 @@ var queuePlugin = definePlugin({
1795
1796
  stack.add(queue2, lambda, source);
1796
1797
  bind((lambda2) => {
1797
1798
  lambda2.addPermissions(queue2.permissions);
1798
- lambda2.addEnvironment(`QUEUE_${(0, import_change_case6.constantCase)(stack.name)}_${(0, import_change_case6.constantCase)(id)}_URL`, queue2.url);
1799
+ lambda2.addEnvironment(`QUEUE_${(0, import_change_case7.constantCase)(stack.name)}_${(0, import_change_case7.constantCase)(id)}_URL`, queue2.url);
1799
1800
  });
1800
1801
  }
1801
1802
  }
@@ -1805,7 +1806,7 @@ var queuePlugin = definePlugin({
1805
1806
  var import_zod9 = require("zod");
1806
1807
 
1807
1808
  // src/formation/resource/dynamodb/table.ts
1808
- var import_change_case7 = require("change-case");
1809
+ var import_change_case8 = require("change-case");
1809
1810
  var Table = class extends Resource {
1810
1811
  constructor(logicalId, props) {
1811
1812
  super("AWS::DynamoDB::Table", logicalId);
@@ -1878,7 +1879,7 @@ var Table = class extends Resource {
1878
1879
  return {
1879
1880
  TableName: this.name,
1880
1881
  BillingMode: "PAY_PER_REQUEST",
1881
- TableClass: (0, import_change_case7.constantCase)(this.props.class || "standard"),
1882
+ TableClass: (0, import_change_case8.constantCase)(this.props.class || "standard"),
1882
1883
  PointInTimeRecoverySpecification: {
1883
1884
  PointInTimeRecoveryEnabled: this.props.pointInTimeRecovery || false
1884
1885
  },
@@ -1889,7 +1890,7 @@ var Table = class extends Resource {
1889
1890
  AttributeDefinitions: this.attributeDefinitions(),
1890
1891
  ...this.props.stream ? {
1891
1892
  StreamSpecification: {
1892
- StreamViewType: (0, import_change_case7.constantCase)(this.props.stream)
1893
+ StreamViewType: (0, import_change_case8.constantCase)(this.props.stream)
1893
1894
  }
1894
1895
  } : {},
1895
1896
  ...this.props.timeToLiveAttribute ? {
@@ -1906,7 +1907,7 @@ var Table = class extends Resource {
1906
1907
  ...props.sort ? [{ KeyType: "RANGE", AttributeName: props.sort }] : []
1907
1908
  ],
1908
1909
  Projection: {
1909
- ProjectionType: (0, import_change_case7.constantCase)(props.projection || "all")
1910
+ ProjectionType: (0, import_change_case8.constantCase)(props.projection || "all")
1910
1911
  }
1911
1912
  }))
1912
1913
  } : {}
@@ -2091,7 +2092,7 @@ var tablePlugin = definePlugin({
2091
2092
  var import_zod10 = require("zod");
2092
2093
 
2093
2094
  // src/formation/resource/s3/bucket.ts
2094
- var import_change_case8 = require("change-case");
2095
+ var import_change_case9 = require("change-case");
2095
2096
  var Bucket = class extends Resource {
2096
2097
  constructor(logicalId, props = {}) {
2097
2098
  super("AWS::S3::Bucket", logicalId);
@@ -2126,7 +2127,7 @@ var Bucket = class extends Resource {
2126
2127
  properties() {
2127
2128
  return {
2128
2129
  BucketName: this.name,
2129
- AccessControl: (0, import_change_case8.pascalCase)(this.props.accessControl ?? "private"),
2130
+ AccessControl: (0, import_change_case9.pascalCase)(this.props.accessControl ?? "private"),
2130
2131
  ...this.props.versioned ? {
2131
2132
  VersioningConfiguration: {
2132
2133
  Status: "Enabled"
@@ -2337,12 +2338,12 @@ var extendPlugin = definePlugin({
2337
2338
  var import_zod13 = require("zod");
2338
2339
 
2339
2340
  // src/formation/resource/iot/topic-rule.ts
2340
- var import_change_case9 = require("change-case");
2341
+ var import_change_case10 = require("change-case");
2341
2342
  var TopicRule = class extends Resource {
2342
2343
  constructor(logicalId, props) {
2343
2344
  super("AWS::IoT::TopicRule", logicalId);
2344
2345
  this.props = props;
2345
- this.name = (0, import_change_case9.snakeCase)(this.props.name || logicalId);
2346
+ this.name = (0, import_change_case10.snakeCase)(this.props.name || logicalId);
2346
2347
  }
2347
2348
  name;
2348
2349
  get arn() {
@@ -2442,10 +2443,10 @@ var toArray = (value) => {
2442
2443
  };
2443
2444
 
2444
2445
  // src/plugins/graphql.ts
2445
- var import_change_case13 = require("change-case");
2446
+ var import_change_case14 = require("change-case");
2446
2447
 
2447
2448
  // src/formation/resource/appsync/graphql-api.ts
2448
- var import_change_case10 = require("change-case");
2449
+ var import_change_case11 = require("change-case");
2449
2450
  var GraphQLApi = class extends Resource {
2450
2451
  constructor(logicalId, props) {
2451
2452
  super("AWS::AppSync::GraphQLApi", logicalId);
@@ -2477,7 +2478,7 @@ var GraphQLApi = class extends Resource {
2477
2478
  properties() {
2478
2479
  return {
2479
2480
  Name: this.name,
2480
- AuthenticationType: (0, import_change_case10.constantCase)(this.props.authenticationType || "api-key"),
2481
+ AuthenticationType: (0, import_change_case11.constantCase)(this.props.authenticationType || "api-key"),
2481
2482
  AdditionalAuthenticationProviders: this.lambdaAuthProviders.map((provider) => ({
2482
2483
  AuthenticationType: "AWS_LAMBDA",
2483
2484
  LambdaAuthorizerConfig: {
@@ -2604,12 +2605,12 @@ var FileCode2 = class extends Asset {
2604
2605
  };
2605
2606
 
2606
2607
  // src/formation/resource/appsync/data-source.ts
2607
- var import_change_case11 = require("change-case");
2608
+ var import_change_case12 = require("change-case");
2608
2609
  var DataSource = class extends Resource {
2609
2610
  constructor(logicalId, props) {
2610
2611
  super("AWS::AppSync::DataSource", logicalId);
2611
2612
  this.props = props;
2612
- this.name = (0, import_change_case11.snakeCase)(this.props.name || logicalId);
2613
+ this.name = (0, import_change_case12.snakeCase)(this.props.name || logicalId);
2613
2614
  }
2614
2615
  static fromLambda(logicalId, apiId, props) {
2615
2616
  return new DataSource(logicalId, {
@@ -2649,14 +2650,14 @@ var DataSource = class extends Resource {
2649
2650
  };
2650
2651
 
2651
2652
  // src/formation/resource/appsync/function-configuration.ts
2652
- var import_change_case12 = require("change-case");
2653
+ var import_change_case13 = require("change-case");
2653
2654
  var FunctionConfiguration = class extends Resource {
2654
2655
  constructor(logicalId, props) {
2655
2656
  super("AWS::AppSync::FunctionConfiguration", logicalId, [
2656
2657
  props.code
2657
2658
  ]);
2658
2659
  this.props = props;
2659
- this.name = (0, import_change_case12.snakeCase)(this.props.name || logicalId);
2660
+ this.name = (0, import_change_case13.snakeCase)(this.props.name || logicalId);
2660
2661
  }
2661
2662
  name;
2662
2663
  get id() {
@@ -2878,7 +2879,7 @@ var graphqlPlugin = definePlugin({
2878
2879
  const apiId = bootstrap2.import(`graphql-${id}`);
2879
2880
  for (const [typeName, fields] of Object.entries(props.resolvers || {})) {
2880
2881
  for (const [fieldName, functionProps] of Object.entries(fields || {})) {
2881
- const entryId = (0, import_change_case13.paramCase)(`${id}-${typeName}-${fieldName}`);
2882
+ const entryId = (0, import_change_case14.paramCase)(`${id}-${typeName}-${fieldName}`);
2882
2883
  const lambda = toLambdaFunction(ctx, `graphql-${entryId}`, functionProps);
2883
2884
  const source = new AppsyncEventSource(entryId, lambda, {
2884
2885
  apiId,
@@ -3563,7 +3564,7 @@ var LoadBalancer = class extends Resource {
3563
3564
  };
3564
3565
 
3565
3566
  // src/formation/resource/elb/listener.ts
3566
- var import_change_case14 = require("change-case");
3567
+ var import_change_case15 = require("change-case");
3567
3568
  var Listener = class extends Resource {
3568
3569
  constructor(logicalId, props) {
3569
3570
  super("AWS::ElasticLoadBalancingV2::Listener", logicalId);
@@ -3579,7 +3580,7 @@ var Listener = class extends Resource {
3579
3580
  return {
3580
3581
  LoadBalancerArn: this.props.loadBalancerArn,
3581
3582
  Port: this.props.port,
3582
- Protocol: (0, import_change_case14.constantCase)(this.props.protocol),
3583
+ Protocol: (0, import_change_case15.constantCase)(this.props.protocol),
3583
3584
  Certificates: this.props.certificates.map((arn) => ({
3584
3585
  CertificateArn: arn
3585
3586
  })),
@@ -4018,7 +4019,7 @@ var SubnetGroup = class extends Resource {
4018
4019
  };
4019
4020
 
4020
4021
  // src/plugins/cache.ts
4021
- var import_change_case15 = require("change-case");
4022
+ var import_change_case16 = require("change-case");
4022
4023
  var TypeSchema = import_zod19.z.enum([
4023
4024
  "t4g.small",
4024
4025
  "t4g.medium",
@@ -4104,7 +4105,7 @@ var cachePlugin = definePlugin({
4104
4105
  }).dependsOn(subnetGroup, securityGroup);
4105
4106
  stack.add(subnetGroup, securityGroup, cluster);
4106
4107
  bind((lambda) => {
4107
- lambda.addEnvironment(`CACHE_${(0, import_change_case15.constantCase)(stack.name)}_${(0, import_change_case15.constantCase)(id)}_HOST`, cluster.address).addEnvironment(`CACHE_${(0, import_change_case15.constantCase)(stack.name)}_${(0, import_change_case15.constantCase)(id)}_PORT`, props.port.toString());
4108
+ lambda.addEnvironment(`CACHE_${(0, import_change_case16.constantCase)(stack.name)}_${(0, import_change_case16.constantCase)(id)}_HOST`, cluster.address).addEnvironment(`CACHE_${(0, import_change_case16.constantCase)(stack.name)}_${(0, import_change_case16.constantCase)(id)}_PORT`, props.port.toString());
4108
4109
  });
4109
4110
  }
4110
4111
  }
@@ -5102,6 +5103,7 @@ var format = (value) => {
5102
5103
  };
5103
5104
  var zodError = (error, data) => {
5104
5105
  return (term) => {
5106
+ term.out.write(JSON.stringify(error.errors));
5105
5107
  for (const issue of error.issues) {
5106
5108
  term.out.gap();
5107
5109
  term.out.write(dialog("error", [
@@ -5386,7 +5388,7 @@ var shouldDeployBootstrap = async (client, stack) => {
5386
5388
  // src/formation/client.ts
5387
5389
  var import_client_cloudformation = require("@aws-sdk/client-cloudformation");
5388
5390
  var import_client_s3 = require("@aws-sdk/client-s3");
5389
- var import_change_case16 = require("change-case");
5391
+ var import_change_case17 = require("change-case");
5390
5392
  var StackClient = class {
5391
5393
  constructor(app, account, region, credentials) {
5392
5394
  this.app = app;
@@ -5419,7 +5421,7 @@ var StackClient = class {
5419
5421
  };
5420
5422
  }
5421
5423
  stackName(stackName) {
5422
- return (0, import_change_case16.paramCase)(`${this.app.name}-${stackName}`);
5424
+ return (0, import_change_case17.paramCase)(`${this.app.name}-${stackName}`);
5423
5425
  }
5424
5426
  tags(stack) {
5425
5427
  const tags = [];
package/dist/bin.js CHANGED
@@ -747,8 +747,9 @@ var LocalFileSchema = z3.string().refine(async (path) => {
747
747
  }, `File doesn't exist`);
748
748
 
749
749
  // src/schema/resource-id.ts
750
+ import { paramCase as paramCase3 } from "change-case";
750
751
  import { z as z4 } from "zod";
751
- var ResourceIdSchema = z4.string().min(3).max(24).regex(/^[a-z\-]+$/, "Invalid resource ID");
752
+ var ResourceIdSchema = z4.string().min(3).max(24).regex(/^[a-z\-]+$/i, "Invalid resource ID").transform((value) => paramCase3(value));
752
753
 
753
754
  // src/schema/size.ts
754
755
  import { z as z5 } from "zod";
@@ -2419,7 +2420,7 @@ var toArray = (value) => {
2419
2420
  };
2420
2421
 
2421
2422
  // src/plugins/graphql.ts
2422
- import { paramCase as paramCase3 } from "change-case";
2423
+ import { paramCase as paramCase4 } from "change-case";
2423
2424
 
2424
2425
  // src/formation/resource/appsync/graphql-api.ts
2425
2426
  import { constantCase as constantCase4 } from "change-case";
@@ -2855,7 +2856,7 @@ var graphqlPlugin = definePlugin({
2855
2856
  const apiId = bootstrap2.import(`graphql-${id}`);
2856
2857
  for (const [typeName, fields] of Object.entries(props.resolvers || {})) {
2857
2858
  for (const [fieldName, functionProps] of Object.entries(fields || {})) {
2858
- const entryId = paramCase3(`${id}-${typeName}-${fieldName}`);
2859
+ const entryId = paramCase4(`${id}-${typeName}-${fieldName}`);
2859
2860
  const lambda = toLambdaFunction(ctx, `graphql-${entryId}`, functionProps);
2860
2861
  const source = new AppsyncEventSource(entryId, lambda, {
2861
2862
  apiId,
@@ -5079,6 +5080,7 @@ var format = (value) => {
5079
5080
  };
5080
5081
  var zodError = (error, data) => {
5081
5082
  return (term) => {
5083
+ term.out.write(JSON.stringify(error.errors));
5082
5084
  for (const issue of error.issues) {
5083
5085
  term.out.gap();
5084
5086
  term.out.write(dialog("error", [
@@ -5363,7 +5365,7 @@ var shouldDeployBootstrap = async (client, stack) => {
5363
5365
  // src/formation/client.ts
5364
5366
  import { CloudFormationClient, CreateStackCommand, DeleteStackCommand, DescribeStackEventsCommand, DescribeStacksCommand, GetTemplateCommand, OnFailure, TemplateStage, UpdateStackCommand, ValidateTemplateCommand, waitUntilStackCreateComplete, waitUntilStackDeleteComplete, waitUntilStackUpdateComplete } from "@aws-sdk/client-cloudformation";
5365
5367
  import { S3Client, PutObjectCommand, ObjectCannedACL, StorageClass } from "@aws-sdk/client-s3";
5366
- import { paramCase as paramCase4 } from "change-case";
5368
+ import { paramCase as paramCase5 } from "change-case";
5367
5369
  var StackClient = class {
5368
5370
  constructor(app, account, region, credentials) {
5369
5371
  this.app = app;
@@ -5396,7 +5398,7 @@ var StackClient = class {
5396
5398
  };
5397
5399
  }
5398
5400
  stackName(stackName) {
5399
- return paramCase4(`${this.app.name}-${stackName}`);
5401
+ return paramCase5(`${this.app.name}-${stackName}`);
5400
5402
  }
5401
5403
  tags(stack) {
5402
5404
  const tags = [];
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ type StackConfig$1 = {
20
20
 
21
21
  declare const AppSchema: z.ZodObject<{
22
22
  /** App name */
23
- name: z.ZodString;
23
+ name: z.ZodEffects<z.ZodString, string, string>;
24
24
  /** The AWS region to deploy to. */
25
25
  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"]>;
26
26
  /** The AWS profile to deploy to. */
@@ -161,7 +161,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
161
161
  } | undefined;
162
162
  }>>;
163
163
  stacks: zod.ZodArray<zod.ZodObject<{
164
- functions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
164
+ functions: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
165
165
  file: zod.ZodEffects<zod.ZodString, string, string>;
166
166
  vpc: zod.ZodOptional<zod.ZodBoolean>;
167
167
  timeout: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodEffects<zod.ZodType<`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`, zod.ZodTypeDef, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>>;
@@ -280,7 +280,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
280
280
  } | undefined;
281
281
  }>> | Plugin<zod.ZodObject<{
282
282
  stacks: zod.ZodArray<zod.ZodObject<{
283
- caches: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
283
+ caches: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
284
284
  type: zod.ZodDefault<zod.ZodEnum<["t4g.small", "t4g.medium", "r6g.large", "r6g.xlarge", "r6g.2xlarge", "r6g.4xlarge", "r6g.8xlarge", "r6g.12xlarge", "r6g.16xlarge", "r6gd.xlarge", "r6gd.2xlarge", "r6gd.4xlarge", "r6gd.8xlarge"]>>;
285
285
  port: zod.ZodDefault<zod.ZodNumber>;
286
286
  shards: zod.ZodDefault<zod.ZodNumber>;
@@ -345,7 +345,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
345
345
  }[];
346
346
  }>> | Plugin<zod.ZodObject<{
347
347
  stacks: zod.ZodArray<zod.ZodObject<{
348
- crons: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
348
+ crons: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
349
349
  consumer: zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
350
350
  file: zod.ZodEffects<zod.ZodString, string, string>;
351
351
  vpc: zod.ZodOptional<zod.ZodBoolean>;
@@ -606,7 +606,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
606
606
  } | undefined;
607
607
  }>>;
608
608
  stacks: zod.ZodArray<zod.ZodObject<{
609
- queues: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
609
+ queues: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
610
610
  consumer: zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
611
611
  file: zod.ZodEffects<zod.ZodString, string, string>;
612
612
  vpc: zod.ZodOptional<zod.ZodBoolean>;
@@ -881,7 +881,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
881
881
  } | undefined;
882
882
  }>> | Plugin<zod.ZodObject<{
883
883
  stacks: zod.ZodArray<zod.ZodObject<{
884
- tables: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
884
+ tables: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
885
885
  hash: zod.ZodString;
886
886
  sort: zod.ZodOptional<zod.ZodString>;
887
887
  fields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodEnum<["string", "number", "binary"]>>>;
@@ -1232,7 +1232,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1232
1232
  }[];
1233
1233
  }>> | Plugin<zod.ZodObject<{
1234
1234
  stacks: zod.ZodArray<zod.ZodObject<{
1235
- stores: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1235
+ stores: zod.ZodOptional<zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">>;
1236
1236
  }, "strip", zod.ZodTypeAny, {
1237
1237
  stores?: string[] | undefined;
1238
1238
  }, {
@@ -1248,7 +1248,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1248
1248
  }[];
1249
1249
  }>> | Plugin<zod.ZodObject<{
1250
1250
  stacks: zod.ZodArray<zod.ZodObject<{
1251
- topics: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
1251
+ topics: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
1252
1252
  file: zod.ZodEffects<zod.ZodString, string, string>;
1253
1253
  vpc: zod.ZodOptional<zod.ZodBoolean>;
1254
1254
  timeout: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodEffects<zod.ZodType<`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`, zod.ZodTypeDef, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>>;
@@ -1341,7 +1341,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1341
1341
  }[];
1342
1342
  }>> | Plugin<zod.ZodObject<{
1343
1343
  stacks: zod.ZodArray<zod.ZodObject<{
1344
- pubsub: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1344
+ pubsub: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
1345
1345
  sql: zod.ZodString;
1346
1346
  sqlVersion: zod.ZodDefault<zod.ZodEnum<["2015-10-08", "2016-03-23", "beta"]>>;
1347
1347
  consumer: zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
@@ -1550,7 +1550,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1550
1550
  }[];
1551
1551
  }>> | Plugin<zod.ZodObject<{
1552
1552
  stacks: zod.ZodArray<zod.ZodObject<{
1553
- searchs: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1553
+ searchs: zod.ZodOptional<zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">>;
1554
1554
  }, "strip", zod.ZodTypeAny, {
1555
1555
  searchs?: string[] | undefined;
1556
1556
  }, {
@@ -1597,7 +1597,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1597
1597
  }[]> | undefined;
1598
1598
  }>> | Plugin<zod.ZodObject<{
1599
1599
  defaults: zod.ZodDefault<zod.ZodObject<{
1600
- graphql: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1600
+ graphql: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
1601
1601
  domain: zod.ZodOptional<zod.ZodString>;
1602
1602
  subDomain: zod.ZodOptional<zod.ZodString>;
1603
1603
  authorization: zod.ZodOptional<zod.ZodObject<{
@@ -1815,7 +1815,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1815
1815
  }> | undefined;
1816
1816
  }>>;
1817
1817
  stacks: zod.ZodArray<zod.ZodObject<{
1818
- graphql: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1818
+ graphql: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
1819
1819
  schema: zod.ZodOptional<zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">]>>;
1820
1820
  resolvers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
1821
1821
  file: zod.ZodEffects<zod.ZodString, string, string>;
@@ -2017,7 +2017,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
2017
2017
  } | undefined;
2018
2018
  }>> | Plugin<zod.ZodObject<{
2019
2019
  defaults: zod.ZodDefault<zod.ZodObject<{
2020
- http: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
2020
+ http: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
2021
2021
  domain: zod.ZodString;
2022
2022
  subDomain: zod.ZodOptional<zod.ZodString>;
2023
2023
  }, "strip", zod.ZodTypeAny, {
@@ -2039,7 +2039,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
2039
2039
  }> | undefined;
2040
2040
  }>>;
2041
2041
  stacks: zod.ZodArray<zod.ZodObject<{
2042
- http: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodType<`POST /${string}` | `GET /${string}` | `PUT /${string}` | `DELETE /${string}` | `HEAD /${string}` | `OPTIONS /${string}`, zod.ZodTypeDef, `POST /${string}` | `GET /${string}` | `PUT /${string}` | `DELETE /${string}` | `HEAD /${string}` | `OPTIONS /${string}`>, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
2042
+ http: zod.ZodOptional<zod.ZodRecord<zod.ZodEffects<zod.ZodString, string, string>, zod.ZodRecord<zod.ZodType<`POST /${string}` | `GET /${string}` | `PUT /${string}` | `DELETE /${string}` | `HEAD /${string}` | `OPTIONS /${string}`, zod.ZodTypeDef, `POST /${string}` | `GET /${string}` | `PUT /${string}` | `DELETE /${string}` | `HEAD /${string}` | `OPTIONS /${string}`>, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
2043
2043
  file: zod.ZodEffects<zod.ZodString, string, string>;
2044
2044
  vpc: zod.ZodOptional<zod.ZodBoolean>;
2045
2045
  timeout: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodEffects<zod.ZodType<`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`, zod.ZodTypeDef, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, Duration, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@awsless/lambda": "^0.0.5",
29
- "@awsless/sns": "^0.0.5",
30
- "@awsless/sqs": "^0.0.5"
29
+ "@awsless/sqs": "^0.0.6",
30
+ "@awsless/sns": "^0.0.6"
31
31
  },
32
32
  "dependencies": {
33
33
  "@aws-sdk/client-cloudformation": "^3.369.0",