groundmail-cli 0.47.2 → 0.48.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +16 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1542,7 +1542,9 @@ var POSITIONAL_FLAGS3 = [
1542
1542
  "--click-tracking",
1543
1543
  "--inbound",
1544
1544
  "--inbound-spam-threshold",
1545
- "--inbound-spam-action"
1545
+ "--inbound-spam-action",
1546
+ "--inbound-forward-url",
1547
+ "--inbound-forward-secret"
1546
1548
  ];
1547
1549
  function readFirstPositional4(args) {
1548
1550
  for (let i = 0; i < args.length; i += 1) {
@@ -1602,10 +1604,21 @@ async function runUpdateCommand2(args, env = process.env) {
1602
1604
  }
1603
1605
  payload.inbound_spam_action = spamAction;
1604
1606
  }
1607
+ const forwardUrl = readFlag10(args, "--inbound-forward-url");
1608
+ if (forwardUrl != null) {
1609
+ if (forwardUrl === "none" || forwardUrl === "null") payload.inbound_forward_url = null;
1610
+ else if (!forwardUrl.startsWith("https://")) {
1611
+ return { exitCode: 1, error: "--inbound-forward-url must be an https:// URL, or none" };
1612
+ } else payload.inbound_forward_url = forwardUrl;
1613
+ }
1614
+ const forwardSecret = readFlag10(args, "--inbound-forward-secret");
1615
+ if (forwardSecret != null) {
1616
+ payload.inbound_forward_secret = forwardSecret === "none" || forwardSecret === "null" ? null : forwardSecret;
1617
+ }
1605
1618
  if (!Object.keys(payload).length) {
1606
1619
  return {
1607
1620
  exitCode: 1,
1608
- error: "No updates provided. Pass --inbound true|false, --tls-mode opportunistic|enforced, --open-tracking true|false, --click-tracking true|false, --inbound-spam-threshold <1-100|default>, or --inbound-spam-action flag|drop."
1621
+ error: "No updates provided. Pass --inbound true|false, --tls-mode opportunistic|enforced, --open-tracking true|false, --click-tracking true|false, --inbound-spam-threshold <1-100|default>, --inbound-spam-action flag|drop, --inbound-forward-url <https://\u2026|none>, or --inbound-forward-secret <secret|none>."
1609
1622
  };
1610
1623
  }
1611
1624
  const client2 = await createDomainsClient(apiKey, options.baseUrl);
@@ -2090,7 +2103,7 @@ async function runListKeysCommandWithClient(args, env = process.env) {
2090
2103
  }
2091
2104
 
2092
2105
  // package.json
2093
- var version = "0.47.2";
2106
+ var version = "0.48.0";
2094
2107
 
2095
2108
  // src/help.ts
2096
2109
  var USAGE_LINES = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groundmail-cli",
3
- "version": "0.47.2",
3
+ "version": "0.48.0",
4
4
  "description": "Groundmail CLI: send email and manage mailboxes from the terminal",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "prepublishOnly": "npm run build"
39
39
  },
40
40
  "dependencies": {
41
- "groundmail": "0.48.2"
41
+ "groundmail": "0.50.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "tsup": "^9.0.0",