groundmail-cli 0.52.1 → 0.53.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 +5 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -2103,7 +2103,7 @@ async function runListKeysCommandWithClient(args, env = process.env) {
2103
2103
  }
2104
2104
 
2105
2105
  // package.json
2106
- var version = "0.52.1";
2106
+ var version = "0.53.0";
2107
2107
 
2108
2108
  // src/help.ts
2109
2109
  var USAGE_LINES = [
@@ -5116,14 +5116,16 @@ async function runValidateCommand(args, env = process.env) {
5116
5116
  if (!apiKey) {
5117
5117
  return { exitCode: 1, error: "Missing API key. Set GROUNDMAIL_API_KEY, pass --api-key, or run `groundmail login`." };
5118
5118
  }
5119
- const flagValues = new Set([options.apiKey, options.baseUrl].filter(Boolean));
5119
+ const tenant = readFlag19(args, "--tenant");
5120
+ const mailboxCheck = args.includes("--mailbox");
5121
+ const flagValues = new Set([options.apiKey, options.baseUrl, tenant].filter(Boolean));
5120
5122
  const email = readFlag19(args, "--email") || args.find((arg) => arg.includes("@") && !arg.startsWith("-") && !flagValues.has(arg));
5121
5123
  if (!email) {
5122
5124
  return { exitCode: 1, error: "Missing email. Usage: groundmail validate user@example.com" };
5123
5125
  }
5124
5126
  try {
5125
5127
  const client3 = await createSuppressionsClient(apiKey, options.baseUrl);
5126
- const result = await client3.validate(email);
5128
+ const result = mailboxCheck || tenant ? await client3.validate(email, { ...mailboxCheck ? { mailboxCheck: true } : {}, ...tenant ? { tenant } : {} }) : await client3.validate(email);
5127
5129
  console.log(JSON.stringify(result));
5128
5130
  return { exitCode: result.verdict === "invalid" ? 2 : 0 };
5129
5131
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groundmail-cli",
3
- "version": "0.52.1",
3
+ "version": "0.53.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.55.0"
41
+ "groundmail": "0.56.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "tsup": "^9.0.0",