@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
2,302 lines • 92.3 kB
TypeScript
import { z } from 'zod';
/** A Cloudflare account or zone ID: 32 hexadecimal characters. */
export declare const CloudflareId: z.ZodString;
/** A Pylon support request ID. */
export declare const SupportTicketId: z.ZodString;
export declare const SupportPerson: z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** A support request as customers see it. Never Pylon’s HTML or its signed file links. */
export declare const SupportTicket: z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodNumber>;
title: z.ZodString;
state: z.ZodString;
priority: z.ZodNullable<z.ZodString>;
tags: z.ZodArray<z.ZodString>;
requester: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
assignee: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
bodyText: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
closedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const SupportTicketAttachment: z.ZodObject<{
index: z.ZodNumber;
name: z.ZodString;
kind: z.ZodEnum<{
file: "file";
image: "image";
pdf: "pdf";
}>;
}, z.core.$strip>;
/** One message on a support request. Customers never receive internal notes. */
export declare const SupportTicketMessage: z.ZodObject<{
id: z.ZodString;
authorName: z.ZodString;
fromVigilbase: z.ZodBoolean;
isInternalNote: z.ZodBoolean;
source: z.ZodNullable<z.ZodString>;
text: z.ZodString;
attachments: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
name: z.ZodString;
kind: z.ZodEnum<{
file: "file";
image: "image";
pdf: "pdf";
}>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const SupportTicketCreated: z.ZodObject<{
ticketId: z.ZodString;
ticketNumber: z.ZodString;
replayed: z.ZodBoolean;
}, z.core.$strip>;
export declare const SupportTicketReplyPosted: z.ZodObject<{
messageId: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const listSupportTickets: {
readonly id: "one.supportTickets.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/support-tickets";
readonly summary: "List support tickets";
readonly description: "The customer’s support requests, open ones only unless includeClosed is true (at most the newest 100). Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
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 ["support:access"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
includeClosed: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
false: "false";
true: "true";
}>>, z.ZodTransform<boolean, "false" | "true">>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodNumber>;
title: z.ZodString;
state: z.ZodString;
priority: z.ZodNullable<z.ZodString>;
tags: z.ZodArray<z.ZodString>;
requester: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
assignee: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
bodyText: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
closedAt: 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/support/tickets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "support tickets";
readonly llms: true;
};
};
export declare const createSupportTicket: {
readonly id: "one.supportTickets.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/support-tickets";
readonly summary: "Open a support ticket";
readonly description: "Opens a support request with Vigilbase. Send an Idempotency-Key so a retry never opens a second request. Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "mcpToken";
readonly scope: "one:write";
}];
readonly permissions: readonly ["support:access"];
readonly idempotency: "optional";
readonly request: {
readonly body: z.ZodObject<{
subject: z.ZodString;
description: z.ZodString;
priority: z.ZodDefault<z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
urgent: "urgent";
}>>;
serviceCategory: z.ZodOptional<z.ZodString>;
ccEmails: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEmail>>>;
attachmentUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
ticketId: z.ZodString;
ticketNumber: z.ZodString;
replayed: z.ZodBoolean;
}, z.core.$strip>;
readonly 200: z.ZodObject<{
ticketId: z.ZodString;
ticketNumber: z.ZodString;
replayed: z.ZodBoolean;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/support/tickets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const listSupportTicketMessages: {
readonly id: "one.supportTicketMessages.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/support-tickets/{ticketId}/messages";
readonly summary: "List a support ticket’s messages";
readonly description: "The conversation on one support request, oldest first (the newest 200 messages). Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
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 ["support:access"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
ticketId: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
authorName: z.ZodString;
fromVigilbase: z.ZodBoolean;
isInternalNote: z.ZodBoolean;
source: z.ZodNullable<z.ZodString>;
text: z.ZodString;
attachments: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
name: z.ZodString;
kind: z.ZodEnum<{
file: "file";
image: "image";
pdf: "pdf";
}>;
}, z.core.$strip>>;
createdAt: 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/support/tickets/{issueId}/messages";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const replyToSupportTicket: {
readonly id: "one.supportTicketReplies.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/support-tickets/{ticketId}/replies";
readonly summary: "Reply to a support ticket";
readonly description: "Posts a reply on the request as the caller’s support contact, or for Vigilbase staff an internal note customers never see. Send an Idempotency-Key so a retry never posts twice. Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "mcpToken";
readonly scope: "one:write";
}];
readonly permissions: readonly ["support:access"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
ticketId: z.ZodString;
}, z.core.$strip>;
readonly body: z.ZodObject<{
body: z.ZodString;
attachmentUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
internalNote: z.ZodDefault<z.ZodBoolean>;
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
messageId: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/support/tickets/{issueId}/reply";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
/** A Cloudflare zone of the customer’s linked accounts, without plan prices. */
export declare const CloudflareZone: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
status: z.ZodString;
paused: z.ZodBoolean;
type: z.ZodNullable<z.ZodString>;
developmentMode: z.ZodBoolean;
planName: z.ZodNullable<z.ZodString>;
nameServers: z.ZodArray<z.ZodString>;
accountId: z.ZodNullable<z.ZodString>;
accountName: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
activatedAt: z.ZodNullable<z.ZodString>;
modifiedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const CloudflareDnsRecord: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodString;
content: z.ZodString;
ttl: z.ZodNumber;
priority: z.ZodNullable<z.ZodNumber>;
proxied: z.ZodBoolean;
proxiable: z.ZodNullable<z.ZodBoolean>;
locked: z.ZodBoolean;
createdAt: z.ZodNullable<z.ZodString>;
modifiedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const CloudflareZoneSecuritySetting: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const CloudflareZoneSecurity: z.ZodObject<{
zoneId: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
readAt: z.ZodNullable<z.ZodString>;
liveError: z.ZodNullable<z.ZodString>;
checkup: z.ZodNullable<z.ZodObject<{
toolRunId: z.ZodGUID;
checkedAt: z.ZodString;
}, z.core.$strip>>;
settings: z.ZodObject<{
ssl: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
waf: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
browserCheck: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
challengeTtl: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
securityLevel: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
opportunisticEncryption: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
automaticHttpsRewrites: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
alwaysUseHttps: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
defaults: z.ZodObject<{
applied: z.ZodNullable<z.ZodBoolean>;
pending: z.ZodArray<z.ZodEnum<{
ssl: "ssl";
waf: "waf";
browserCheck: "browserCheck";
challengeTtl: "challengeTtl";
securityLevel: "securityLevel";
opportunisticEncryption: "opportunisticEncryption";
automaticHttpsRewrites: "automaticHttpsRewrites";
alwaysUseHttps: "alwaysUseHttps";
}>>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const CloudflareCheckupStatus: z.ZodObject<{
requiresSetup: z.ZodBoolean;
account: z.ZodNullable<z.ZodObject<{
id: z.ZodString;
name: z.ZodNullable<z.ZodString>;
status: z.ZodString;
scope: z.ZodObject<{
type: z.ZodEnum<{
account: "account";
zones: "zones";
}>;
zoneIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
}, z.core.$strip>>;
credentialSource: z.ZodNullable<z.ZodString>;
latestRun: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
createdAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
activeRun: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
status: z.ZodString;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
lastValidatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const listCustomerCloudflareZones: {
readonly id: "one.cloudflareZones.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/cloudflare-zones";
readonly summary: "List a customer’s Cloudflare zones";
readonly description: "Zones of every Cloudflare account linked to the customer, limited to the zones its services cover. Read live from Cloudflare when One can, otherwise from One’s last sync.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
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.ZodString;
name: z.ZodString;
status: z.ZodString;
paused: z.ZodBoolean;
type: z.ZodNullable<z.ZodString>;
developmentMode: z.ZodBoolean;
planName: z.ZodNullable<z.ZodString>;
nameServers: z.ZodArray<z.ZodString>;
accountId: z.ZodNullable<z.ZodString>;
accountName: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
activatedAt: z.ZodNullable<z.ZodString>;
modifiedAt: 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/{id}/cloudflare/zones";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const listCloudflareDnsRecords: {
readonly id: "one.cloudflareDnsRecords.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/cloudflare/zones/{zoneId}/dns-records";
readonly summary: "List a zone’s DNS records";
readonly description: "The zone’s DNS records, read live from Cloudflare. customerId names the customer that holds the zone.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
zoneId: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodString;
content: z.ZodString;
ttl: z.ZodNumber;
priority: z.ZodNullable<z.ZodNumber>;
proxied: z.ZodBoolean;
proxiable: z.ZodNullable<z.ZodBoolean>;
locked: z.ZodBoolean;
createdAt: z.ZodNullable<z.ZodString>;
modifiedAt: 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/services/cloudflare/zones/{zoneId}/dns";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "cf dns";
readonly llms: true;
};
};
export declare const getCloudflareZoneSecurity: {
readonly id: "one.cloudflareZoneSecurity.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/cloudflare/zones/{zoneId}/security";
readonly summary: "Get a zone’s security settings";
readonly description: "The zone’s security defaults, read live from Cloudflare and graded by the Cloudflare Checkup’s checks; a setting Cloudflare could not answer comes from the latest checkup.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly request: {
readonly params: z.ZodObject<{
zoneId: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
zoneId: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
readAt: z.ZodNullable<z.ZodString>;
liveError: z.ZodNullable<z.ZodString>;
checkup: z.ZodNullable<z.ZodObject<{
toolRunId: z.ZodGUID;
checkedAt: z.ZodString;
}, z.core.$strip>>;
settings: z.ZodObject<{
ssl: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
waf: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
browserCheck: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
challengeTtl: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
securityLevel: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
opportunisticEncryption: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
automaticHttpsRewrites: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
alwaysUseHttps: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
defaults: z.ZodObject<{
applied: z.ZodNullable<z.ZodBoolean>;
pending: z.ZodArray<z.ZodEnum<{
ssl: "ssl";
waf: "waf";
browserCheck: "browserCheck";
challengeTtl: "challengeTtl";
securityLevel: "securityLevel";
opportunisticEncryption: "opportunisticEncryption";
automaticHttpsRewrites: "automaticHttpsRewrites";
alwaysUseHttps: "alwaysUseHttps";
}>>;
}, z.core.$strip>;
}, 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/services/cloudflare/zones/{zoneId}/security";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const getCloudflareCheckupStatus: {
readonly id: "one.cloudflareCheckups.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/cloudflare/checkups";
readonly summary: "Get Cloudflare Checkup status";
readonly description: "The Cloudflare account the checkup covers, its latest completed run and any run in progress. accountId picks one of several linked accounts. Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly request: {
readonly query: z.ZodObject<{
customerId: z.ZodOptional<z.ZodGUID>;
accountId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
requiresSetup: z.ZodBoolean;
account: z.ZodNullable<z.ZodObject<{
id: z.ZodString;
name: z.ZodNullable<z.ZodString>;
status: z.ZodString;
scope: z.ZodObject<{
type: z.ZodEnum<{
account: "account";
zones: "zones";
}>;
zoneIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
}, z.core.$strip>>;
credentialSource: z.ZodNullable<z.ZodString>;
latestRun: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
createdAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
activeRun: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
status: z.ZodString;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
lastValidatedAt: 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/services/cloudflare/checkups";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "cf checkup status";
readonly llms: true;
};
};
/** A change the customer asked Vigilbase to make, and where it stands. */
export declare const ChangeRequest: z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodNullable<z.ZodString>;
status: z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>;
revision: z.ZodNumber;
hasPlan: z.ZodBoolean;
approvalExpiresAt: z.ZodNullable<z.ZodString>;
error: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
export declare const listChangeRequests: {
readonly id: "one.changeRequests.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/change-requests";
readonly summary: "List change requests";
readonly description: "The customer’s change requests, newest first, optionally of one status. Customers get their own; staff name the customer with customerId.";
readonly tags: readonly ["change-requests"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
status: z.ZodOptional<z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodNullable<z.ZodString>;
status: z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>;
revision: z.ZodNumber;
hasPlan: z.ZodBoolean;
approvalExpiresAt: z.ZodNullable<z.ZodString>;
error: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
updatedAt: 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/change-requests";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const createChangeRequest: {
readonly id: "one.changeRequests.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/change-requests";
readonly summary: "Request a change";
readonly description: "Asks Vigilbase to make a change for the customer. Needs a verified email for customer callers.";
readonly tags: readonly ["change-requests"];
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: "write";
}, {
readonly kind: "mcpToken";
readonly scope: "one:write";
}];
readonly permissions: readonly ["read:services"];
readonly idempotency: "optional";
readonly request: {
readonly body: z.ZodObject<{
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodNullable<z.ZodString>;
status: z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>;
revision: z.ZodNumber;
hasPlan: z.ZodBoolean;
approvalExpiresAt: z.ZodNullable<z.ZodString>;
error: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/change-requests";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
/** A tool run (a scan or checkup) the caller’s organisation can see. */
export declare const ToolRun: z.ZodObject<{
id: z.ZodGUID;
toolName: z.ZodString;
target: z.ZodString;
targetType: z.ZodString;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
sourceApp: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const ToolRunDetail: z.ZodObject<{
id: z.ZodGUID;
toolName: z.ZodString;
target: z.ZodString;
targetType: z.ZodString;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
sourceApp: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
customerId: z.ZodNullable<z.ZodGUID>;
unlocked: z.ZodBoolean;
errorMessage: z.ZodNullable<z.ZodString>;
results: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$strip>;
export declare const listToolRuns: {
readonly id: "one.toolRuns.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tool-runs";
readonly summary: "List tool runs";
readonly description: "Tool runs the caller’s organisation can see, newest first. accountId matches a Cloudflare account ID or the stored target. Staff name the customer with customerId.";
readonly tags: readonly ["tool-runs"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
toolName: z.ZodOptional<z.ZodString>;
accountId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
toolName: z.ZodString;
target: z.ZodString;
targetType: z.ZodString;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
sourceApp: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: 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/tool-runs";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "runs list";
readonly llms: true;
};
};
export declare const getToolRun: {
readonly id: "one.toolRuns.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tool-runs/{runId}";
readonly summary: "Get a tool run";
readonly description: "One tool run with its stored result.";
readonly tags: readonly ["tool-runs"];
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:services"];
readonly request: {
readonly params: z.ZodObject<{
runId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
toolName: z.ZodString;
target: z.ZodString;
targetType: z.ZodString;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
sourceApp: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
customerId: z.ZodNullable<z.ZodGUID>;
unlocked: z.ZodBoolean;
errorMessage: z.ZodNullable<z.ZodString>;
results: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, 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/tool-runs/{id}";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "runs show";
readonly llms: true;
};
};
export declare const supportServicesOperations: readonly [{
readonly id: "one.supportTickets.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/support-tickets";
readonly summary: "List support tickets";
readonly description: "The customer’s support requests, open ones only unless includeClosed is true (at most the newest 100). Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
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 ["support:access"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
includeClosed: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
false: "false";
true: "true";
}>>, z.ZodTransform<boolean, "false" | "true">>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodNumber>;
title: z.ZodString;
state: z.ZodString;
priority: z.ZodNullable<z.ZodString>;
tags: z.ZodArray<z.ZodString>;
requester: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
assignee: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
bodyText: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
closedAt: 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/support/tickets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "support tickets";
readonly llms: true;
};
}, {
readonly id: "one.supportTickets.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/support-tickets";
readonly summary: "Open a support ticket";
readonly description: "Opens a support request with Vigilbase. Send an Idempotency-Key so a retry never opens a second request. Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "mcpToken";
readonly scope: "one:write";
}];
readonly permissions: readonly ["support:access"];
readonly idempotency: "optional";
readonly request: {
readonly body: z.ZodObject<{
subject: z.ZodString;
description: z.ZodString;
priority: z.ZodDefault<z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
urgent: "urgent";
}>>;
serviceCategory: z.ZodOptional<z.ZodString>;
ccEmails: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEmail>>>;
attachmentUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
ticketId: z.ZodString;
ticketNumber: z.ZodString;
replayed: z.ZodBoolean;
}, z.core.$strip>;
readonly 200: z.ZodObject<{
ticketId: z.ZodString;
ticketNumber: z.ZodString;
replayed: z.ZodBoolean;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/support/tickets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.supportTicketMessages.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/support-tickets/{ticketId}/messages";
readonly summary: "List a support ticket’s messages";
readonly description: "The conversation on one support request, oldest first (the newest 200 messages). Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
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 ["support:access"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
ticketId: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
authorName: z.ZodString;
fromVigilbase: z.ZodBoolean;
isInternalNote: z.ZodBoolean;
source: z.ZodNullable<z.ZodString>;
text: z.ZodString;
attachments: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
name: z.ZodString;
kind: z.ZodEnum<{
file: "file";
image: "image";
pdf: "pdf";
}>;
}, z.core.$strip>>;
createdAt: 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/support/tickets/{issueId}/messages";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.supportTicketReplies.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/support-tickets/{ticketId}/replies";
readonly summary: "Reply to a support ticket";
readonly description: "Posts a reply on the request as the caller’s support contact, or for Vigilbase staff an internal note customers never see. Send an Idempotency-Key so a retry never posts twice. Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["support"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "mcpToken";
readonly scope: "one:write";
}];
readonly permissions: readonly ["support:access"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
ticketId: z.ZodString;
}, z.core.$strip>;
readonly body: z.ZodObject<{
body: z.ZodString;
attachmentUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
internalNote: z.ZodDefault<z.ZodBoolean>;
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
messageId: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/support/tickets/{issueId}/reply";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.cloudflareZones.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/cloudflare-zones";
readonly summary: "List a customer’s Cloudflare zones";
readonly description: "Zones of every Cloudflare account linked to the customer, limited to the zones its services cover. Read live from Cloudflare when One can, otherwise from One’s last sync.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
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.ZodString;
name: z.ZodString;
status: z.ZodString;
paused: z.ZodBoolean;
type: z.ZodNullable<z.ZodString>;
developmentMode: z.ZodBoolean;
planName: z.ZodNullable<z.ZodString>;
nameServers: z.ZodArray<z.ZodString>;
accountId: z.ZodNullable<z.ZodString>;
accountName: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
activatedAt: z.ZodNullable<z.ZodString>;
modifiedAt: 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/{id}/cloudflare/zones";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.cloudflareDnsRecords.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/cloudflare/zones/{zoneId}/dns-records";
readonly summary: "List a zone’s DNS records";
readonly description: "The zone’s DNS records, read live from Cloudflare. customerId names the customer that holds the zone.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
zoneId: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodString;
content: z.ZodString;
ttl: z.ZodNumber;
priority: z.ZodNullable<z.ZodNumber>;
proxied: z.ZodBoolean;
proxiable: z.ZodNullable<z.ZodBoolean>;
locked: z.ZodBoolean;
createdAt: z.ZodNullable<z.ZodString>;
modifiedAt: 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/services/cloudflare/zones/{zoneId}/dns";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "cf dns";
readonly llms: true;
};
}, {
readonly id: "one.cloudflareZoneSecurity.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/cloudflare/zones/{zoneId}/security";
readonly summary: "Get a zone’s security settings";
readonly description: "The zone’s security defaults, read live from Cloudflare and graded by the Cloudflare Checkup’s checks; a setting Cloudflare could not answer comes from the latest checkup.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly request: {
readonly params: z.ZodObject<{
zoneId: z.ZodString;
}, z.core.$strip>;
readonly query: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
zoneId: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
readAt: z.ZodNullable<z.ZodString>;
liveError: z.ZodNullable<z.ZodString>;
checkup: z.ZodNullable<z.ZodObject<{
toolRunId: z.ZodGUID;
checkedAt: z.ZodString;
}, z.core.$strip>>;
settings: z.ZodObject<{
ssl: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
waf: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
browserCheck: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
challengeTtl: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
securityLevel: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
opportunisticEncryption: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
automaticHttpsRewrites: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
alwaysUseHttps: z.ZodObject<{
enabled: z.ZodNullable<z.ZodBoolean>;
status: z.ZodNullable<z.ZodEnum<{
error: "error";
info: "info";
fail: "fail";
warning: "warning";
skipped: "skipped";
locked: "locked";
pass: "pass";
}>>;
details: z.ZodString;
source: z.ZodNullable<z.ZodEnum<{
live: "live";
checkup: "checkup";
}>>;
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
checkedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
defaults: z.ZodObject<{
applied: z.ZodNullable<z.ZodBoolean>;
pending: z.ZodArray<z.ZodEnum<{
ssl: "ssl";
waf: "waf";
browserCheck: "browserCheck";
challengeTtl: "challengeTtl";
securityLevel: "securityLevel";
opportunisticEncryption: "opportunisticEncryption";
automaticHttpsRewrites: "automaticHttpsRewrites";
alwaysUseHttps: "alwaysUseHttps";
}>>;
}, z.core.$strip>;
}, 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/services/cloudflare/zones/{zoneId}/security";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.cloudflareCheckups.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/cloudflare/checkups";
readonly summary: "Get Cloudflare Checkup status";
readonly description: "The Cloudflare account the checkup covers, its latest completed run and any run in progress. accountId picks one of several linked accounts. Staff must name the customer with customerId; everyone else gets their own organisation’s customer.";
readonly tags: readonly ["cloudflare"];
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:services"];
readonly request: {
readonly query: z.ZodObject<{
customerId: z.ZodOptional<z.ZodGUID>;
accountId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
requiresSetup: z.ZodBoolean;
account: z.ZodNullable<z.ZodObject<{
id: z.ZodString;
name: z.ZodNullable<z.ZodString>;
status: z.ZodString;
scope: z.ZodObject<{
type: z.ZodEnum<{
account: "account";
zones: "zones";
}>;
zoneIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
}, z.core.$strip>>;
credentialSource: z.ZodNullable<z.ZodString>;
latestRun: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
createdAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
activeRun: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
status: z.ZodString;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
lastValidatedAt: 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/services/cloudflare/checkups";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "cf checkup status";
readonly llms: true;
};
}, {
readonly id: "one.changeRequests.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/change-requests";
readonly summary: "List change requests";
readonly description: "The customer’s change requests, newest first, optionally of one status. Customers get their own; staff name the customer with customerId.";
readonly tags: readonly ["change-requests"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
status: z.ZodOptional<z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodNullable<z.ZodString>;
status: z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>;
revision: z.ZodNumber;
hasPlan: z.ZodBoolean;
approvalExpiresAt: z.ZodNullable<z.ZodString>;
error: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
updatedAt: 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/change-requests";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.changeRequests.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/change-requests";
readonly summary: "Request a change";
readonly description: "Asks Vigilbase to make a change for the customer. Needs a verified email for customer callers.";
readonly tags: readonly ["change-requests"];
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: "write";
}, {
readonly kind: "mcpToken";
readonly scope: "one:write";
}];
readonly permissions: readonly ["read:services"];
readonly idempotency: "optional";
readonly request: {
readonly body: z.ZodObject<{
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
title: z.ZodString;
description: z.ZodString;
reference: z.ZodNullable<z.ZodString>;
status: z.ZodEnum<{
expired: "expired";
failed: "failed";
applied: "applied";
requested: "requested";
awaiting_customer_approval: "awaiting_customer_approval";
ready: "ready";
executing: "executing";
awaiting_propagation: "awaiting_propagation";
verification_failed: "verification_failed";
uncertain: "uncertain";
rejected: "rejected";
rolling_back: "rolling_back";
rolled_back: "rolled_back";
rollback_awaiting_propagation: "rollback_awaiting_propagation";
rollback_uncertain: "rollback_uncertain";
completed_manually: "completed_manually";
}>;
revision: z.ZodNumber;
hasPlan: z.ZodBoolean;
approvalExpiresAt: z.ZodNullable<z.ZodString>;
error: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/change-requests";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.toolRuns.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tool-runs";
readonly summary: "List tool runs";
readonly description: "Tool runs the caller’s organisation can see, newest first. accountId matches a Cloudflare account ID or the stored target. Staff name the customer with customerId.";
readonly tags: readonly ["tool-runs"];
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:services"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
customerId: z.ZodOptional<z.ZodGUID>;
toolName: z.ZodOptional<z.ZodString>;
accountId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
toolName: z.ZodString;
target: z.ZodString;
targetType: z.ZodString;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
sourceApp: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: 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/tool-runs";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "runs list";
readonly llms: true;
};
}, {
readonly id: "one.toolRuns.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/tool-runs/{runId}";
readonly summary: "Get a tool run";
readonly description: "One tool run with its stored result.";
readonly tags: readonly ["tool-runs"];
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:services"];
readonly request: {
readonly params: z.ZodObject<{
runId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
customerId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
toolName: z.ZodString;
target: z.ZodString;
targetType: z.ZodString;
status: z.ZodString;
grade: z.ZodNullable<z.ZodString>;
gradeScore: z.ZodNullable<z.ZodNumber>;
sourceApp: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
customerId: z.ZodNullable<z.ZodGUID>;
unlocked: z.ZodBoolean;
errorMessage: z.ZodNullable<z.ZodString>;
results: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, 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/tool-runs/{id}";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "runs show";
readonly llms: true;
};
}];