@awsless/awsless 0.0.41 → 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/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>;
@@ -380,7 +380,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
380
380
  reserved?: number | undefined;
381
381
  environment?: Record<string, string> | undefined;
382
382
  }>]>;
383
- schedule: zod.ZodUnion<[zod.ZodType<`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)`, zod.ZodTypeDef, `rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)`>, zod.ZodEffects<zod.ZodType<`cron(${string} ${string} ${string} ${string} ${string} ${string})`, zod.ZodTypeDef, `cron(${string} ${string} ${string} ${string} ${string} ${string})`>, `cron(${string} ${string} ${string} ${string} ${string} ${string})`, `cron(${string} ${string} ${string} ${string} ${string} ${string})`>]>;
383
+ schedule: zod.ZodUnion<[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`>, string, `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days`>, zod.ZodEffects<zod.ZodEffects<zod.ZodType<`${string} ${string} ${string} ${string} ${string} ${string}`, zod.ZodTypeDef, `${string} ${string} ${string} ${string} ${string} ${string}`>, `${string} ${string} ${string} ${string} ${string} ${string}`, `${string} ${string} ${string} ${string} ${string} ${string}`>, string, `${string} ${string} ${string} ${string} ${string} ${string}`>]>;
384
384
  payload: zod.ZodOptional<zod.ZodUnknown>;
385
385
  }, "strip", zod.ZodTypeAny, {
386
386
  consumer: (string | {
@@ -406,7 +406,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
406
406
  reserved?: number | undefined;
407
407
  environment?: Record<string, string> | undefined;
408
408
  } | undefined);
409
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
409
+ schedule: string;
410
410
  payload?: unknown;
411
411
  }, {
412
412
  consumer: (string | {
@@ -432,7 +432,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
432
432
  reserved?: number | undefined;
433
433
  environment?: Record<string, string> | undefined;
434
434
  } | undefined);
435
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
435
+ schedule: (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}`) & (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}` | undefined);
436
436
  payload?: unknown;
437
437
  }>>>;
438
438
  }, "strip", zod.ZodTypeAny, {
@@ -460,7 +460,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
460
460
  reserved?: number | undefined;
461
461
  environment?: Record<string, string> | undefined;
462
462
  } | undefined);
463
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
463
+ schedule: string;
464
464
  payload?: unknown;
465
465
  }> | undefined;
466
466
  }, {
@@ -488,7 +488,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
488
488
  reserved?: number | undefined;
489
489
  environment?: Record<string, string> | undefined;
490
490
  } | undefined);
491
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
491
+ schedule: (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}`) & (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}` | undefined);
492
492
  payload?: unknown;
493
493
  }> | undefined;
494
494
  }>, "many">;
@@ -518,7 +518,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
518
518
  reserved?: number | undefined;
519
519
  environment?: Record<string, string> | undefined;
520
520
  } | undefined);
521
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
521
+ schedule: string;
522
522
  payload?: unknown;
523
523
  }> | undefined;
524
524
  }[];
@@ -548,7 +548,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
548
548
  reserved?: number | undefined;
549
549
  environment?: Record<string, string> | undefined;
550
550
  } | undefined);
551
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
551
+ schedule: (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}`) & (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}` | undefined);
552
552
  payload?: unknown;
553
553
  }> | undefined;
554
554
  }[];
@@ -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,9 +1815,9 @@ 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
- resolvers: zod.ZodOptional<zod.ZodRecord<zod.ZodType<`${string} ${string}`, zod.ZodTypeDef, `${string} ${string}`>, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodObject<{
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>;
1822
1822
  vpc: zod.ZodOptional<zod.ZodBoolean>;
1823
1823
  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`>>;
@@ -1850,10 +1850,10 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1850
1850
  retryAttempts?: number | undefined;
1851
1851
  reserved?: number | undefined;
1852
1852
  environment?: Record<string, string> | undefined;
1853
- }>]>>>;
1853
+ }>]>>>>;
1854
1854
  }, "strip", zod.ZodTypeAny, {
1855
1855
  schema?: string | string[] | undefined;
1856
- resolvers?: Partial<Record<`${string} ${string}`, string | {
1856
+ resolvers?: Record<string, Record<string, string | {
1857
1857
  file: string;
1858
1858
  vpc?: boolean | undefined;
1859
1859
  timeout?: Duration | undefined;
@@ -1867,7 +1867,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1867
1867
  }>> | undefined;
1868
1868
  }, {
1869
1869
  schema?: string | string[] | undefined;
1870
- resolvers?: Partial<Record<`${string} ${string}`, string | {
1870
+ resolvers?: Record<string, Record<string, string | {
1871
1871
  file: string;
1872
1872
  vpc?: boolean | undefined;
1873
1873
  timeout?: `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
@@ -1883,7 +1883,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1883
1883
  }, "strip", zod.ZodTypeAny, {
1884
1884
  graphql?: Record<string, {
1885
1885
  schema?: string | string[] | undefined;
1886
- resolvers?: Partial<Record<`${string} ${string}`, string | {
1886
+ resolvers?: Record<string, Record<string, string | {
1887
1887
  file: string;
1888
1888
  vpc?: boolean | undefined;
1889
1889
  timeout?: Duration | undefined;
@@ -1899,7 +1899,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1899
1899
  }, {
1900
1900
  graphql?: Record<string, {
1901
1901
  schema?: string | string[] | undefined;
1902
- resolvers?: Partial<Record<`${string} ${string}`, string | {
1902
+ resolvers?: Record<string, Record<string, string | {
1903
1903
  file: string;
1904
1904
  vpc?: boolean | undefined;
1905
1905
  timeout?: `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
@@ -1917,7 +1917,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1917
1917
  stacks: {
1918
1918
  graphql?: Record<string, {
1919
1919
  schema?: string | string[] | undefined;
1920
- resolvers?: Partial<Record<`${string} ${string}`, string | {
1920
+ resolvers?: Record<string, Record<string, string | {
1921
1921
  file: string;
1922
1922
  vpc?: boolean | undefined;
1923
1923
  timeout?: Duration | undefined;
@@ -1968,7 +1968,7 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
1968
1968
  stacks: {
1969
1969
  graphql?: Record<string, {
1970
1970
  schema?: string | string[] | undefined;
1971
- resolvers?: Partial<Record<`${string} ${string}`, string | {
1971
+ resolvers?: Record<string, Record<string, string | {
1972
1972
  file: string;
1973
1973
  vpc?: boolean | undefined;
1974
1974
  timeout?: `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
@@ -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`>>;
@@ -2565,7 +2565,7 @@ declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (Stack
2565
2565
  reserved?: number | undefined;
2566
2566
  environment?: Record<string, string> | undefined;
2567
2567
  } | undefined);
2568
- schedule: (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})`) & (`rate(${number} second)` | `rate(${number} seconds)` | `rate(${number} minute)` | `rate(${number} minutes)` | `rate(${number} hour)` | `rate(${number} hours)` | `rate(${number} day)` | `rate(${number} days)` | `cron(${string} ${string} ${string} ${string} ${string} ${string})` | undefined);
2568
+ schedule: (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}`) & (`${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${string} ${string} ${string} ${string} ${string} ${string}` | undefined);
2569
2569
  payload?: unknown;
2570
2570
  }> | undefined;
2571
2571
  }) | (StackConfig$1 & {
@@ -2690,7 +2690,7 @@ declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (Stack
2690
2690
  }) | (StackConfig$1 & {
2691
2691
  graphql?: Record<string, {
2692
2692
  schema?: string | string[] | undefined;
2693
- resolvers?: Partial<Record<`${string} ${string}`, string | {
2693
+ resolvers?: Record<string, Record<string, string | {
2694
2694
  file: string;
2695
2695
  vpc?: boolean | undefined;
2696
2696
  timeout?: `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
package/dist/index.js CHANGED
@@ -126,7 +126,12 @@ var getCacheProps = (name, stack = STACK) => {
126
126
  };
127
127
  var Cache = createProxy((stack) => {
128
128
  return createProxy((name) => {
129
- return getCacheProps(name, stack);
129
+ const call = () => {
130
+ };
131
+ const { host, port } = getCacheProps(name, stack);
132
+ call.host = host;
133
+ call.port = port;
134
+ return call;
130
135
  });
131
136
  });
132
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.41",
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/sqs": "^0.0.5",
30
- "@awsless/sns": "^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",