consulti 0.2.1 → 0.2.4
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 +2 -1
- package/dist/constants.js +8 -0
- package/dist/context.js +1 -2
- package/dist/generated/endpoints.json +5 -5
- package/dist/manifest.js +1 -1
- package/dist/skill.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7,6 +7,7 @@ import { EXIT, EXIT_TABLE } from "./exit-codes.js";
|
|
|
7
7
|
import { loadManifest } from "./manifest.js";
|
|
8
8
|
import { printError } from "./output.js";
|
|
9
9
|
import { registerSkill } from "./skill.js";
|
|
10
|
+
import { ENV_VAR } from "./constants.js";
|
|
10
11
|
export function packageVersion() {
|
|
11
12
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
12
13
|
return pkg.version;
|
|
@@ -24,7 +25,7 @@ export async function run(argv, ctx) {
|
|
|
24
25
|
writeErr: (s) => ctx.io.err(s),
|
|
25
26
|
outputError: () => { },
|
|
26
27
|
})
|
|
27
|
-
.addHelpText("after", `\nExit codes:\n${EXIT_TABLE.map(([c, m]) => ` ${c} ${m}`).join("\n")}\n\nAuth: set
|
|
28
|
+
.addHelpText("after", `\nExit codes:\n${EXIT_TABLE.map(([c, m]) => ` ${c} ${m}`).join("\n")}\n\nAuth: set ${ENV_VAR} or run \`consulti login\`.\nThe CLI never retries; a retried billable call bills again.`);
|
|
28
29
|
registerEndpoints(program, ctx, endpoints);
|
|
29
30
|
registerAuth(program, ctx);
|
|
30
31
|
registerSkill(program, ctx, endpoints);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Generated by `npm run generate` (scripts/generate/registry.ts) from lib/developer/public-api.ts
|
|
2
|
+
// and lib/developer/cli-install.ts. Do not edit: change those files and regenerate.
|
|
3
|
+
export const DEFAULT_BASE_URL = "https://www.consulti.ai/api/v1";
|
|
4
|
+
export const SETTINGS_URL = "https://www.consulti.ai/settings?tab=integrations#api-keys";
|
|
5
|
+
export const CLI_INSTALL_CURL = "curl -fsSL https://consulti.ai/install.sh | bash";
|
|
6
|
+
export const CLI_INSTALL_NPM = "npm i -g consulti";
|
|
7
|
+
export const CLI_NPX = "npx consulti";
|
|
8
|
+
export const ENV_VAR = "CONSULTI_API_KEY";
|
package/dist/context.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export const DEFAULT_BASE_URL = "https://www.consulti.ai/api/v1";
|
|
1
|
+
export { DEFAULT_BASE_URL, SETTINGS_URL } from "./constants.js";
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"method": "POST",
|
|
28
28
|
"path": "/verify/catchall",
|
|
29
29
|
"title": "Verify catch-all mailbox",
|
|
30
|
-
"description": "Resolve whether a specific mailbox on a catch-all domain actually exists. Unlike /verify (SMTP), this uses Consulti’s ESP verification engine to probe mailbox existence
|
|
30
|
+
"description": "Resolve whether a specific mailbox on a catch-all domain actually exists. Unlike /verify (SMTP), this uses Consulti’s ESP verification engine to probe mailbox existence. Use it on addresses that /verify reports as is_catch_all=true.",
|
|
31
31
|
"tier": "pro+",
|
|
32
|
-
"credits": "Only successful verifications are billed — 5 verification credits each. Requests that fail validation (400) or auth (401), or hit insufficient credits (402), are never billed and return credits_used: 0. That includes an address that passes the format check but is rejected as malformed during verification: it returns 400 \"Invalid email address.\" and the reserved credits are refunded. Results served from our cache cost the same as fresh ones. When the
|
|
32
|
+
"credits": "Only successful verifications are billed — 5 verification credits each. Requests that fail validation (400) or auth (401), or hit insufficient credits (402), are never billed and return credits_used: 0. That includes an address that passes the format check but is rejected as malformed during verification: it returns 400 \"Invalid email address.\" and the reserved credits are refunded. Results served from our cache cost the same as fresh ones. The verdict normally arrives within about 50 seconds of the request, but a slow call can run for up to 300 seconds, so set your client timeout to more than 300 seconds. A call your client gives up on can still be billed if the verdict lands afterwards. When the engine does not return a verdict within about 50 seconds, the call returns 503 with code verifier_unavailable and a Retry-After header in seconds. The reserved credits are refunded, but this 503 carries no credits_used, so check GET /credits before you retry. When the reserved credits cannot be confirmed as refunded, any failure (including a malformed address that would otherwise be a 400) returns 500 with code refund_unconfirmed and no Retry-After. Reconcile with GET /credits before retrying, because a retry reserves another 5 credits. The call stays billed when a 500 follows a verdict the engine already returned, so check GET /credits before you retry any 500.",
|
|
33
33
|
"noAuth": false,
|
|
34
34
|
"billable": true,
|
|
35
35
|
"inMcp": true,
|
|
@@ -198,13 +198,13 @@
|
|
|
198
198
|
"name": "revenueMin",
|
|
199
199
|
"type": "number",
|
|
200
200
|
"required": false,
|
|
201
|
-
"desc": "Minimum annual revenue in USD, whole dollars. Leads with no revenue data on file are excluded when either bound is set. Must be less than or equal to revenueMax when both are set."
|
|
201
|
+
"desc": "Minimum annual revenue in USD, whole dollars. Leads with no revenue data on file, or a corrupt out-of-range stored value, are excluded when either bound is set. Must be less than or equal to revenueMax when both are set."
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"name": "revenueMax",
|
|
205
205
|
"type": "number",
|
|
206
206
|
"required": false,
|
|
207
|
-
"desc": "Maximum annual revenue in USD, whole dollars. Leads with no revenue data on file are excluded when either bound is set. Must be greater than or equal to revenueMin when both are set."
|
|
207
|
+
"desc": "Maximum annual revenue in USD, whole dollars. Leads with no revenue data on file, or a corrupt out-of-range stored value, are excluded when either bound is set. Must be greater than or equal to revenueMin when both are set."
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"name": "excludeTitles",
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
"name": "q",
|
|
343
343
|
"type": "string",
|
|
344
344
|
"required": false,
|
|
345
|
-
"desc": "
|
|
345
|
+
"desc": "Case-insensitive text match on username or full name"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"name": "bioKeywords",
|
package/dist/manifest.js
CHANGED
|
@@ -13,7 +13,7 @@ export const ALIASES = {
|
|
|
13
13
|
};
|
|
14
14
|
export const JSONL_IDS = ["leads-search", "instagram-search"];
|
|
15
15
|
export const SEARCH_TIMEOUT_MS = 130_000; // leads-search maxDuration is 120 s
|
|
16
|
-
export const DEFAULT_TIMEOUT_MS = 310_000; // routes that export no maxDuration run under Vercel's 300 s default
|
|
16
|
+
export const DEFAULT_TIMEOUT_MS = 310_000; // routes that export no maxDuration run under Vercel's 300 s default; verify-catchall also caps at 300 s
|
|
17
17
|
export function timeoutFor(id) {
|
|
18
18
|
return id === "leads-search" ? SEARCH_TIMEOUT_MS : DEFAULT_TIMEOUT_MS;
|
|
19
19
|
}
|
package/dist/skill.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SETTINGS_URL } from "./
|
|
1
|
+
import { CLI_INSTALL_CURL, CLI_INSTALL_NPM, CLI_NPX, SETTINGS_URL } from "./constants.js";
|
|
2
2
|
import { EXIT_TABLE } from "./exit-codes.js";
|
|
3
3
|
import { paramFlag } from "./flags.js";
|
|
4
4
|
import { ALIASES } from "./manifest.js";
|
|
@@ -20,7 +20,7 @@ description: Use the consulti command line to verify emails, search and enrich B
|
|
|
20
20
|
|
|
21
21
|
## Install
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
\`${CLI_INSTALL_CURL}\`, or \`${CLI_INSTALL_NPM}\` (Node 20 or newer), or run one-off with \`${CLI_NPX}\`.
|
|
24
24
|
|
|
25
25
|
## Auth
|
|
26
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "consulti",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Command-line client for the Consulti.ai API: email verification, B2B lead search and enrichment, Instagram search, lists and credits. JSON output and stable exit codes for scripts and AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|