@awsless/awsless 0.0.644 → 0.0.645

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.js CHANGED
@@ -1053,7 +1053,7 @@ var DomainsDefaultSchema = z10.record(
1053
1053
  ).optional().describe("Define the domains for your application.");
1054
1054
 
1055
1055
  // src/feature/function/schema.ts
1056
- import { days, minutes, seconds, toDays } from "@awsless/duration";
1056
+ import { days, minutes as minutes2, seconds, toDays } from "@awsless/duration";
1057
1057
  import { gibibytes, mebibytes } from "@awsless/size";
1058
1058
  import { z as z15 } from "zod";
1059
1059
 
@@ -1129,7 +1129,7 @@ var sizeMax = (max) => {
1129
1129
  var MemorySizeSchema = SizeSchema.refine(sizeMin(mebibytes(128)), "Minimum memory size is 128 MB").refine(sizeMax(gibibytes(10)), "Maximum memory size is 10 GB").describe(
1130
1130
  "The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The value can be any multiple of 1 MB. You can specify a size value from 128 MB to 10 GB."
1131
1131
  );
1132
- var TimeoutSchema = DurationSchema.refine(durationMin(seconds(10)), "Minimum timeout duration is 10 seconds").refine(durationMax(minutes(15)), "Maximum timeout duration is 15 minutes").describe(
1132
+ var TimeoutSchema = DurationSchema.refine(durationMin(seconds(10)), "Minimum timeout duration is 10 seconds").refine(durationMax(minutes2(15)), "Maximum timeout duration is 15 minutes").describe(
1133
1133
  "The amount of time that Lambda allows a function to run before stopping it. You can specify a size value from 1 second to 15 minutes."
1134
1134
  );
1135
1135
  var EphemeralStorageSizeSchema = SizeSchema.refine(
@@ -1362,11 +1362,11 @@ var PubSubSchema = z19.record(
1362
1362
  ).optional().describe("Define the pubsub subscriber in your stack.");
1363
1363
 
1364
1364
  // src/feature/queue/schema.ts
1365
- import { days as days2, hours, minutes as minutes2, seconds as seconds2 } from "@awsless/duration";
1365
+ import { days as days2, hours, minutes as minutes3, seconds as seconds2 } from "@awsless/duration";
1366
1366
  import { kibibytes } from "@awsless/size";
1367
1367
  import { z as z20 } from "zod";
1368
1368
  var RetentionPeriodSchema = DurationSchema.refine(
1369
- durationMin(minutes2(1)),
1369
+ durationMin(minutes3(1)),
1370
1370
  "Minimum retention period is 1 minute"
1371
1371
  ).refine(durationMax(days2(14)), "Maximum retention period is 14 days").describe(
1372
1372
  "The number of seconds that Amazon SQS retains a message. You can specify a duration from 1 minute to 14 days."
@@ -1378,7 +1378,7 @@ var VisibilityTimeoutSchema = DurationSchema.refine(
1378
1378
  "The length of time during which a message will be unavailable after a message is delivered from the queue. This blocks other components from receiving the same message and gives the initial component time to process and delete the message from the queue. You can specify a duration from 0 to 12 hours."
1379
1379
  );
1380
1380
  var DeliveryDelaySchema = DurationSchema.refine(
1381
- durationMax(minutes2(15)),
1381
+ durationMax(minutes3(15)),
1382
1382
  "Maximum delivery delay is 15 minutes"
1383
1383
  ).describe(
1384
1384
  "The time in seconds for which the delivery of all messages in the queue is delayed. You can specify a duration from 0 to 15 minutes."
@@ -1399,7 +1399,7 @@ var MaxConcurrencySchema = z20.number().int().min(2, "Minimum max concurrency is
1399
1399
  "Limits the number of concurrent instances that the queue worker can invoke. You can specify an integer from 2 to 1000."
1400
1400
  );
1401
1401
  var MaxBatchingWindow = DurationSchema.refine(
1402
- durationMax(minutes2(5)),
1402
+ durationMax(minutes3(5)),
1403
1403
  "Maximum max batching window is 5 minutes"
1404
1404
  ).describe(
1405
1405
  "The maximum amount of time, that Lambda spends gathering records before invoking the function. You can specify an duration from 0 seconds to 5 minutes."
@@ -1469,11 +1469,11 @@ var RestSchema = z22.record(
1469
1469
  ).optional().describe("Define routes in your stack for your global REST API.");
1470
1470
 
1471
1471
  // src/feature/rpc/schema.ts
1472
- import { minutes as minutes4, seconds as seconds3 } from "@awsless/duration";
1472
+ import { minutes as minutes5, seconds as seconds3 } from "@awsless/duration";
1473
1473
  import { z as z24 } from "zod";
1474
1474
 
1475
1475
  // src/feature/router/schema.ts
1476
- import { days as days3, minutes as minutes3, parse as parse3 } from "@awsless/duration";
1476
+ import { days as days3, minutes as minutes4, parse as parse3 } from "@awsless/duration";
1477
1477
  import { z as z23 } from "zod";
1478
1478
  var ErrorResponsePathSchema = z23.string().describe(
1479
1479
  [
@@ -1538,10 +1538,10 @@ var WafSettingsSchema = z23.object({
1538
1538
  }).optional().describe(
1539
1539
  "Provides protection against automated bots that can consume excess resources, skew business metrics, cause downtime, or perform malicious activities. Bot Control provides additional visibility through Amazon CloudWatch and generates labels that you can use to control bot traffic to your applications. Uses 50 WCU."
1540
1540
  ),
1541
- captchaImmunityTime: DurationSchema.refine(durationMin(minutes3(1)), "Minimum timeout duration is 1 minute").refine(durationMax(days3(3)), "Maximum timeout duration is 3 days").default("5 minutes").describe(
1541
+ captchaImmunityTime: DurationSchema.refine(durationMin(minutes4(1)), "Minimum timeout duration is 1 minute").refine(durationMax(days3(3)), "Maximum timeout duration is 3 days").default("5 minutes").describe(
1542
1542
  "The amount of time that a CAPTCHA timestamp is considered valid by AWS WAF. The default setting is 5 minutes."
1543
1543
  ),
1544
- challengeImmunityTime: DurationSchema.refine(durationMin(minutes3(1)), "Minimum timeout duration is 1 minute").refine(durationMax(days3(3)), "Maximum timeout duration is 3 days").default("5 minutes").describe(
1544
+ challengeImmunityTime: DurationSchema.refine(durationMin(minutes4(1)), "Minimum timeout duration is 1 minute").refine(durationMax(days3(3)), "Maximum timeout duration is 3 days").default("5 minutes").describe(
1545
1545
  "The amount of time that a challenge timestamp is considered valid by AWS WAF. The default setting is 5 minutes."
1546
1546
  )
1547
1547
  }).describe(
@@ -1636,7 +1636,7 @@ var RouterDefaultSchema = z23.record(
1636
1636
  ).optional().describe(`Define the global Router. Backed by AWS CloudFront.`);
1637
1637
 
1638
1638
  // src/feature/rpc/schema.ts
1639
- var TimeoutSchema2 = DurationSchema.refine(durationMin(seconds3(10)), "Minimum timeout duration is 10 seconds").refine(durationMax(minutes4(5)), "Maximum timeout duration is 5 minutes").describe(
1639
+ var TimeoutSchema2 = DurationSchema.refine(durationMin(seconds3(10)), "Minimum timeout duration is 10 seconds").refine(durationMax(minutes5(5)), "Maximum timeout duration is 5 minutes").describe(
1640
1640
  [
1641
1641
  "The amount of time that the RPC lambda is allowed run before stopping it.",
1642
1642
  "You can specify a timeout from 10 second to 5 minutes.",
@@ -2368,7 +2368,7 @@ var MetricsSchema = z40.record(
2368
2368
  ).optional().describe("Define the metrics in your stack.");
2369
2369
 
2370
2370
  // src/feature/table/schema.ts
2371
- import { minutes as minutes5, seconds as seconds4 } from "@awsless/duration";
2371
+ import { minutes as minutes6, seconds as seconds4 } from "@awsless/duration";
2372
2372
  import { z as z41 } from "zod";
2373
2373
  var KeySchema = z41.string().min(1).max(255);
2374
2374
  var TablesSchema = z41.record(
@@ -2413,7 +2413,7 @@ var TablesSchema = z41.record(
2413
2413
  batchWindow: DurationSchema.refine(
2414
2414
  durationMin(seconds4(1)),
2415
2415
  "Minimum batch window duration is 1 second"
2416
- ).refine(durationMax(minutes5(5)), "Maximum batch window duration is 5 minutes").optional().describe(
2416
+ ).refine(durationMax(minutes6(5)), "Maximum batch window duration is 5 minutes").optional().describe(
2417
2417
  [
2418
2418
  "The maximum amount of time that is spend gathering records before invoking the function.",
2419
2419
  "You can specify a duration from 1 seconds to 5 minutes."
@@ -4101,7 +4101,7 @@ var cronFeature = defineFeature({
4101
4101
  });
4102
4102
 
4103
4103
  // src/feature/domain/index.ts
4104
- import { minutes as minutes6, toSeconds as toSeconds2 } from "@awsless/duration";
4104
+ import { minutes as minutes7, toSeconds as toSeconds2 } from "@awsless/duration";
4105
4105
  import { Group as Group5 } from "@terraforge/core";
4106
4106
  import { aws as aws6 } from "@terraforge/aws";
4107
4107
  var domainFeature = defineFeature({
@@ -4143,7 +4143,7 @@ var domainFeature = defineFeature({
4143
4143
  zoneId: zone.id,
4144
4144
  name: option(certificate, 0).pipe((r) => r.resourceRecordName),
4145
4145
  type: option(certificate, 0).pipe((r) => r.resourceRecordType),
4146
- ttl: toSeconds2(minutes6(5)),
4146
+ ttl: toSeconds2(minutes7(5)),
4147
4147
  records: [option(certificate, 0).pipe((r) => r.resourceRecordValue)],
4148
4148
  allowOverwrite: true
4149
4149
  });
@@ -4151,7 +4151,7 @@ var domainFeature = defineFeature({
4151
4151
  zoneId: zone.id,
4152
4152
  name: option(certificate, 1).pipe((r) => r.resourceRecordName),
4153
4153
  type: option(certificate, 1).pipe((r) => r.resourceRecordType),
4154
- ttl: toSeconds2(minutes6(5)),
4154
+ ttl: toSeconds2(minutes7(5)),
4155
4155
  records: [option(certificate, 1).pipe((r) => r.resourceRecordValue)],
4156
4156
  allowOverwrite: true
4157
4157
  });
@@ -4186,7 +4186,7 @@ var domainFeature = defineFeature({
4186
4186
  zoneId: zone.id,
4187
4187
  name: option(globalCertificate, 0).pipe((r) => r.resourceRecordName),
4188
4188
  type: option(globalCertificate, 0).pipe((r) => r.resourceRecordType),
4189
- ttl: toSeconds2(minutes6(5)),
4189
+ ttl: toSeconds2(minutes7(5)),
4190
4190
  records: [option(globalCertificate, 0).pipe((r) => r.resourceRecordValue)],
4191
4191
  allowOverwrite: true
4192
4192
  });
@@ -4194,7 +4194,7 @@ var domainFeature = defineFeature({
4194
4194
  zoneId: zone.id,
4195
4195
  name: option(globalCertificate, 1).pipe((r) => r.resourceRecordName),
4196
4196
  type: option(globalCertificate, 1).pipe((r) => r.resourceRecordType),
4197
- ttl: toSeconds2(minutes6(5)),
4197
+ ttl: toSeconds2(minutes7(5)),
4198
4198
  records: [option(globalCertificate, 1).pipe((r) => r.resourceRecordValue)],
4199
4199
  allowOverwrite: true
4200
4200
  });
@@ -4220,7 +4220,7 @@ var domainFeature = defineFeature({
4220
4220
  zoneId: zone.id,
4221
4221
  name: `_amazonses.${props.domain}`,
4222
4222
  type: "TXT",
4223
- ttl: toSeconds2(minutes6(5)),
4223
+ ttl: toSeconds2(minutes7(5)),
4224
4224
  records: [identity.verificationToken]
4225
4225
  });
4226
4226
  const dkim = new aws6.ses.DomainDkim(group2, "dkim", {
@@ -4231,7 +4231,7 @@ var domainFeature = defineFeature({
4231
4231
  zoneId: zone.id,
4232
4232
  type: "CNAME",
4233
4233
  name: dkim.dkimTokens.pipe((t) => `${t.at(i)}._domainkey`),
4234
- ttl: toSeconds2(minutes6(5)),
4234
+ ttl: toSeconds2(minutes7(5)),
4235
4235
  records: [dkim.dkimTokens.pipe((t) => `${t.at(i)}.dkim.amazonses.com`)]
4236
4236
  });
4237
4237
  }
@@ -4244,21 +4244,21 @@ var domainFeature = defineFeature({
4244
4244
  zoneId: zone.id,
4245
4245
  name: mailFrom.mailFromDomain,
4246
4246
  type: "MX",
4247
- ttl: toSeconds2(minutes6(5)),
4247
+ ttl: toSeconds2(minutes7(5)),
4248
4248
  records: [`10 feedback-smtp.${ctx.appConfig.region}.amazonses.com`]
4249
4249
  });
4250
4250
  new aws6.route53.Record(group2, `SPF`, {
4251
4251
  zoneId: zone.id,
4252
4252
  name: mailFrom.mailFromDomain,
4253
4253
  type: "TXT",
4254
- ttl: toSeconds2(minutes6(5)),
4254
+ ttl: toSeconds2(minutes7(5)),
4255
4255
  records: ["v=spf1 include:amazonses.com -all"]
4256
4256
  });
4257
4257
  new aws6.route53.Record(group2, `DMARC`, {
4258
4258
  zoneId: zone.id,
4259
4259
  name: `_dmarc.${props.domain}`,
4260
4260
  type: "TXT",
4261
- ttl: toSeconds2(minutes6(5)),
4261
+ ttl: toSeconds2(minutes7(5)),
4262
4262
  records: ["v=DMARC1; p=none;"]
4263
4263
  });
4264
4264
  const verification = new aws6.ses.DomainIdentityVerification(
@@ -4583,6 +4583,7 @@ var pubsubFeature = defineFeature({
4583
4583
  zoneId: ctx.shared.entry("domain", `zone-id`, props.domain),
4584
4584
  name: domainName,
4585
4585
  type: "CNAME",
4586
+ ttl: minutes(5),
4586
4587
  records: [endpoint.endpointAddress]
4587
4588
  });
4588
4589
  ctx.bind(`PUBSUB_${constantCase5(id)}_ENDPOINT`, domainName);
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.644",
3
+ "version": "0.0.645",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,21 +35,21 @@
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.5",
37
37
  "@awsless/cloudwatch": "^0.0.1",
38
- "@awsless/duration": "^0.0.4",
39
38
  "@awsless/clui": "^0.0.8",
40
- "@awsless/json": "^0.0.11",
41
- "@awsless/iot": "^0.0.3",
39
+ "@awsless/duration": "^0.0.4",
42
40
  "@awsless/dynamodb": "^0.3.18",
41
+ "@awsless/json": "^0.0.11",
42
+ "@awsless/mqtt": "^0.0.2",
43
43
  "@awsless/lambda": "^0.0.37",
44
44
  "@awsless/redis": "^0.0.14",
45
- "@awsless/s3": "^0.0.21",
46
- "@awsless/mqtt": "^0.0.2",
47
45
  "@awsless/open-search": "^0.0.21",
48
- "@awsless/sns": "^0.0.10",
49
46
  "@awsless/validate": "^0.1.5",
50
- "@awsless/sqs": "^0.0.16",
47
+ "@awsless/s3": "^0.0.21",
48
+ "@awsless/ssm": "^0.0.7",
51
49
  "@awsless/weak-cache": "^0.0.1",
52
- "@awsless/ssm": "^0.0.7"
50
+ "@awsless/iot": "^0.0.3",
51
+ "@awsless/sqs": "^0.0.16",
52
+ "@awsless/sns": "^0.0.10"
53
53
  },
54
54
  "dependencies": {
55
55
  "@aws-sdk/client-cloudformation": "^3.369.0",
@@ -114,14 +114,14 @@
114
114
  "zod": "^3.24.2",
115
115
  "zod-to-json-schema": "^3.24.3",
116
116
  "@awsless/big-float": "^0.1.5",
117
- "@awsless/cloudwatch": "^0.0.1",
118
- "@awsless/clui": "^0.0.8",
119
- "@awsless/json": "^0.0.11",
120
117
  "@awsless/duration": "^0.0.4",
121
- "@awsless/size": "^0.0.2",
122
- "@awsless/ts-file-cache": "^0.0.12",
118
+ "@awsless/json": "^0.0.11",
123
119
  "@awsless/scheduler": "^0.0.4",
124
- "@awsless/validate": "^0.1.5"
120
+ "@awsless/size": "^0.0.2",
121
+ "@awsless/validate": "^0.1.5",
122
+ "@awsless/cloudwatch": "^0.0.1",
123
+ "@awsless/clui": "^0.0.8",
124
+ "@awsless/ts-file-cache": "^0.0.12"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@hono/node-server": "1.19.9",