UNPKG

@vigilbase/cli

Version:

Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.

217 lines (216 loc) • 7.87 kB
import { z } from 'zod'; export declare const DocsSearchResult: z.ZodObject<{ path: z.ZodString; title: z.ZodString; description: z.ZodString; url: z.ZodString; markdownUrl: z.ZodString; heading: z.ZodOptional<z.ZodObject<{ id: z.ZodString; text: z.ZodString; }, z.core.$strip>>; }, z.core.$loose>; export declare const searchDocs: { readonly id: "docs.search.query"; readonly product: "docs"; readonly version: "v1"; readonly method: "GET"; readonly path: "/search"; readonly summary: "Search the docs"; readonly description: "Pages of docs.vigilbase.com that contain every word of `q`, best first: matches in the title, then a heading, then the description, then the body. English only."; readonly tags: readonly ["Docs"]; readonly stability: "beta"; readonly audience: "public"; readonly auth: readonly [{ readonly kind: "anonymous"; readonly rateLimit: "docs"; }]; readonly rateLimit: "docs"; readonly request: { readonly query: z.ZodObject<{ q: z.ZodString; limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>; }, z.core.$strip>; }; readonly responses: { readonly 200: z.ZodObject<{ results: z.ZodArray<z.ZodObject<{ path: z.ZodString; title: z.ZodString; description: z.ZodString; url: z.ZodString; markdownUrl: z.ZodString; heading: z.ZodOptional<z.ZodObject<{ id: z.ZodString; text: z.ZodString; }, z.core.$strip>>; }, z.core.$loose>>; }, z.core.$strip>; }; readonly errors: readonly ["bad_request", "rate_limit_exceeded", "service_unavailable"]; readonly examples: readonly [{ readonly request: { readonly query: { readonly q: "api keys"; readonly limit: 1; }; }; readonly response: { readonly status: 200; readonly body: { readonly results: readonly [{ readonly path: "tools/developers/api-keys"; readonly title: "API keys"; readonly description: "Create a developer API key to raise the Agent API rate limits."; readonly url: "https://docs.vigilbase.com/tools/developers/api-keys"; readonly markdownUrl: "https://docs.vigilbase.com/tools/developers/api-keys.md"; }]; }; }; }]; readonly expose: { readonly mcp: "tool"; readonly llms: true; }; }; export declare const getDocsPage: { readonly id: "docs.pages.get"; readonly product: "docs"; readonly version: "v1"; readonly method: "GET"; readonly path: "/pages"; readonly summary: "Get a docs page"; readonly description: "One page of docs.vigilbase.com as Markdown, with links made absolute. `path` is the page URL without the host, as `path` in a search result."; readonly tags: readonly ["Docs"]; readonly stability: "beta"; readonly audience: "public"; readonly auth: readonly [{ readonly kind: "anonymous"; readonly rateLimit: "docs"; }]; readonly rateLimit: "docs"; readonly request: { readonly query: z.ZodObject<{ path: z.ZodString; }, z.core.$strip>; }; readonly responses: { readonly 200: z.ZodObject<{ path: z.ZodString; title: z.ZodString; description: z.ZodString; url: z.ZodString; markdownUrl: z.ZodString; updatedAt: z.ZodOptional<z.ZodString>; markdown: z.ZodString; }, z.core.$loose>; }; readonly errors: readonly ["bad_request", "rate_limit_exceeded", "service_unavailable", "not_found"]; readonly expose: { readonly mcp: "tool"; readonly llms: true; }; }; /** Every Docs v1 operation, checked at module load. */ export declare const DOCS_V1_OPERATIONS: readonly [{ readonly id: "docs.search.query"; readonly product: "docs"; readonly version: "v1"; readonly method: "GET"; readonly path: "/search"; readonly summary: "Search the docs"; readonly description: "Pages of docs.vigilbase.com that contain every word of `q`, best first: matches in the title, then a heading, then the description, then the body. English only."; readonly tags: readonly ["Docs"]; readonly stability: "beta"; readonly audience: "public"; readonly auth: readonly [{ readonly kind: "anonymous"; readonly rateLimit: "docs"; }]; readonly rateLimit: "docs"; readonly request: { readonly query: z.ZodObject<{ q: z.ZodString; limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>; }, z.core.$strip>; }; readonly responses: { readonly 200: z.ZodObject<{ results: z.ZodArray<z.ZodObject<{ path: z.ZodString; title: z.ZodString; description: z.ZodString; url: z.ZodString; markdownUrl: z.ZodString; heading: z.ZodOptional<z.ZodObject<{ id: z.ZodString; text: z.ZodString; }, z.core.$strip>>; }, z.core.$loose>>; }, z.core.$strip>; }; readonly errors: readonly ["bad_request", "rate_limit_exceeded", "service_unavailable"]; readonly examples: readonly [{ readonly request: { readonly query: { readonly q: "api keys"; readonly limit: 1; }; }; readonly response: { readonly status: 200; readonly body: { readonly results: readonly [{ readonly path: "tools/developers/api-keys"; readonly title: "API keys"; readonly description: "Create a developer API key to raise the Agent API rate limits."; readonly url: "https://docs.vigilbase.com/tools/developers/api-keys"; readonly markdownUrl: "https://docs.vigilbase.com/tools/developers/api-keys.md"; }]; }; }; }]; readonly expose: { readonly mcp: "tool"; readonly llms: true; }; }, { readonly id: "docs.pages.get"; readonly product: "docs"; readonly version: "v1"; readonly method: "GET"; readonly path: "/pages"; readonly summary: "Get a docs page"; readonly description: "One page of docs.vigilbase.com as Markdown, with links made absolute. `path` is the page URL without the host, as `path` in a search result."; readonly tags: readonly ["Docs"]; readonly stability: "beta"; readonly audience: "public"; readonly auth: readonly [{ readonly kind: "anonymous"; readonly rateLimit: "docs"; }]; readonly rateLimit: "docs"; readonly request: { readonly query: z.ZodObject<{ path: z.ZodString; }, z.core.$strip>; }; readonly responses: { readonly 200: z.ZodObject<{ path: z.ZodString; title: z.ZodString; description: z.ZodString; url: z.ZodString; markdownUrl: z.ZodString; updatedAt: z.ZodOptional<z.ZodString>; markdown: z.ZodString; }, z.core.$loose>; }; readonly errors: readonly ["bad_request", "rate_limit_exceeded", "service_unavailable", "not_found"]; readonly expose: { readonly mcp: "tool"; readonly llms: true; }; }]; export type DocsV1Operation = (typeof DOCS_V1_OPERATIONS)[number]; export type DocsV1OperationId = DocsV1Operation['id'];