@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
1,644 lines • 65.9 kB
TypeScript
import { z } from 'zod';
/** Last observed uptime and certificate state of a Watchdog target, from One's status cache. */
export declare const WatchdogTargetStatus: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** A website Watchdog checks for uptime and scans for security posture. */
export declare const WatchdogTarget: z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
securityEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
scanFrequency: z.ZodNullable<z.ZodString>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
source: z.ZodNullable<z.ZodString>;
latestGrade: z.ZodNullable<z.ZodString>;
latestScore: z.ZodNullable<z.ZodNumber>;
lastScanAt: z.ZodNullable<z.ZodString>;
nextScanAt: z.ZodNullable<z.ZodString>;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const CreateWatchdogTargetBody: z.ZodObject<{
domain: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
targetUrl: z.ZodOptional<z.ZodString>;
uptimeEnabled: z.ZodDefault<z.ZodBoolean>;
securityEnabled: z.ZodDefault<z.ZodBoolean>;
checkType: z.ZodDefault<z.ZodEnum<{
http: "http";
https: "https";
tcp: "tcp";
dns: "dns";
icmp: "icmp";
}>>;
checkIntervalSeconds: z.ZodDefault<z.ZodNumber>;
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
latencyWarningMs: z.ZodDefault<z.ZodNumber>;
latencyCriticalMs: z.ZodDefault<z.ZodNumber>;
scanFrequency: z.ZodDefault<z.ZodEnum<{
hourly: "hourly";
daily: "daily";
weekly: "weekly";
}>>;
}, z.core.$strict>;
export declare const WatchdogScanTargetRef: z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** One security scan of a Watchdog target. */
export declare const WatchdogScan: z.ZodObject<{
id: z.ZodGUID;
targetId: z.ZodNullable<z.ZodGUID>;
target: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
status: z.ZodNullable<z.ZodString>;
scanType: z.ZodNullable<z.ZodString>;
triggeredBy: z.ZodNullable<z.ZodString>;
grade: z.ZodNullable<z.ZodString>;
totalScore: z.ZodNullable<z.ZodNumber>;
scoreChange: z.ZodNullable<z.ZodNumber>;
findings: z.ZodObject<{
critical: z.ZodNullable<z.ZodNumber>;
high: z.ZodNullable<z.ZodNumber>;
medium: z.ZodNullable<z.ZodNumber>;
low: z.ZodNullable<z.ZodNumber>;
info: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
newFindingsCount: z.ZodNullable<z.ZodNumber>;
resolvedFindingsCount: z.ZodNullable<z.ZodNumber>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
durationMs: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
export declare const StartWatchdogScanBody: z.ZodObject<{
operationId: z.ZodGUID;
targetId: z.ZodGUID;
scanType: z.ZodDefault<z.ZodEnum<{
full: "full";
quick: "quick";
}>>;
}, z.core.$strict>;
export declare const WatchdogScanStarted: z.ZodObject<{
operationId: z.ZodGUID;
scanId: z.ZodGUID;
status: z.ZodString;
}, z.core.$strip>;
/** A scan of the caller's own organisation's targets. */
export declare const WatchdogScanSummary: z.ZodObject<{
id: z.ZodGUID;
targetId: z.ZodNullable<z.ZodGUID>;
status: z.ZodNullable<z.ZodString>;
scanType: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** An uptime monitoring target's configuration. */
export declare const MonitoringTarget: z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
slaTier: z.ZodNullable<z.ZodString>;
source: z.ZodNullable<z.ZodString>;
lastSyncAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const MonitoringAggregate: z.ZodObject<{
totalTargets: z.ZodNumber;
upTargets: z.ZodNumber;
downTargets: z.ZodNumber;
unknownTargets: z.ZodNumber;
overallStatus: z.ZodString;
avgUptime24h: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
export declare const MonitoringTargetStatus: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
enabled: z.ZodBoolean;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
freshness: z.ZodEnum<{
unknown: "unknown";
live: "live";
cached: "cached";
}>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
currentAlertSeverity: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const MonitoringStatus: z.ZodObject<{
aggregate: z.ZodObject<{
totalTargets: z.ZodNumber;
upTargets: z.ZodNumber;
downTargets: z.ZodNumber;
unknownTargets: z.ZodNumber;
overallStatus: z.ZodString;
avgUptime24h: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
targets: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
enabled: z.ZodBoolean;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
freshness: z.ZodEnum<{
unknown: "unknown";
live: "live";
cached: "cached";
}>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
currentAlertSeverity: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
dataSource: z.ZodString;
metricsError: z.ZodNullable<z.ZodEnum<{
not_configured: "not_configured";
unavailable: "unavailable";
}>>;
light: z.ZodBoolean;
}, z.core.$strip>;
export declare const MonitoringSeriesPoint: z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
export declare const MonitoringHistory: z.ZodObject<{
range: z.ZodEnum<{
"24h": "24h";
"7d": "7d";
"30d": "30d";
}>;
targetId: z.ZodNullable<z.ZodGUID>;
region: z.ZodNullable<z.ZodString>;
aggregatedUptime: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
aggregatedLatency: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
regionLatency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>>;
regions: z.ZodArray<z.ZodString>;
targets: z.ZodArray<z.ZodObject<{
targetId: z.ZodGUID;
uptime: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
latency: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
regionLatency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
targetsMeta: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
dataSource: z.ZodString;
hasData: z.ZodBoolean;
partial: z.ZodBoolean;
}, z.core.$strip>;
export declare const MonitoringTargetMetrics: z.ZodObject<{
targetId: z.ZodGUID;
uptime: z.ZodNullable<z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
lastCheckAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
latency: z.ZodNullable<z.ZodObject<{
avgMs: z.ZodNumber;
p50Ms: z.ZodNullable<z.ZodNumber>;
p95Ms: z.ZodNullable<z.ZodNumber>;
p99Ms: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
ssl: z.ZodNullable<z.ZodObject<{
expiryDate: z.ZodNullable<z.ZodString>;
daysUntilExpiry: z.ZodNullable<z.ZodNumber>;
issuer: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const listWatchdogTargets: {
readonly id: "one.watchdogTargets.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/watchdog-targets";
readonly summary: "List Watchdog targets";
readonly description: "The websites Watchdog checks for a customer, newest first, with their last observed status.";
readonly tags: string[];
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:monitoring", "read:partner_monitoring"];
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.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
securityEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
scanFrequency: z.ZodNullable<z.ZodString>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
source: z.ZodNullable<z.ZodString>;
latestGrade: z.ZodNullable<z.ZodString>;
latestScore: z.ZodNullable<z.ZodNumber>;
lastScanAt: z.ZodNullable<z.ZodString>;
nextScanAt: z.ZodNullable<z.ZodString>;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
}, 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/{id}/watchdog/targets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers watchdog-targets";
readonly llms: true;
};
};
export declare const createWatchdogTarget: {
readonly id: "one.watchdogTargets.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/customers/{customerId}/watchdog-targets";
readonly summary: "Add a Watchdog target";
readonly description: "Starts uptime checks and security scans of a website for a customer. A customer can have each domain once.";
readonly tags: string[];
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 ["write:monitoring", "write:partner_services"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly body: z.ZodObject<{
domain: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
targetUrl: z.ZodOptional<z.ZodString>;
uptimeEnabled: z.ZodDefault<z.ZodBoolean>;
securityEnabled: z.ZodDefault<z.ZodBoolean>;
checkType: z.ZodDefault<z.ZodEnum<{
http: "http";
https: "https";
tcp: "tcp";
dns: "dns";
icmp: "icmp";
}>>;
checkIntervalSeconds: z.ZodDefault<z.ZodNumber>;
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
latencyWarningMs: z.ZodDefault<z.ZodNumber>;
latencyCriticalMs: z.ZodDefault<z.ZodNumber>;
scanFrequency: z.ZodDefault<z.ZodEnum<{
hourly: "hourly";
daily: "daily";
weekly: "weekly";
}>>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
securityEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
scanFrequency: z.ZodNullable<z.ZodString>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
source: z.ZodNullable<z.ZodString>;
latestGrade: z.ZodNullable<z.ZodString>;
latestScore: z.ZodNullable<z.ZodNumber>;
lastScanAt: z.ZodNullable<z.ZodString>;
nextScanAt: z.ZodNullable<z.ZodString>;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
}, 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", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/watchdog/targets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const listWatchdogScans: {
readonly id: "one.watchdogScans.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/watchdog-scans";
readonly summary: "List Watchdog scans";
readonly description: "Security scans of a customer’s Watchdog targets, newest first. Filter by one target with `targetId`.";
readonly tags: string[];
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:monitoring", "read:partner_monitoring"];
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>>;
targetId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
targetId: z.ZodNullable<z.ZodGUID>;
target: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
status: z.ZodNullable<z.ZodString>;
scanType: z.ZodNullable<z.ZodString>;
triggeredBy: z.ZodNullable<z.ZodString>;
grade: z.ZodNullable<z.ZodString>;
totalScore: z.ZodNullable<z.ZodNumber>;
scoreChange: z.ZodNullable<z.ZodNumber>;
findings: z.ZodObject<{
critical: z.ZodNullable<z.ZodNumber>;
high: z.ZodNullable<z.ZodNumber>;
medium: z.ZodNullable<z.ZodNumber>;
low: z.ZodNullable<z.ZodNumber>;
info: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
newFindingsCount: z.ZodNullable<z.ZodNumber>;
resolvedFindingsCount: z.ZodNullable<z.ZodNumber>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
durationMs: z.ZodNullable<z.ZodNumber>;
}, 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}/watchdog/scans";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers watchdog-scans";
readonly llms: true;
};
};
export declare const startWatchdogScan: {
readonly id: "one.watchdogScans.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/customers/{customerId}/watchdog-scans";
readonly summary: "Start a Watchdog scan";
readonly description: "Queues a security scan of one target. Only one scan per target runs at a time (409 otherwise). The target must have security scanning on.";
readonly tags: string[];
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 ["write:monitoring", "write:partner_services"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly body: z.ZodObject<{
operationId: z.ZodGUID;
targetId: z.ZodGUID;
scanType: z.ZodDefault<z.ZodEnum<{
full: "full";
quick: "quick";
}>>;
}, z.core.$strict>;
};
readonly responses: {
readonly 202: z.ZodObject<{
operationId: z.ZodGUID;
scanId: z.ZodGUID;
status: 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/customers/{id}/watchdog/scans";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const listMonitoringTargets: {
readonly id: "one.monitoringTargets.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/monitoring/targets";
readonly summary: "List monitoring targets";
readonly description: "A customer’s uptime monitoring targets and their check settings, newest first.";
readonly tags: string[];
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:monitoring"];
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.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
slaTier: z.ZodNullable<z.ZodString>;
source: z.ZodNullable<z.ZodString>;
lastSyncAt: z.ZodNullable<z.ZodString>;
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/{id}/monitoring/targets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring targets";
readonly llms: true;
};
};
export declare const getMonitoringStatus: {
readonly id: "one.monitoringStatus.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/monitoring/status";
readonly summary: "Get monitoring status";
readonly description: "Current up/down state of every uptime-enabled target with an aggregate. `light=true` skips latency and certificate reads. Answers may be up to 30 seconds old.";
readonly tags: string[];
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:monitoring"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
light: z.ZodDefault<z.ZodEnum<{
false: "false";
true: "true";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
aggregate: z.ZodObject<{
totalTargets: z.ZodNumber;
upTargets: z.ZodNumber;
downTargets: z.ZodNumber;
unknownTargets: z.ZodNumber;
overallStatus: z.ZodString;
avgUptime24h: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
targets: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
enabled: z.ZodBoolean;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
freshness: z.ZodEnum<{
unknown: "unknown";
live: "live";
cached: "cached";
}>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
currentAlertSeverity: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
dataSource: z.ZodString;
metricsError: z.ZodNullable<z.ZodEnum<{
not_configured: "not_configured";
unavailable: "unavailable";
}>>;
light: z.ZodBoolean;
}, 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}/monitoring/status";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring status";
readonly llms: true;
};
};
export declare const getMonitoringHistory: {
readonly id: "one.monitoringHistory.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/monitoring/history";
readonly summary: "Get monitoring history";
readonly description: "Uptime and latency series for a customer’s targets over 24h, 7d or 30d, optionally for one region or target.";
readonly tags: string[];
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:monitoring"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
range: z.ZodDefault<z.ZodEnum<{
"24h": "24h";
"7d": "7d";
"30d": "30d";
}>>;
region: z.ZodOptional<z.ZodString>;
targetId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
range: z.ZodEnum<{
"24h": "24h";
"7d": "7d";
"30d": "30d";
}>;
targetId: z.ZodNullable<z.ZodGUID>;
region: z.ZodNullable<z.ZodString>;
aggregatedUptime: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
aggregatedLatency: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
regionLatency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>>;
regions: z.ZodArray<z.ZodString>;
targets: z.ZodArray<z.ZodObject<{
targetId: z.ZodGUID;
uptime: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
latency: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
regionLatency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
targetsMeta: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
dataSource: z.ZodString;
hasData: z.ZodBoolean;
partial: z.ZodBoolean;
}, 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}/monitoring/history";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring history";
readonly llms: true;
};
};
export declare const getMonitoringMetrics: {
readonly id: "one.monitoringMetrics.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/monitoring/metrics";
readonly summary: "Get target metrics";
readonly description: "Live uptime, latency and certificate metrics for 1–50 targets (repeat `targetIds`). Every target must belong to a customer the caller can read, or the whole request is refused.";
readonly tags: string[];
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:monitoring"];
readonly request: {
readonly query: z.ZodObject<{
targetIds: z.ZodArray<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
metrics: z.ZodArray<z.ZodObject<{
targetId: z.ZodGUID;
uptime: z.ZodNullable<z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
lastCheckAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
latency: z.ZodNullable<z.ZodObject<{
avgMs: z.ZodNumber;
p50Ms: z.ZodNullable<z.ZodNumber>;
p95Ms: z.ZodNullable<z.ZodNumber>;
p99Ms: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
ssl: z.ZodNullable<z.ZodObject<{
expiryDate: z.ZodNullable<z.ZodString>;
daysUntilExpiry: z.ZodNullable<z.ZodNumber>;
issuer: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, 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/monitoring/metrics";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring metrics";
readonly llms: true;
};
};
export declare const listAccountWatchdogScans: {
readonly id: "one.accountWatchdogScans.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/watchdog-scans";
readonly summary: "List your Watchdog scans";
readonly description: "Security scans of the caller’s own organisation’s targets, newest first. Empty when the organisation has no customer record.";
readonly tags: string[];
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:monitoring", "read:partner_monitoring"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
targetId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
targetId: z.ZodNullable<z.ZodGUID>;
status: z.ZodNullable<z.ZodString>;
scanType: z.ZodNullable<z.ZodString>;
createdAt: 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/account/watchdog/scans";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "watchdog scans";
readonly llms: true;
};
};
export declare const monitoringOperations: readonly [{
readonly id: "one.watchdogTargets.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/watchdog-targets";
readonly summary: "List Watchdog targets";
readonly description: "The websites Watchdog checks for a customer, newest first, with their last observed status.";
readonly tags: string[];
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:monitoring", "read:partner_monitoring"];
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.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
securityEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
scanFrequency: z.ZodNullable<z.ZodString>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
source: z.ZodNullable<z.ZodString>;
latestGrade: z.ZodNullable<z.ZodString>;
latestScore: z.ZodNullable<z.ZodNumber>;
lastScanAt: z.ZodNullable<z.ZodString>;
nextScanAt: z.ZodNullable<z.ZodString>;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
}, 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/{id}/watchdog/targets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers watchdog-targets";
readonly llms: true;
};
}, {
readonly id: "one.watchdogTargets.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/customers/{customerId}/watchdog-targets";
readonly summary: "Add a Watchdog target";
readonly description: "Starts uptime checks and security scans of a website for a customer. A customer can have each domain once.";
readonly tags: string[];
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 ["write:monitoring", "write:partner_services"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly body: z.ZodObject<{
domain: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
targetUrl: z.ZodOptional<z.ZodString>;
uptimeEnabled: z.ZodDefault<z.ZodBoolean>;
securityEnabled: z.ZodDefault<z.ZodBoolean>;
checkType: z.ZodDefault<z.ZodEnum<{
http: "http";
https: "https";
tcp: "tcp";
dns: "dns";
icmp: "icmp";
}>>;
checkIntervalSeconds: z.ZodDefault<z.ZodNumber>;
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
latencyWarningMs: z.ZodDefault<z.ZodNumber>;
latencyCriticalMs: z.ZodDefault<z.ZodNumber>;
scanFrequency: z.ZodDefault<z.ZodEnum<{
hourly: "hourly";
daily: "daily";
weekly: "weekly";
}>>;
}, z.core.$strict>;
};
readonly responses: {
readonly 201: z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
securityEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
scanFrequency: z.ZodNullable<z.ZodString>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
source: z.ZodNullable<z.ZodString>;
latestGrade: z.ZodNullable<z.ZodString>;
latestScore: z.ZodNullable<z.ZodNumber>;
lastScanAt: z.ZodNullable<z.ZodString>;
nextScanAt: z.ZodNullable<z.ZodString>;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
}, 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", "read_only_key", "conflict", "unprocessable_entity"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/watchdog/targets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.watchdogScans.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/watchdog-scans";
readonly summary: "List Watchdog scans";
readonly description: "Security scans of a customer’s Watchdog targets, newest first. Filter by one target with `targetId`.";
readonly tags: string[];
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:monitoring", "read:partner_monitoring"];
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>>;
targetId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
targetId: z.ZodNullable<z.ZodGUID>;
target: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
status: z.ZodNullable<z.ZodString>;
scanType: z.ZodNullable<z.ZodString>;
triggeredBy: z.ZodNullable<z.ZodString>;
grade: z.ZodNullable<z.ZodString>;
totalScore: z.ZodNullable<z.ZodNumber>;
scoreChange: z.ZodNullable<z.ZodNumber>;
findings: z.ZodObject<{
critical: z.ZodNullable<z.ZodNumber>;
high: z.ZodNullable<z.ZodNumber>;
medium: z.ZodNullable<z.ZodNumber>;
low: z.ZodNullable<z.ZodNumber>;
info: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
newFindingsCount: z.ZodNullable<z.ZodNumber>;
resolvedFindingsCount: z.ZodNullable<z.ZodNumber>;
startedAt: z.ZodNullable<z.ZodString>;
completedAt: z.ZodNullable<z.ZodString>;
durationMs: z.ZodNullable<z.ZodNumber>;
}, 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}/watchdog/scans";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers watchdog-scans";
readonly llms: true;
};
}, {
readonly id: "one.watchdogScans.create";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/customers/{customerId}/watchdog-scans";
readonly summary: "Start a Watchdog scan";
readonly description: "Queues a security scan of one target. Only one scan per target runs at a time (409 otherwise). The target must have security scanning on.";
readonly tags: string[];
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 ["write:monitoring", "write:partner_services"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly body: z.ZodObject<{
operationId: z.ZodGUID;
targetId: z.ZodGUID;
scanType: z.ZodDefault<z.ZodEnum<{
full: "full";
quick: "quick";
}>>;
}, z.core.$strict>;
};
readonly responses: {
readonly 202: z.ZodObject<{
operationId: z.ZodGUID;
scanId: z.ZodGUID;
status: 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/customers/{id}/watchdog/scans";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.monitoringTargets.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/monitoring/targets";
readonly summary: "List monitoring targets";
readonly description: "A customer’s uptime monitoring targets and their check settings, newest first.";
readonly tags: string[];
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:monitoring"];
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.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
timeoutSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
uptimeEnabled: z.ZodBoolean;
alertingEnabled: z.ZodNullable<z.ZodBoolean>;
latencyWarningMs: z.ZodNullable<z.ZodNumber>;
latencyCriticalMs: z.ZodNullable<z.ZodNumber>;
slaTier: z.ZodNullable<z.ZodString>;
source: z.ZodNullable<z.ZodString>;
lastSyncAt: z.ZodNullable<z.ZodString>;
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/{id}/monitoring/targets";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring targets";
readonly llms: true;
};
}, {
readonly id: "one.monitoringStatus.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/monitoring/status";
readonly summary: "Get monitoring status";
readonly description: "Current up/down state of every uptime-enabled target with an aggregate. `light=true` skips latency and certificate reads. Answers may be up to 30 seconds old.";
readonly tags: string[];
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:monitoring"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
light: z.ZodDefault<z.ZodEnum<{
false: "false";
true: "true";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
aggregate: z.ZodObject<{
totalTargets: z.ZodNumber;
upTargets: z.ZodNumber;
downTargets: z.ZodNumber;
unknownTargets: z.ZodNumber;
overallStatus: z.ZodString;
avgUptime24h: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
targets: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
targetUrl: z.ZodNullable<z.ZodString>;
checkType: z.ZodString;
checkIntervalSeconds: z.ZodNumber;
regions: z.ZodArray<z.ZodString>;
enabled: z.ZodBoolean;
status: z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
freshness: z.ZodEnum<{
unknown: "unknown";
live: "live";
cached: "cached";
}>;
lastCheckAt: z.ZodNullable<z.ZodString>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
avgLatencyMs: z.ZodNullable<z.ZodNumber>;
sslDaysUntilExpiry: z.ZodNullable<z.ZodNumber>;
sslExpiryDate: z.ZodNullable<z.ZodString>;
currentAlertSeverity: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
dataSource: z.ZodString;
metricsError: z.ZodNullable<z.ZodEnum<{
not_configured: "not_configured";
unavailable: "unavailable";
}>>;
light: z.ZodBoolean;
}, 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}/monitoring/status";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring status";
readonly llms: true;
};
}, {
readonly id: "one.monitoringHistory.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/monitoring/history";
readonly summary: "Get monitoring history";
readonly description: "Uptime and latency series for a customer’s targets over 24h, 7d or 30d, optionally for one region or target.";
readonly tags: string[];
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:monitoring"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
range: z.ZodDefault<z.ZodEnum<{
"24h": "24h";
"7d": "7d";
"30d": "30d";
}>>;
region: z.ZodOptional<z.ZodString>;
targetId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
range: z.ZodEnum<{
"24h": "24h";
"7d": "7d";
"30d": "30d";
}>;
targetId: z.ZodNullable<z.ZodGUID>;
region: z.ZodNullable<z.ZodString>;
aggregatedUptime: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
aggregatedLatency: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
regionLatency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>>;
regions: z.ZodArray<z.ZodString>;
targets: z.ZodArray<z.ZodObject<{
targetId: z.ZodGUID;
uptime: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
latency: z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
regionLatency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
timestamp: z.ZodNumber;
value: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
targetsMeta: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
domain: z.ZodString;
displayName: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
dataSource: z.ZodString;
hasData: z.ZodBoolean;
partial: z.ZodBoolean;
}, 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}/monitoring/history";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring history";
readonly llms: true;
};
}, {
readonly id: "one.monitoringMetrics.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/monitoring/metrics";
readonly summary: "Get target metrics";
readonly description: "Live uptime, latency and certificate metrics for 1–50 targets (repeat `targetIds`). Every target must belong to a customer the caller can read, or the whole request is refused.";
readonly tags: string[];
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:monitoring"];
readonly request: {
readonly query: z.ZodObject<{
targetIds: z.ZodArray<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
metrics: z.ZodArray<z.ZodObject<{
targetId: z.ZodGUID;
uptime: z.ZodNullable<z.ZodObject<{
isUp: z.ZodNullable<z.ZodBoolean>;
uptime24h: z.ZodNullable<z.ZodNumber>;
uptime7d: z.ZodNullable<z.ZodNumber>;
uptime30d: z.ZodNullable<z.ZodNumber>;
lastCheckAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
latency: z.ZodNullable<z.ZodObject<{
avgMs: z.ZodNumber;
p50Ms: z.ZodNullable<z.ZodNumber>;
p95Ms: z.ZodNullable<z.ZodNumber>;
p99Ms: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
ssl: z.ZodNullable<z.ZodObject<{
expiryDate: z.ZodNullable<z.ZodString>;
daysUntilExpiry: z.ZodNullable<z.ZodNumber>;
issuer: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, 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/monitoring/metrics";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "monitoring metrics";
readonly llms: true;
};
}, {
readonly id: "one.accountWatchdogScans.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/watchdog-scans";
readonly summary: "List your Watchdog scans";
readonly description: "Security scans of the caller’s own organisation’s targets, newest first. Empty when the organisation has no customer record.";
readonly tags: string[];
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:monitoring", "read:partner_monitoring"];
readonly pagination: "cursor";
readonly request: {
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
targetId: z.ZodOptional<z.ZodGUID>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
targetId: z.ZodNullable<z.ZodGUID>;
status: z.ZodNullable<z.ZodString>;
scanType: z.ZodNullable<z.ZodString>;
createdAt: 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/account/watchdog/scans";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "watchdog scans";
readonly llms: true;
};
}];