@wraps.dev/cli 3.13.0 → 3.13.1

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/cli.js CHANGED
@@ -52268,7 +52268,8 @@ function nextActionFor(review, region) {
52268
52268
  return "AWS is reviewing; typically ~24h. Nothing to do.";
52269
52269
  case "DENIED": {
52270
52270
  const caseId = review.review?.caseId;
52271
- return `Strengthen the application (recipient provenance, unsubscribe handling, bounce/complaint monitoring) and resubmit with --request${caseId ? `, or open a Support case referencing case ${caseId} to ask why` : ""}.`;
52271
+ const where = caseId ? `case ${caseId} in the AWS Support Center` : "your cases in the AWS Support Center";
52272
+ return `AWS shows DENIED for a final denial and also while it waits on your reply to a request for more information. Check ${where}: if you've replied, wait for AWS. If the case is closed, strengthen the application (recipient provenance, unsubscribe handling, bounce/complaint monitoring) and resubmit with --request.`;
52272
52273
  }
52273
52274
  case "FAILED":
52274
52275
  return "AWS could not process the request; resubmit with --request.";
@@ -52459,6 +52460,12 @@ async function runRequestPath(options, accountId, startTime) {
52459
52460
  const websiteUrl = await resolveWebsiteUrl(options);
52460
52461
  const mailType = await resolveMailType(options);
52461
52462
  const additionalContactEmails = resolveContactEmails(options);
52463
+ const openCaseId = before.review?.status === "DENIED" ? before.review.caseId : null;
52464
+ if (openCaseId && !isJsonMode()) {
52465
+ clack34.log.warn(
52466
+ `AWS already has case ${openCaseId} on file for this account. AWS reports DENIED while it waits on your reply to a request for more information, so the case may still be open. If you've replied on it, wait for AWS instead of submitting a new request.`
52467
+ );
52468
+ }
52462
52469
  if (!isJsonMode()) {
52463
52470
  clack34.note(
52464
52471
  `AWS reviews this request by hand, typically within 24 hours. The API sends less than the console form does: the console also asks you to confirm that every recipient opted in and that you handle bounces and complaints. There is no API field for that acknowledgment, so make sure both are true before you submit. If you would rather file the fuller application yourself: ${consoleUrl(region)}.`,
@@ -52485,7 +52492,8 @@ async function runRequestPath(options, accountId, startTime) {
52485
52492
  );
52486
52493
  }
52487
52494
  const confirmed = await clack34.confirm({
52488
- message: `Submit the SES production-access request for account ${accountId} in ${region}?`
52495
+ message: openCaseId ? `Case ${openCaseId} may still be open. Submit a new SES production-access request for account ${accountId} in ${region} anyway?` : `Submit the SES production-access request for account ${accountId} in ${region}?`,
52496
+ initialValue: !openCaseId
52489
52497
  });
52490
52498
  if (clack34.isCancel(confirmed) || !confirmed) {
52491
52499
  clack34.cancel("Operation cancelled.");