@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
886 lines (885 loc) • 34.8 kB
TypeScript
import { z } from 'zod';
/**
* A customer's own records: contacts, login organisation, service records,
* endpoint inventory and monitoring incidents. Each read is what the legacy
* customer-facing route returns, curated: no raw provider payloads, internal
* ids or billing links.
*/
/** One person on the customer's contact list. */
export declare const CustomerContact: z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
role: z.ZodNullable<z.ZodString>;
isTechnicalContact: z.ZodBoolean;
isBillingContact: z.ZodBoolean;
}, z.core.$strip>;
/** Whether the customer has its login organisation in Vigilbase Identity. */
export declare const CustomerOrganization: z.ZodObject<{
hasOrganization: z.ZodBoolean;
organizationId: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** One service Vigilbase runs for the customer. */
export declare const CustomerService: z.ZodObject<{
id: z.ZodGUID;
tool: z.ZodString;
status: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
serviceType: z.ZodNullable<z.ZodString>;
billingTier: z.ZodString;
linkedAccountId: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
monthlyAmount: z.ZodNullable<z.ZodNumber>;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** One device in the customer's endpoint inventory. */
export declare const CustomerEndpoint: z.ZodObject<{
id: z.ZodGUID;
displayName: z.ZodString;
systemName: z.ZodString;
dnsName: z.ZodNullable<z.ZodString>;
deviceType: z.ZodNullable<z.ZodString>;
nodeClass: z.ZodNullable<z.ZodString>;
integration: z.ZodNullable<z.ZodString>;
offline: z.ZodBoolean;
approvalStatus: z.ZodNullable<z.ZodString>;
maintenanceStatus: z.ZodNullable<z.ZodString>;
ipAddresses: z.ZodArray<z.ZodString>;
publicIp: z.ZodNullable<z.ZodString>;
locationName: z.ZodNullable<z.ZodString>;
lastLoggedOnUser: z.ZodNullable<z.ZodString>;
lastContact: z.ZodNullable<z.ZodString>;
lastUpdate: z.ZodNullable<z.ZodString>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/** Who said "I've got this" on an incident. */
export declare const IncidentAcknowledgement: z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const CustomerIncidentEvent: z.ZodObject<{
id: z.ZodGUID;
transition: z.ZodString;
title: z.ZodNullable<z.ZodString>;
region: z.ZodNullable<z.ZodString>;
occurredAt: z.ZodString;
}, z.core.$strip>;
/** A run of one monitor's alerts for the customer, from the first alert to its recovery. */
export declare const CustomerIncident: z.ZodObject<{
key: z.ZodString;
monitorName: z.ZodNullable<z.ZodString>;
category: z.ZodNullable<z.ZodString>;
severity: z.ZodEnum<{
warning: "warning";
critical: "critical";
}>;
status: z.ZodEnum<{
open: "open";
resolved: "resolved";
}>;
region: z.ZodNullable<z.ZodString>;
targetId: z.ZodNullable<z.ZodString>;
startedAt: z.ZodString;
resolvedAt: z.ZodNullable<z.ZodString>;
startedOutsideWindow: z.ZodBoolean;
lastTransition: z.ZodString;
eventCount: z.ZodNumber;
hadNoData: z.ZodBoolean;
events: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
transition: z.ZodString;
title: z.ZodNullable<z.ZodString>;
region: z.ZodNullable<z.ZodString>;
occurredAt: z.ZodString;
}, z.core.$strip>>;
acknowledgement: z.ZodNullable<z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const CustomerIncidentsQuery: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
windowDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
export declare const CustomerIncidentParams: z.ZodObject<{
customerId: z.ZodGUID;
incidentId: z.ZodGUID;
}, z.core.$strip>;
export declare const AcknowledgeIncidentBody: z.ZodOptional<z.ZodObject<{
note: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
export declare const IncidentAcknowledgementResult: z.ZodObject<{
incidentKey: z.ZodGUID;
acknowledgement: z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
created: z.ZodBoolean;
}, z.core.$strip>;
export declare const listCustomerContacts: {
readonly id: "one.customerContacts.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/contacts";
readonly summary: "List a customer’s contacts";
readonly description: "The people on the customer’s contact list, with their technical and billing roles, in list order.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly pagination: "cursor";
readonly request: {
readonly 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<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
role: z.ZodNullable<z.ZodString>;
isTechnicalContact: z.ZodBoolean;
isBillingContact: z.ZodBoolean;
}, 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}/contacts";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers contacts";
readonly llms: true;
};
};
export declare const getCustomerOrganization: {
readonly id: "one.customerOrganization.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/organization";
readonly summary: "Get a customer’s login organisation";
readonly description: "Whether the customer has its Vigilbase Identity organisation, and its id.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
hasOrganization: z.ZodBoolean;
organizationId: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/organization";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers organization";
readonly llms: true;
};
};
export declare const listCustomerServices: {
readonly id: "one.customerServices.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/services";
readonly summary: "List a customer’s services";
readonly description: "The services Vigilbase runs for the customer, newest first. Billing amounts need read:billing.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read: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.ZodGUID;
tool: z.ZodString;
status: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
serviceType: z.ZodNullable<z.ZodString>;
billingTier: z.ZodString;
linkedAccountId: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
monthlyAmount: z.ZodNullable<z.ZodNumber>;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: 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}/service-records";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers services";
readonly llms: true;
};
};
export declare const listCustomerEndpoints: {
readonly id: "one.customerEndpoints.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/endpoints";
readonly summary: "List a customer’s endpoints";
readonly description: "The customer’s devices as its endpoint management reports them, by display name.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read: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.ZodGUID;
displayName: z.ZodString;
systemName: z.ZodString;
dnsName: z.ZodNullable<z.ZodString>;
deviceType: z.ZodNullable<z.ZodString>;
nodeClass: z.ZodNullable<z.ZodString>;
integration: z.ZodNullable<z.ZodString>;
offline: z.ZodBoolean;
approvalStatus: z.ZodNullable<z.ZodString>;
maintenanceStatus: z.ZodNullable<z.ZodString>;
ipAddresses: z.ZodArray<z.ZodString>;
publicIp: z.ZodNullable<z.ZodString>;
locationName: z.ZodNullable<z.ZodString>;
lastLoggedOnUser: z.ZodNullable<z.ZodString>;
lastContact: z.ZodNullable<z.ZodString>;
lastUpdate: 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}/endpoints";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers endpoints";
readonly llms: true;
};
};
export declare const listCustomerIncidents: {
readonly id: "one.customerIncidents.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/incidents";
readonly summary: "List a customer’s monitoring incidents";
readonly description: "Monitoring incidents over the last `windowDays` (default 30), newest first, with their acknowledgements. Built from at most the 500 newest alert events in the window.";
readonly tags: readonly ["customers", "monitoring"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
windowDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
key: z.ZodString;
monitorName: z.ZodNullable<z.ZodString>;
category: z.ZodNullable<z.ZodString>;
severity: z.ZodEnum<{
warning: "warning";
critical: "critical";
}>;
status: z.ZodEnum<{
open: "open";
resolved: "resolved";
}>;
region: z.ZodNullable<z.ZodString>;
targetId: z.ZodNullable<z.ZodString>;
startedAt: z.ZodString;
resolvedAt: z.ZodNullable<z.ZodString>;
startedOutsideWindow: z.ZodBoolean;
lastTransition: z.ZodString;
eventCount: z.ZodNumber;
hadNoData: z.ZodBoolean;
events: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
transition: z.ZodString;
title: z.ZodNullable<z.ZodString>;
region: z.ZodNullable<z.ZodString>;
occurredAt: z.ZodString;
}, z.core.$strip>>;
acknowledgement: z.ZodNullable<z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, 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}/incidents";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const acknowledgeCustomerIncident: {
readonly id: "one.customerIncidents.acknowledge";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/customers/{customerId}/incidents/{incidentId}/acknowledge";
readonly summary: "Acknowledge a monitoring incident";
readonly description: "\"I've got this\" on an incident, recorded for everyone. `incidentId` is the incident key, or any of its event ids. The first acknowledgement wins; a repeat returns it with `created: false`.";
readonly tags: readonly ["customers", "monitoring"];
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:customers"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
incidentId: z.ZodGUID;
}, z.core.$strip>;
readonly body: z.ZodOptional<z.ZodObject<{
note: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
};
readonly responses: {
readonly 200: z.ZodObject<{
incidentKey: z.ZodGUID;
acknowledgement: z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
created: 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/customers/{id}/incidents/{incidentId}/acknowledge";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const customerRecordOperations: readonly [{
readonly id: "one.customerContacts.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/contacts";
readonly summary: "List a customer’s contacts";
readonly description: "The people on the customer’s contact list, with their technical and billing roles, in list order.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly pagination: "cursor";
readonly request: {
readonly 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<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
role: z.ZodNullable<z.ZodString>;
isTechnicalContact: z.ZodBoolean;
isBillingContact: z.ZodBoolean;
}, 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}/contacts";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers contacts";
readonly llms: true;
};
}, {
readonly id: "one.customerOrganization.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/organization";
readonly summary: "Get a customer’s login organisation";
readonly description: "Whether the customer has its Vigilbase Identity organisation, and its id.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
hasOrganization: z.ZodBoolean;
organizationId: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/organization";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers organization";
readonly llms: true;
};
}, {
readonly id: "one.customerServices.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/services";
readonly summary: "List a customer’s services";
readonly description: "The services Vigilbase runs for the customer, newest first. Billing amounts need read:billing.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read: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.ZodGUID;
tool: z.ZodString;
status: z.ZodEnum<{
error: "error";
pending: "pending";
active: "active";
inactive: "inactive";
}>;
serviceType: z.ZodNullable<z.ZodString>;
billingTier: z.ZodString;
linkedAccountId: z.ZodString;
domain: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
monthlyAmount: z.ZodNullable<z.ZodNumber>;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: 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}/service-records";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers services";
readonly llms: true;
};
}, {
readonly id: "one.customerEndpoints.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/endpoints";
readonly summary: "List a customer’s endpoints";
readonly description: "The customer’s devices as its endpoint management reports them, by display name.";
readonly tags: readonly ["customers"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read: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.ZodGUID;
displayName: z.ZodString;
systemName: z.ZodString;
dnsName: z.ZodNullable<z.ZodString>;
deviceType: z.ZodNullable<z.ZodString>;
nodeClass: z.ZodNullable<z.ZodString>;
integration: z.ZodNullable<z.ZodString>;
offline: z.ZodBoolean;
approvalStatus: z.ZodNullable<z.ZodString>;
maintenanceStatus: z.ZodNullable<z.ZodString>;
ipAddresses: z.ZodArray<z.ZodString>;
publicIp: z.ZodNullable<z.ZodString>;
locationName: z.ZodNullable<z.ZodString>;
lastLoggedOnUser: z.ZodNullable<z.ZodString>;
lastContact: z.ZodNullable<z.ZodString>;
lastUpdate: 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}/endpoints";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers endpoints";
readonly llms: true;
};
}, {
readonly id: "one.customerIncidents.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/incidents";
readonly summary: "List a customer’s monitoring incidents";
readonly description: "Monitoring incidents over the last `windowDays` (default 30), newest first, with their acknowledgements. Built from at most the 500 newest alert events in the window.";
readonly tags: readonly ["customers", "monitoring"];
readonly stability: "beta";
readonly audience: "customer";
readonly auth: readonly [{
readonly kind: "identityBearer";
readonly resource: "one";
readonly scopes: readonly ["one:api"];
}, {
readonly kind: "orgApiKey";
readonly access: "read";
}, {
readonly kind: "mcpToken";
readonly scope: "one:read";
}];
readonly permissions: readonly ["read:customers"];
readonly pagination: "cursor";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
readonly query: z.ZodObject<{
cursor: z.ZodOptional<z.ZodString>;
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
windowDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
key: z.ZodString;
monitorName: z.ZodNullable<z.ZodString>;
category: z.ZodNullable<z.ZodString>;
severity: z.ZodEnum<{
warning: "warning";
critical: "critical";
}>;
status: z.ZodEnum<{
open: "open";
resolved: "resolved";
}>;
region: z.ZodNullable<z.ZodString>;
targetId: z.ZodNullable<z.ZodString>;
startedAt: z.ZodString;
resolvedAt: z.ZodNullable<z.ZodString>;
startedOutsideWindow: z.ZodBoolean;
lastTransition: z.ZodString;
eventCount: z.ZodNumber;
hadNoData: z.ZodBoolean;
events: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
transition: z.ZodString;
title: z.ZodNullable<z.ZodString>;
region: z.ZodNullable<z.ZodString>;
occurredAt: z.ZodString;
}, z.core.$strip>>;
acknowledgement: z.ZodNullable<z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, 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}/incidents";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.customerIncidents.acknowledge";
readonly product: "one";
readonly version: "v1";
readonly method: "POST";
readonly path: "/customers/{customerId}/incidents/{incidentId}/acknowledge";
readonly summary: "Acknowledge a monitoring incident";
readonly description: "\"I've got this\" on an incident, recorded for everyone. `incidentId` is the incident key, or any of its event ids. The first acknowledgement wins; a repeat returns it with `created: false`.";
readonly tags: readonly ["customers", "monitoring"];
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:customers"];
readonly idempotency: "optional";
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
incidentId: z.ZodGUID;
}, z.core.$strip>;
readonly body: z.ZodOptional<z.ZodObject<{
note: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
};
readonly responses: {
readonly 200: z.ZodObject<{
incidentKey: z.ZodGUID;
acknowledgement: z.ZodObject<{
byName: z.ZodNullable<z.ZodString>;
byEmail: z.ZodNullable<z.ZodString>;
at: z.ZodString;
note: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
created: 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/customers/{id}/incidents/{incidentId}/acknowledge";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}];