@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
322 lines (321 loc) • 11.8 kB
TypeScript
import { z } from 'zod';
export declare const CustomerServiceState: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
export declare const CustomerPartnerRef: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** A customer as v1 lists it: identity, lifecycle, partner and its services. */
export declare const Customer: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
industry: z.ZodNullable<z.ZodString>;
lifecycleStatus: z.ZodString;
onboardingStatus: z.ZodString;
accountOwnerName: z.ZodNullable<z.ZodString>;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
services: z.ZodArray<z.ZodObject<{
tool: z.ZodString;
status: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** One customer with its service counts. */
export declare const CustomerDetail: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
industry: z.ZodNullable<z.ZodString>;
lifecycleStatus: z.ZodString;
onboardingStatus: z.ZodString;
accountOwnerName: z.ZodNullable<z.ZodString>;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
isPartner: z.ZodBoolean;
serviceCounts: z.ZodObject<{
active: z.ZodNumber;
total: z.ZodNumber;
error: z.ZodNumber;
}, z.core.$strip>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const listCustomers: {
readonly id: "one.customers.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers";
readonly summary: "List customers";
readonly description: "Customers the caller can see: every customer for Vigilbase staff, a partner’s own customers, otherwise the caller’s organisation. Newest first.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
industry: z.ZodNullable<z.ZodString>;
lifecycleStatus: z.ZodString;
onboardingStatus: z.ZodString;
accountOwnerName: z.ZodNullable<z.ZodString>;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
services: z.ZodArray<z.ZodObject<{
tool: z.ZodString;
status: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
nextCursor: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers list";
readonly llms: true;
};
};
export declare const getCustomer: {
readonly id: "one.customers.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}";
readonly summary: "Get a customer";
readonly description: "One customer with its partner, account owner and service counts.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
industry: z.ZodNullable<z.ZodString>;
lifecycleStatus: z.ZodString;
onboardingStatus: z.ZodString;
accountOwnerName: z.ZodNullable<z.ZodString>;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
isPartner: z.ZodBoolean;
serviceCounts: z.ZodObject<{
active: z.ZodNumber;
total: z.ZodNumber;
error: z.ZodNumber;
}, z.core.$strip>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/summary";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers show";
readonly llms: true;
};
};
export declare const customerOperations: readonly [{
readonly id: "one.customers.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers";
readonly summary: "List customers";
readonly description: "Customers the caller can see: every customer for Vigilbase staff, a partner’s own customers, otherwise the caller’s organisation. Newest first.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
industry: z.ZodNullable<z.ZodString>;
lifecycleStatus: z.ZodString;
onboardingStatus: z.ZodString;
accountOwnerName: z.ZodNullable<z.ZodString>;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
services: z.ZodArray<z.ZodObject<{
tool: z.ZodString;
status: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
nextCursor: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers list";
readonly llms: true;
};
}, {
readonly id: "one.customers.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}";
readonly summary: "Get a customer";
readonly description: "One customer with its partner, account owner and service counts.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
industry: z.ZodNullable<z.ZodString>;
lifecycleStatus: z.ZodString;
onboardingStatus: z.ZodString;
accountOwnerName: z.ZodNullable<z.ZodString>;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
isPartner: z.ZodBoolean;
serviceCounts: z.ZodObject<{
active: z.ZodNumber;
total: z.ZodNumber;
error: z.ZodNumber;
}, z.core.$strip>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/summary";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers show";
readonly llms: true;
};
}];