UNPKG

@vigilbase/cli

Version:

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

40 lines (39 loc) • 1.93 kB
import { z } from 'zod'; import type { VigilbaseOneClient } from './one-client.js'; export declare const cloudflareScopeSchema: z.ZodObject<{ customerId: z.ZodOptional<z.ZodString>; accountId: z.ZodOptional<z.ZodString>; zoneId: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type CloudflareScope = z.infer<typeof cloudflareScopeSchema>; export declare const workspaceSectionSchema: z.ZodEnum<{ overview: "overview"; reports: "reports"; zones: "zones"; "rule-analyzer": "rule-analyzer"; accounts: "accounts"; checkups: "checkups"; settings: "settings"; }>; export type WorkspaceSection = z.infer<typeof workspaceSectionSchema>; export declare const accountResourceSchema: z.ZodEnum<{ "audit-logs": "audit-logs"; "zero-trust": "zero-trust"; "developer-platform": "developer-platform"; "magic-transit": "magic-transit"; }>; export type AccountResource = z.infer<typeof accountResourceSchema>; /** All requests use One's tenant and permission checks, never provider credentials. */ export declare class CloudflareClient { private readonly one; constructor(one: VigilbaseOneClient); workspace(scope: CloudflareScope, section?: WorkspaceSection): Promise<Record<string, unknown>>; zoneRecords(kind: 'dns' | 'waf', zoneId: string, customerId?: string): Promise<Record<string, unknown>>; accountResource(resource: AccountResource, accountId: string, customerId?: string): Promise<Record<string, unknown>>; zoneDetail(customerId: string, zoneId: string): Promise<Record<string, unknown>>; speedSettings(zoneId: string, customerId?: string): Promise<Record<string, unknown>>; analytics(scope: CloudflareScope, days: number): Promise<Record<string, unknown>>; checkup(scope: CloudflareScope, isStart?: boolean): Promise<Record<string, unknown>>; checkupProgress(toolRunId: string): Promise<Record<string, unknown>>; private path; }