@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
996 lines (995 loc) • 43.7 kB
TypeScript
import { z } from 'zod';
export declare const AgentTool: z.ZodObject<{
toolName: z.ZodString;
name: z.ZodString;
description: z.ZodString;
targetDescription: z.ZodString;
uiUrl: z.ZodString;
skillUrl: z.ZodString;
executeUrl: z.ZodString;
}, z.core.$loose>;
export declare const AgentToolList: z.ZodObject<{
success: z.ZodLiteral<true>;
apiVersion: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
openapi: z.ZodOptional<z.ZodString>;
docsUrl: z.ZodOptional<z.ZodString>;
skillsIndex: z.ZodOptional<z.ZodString>;
tools: z.ZodArray<z.ZodObject<{
toolName: z.ZodString;
name: z.ZodString;
description: z.ZodString;
targetDescription: z.ZodString;
uiUrl: z.ZodString;
skillUrl: z.ZodString;
executeUrl: z.ZodString;
}, z.core.$loose>>;
auth: z.ZodOptional<z.ZodObject<{
anonymousScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
developerKeyScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
header: z.ZodOptional<z.ZodString>;
manageKeys: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
rateLimit: z.ZodOptional<z.ZodObject<{
windowSeconds: z.ZodOptional<z.ZodNumber>;
maxRequests: z.ZodOptional<z.ZodNumber>;
tier: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
scanQuota: z.ZodOptional<z.ZodObject<{
windowSeconds: z.ZodOptional<z.ZodNumber>;
maxScansPerClientIp: z.ZodOptional<z.ZodNumber>;
maxScansPerTarget: z.ZodOptional<z.ZodNumber>;
maxScansOverall: z.ZodOptional<z.ZodNumber>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
dailyAllowance: z.ZodOptional<z.ZodObject<{
tier: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
used: z.ZodOptional<z.ZodNumber>;
remaining: z.ZodOptional<z.ZodNumber>;
resetsAt: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
}, z.core.$loose>>;
deprecation: z.ZodOptional<z.ZodObject<{
legacy: z.ZodLiteral<true>;
successor: z.ZodString;
sunset: z.ZodString;
}, z.core.$loose>>;
}, z.core.$loose>;
export declare const AgentToolResult: z.ZodObject<{
success: z.ZodLiteral<true>;
apiVersion: z.ZodOptional<z.ZodString>;
toolName: z.ZodString;
target: z.ZodString;
grade: z.ZodNullable<z.ZodEnum<{
A: "A";
F: "F";
"A+": "A+";
B: "B";
C: "C";
D: "D";
}>>;
gradeScore: z.ZodNullable<z.ZodNumber>;
result: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
error: z.ZodOptional<z.ZodNull>;
uiUrl: z.ZodOptional<z.ZodString>;
skillUrl: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
export declare const listAgentTools: {
readonly id: "tools.agentTools.list";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/agent/tools";
readonly summary: "List agent tools";
readonly description: "Returns the allowlisted non-intrusive tools agents may run, their skill and UI URLs, and the caller's rate limits. Anonymous calls get the free tier (10 requests a minute per IP); a developer API key from https://one.vigilbase.com/developers gets 30 a minute.";
readonly tags: readonly ["Agent tools"];
readonly stability: "ga";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "tools-anonymous";
}, {
readonly kind: "developerKey";
readonly scopes: readonly [string];
}];
readonly rateLimit: "default";
readonly request: {};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
apiVersion: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
openapi: z.ZodOptional<z.ZodString>;
docsUrl: z.ZodOptional<z.ZodString>;
skillsIndex: z.ZodOptional<z.ZodString>;
tools: z.ZodArray<z.ZodObject<{
toolName: z.ZodString;
name: z.ZodString;
description: z.ZodString;
targetDescription: z.ZodString;
uiUrl: z.ZodString;
skillUrl: z.ZodString;
executeUrl: z.ZodString;
}, z.core.$loose>>;
auth: z.ZodOptional<z.ZodObject<{
anonymousScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
developerKeyScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
header: z.ZodOptional<z.ZodString>;
manageKeys: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
rateLimit: z.ZodOptional<z.ZodObject<{
windowSeconds: z.ZodOptional<z.ZodNumber>;
maxRequests: z.ZodOptional<z.ZodNumber>;
tier: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
scanQuota: z.ZodOptional<z.ZodObject<{
windowSeconds: z.ZodOptional<z.ZodNumber>;
maxScansPerClientIp: z.ZodOptional<z.ZodNumber>;
maxScansPerTarget: z.ZodOptional<z.ZodNumber>;
maxScansOverall: z.ZodOptional<z.ZodNumber>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
dailyAllowance: z.ZodOptional<z.ZodObject<{
tier: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
used: z.ZodOptional<z.ZodNumber>;
remaining: z.ZodOptional<z.ZodNumber>;
resetsAt: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
}, z.core.$loose>>;
deprecation: z.ZodOptional<z.ZodObject<{
legacy: z.ZodLiteral<true>;
successor: z.ZodString;
sunset: z.ZodString;
}, z.core.$loose>>;
}, z.core.$loose>;
};
readonly errors: readonly ["unauthorized", "forbidden", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: "/api/v1/agent/tools";
}, {
readonly host: "com";
readonly path: "/api/agent/tools";
readonly deprecated: {
at: Date;
sunset: Date;
};
}];
readonly expose: {
readonly cli: "list";
readonly llms: true;
};
};
export declare const executeAgentTool: {
readonly id: "tools.agentTools.execute";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/agent/tools/{toolName}/execute";
readonly summary: "Run an agent tool";
readonly description: "Runs a non-intrusive scan: `security-headers` grades a URL's HTTP security headers, `email-security` a domain's email authentication records. Each client IP and each target gets 20 scans an hour, with or without an API key; anonymous scans also spend the network's daily free tool allowance. A scan that ran but reported an error answers 422 with the scanner's output and no grade. Other tool names answer 404 with where they run instead.";
readonly tags: readonly ["Agent tools"];
readonly stability: "ga";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "tools-anonymous";
}, {
readonly kind: "developerKey";
readonly scopes: readonly [string];
}];
readonly rateLimit: "default";
readonly request: {
readonly params: z.ZodObject<{
toolName: z.ZodString;
}, z.core.$strip>;
readonly body: z.ZodObject<{
target: z.ZodString;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
apiVersion: z.ZodOptional<z.ZodString>;
toolName: z.ZodString;
target: z.ZodString;
grade: z.ZodNullable<z.ZodEnum<{
A: "A";
F: "F";
"A+": "A+";
B: "B";
C: "C";
D: "D";
}>>;
gradeScore: z.ZodNullable<z.ZodNumber>;
result: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
error: z.ZodOptional<z.ZodNull>;
uiUrl: z.ZodOptional<z.ZodString>;
skillUrl: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "not_found", "payload_too_large", "unprocessable_entity", "rate_limit_exceeded", "service_unavailable"];
readonly examples: readonly [{
readonly name: "securityHeaders";
readonly request: {
readonly params: {
readonly toolName: "security-headers";
};
readonly body: {
readonly target: "https://example.com";
};
};
}, {
readonly name: "emailSecurity";
readonly request: {
readonly params: {
readonly toolName: "email-security";
};
readonly body: {
readonly target: "example.com";
};
};
}];
readonly legacy: readonly [{
readonly host: "com";
readonly path: "/api/v1/agent/tools/{toolName}/execute";
}, {
readonly host: "com";
readonly path: "/api/agent/tools/{toolName}/execute";
readonly deprecated: {
at: Date;
sunset: Date;
};
}];
readonly expose: {
readonly llms: true;
};
};
export declare const getSecurityBadge: {
readonly id: "tools.badges.get";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/badge/{domain}";
readonly summary: "Get a security badge";
readonly description: "An SVG badge with the most recent website-security grade for the domain, as produced by https://vigilbase.com/tools/website-security; a question mark when there is none. Cached 24 hours for a grade, 1 hour for a question mark. Errors are plain text: 400 `Invalid domain` for anything but a bare domain name, 429 after 60 badges a minute from one client.";
readonly tags: readonly ["Badges"];
readonly stability: "ga";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "badges";
}];
readonly request: {
readonly params: z.ZodObject<{
domain: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
style: z.ZodOptional<z.ZodEnum<{
default: "default";
compact: "compact";
mini: "mini";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: {
readonly schema: z.ZodString;
readonly contentType: "image/svg+xml";
readonly description: "The SVG badge. `X-Vigilbase-Grade` names the grade shown.";
};
};
readonly errors: readonly [];
readonly legacy: readonly [{
readonly host: "com";
readonly path: "/api/v1/badge/{domain}";
readonly permanent: true;
readonly embedded: true;
}, {
readonly host: "com";
readonly path: "/api/badge/{domain}";
readonly permanent: true;
readonly embedded: true;
}];
readonly expose: {
readonly cli: "badge example.com";
readonly llms: true;
};
};
export declare const checkupLocalAvailability: {
readonly id: "tools.checkupLocal.availability";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tools/cloudflare-checkup/local-session/availability";
readonly summary: "Check local checkups are available";
readonly description: "Before it asks for an email, the CLI checks that local checkups are on, the oldest CLI version they take and what a snapshot may contain. No side effects. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {};
readonly responses: {
readonly 200: z.ZodObject<{
enabled: z.ZodLiteral<true>;
minCliVersion: z.ZodString;
accepts: z.ZodObject<{
schemaVersions: z.ZodArray<z.ZodString>;
maxBytes: z.ZodNumber;
maxZones: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
};
export declare const checkupLocalRequest: {
readonly id: "tools.checkupLocal.request";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/request";
readonly summary: "Email a verification code";
readonly description: "Creates a pending local checkup, emails its six-digit code to a business address and returns a verification token. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodObject<{
email: z.ZodString;
locale: z.ZodEnum<{
en: "en";
"pt-PT": "pt-PT";
ar: "ar";
}>;
}, z.core.$strict>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
verification: z.ZodObject<{
token: z.ZodString;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
};
export declare const checkupLocalVerify: {
readonly id: "tools.checkupLocal.verify";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/verify";
readonly summary: "Trade the emailed code for a session code";
readonly description: "Exchanges the verification token and the emailed code for a session code (`vbcs1_…`). Verifying again mints the next code and revokes the previous one. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodObject<{
verification: z.ZodString;
code: z.ZodString;
}, z.core.$strict>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
session: z.ZodObject<{
code: z.ZodString;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
};
export declare const checkupLocalIdentity: {
readonly id: "tools.checkupLocal.identity";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/identity";
readonly summary: "Trade a One identity proof for a session code";
readonly description: "A signed-in CLI exchanges a run-scoped identity proof from Vigilbase One for a session code, instead of an emailed code. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodObject<{
runId: z.ZodUUID;
email: z.ZodEmail;
proof: z.ZodString;
locale: z.ZodEnum<{
en: "en";
"pt-PT": "pt-PT";
ar: "ar";
}>;
}, z.core.$strict>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
session: z.ZodObject<{
code: z.ZodString;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
};
export declare const checkupLocalSession: {
readonly id: "tools.checkupLocal.session";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tools/cloudflare-checkup/local-session";
readonly summary: "Look up a checkup session";
readonly description: "What the session code (`Authorization: Bearer vbcs1_…`) is bound to: the account, the requester, its state and what an upload may contain. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
session: z.ZodObject<{
accountId: z.ZodNullable<z.ZodString>;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
state: z.ZodEnum<{
awaiting_upload: "awaiting_upload";
processing: "processing";
completed: "completed";
}>;
accepts: z.ZodObject<{
schemaVersions: z.ZodArray<z.ZodString>;
maxBytes: z.ZodNumber;
maxZones: z.ZodNumber;
}, z.core.$strip>;
minCliVersion: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
};
export declare const checkupLocalSnapshot: {
readonly id: "tools.checkupLocal.snapshot";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/snapshot";
readonly summary: "Upload a checkup snapshot";
readonly description: "Uploads the exact bytes of a `vigilbase.cloudflare-checkup.snapshot/1` file the CLI collected, with `Authorization: Bearer vbcs1_…` and `X-Vigilbase-Snapshot-Sha256`, and returns the evaluated report. A repeat of the same bytes is answered from the first upload (`replayed: true`). Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
replayed: z.ZodBoolean;
snapshotSha256: z.ZodString;
provenance: z.ZodRecord<z.ZodString, z.ZodUnknown>;
report: z.ZodRecord<z.ZodString, z.ZodUnknown>;
resultsUrl: z.ZodOptional<z.ZodURL>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
};
/** Every Tools v1 operation, checked at module load. */
export declare const TOOLS_V1_OPERATIONS: readonly [{
readonly id: "tools.agentTools.list";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/agent/tools";
readonly summary: "List agent tools";
readonly description: "Returns the allowlisted non-intrusive tools agents may run, their skill and UI URLs, and the caller's rate limits. Anonymous calls get the free tier (10 requests a minute per IP); a developer API key from https://one.vigilbase.com/developers gets 30 a minute.";
readonly tags: readonly ["Agent tools"];
readonly stability: "ga";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "tools-anonymous";
}, {
readonly kind: "developerKey";
readonly scopes: readonly [string];
}];
readonly rateLimit: "default";
readonly request: {};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
apiVersion: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
openapi: z.ZodOptional<z.ZodString>;
docsUrl: z.ZodOptional<z.ZodString>;
skillsIndex: z.ZodOptional<z.ZodString>;
tools: z.ZodArray<z.ZodObject<{
toolName: z.ZodString;
name: z.ZodString;
description: z.ZodString;
targetDescription: z.ZodString;
uiUrl: z.ZodString;
skillUrl: z.ZodString;
executeUrl: z.ZodString;
}, z.core.$loose>>;
auth: z.ZodOptional<z.ZodObject<{
anonymousScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
developerKeyScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
header: z.ZodOptional<z.ZodString>;
manageKeys: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
rateLimit: z.ZodOptional<z.ZodObject<{
windowSeconds: z.ZodOptional<z.ZodNumber>;
maxRequests: z.ZodOptional<z.ZodNumber>;
tier: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
scanQuota: z.ZodOptional<z.ZodObject<{
windowSeconds: z.ZodOptional<z.ZodNumber>;
maxScansPerClientIp: z.ZodOptional<z.ZodNumber>;
maxScansPerTarget: z.ZodOptional<z.ZodNumber>;
maxScansOverall: z.ZodOptional<z.ZodNumber>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
dailyAllowance: z.ZodOptional<z.ZodObject<{
tier: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
used: z.ZodOptional<z.ZodNumber>;
remaining: z.ZodOptional<z.ZodNumber>;
resetsAt: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$loose>>;
}, z.core.$loose>>;
deprecation: z.ZodOptional<z.ZodObject<{
legacy: z.ZodLiteral<true>;
successor: z.ZodString;
sunset: z.ZodString;
}, z.core.$loose>>;
}, z.core.$loose>;
};
readonly errors: readonly ["unauthorized", "forbidden", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: "/api/v1/agent/tools";
}, {
readonly host: "com";
readonly path: "/api/agent/tools";
readonly deprecated: {
at: Date;
sunset: Date;
};
}];
readonly expose: {
readonly cli: "list";
readonly llms: true;
};
}, {
readonly id: "tools.agentTools.execute";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/agent/tools/{toolName}/execute";
readonly summary: "Run an agent tool";
readonly description: "Runs a non-intrusive scan: `security-headers` grades a URL's HTTP security headers, `email-security` a domain's email authentication records. Each client IP and each target gets 20 scans an hour, with or without an API key; anonymous scans also spend the network's daily free tool allowance. A scan that ran but reported an error answers 422 with the scanner's output and no grade. Other tool names answer 404 with where they run instead.";
readonly tags: readonly ["Agent tools"];
readonly stability: "ga";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "tools-anonymous";
}, {
readonly kind: "developerKey";
readonly scopes: readonly [string];
}];
readonly rateLimit: "default";
readonly request: {
readonly params: z.ZodObject<{
toolName: z.ZodString;
}, z.core.$strip>;
readonly body: z.ZodObject<{
target: z.ZodString;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
apiVersion: z.ZodOptional<z.ZodString>;
toolName: z.ZodString;
target: z.ZodString;
grade: z.ZodNullable<z.ZodEnum<{
A: "A";
F: "F";
"A+": "A+";
B: "B";
C: "C";
D: "D";
}>>;
gradeScore: z.ZodNullable<z.ZodNumber>;
result: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
error: z.ZodOptional<z.ZodNull>;
uiUrl: z.ZodOptional<z.ZodString>;
skillUrl: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "not_found", "payload_too_large", "unprocessable_entity", "rate_limit_exceeded", "service_unavailable"];
readonly examples: readonly [{
readonly name: "securityHeaders";
readonly request: {
readonly params: {
readonly toolName: "security-headers";
};
readonly body: {
readonly target: "https://example.com";
};
};
}, {
readonly name: "emailSecurity";
readonly request: {
readonly params: {
readonly toolName: "email-security";
};
readonly body: {
readonly target: "example.com";
};
};
}];
readonly legacy: readonly [{
readonly host: "com";
readonly path: "/api/v1/agent/tools/{toolName}/execute";
}, {
readonly host: "com";
readonly path: "/api/agent/tools/{toolName}/execute";
readonly deprecated: {
at: Date;
sunset: Date;
};
}];
readonly expose: {
readonly llms: true;
};
}, {
readonly id: "tools.badges.get";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/badge/{domain}";
readonly summary: "Get a security badge";
readonly description: "An SVG badge with the most recent website-security grade for the domain, as produced by https://vigilbase.com/tools/website-security; a question mark when there is none. Cached 24 hours for a grade, 1 hour for a question mark. Errors are plain text: 400 `Invalid domain` for anything but a bare domain name, 429 after 60 badges a minute from one client.";
readonly tags: readonly ["Badges"];
readonly stability: "ga";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "badges";
}];
readonly request: {
readonly params: z.ZodObject<{
domain: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
style: z.ZodOptional<z.ZodEnum<{
default: "default";
compact: "compact";
mini: "mini";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: {
readonly schema: z.ZodString;
readonly contentType: "image/svg+xml";
readonly description: "The SVG badge. `X-Vigilbase-Grade` names the grade shown.";
};
};
readonly errors: readonly [];
readonly legacy: readonly [{
readonly host: "com";
readonly path: "/api/v1/badge/{domain}";
readonly permanent: true;
readonly embedded: true;
}, {
readonly host: "com";
readonly path: "/api/badge/{domain}";
readonly permanent: true;
readonly embedded: true;
}];
readonly expose: {
readonly cli: "badge example.com";
readonly llms: true;
};
}, {
readonly id: "tools.checkupLocal.availability";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tools/cloudflare-checkup/local-session/availability";
readonly summary: "Check local checkups are available";
readonly description: "Before it asks for an email, the CLI checks that local checkups are on, the oldest CLI version they take and what a snapshot may contain. No side effects. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {};
readonly responses: {
readonly 200: z.ZodObject<{
enabled: z.ZodLiteral<true>;
minCliVersion: z.ZodString;
accepts: z.ZodObject<{
schemaVersions: z.ZodArray<z.ZodString>;
maxBytes: z.ZodNumber;
maxZones: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
}, {
readonly id: "tools.checkupLocal.request";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/request";
readonly summary: "Email a verification code";
readonly description: "Creates a pending local checkup, emails its six-digit code to a business address and returns a verification token. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodObject<{
email: z.ZodString;
locale: z.ZodEnum<{
en: "en";
"pt-PT": "pt-PT";
ar: "ar";
}>;
}, z.core.$strict>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
verification: z.ZodObject<{
token: z.ZodString;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
}, {
readonly id: "tools.checkupLocal.verify";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/verify";
readonly summary: "Trade the emailed code for a session code";
readonly description: "Exchanges the verification token and the emailed code for a session code (`vbcs1_…`). Verifying again mints the next code and revokes the previous one. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodObject<{
verification: z.ZodString;
code: z.ZodString;
}, z.core.$strict>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
session: z.ZodObject<{
code: z.ZodString;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
}, {
readonly id: "tools.checkupLocal.identity";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/identity";
readonly summary: "Trade a One identity proof for a session code";
readonly description: "A signed-in CLI exchanges a run-scoped identity proof from Vigilbase One for a session code, instead of an emailed code. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodObject<{
runId: z.ZodUUID;
email: z.ZodEmail;
proof: z.ZodString;
locale: z.ZodEnum<{
en: "en";
"pt-PT": "pt-PT";
ar: "ar";
}>;
}, z.core.$strict>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
session: z.ZodObject<{
code: z.ZodString;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
}, {
readonly id: "tools.checkupLocal.session";
readonly product: "tools";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tools/cloudflare-checkup/local-session";
readonly summary: "Look up a checkup session";
readonly description: "What the session code (`Authorization: Bearer vbcs1_…`) is bound to: the account, the requester, its state and what an upload may contain. Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
session: z.ZodObject<{
accountId: z.ZodNullable<z.ZodString>;
requester: z.ZodString;
expiresAt: z.ZodISODateTime;
state: z.ZodEnum<{
awaiting_upload: "awaiting_upload";
processing: "processing";
completed: "completed";
}>;
accepts: z.ZodObject<{
schemaVersions: z.ZodArray<z.ZodString>;
maxBytes: z.ZodNumber;
maxZones: z.ZodNumber;
}, z.core.$strip>;
minCliVersion: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
}, {
readonly id: "tools.checkupLocal.snapshot";
readonly product: "tools";
readonly version: "v1";
readonly method: "POST";
readonly path: "/tools/cloudflare-checkup/local-session/snapshot";
readonly summary: "Upload a checkup snapshot";
readonly description: "Uploads the exact bytes of a `vigilbase.cloudflare-checkup.snapshot/1` file the CLI collected, with `Authorization: Bearer vbcs1_…` and `X-Vigilbase-Snapshot-Sha256`, and returns the evaluated report. A repeat of the same bytes is answered from the first upload (`replayed: true`). Errors are Tools problem details with a `reason` naming the cause; while local checkups are off every route answers 503 with reason `local_mode_disabled`.";
readonly tags: readonly ["Cloudflare Checkup (CLI)"];
readonly stability: "beta";
readonly audience: "public";
readonly auth: readonly [{
readonly kind: "anonymous";
readonly rateLimit: "checkup-local";
}];
readonly request: {
readonly body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
};
readonly responses: {
readonly 200: z.ZodObject<{
success: z.ZodLiteral<true>;
replayed: z.ZodBoolean;
snapshotSha256: z.ZodString;
provenance: z.ZodRecord<z.ZodString, z.ZodUnknown>;
report: z.ZodRecord<z.ZodString, z.ZodUnknown>;
resultsUrl: z.ZodOptional<z.ZodURL>;
}, z.core.$strip>;
};
readonly errors: readonly ["bad_request", "unauthorized", "forbidden", "conflict", "gone", "length_required", "payload_too_large", "unsupported_media_type", "unprocessable_entity", "rate_limit_exceeded", "internal_error", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "com";
readonly path: `/api/v1/tools/cloudflare-checkup/local-session${string}`;
readonly permanent: true;
}];
}];
export type ToolsV1Operation = (typeof TOOLS_V1_OPERATIONS)[number];
export type ToolsV1OperationId = ToolsV1Operation['id'];