@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
2,582 lines • 104 kB
TypeScript
import { z } from 'zod';
export declare const ReportPeriod: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
export declare const ReportSection: z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>;
export declare const ReconReportStatus: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
/** A monthly security (Recon) report as listed. */
export declare const ReconReportSummary: z.ZodObject<{
id: z.ZodGUID;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
generatedAt: z.ZodNullable<z.ZodString>;
hasPublicLink: z.ZodBoolean;
availableSections: z.ZodArray<z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>>;
}, z.core.$strip>;
/** One monthly security report: the narrative, each section's figures and, for billing readers, billing. */
export declare const ReconReport: z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
customerName: z.ZodNullable<z.ZodString>;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
type: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
generatedAt: z.ZodNullable<z.ZodString>;
availableSections: z.ZodArray<z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>>;
branding: z.ZodObject<{
type: z.ZodEnum<{
vigilbase: "vigilbase";
partner: "partner";
}>;
partnerName: z.ZodNullable<z.ZodString>;
partnerLogoUrl: z.ZodNullable<z.ZodString>;
customerLogoUrl: z.ZodNullable<z.ZodString>;
accentColor: z.ZodString;
}, z.core.$strip>;
publicLink: z.ZodNullable<z.ZodObject<{
enabled: z.ZodBoolean;
expiresAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
executiveSummary: z.ZodObject<{
overallScore: z.ZodNumber;
scoreLabel: z.ZodString;
scored: z.ZodBoolean;
scoreVersion: z.ZodNullable<z.ZodNumber>;
highlights: z.ZodArray<z.ZodString>;
serviceSummary: z.ZodRecord<z.ZodString, z.ZodObject<{
status: z.ZodEnum<{
warning: "warning";
critical: "critical";
inactive: "inactive";
healthy: "healthy";
}>;
keyMetric: z.ZodString;
keyMetricValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
change: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
}, z.core.$strip>;
threatLandscape: z.ZodObject<{
title: z.ZodString;
summary: z.ZodString;
keyThreats: z.ZodArray<z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
severity: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
affectedSystems: z.ZodArray<z.ZodString>;
}, z.core.$strip>>;
industryAlerts: z.ZodArray<z.ZodObject<{
industry: z.ZodString;
title: z.ZodString;
description: z.ZodString;
severity: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
}, z.core.$strip>>;
recommendations: z.ZodArray<z.ZodObject<{
title: z.ZodString;
description: z.ZodString;
priority: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
}>;
category: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
insights: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<{
recommendation: "recommendation";
anomaly: "anomaly";
trend: "trend";
highlight: "highlight";
}>;
severity: z.ZodEnum<{
success: "success";
info: "info";
warning: "warning";
critical: "critical";
}>;
title: z.ZodString;
description: z.ZodString;
service: z.ZodNullable<z.ZodString>;
metric: z.ZodNullable<z.ZodString>;
value: z.ZodNullable<z.ZodNumber>;
previousValue: z.ZodNullable<z.ZodNumber>;
isIncreaseBetter: z.ZodBoolean;
}, z.core.$strip>>;
aiAnalysis: z.ZodNullable<z.ZodObject<{
executiveSummary: z.ZodString;
securityAnalysis: z.ZodString;
performanceAnalysis: z.ZodString;
recommendedActions: z.ZodArray<z.ZodString>;
keyHighlights: z.ZodArray<z.ZodString>;
riskAssessment: z.ZodObject<{
level: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
factors: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
generatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
comparison: z.ZodObject<{
endpointChangePct: z.ZodNullable<z.ZodNumber>;
threatsChangePct: z.ZodNullable<z.ZodNumber>;
requestsChangePct: z.ZodNullable<z.ZodNumber>;
bandwidthChangePct: z.ZodNullable<z.ZodNumber>;
cacheHitChangePct: z.ZodNullable<z.ZodNumber>;
supportTicketsChangePct: z.ZodNullable<z.ZodNumber>;
securityThreatsChangePct: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
endpoint: z.ZodObject<{
ninjaOne: z.ZodNullable<z.ZodObject<{
deviceCount: z.ZodNumber;
online: z.ZodNumber;
offline: z.ZodNumber;
}, z.core.$strip>>;
huntress: z.ZodNullable<z.ZodObject<{
agentCount: z.ZodNumber;
threatsBySeverity: z.ZodObject<{
critical: z.ZodNumber;
high: z.ZodNumber;
medium: z.ZodNumber;
low: z.ZodNumber;
}, z.core.$strip>;
remediatedThreats: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;
backup: z.ZodObject<{
afi: z.ZodNullable<z.ZodObject<{
totalLicenses: z.ZodNumber;
usedLicenses: z.ZodNumber;
utilizationPercent: z.ZodNumber;
backupSizeGB: z.ZodNumber;
protectedUsers: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;
cloudflare: z.ZodObject<{
metrics: z.ZodRecord<z.ZodString, z.ZodUnknown>;
zones: z.ZodArray<z.ZodObject<{
zoneId: z.ZodString;
zoneName: z.ZodString;
status: z.ZodString;
requests: z.ZodNumber;
bandwidth: z.ZodNumber;
cacheHitRatio: z.ZodNumber;
threats: z.ZodNumber;
}, z.core.$strip>>;
configuration: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$strip>;
support: z.ZodObject<{
issuesCreated: z.ZodNumber;
issuesClosed: z.ZodNumber;
openIssues: z.ZodNumber;
averageResolutionTimeHours: z.ZodNullable<z.ZodNumber>;
issuesByPriority: z.ZodObject<{
urgent: z.ZodNumber;
high: z.ZodNumber;
medium: z.ZodNumber;
low: z.ZodNumber;
}, z.core.$strip>;
slaCompliancePercent: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
billing: z.ZodNullable<z.ZodObject<{
activeContracts: z.ZodNumber;
totalContractValue: z.ZodNullable<z.ZodNumber>;
contractCurrency: z.ZodNullable<z.ZodString>;
invoicesInPeriod: z.ZodObject<{
count: z.ZodNumber;
totalAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
paidOnTime: z.ZodNumber;
paidLate: z.ZodNumber;
}, z.core.$strip>;
upcomingRenewals: z.ZodArray<z.ZodObject<{
contractId: z.ZodString;
name: z.ZodString;
renewalDate: z.ZodString;
value: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>>;
}, z.core.$strip>;
/** A monthly report or a quarterly business review in the customer's Reports view. */
export declare const CustomerReport: z.ZodObject<{
id: z.ZodGUID;
kind: z.ZodEnum<{
monthly: "monthly";
quarterly: "quarterly";
}>;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
status: z.ZodString;
updatedAt: z.ZodNullable<z.ZodString>;
isShared: z.ZodBoolean;
}, z.core.$strip>;
export declare const ContractStatus: z.ZodEnum<{
pending: "pending";
expired: "expired";
active: "active";
draft: "draft";
terminated: "terminated";
}>;
export declare const ContractLineItem: z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>;
export declare const ContractInvoice: z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
/**
* A contract. A contract linked to this customer from its partner shows only
* its summary (name, status, dates); its values, line items and invoices are
* the partner's and come back null or empty.
*/
export declare const Contract: z.ZodObject<{
id: z.ZodGUID;
reference: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
isLinked: z.ZodBoolean;
effectiveDate: z.ZodNullable<z.ZodString>;
expirationDate: z.ZodNullable<z.ZodString>;
signedDate: z.ZodNullable<z.ZodString>;
autoRenewal: z.ZodNullable<z.ZodBoolean>;
renewalNoticeDays: z.ZodNullable<z.ZodNumber>;
billingFrequency: z.ZodNullable<z.ZodString>;
totalValue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
notes: z.ZodNullable<z.ZodString>;
agreementUrl: z.ZodNullable<z.ZodString>;
lineItems: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const ContractAttachment: z.ZodObject<{
id: z.ZodGUID;
fileName: z.ZodString;
fileSize: z.ZodNullable<z.ZodNumber>;
mimeType: z.ZodNullable<z.ZodString>;
attachmentType: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
version: z.ZodNullable<z.ZodNumber>;
isLatest: z.ZodBoolean;
uploadedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const ContractDetail: z.ZodObject<{
id: z.ZodGUID;
reference: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
isLinked: z.ZodBoolean;
effectiveDate: z.ZodNullable<z.ZodString>;
expirationDate: z.ZodNullable<z.ZodString>;
signedDate: z.ZodNullable<z.ZodString>;
autoRenewal: z.ZodNullable<z.ZodBoolean>;
renewalNoticeDays: z.ZodNullable<z.ZodNumber>;
billingFrequency: z.ZodNullable<z.ZodString>;
totalValue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
notes: z.ZodNullable<z.ZodString>;
agreementUrl: z.ZodNullable<z.ZodString>;
lineItems: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
attachments: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
fileName: z.ZodString;
fileSize: z.ZodNullable<z.ZodNumber>;
mimeType: z.ZodNullable<z.ZodString>;
attachmentType: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
version: z.ZodNullable<z.ZodNumber>;
isLatest: z.ZodBoolean;
uploadedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const UsageAlert: z.ZodObject<{
contractId: z.ZodGUID;
contractName: z.ZodString;
serviceName: z.ZodString;
serviceType: z.ZodString;
usagePercentage: z.ZodNumber;
status: z.ZodEnum<{
warning: "warning";
critical: "critical";
over_limit: "over_limit";
}>;
}, z.core.$strip>;
export declare const InvoiceStatus: z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>;
/** A Stripe invoice. Amounts in minor units; links are Stripe's hosted invoice page and PDF. */
export declare const Invoice: z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
amountDue: z.ZodNumber;
amountPaid: z.ZodNumber;
amountRemaining: z.ZodNumber;
currency: z.ZodString;
description: z.ZodNullable<z.ZodString>;
subscriptionId: z.ZodNullable<z.ZodString>;
lineCount: z.ZodNumber;
createdAt: z.ZodString;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
invoicePdfUrl: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const SubscriptionItem: z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
/** A Stripe subscription with its priced items and product names. */
export declare const Subscription: z.ZodObject<{
id: z.ZodString;
status: z.ZodString;
description: z.ZodString;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
cancelAtPeriodEnd: z.ZodBoolean;
canceledAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const CustomerBilling: z.ZodObject<{
isPartnerBilled: z.ZodBoolean;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
billingContact: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
monthlyRecurringRevenue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
subscriptions: z.ZodArray<z.ZodObject<{
id: z.ZodString;
status: z.ZodString;
description: z.ZodString;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
cancelAtPeriodEnd: z.ZodBoolean;
canceledAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
amountDue: z.ZodNumber;
amountPaid: z.ZodNumber;
amountRemaining: z.ZodNumber;
currency: z.ZodString;
description: z.ZodNullable<z.ZodString>;
subscriptionId: z.ZodNullable<z.ZodString>;
lineCount: z.ZodNumber;
createdAt: z.ZodString;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
invoicePdfUrl: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
paymentMethods: z.ZodArray<z.ZodObject<{
id: z.ZodString;
brand: z.ZodNullable<z.ZodString>;
last4: z.ZodNullable<z.ZodString>;
expMonth: z.ZodNullable<z.ZodNumber>;
expYear: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
contractCount: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
export declare const listReconReports: {
readonly id: "one.reconReports.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/recon-reports";
readonly summary: "List monthly security reports";
readonly description: "The customer’s monthly security (Recon) reports, newest period first.";
readonly tags: readonly ["reports"];
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<{
id: z.ZodGUID;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
generatedAt: z.ZodNullable<z.ZodString>;
hasPublicLink: z.ZodBoolean;
availableSections: z.ZodArray<z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>>;
}, 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}/recon/reports";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers reports";
readonly llms: true;
};
};
export declare const getReconReport: {
readonly id: "one.reconReports.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/recon-reports/{reportId}";
readonly summary: "Get a monthly security report";
readonly description: "One monthly security report with its sections. Billing appears only for readers with billing access, and never for a customer billed through a partner.";
readonly tags: readonly ["reports"];
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;
reportId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
customerName: z.ZodNullable<z.ZodString>;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
type: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
generatedAt: z.ZodNullable<z.ZodString>;
availableSections: z.ZodArray<z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>>;
branding: z.ZodObject<{
type: z.ZodEnum<{
vigilbase: "vigilbase";
partner: "partner";
}>;
partnerName: z.ZodNullable<z.ZodString>;
partnerLogoUrl: z.ZodNullable<z.ZodString>;
customerLogoUrl: z.ZodNullable<z.ZodString>;
accentColor: z.ZodString;
}, z.core.$strip>;
publicLink: z.ZodNullable<z.ZodObject<{
enabled: z.ZodBoolean;
expiresAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
executiveSummary: z.ZodObject<{
overallScore: z.ZodNumber;
scoreLabel: z.ZodString;
scored: z.ZodBoolean;
scoreVersion: z.ZodNullable<z.ZodNumber>;
highlights: z.ZodArray<z.ZodString>;
serviceSummary: z.ZodRecord<z.ZodString, z.ZodObject<{
status: z.ZodEnum<{
warning: "warning";
critical: "critical";
inactive: "inactive";
healthy: "healthy";
}>;
keyMetric: z.ZodString;
keyMetricValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
change: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
}, z.core.$strip>;
threatLandscape: z.ZodObject<{
title: z.ZodString;
summary: z.ZodString;
keyThreats: z.ZodArray<z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
severity: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
affectedSystems: z.ZodArray<z.ZodString>;
}, z.core.$strip>>;
industryAlerts: z.ZodArray<z.ZodObject<{
industry: z.ZodString;
title: z.ZodString;
description: z.ZodString;
severity: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
}, z.core.$strip>>;
recommendations: z.ZodArray<z.ZodObject<{
title: z.ZodString;
description: z.ZodString;
priority: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
}>;
category: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
insights: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<{
recommendation: "recommendation";
anomaly: "anomaly";
trend: "trend";
highlight: "highlight";
}>;
severity: z.ZodEnum<{
success: "success";
info: "info";
warning: "warning";
critical: "critical";
}>;
title: z.ZodString;
description: z.ZodString;
service: z.ZodNullable<z.ZodString>;
metric: z.ZodNullable<z.ZodString>;
value: z.ZodNullable<z.ZodNumber>;
previousValue: z.ZodNullable<z.ZodNumber>;
isIncreaseBetter: z.ZodBoolean;
}, z.core.$strip>>;
aiAnalysis: z.ZodNullable<z.ZodObject<{
executiveSummary: z.ZodString;
securityAnalysis: z.ZodString;
performanceAnalysis: z.ZodString;
recommendedActions: z.ZodArray<z.ZodString>;
keyHighlights: z.ZodArray<z.ZodString>;
riskAssessment: z.ZodObject<{
level: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
factors: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
generatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
comparison: z.ZodObject<{
endpointChangePct: z.ZodNullable<z.ZodNumber>;
threatsChangePct: z.ZodNullable<z.ZodNumber>;
requestsChangePct: z.ZodNullable<z.ZodNumber>;
bandwidthChangePct: z.ZodNullable<z.ZodNumber>;
cacheHitChangePct: z.ZodNullable<z.ZodNumber>;
supportTicketsChangePct: z.ZodNullable<z.ZodNumber>;
securityThreatsChangePct: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
endpoint: z.ZodObject<{
ninjaOne: z.ZodNullable<z.ZodObject<{
deviceCount: z.ZodNumber;
online: z.ZodNumber;
offline: z.ZodNumber;
}, z.core.$strip>>;
huntress: z.ZodNullable<z.ZodObject<{
agentCount: z.ZodNumber;
threatsBySeverity: z.ZodObject<{
critical: z.ZodNumber;
high: z.ZodNumber;
medium: z.ZodNumber;
low: z.ZodNumber;
}, z.core.$strip>;
remediatedThreats: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;
backup: z.ZodObject<{
afi: z.ZodNullable<z.ZodObject<{
totalLicenses: z.ZodNumber;
usedLicenses: z.ZodNumber;
utilizationPercent: z.ZodNumber;
backupSizeGB: z.ZodNumber;
protectedUsers: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;
cloudflare: z.ZodObject<{
metrics: z.ZodRecord<z.ZodString, z.ZodUnknown>;
zones: z.ZodArray<z.ZodObject<{
zoneId: z.ZodString;
zoneName: z.ZodString;
status: z.ZodString;
requests: z.ZodNumber;
bandwidth: z.ZodNumber;
cacheHitRatio: z.ZodNumber;
threats: z.ZodNumber;
}, z.core.$strip>>;
configuration: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$strip>;
support: z.ZodObject<{
issuesCreated: z.ZodNumber;
issuesClosed: z.ZodNumber;
openIssues: z.ZodNumber;
averageResolutionTimeHours: z.ZodNullable<z.ZodNumber>;
issuesByPriority: z.ZodObject<{
urgent: z.ZodNumber;
high: z.ZodNumber;
medium: z.ZodNumber;
low: z.ZodNumber;
}, z.core.$strip>;
slaCompliancePercent: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
billing: z.ZodNullable<z.ZodObject<{
activeContracts: z.ZodNumber;
totalContractValue: z.ZodNullable<z.ZodNumber>;
contractCurrency: z.ZodNullable<z.ZodString>;
invoicesInPeriod: z.ZodObject<{
count: z.ZodNumber;
totalAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
paidOnTime: z.ZodNumber;
paidLate: z.ZodNumber;
}, z.core.$strip>;
upcomingRenewals: z.ZodArray<z.ZodObject<{
contractId: z.ZodString;
name: z.ZodString;
renewalDate: z.ZodString;
value: z.ZodNullable<z.ZodNumber>;
currency: 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/customers/{id}/recon/reports/{reportId}";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers report";
readonly llms: true;
};
};
export declare const listCustomerReports: {
readonly id: "one.customerReports.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/reports";
readonly summary: "List reports";
readonly description: "Monthly security reports and quarterly business reviews together, latest period first. Customers and partners see published quarterly reviews only.";
readonly tags: readonly ["reports"];
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<{
id: z.ZodGUID;
kind: z.ZodEnum<{
monthly: "monthly";
quarterly: "quarterly";
}>;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
status: z.ZodString;
updatedAt: z.ZodNullable<z.ZodString>;
isShared: 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}/reports";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const listContracts: {
readonly id: "one.contracts.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/contracts";
readonly summary: "List contracts";
readonly description: "Contracts the customer owns or that its partner linked to it, newest first. Amounts are null without billing access.";
readonly tags: readonly ["contracts"];
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:contracts"];
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>>;
status: z.ZodOptional<z.ZodEnum<{
pending: "pending";
expired: "expired";
active: "active";
draft: "draft";
terminated: "terminated";
}>>;
expiringWithinDays: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
reference: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
isLinked: z.ZodBoolean;
effectiveDate: z.ZodNullable<z.ZodString>;
expirationDate: z.ZodNullable<z.ZodString>;
signedDate: z.ZodNullable<z.ZodString>;
autoRenewal: z.ZodNullable<z.ZodBoolean>;
renewalNoticeDays: z.ZodNullable<z.ZodNumber>;
billingFrequency: z.ZodNullable<z.ZodString>;
totalValue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
notes: z.ZodNullable<z.ZodString>;
agreementUrl: z.ZodNullable<z.ZodString>;
lineItems: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: 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}/contracts";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers contracts";
readonly llms: true;
};
};
export declare const getContract: {
readonly id: "one.contracts.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/contracts/{contractId}";
readonly summary: "Get a contract";
readonly description: "One contract with its line items, invoices and attachments. Amounts are null without billing access.";
readonly tags: readonly ["contracts"];
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:contracts"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
contractId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
reference: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
isLinked: z.ZodBoolean;
effectiveDate: z.ZodNullable<z.ZodString>;
expirationDate: z.ZodNullable<z.ZodString>;
signedDate: z.ZodNullable<z.ZodString>;
autoRenewal: z.ZodNullable<z.ZodBoolean>;
renewalNoticeDays: z.ZodNullable<z.ZodNumber>;
billingFrequency: z.ZodNullable<z.ZodString>;
totalValue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
notes: z.ZodNullable<z.ZodString>;
agreementUrl: z.ZodNullable<z.ZodString>;
lineItems: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
attachments: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
fileName: z.ZodString;
fileSize: z.ZodNullable<z.ZodNumber>;
mimeType: z.ZodNullable<z.ZodString>;
attachmentType: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
version: z.ZodNullable<z.ZodNumber>;
isLatest: z.ZodBoolean;
uploadedAt: z.ZodNullable<z.ZodString>;
}, 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/customers/{id}/contracts/{contractId}";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const listUsageAlerts: {
readonly id: "one.usageAlerts.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/usage-alerts";
readonly summary: "List contract usage alerts";
readonly description: "Active contract line items whose usage is near or over the contracted limit, over-limit first.";
readonly tags: readonly ["contracts"];
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:contracts"];
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<{
contractId: z.ZodGUID;
contractName: z.ZodString;
serviceName: z.ZodString;
serviceType: z.ZodString;
usagePercentage: z.ZodNumber;
status: z.ZodEnum<{
warning: "warning";
critical: "critical";
over_limit: "over_limit";
}>;
}, 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}/usage-alerts";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
};
export declare const getCustomerBilling: {
readonly id: "one.customerBilling.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/billing";
readonly summary: "Get billing";
readonly description: "The customer’s Stripe subscriptions, recent invoices, cards on file and monthly recurring revenue.";
readonly tags: readonly ["billing"];
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:billing"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
isPartnerBilled: z.ZodBoolean;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
billingContact: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
monthlyRecurringRevenue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
subscriptions: z.ZodArray<z.ZodObject<{
id: z.ZodString;
status: z.ZodString;
description: z.ZodString;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
cancelAtPeriodEnd: z.ZodBoolean;
canceledAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
amountDue: z.ZodNumber;
amountPaid: z.ZodNumber;
amountRemaining: z.ZodNumber;
currency: z.ZodString;
description: z.ZodNullable<z.ZodString>;
subscriptionId: z.ZodNullable<z.ZodString>;
lineCount: z.ZodNumber;
createdAt: z.ZodString;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
invoicePdfUrl: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
paymentMethods: z.ZodArray<z.ZodObject<{
id: z.ZodString;
brand: z.ZodNullable<z.ZodString>;
last4: z.ZodNullable<z.ZodString>;
expMonth: z.ZodNullable<z.ZodNumber>;
expYear: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
contractCount: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "upstream_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/billing";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers billing";
readonly llms: true;
};
};
export declare const listInvoices: {
readonly id: "one.invoices.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/invoices";
readonly summary: "List invoices";
readonly description: "The customer’s most recent Stripe invoices (up to 100), newest first. A customer billed through a partner sees only the invoices of its own contracts.";
readonly tags: readonly ["billing"];
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:billing"];
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>>;
status: z.ZodOptional<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
amountDue: z.ZodNumber;
amountPaid: z.ZodNumber;
amountRemaining: z.ZodNumber;
currency: z.ZodString;
description: z.ZodNullable<z.ZodString>;
subscriptionId: z.ZodNullable<z.ZodString>;
lineCount: z.ZodNumber;
createdAt: z.ZodString;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
invoicePdfUrl: 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}/stripe/invoices";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers invoices";
readonly llms: true;
};
};
export declare const listSubscriptions: {
readonly id: "one.subscriptions.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/subscriptions";
readonly summary: "List subscriptions";
readonly description: "The customer’s Stripe subscriptions with priced items. A customer billed through a partner sees only the subscriptions of its own contracts.";
readonly tags: readonly ["billing"];
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:billing"];
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;
status: z.ZodString;
description: z.ZodString;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
cancelAtPeriodEnd: z.ZodBoolean;
canceledAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, 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}/stripe/subscriptions";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers subscriptions";
readonly llms: true;
};
};
export declare const reportsBillingOperations: readonly [{
readonly id: "one.reconReports.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/recon-reports";
readonly summary: "List monthly security reports";
readonly description: "The customer’s monthly security (Recon) reports, newest period first.";
readonly tags: readonly ["reports"];
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<{
id: z.ZodGUID;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
generatedAt: z.ZodNullable<z.ZodString>;
hasPublicLink: z.ZodBoolean;
availableSections: z.ZodArray<z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>>;
}, 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}/recon/reports";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers reports";
readonly llms: true;
};
}, {
readonly id: "one.reconReports.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/recon-reports/{reportId}";
readonly summary: "Get a monthly security report";
readonly description: "One monthly security report with its sections. Billing appears only for readers with billing access, and never for a customer billed through a partner.";
readonly tags: readonly ["reports"];
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;
reportId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
customerId: z.ZodGUID;
customerName: z.ZodNullable<z.ZodString>;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
type: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
generating: "generating";
}>;
generatedAt: z.ZodNullable<z.ZodString>;
availableSections: z.ZodArray<z.ZodEnum<{
threat_landscape: "threat_landscape";
executive_summary: "executive_summary";
ai_analysis: "ai_analysis";
endpoint: "endpoint";
backup: "backup";
cloudflare: "cloudflare";
support: "support";
billing: "billing";
}>>;
branding: z.ZodObject<{
type: z.ZodEnum<{
vigilbase: "vigilbase";
partner: "partner";
}>;
partnerName: z.ZodNullable<z.ZodString>;
partnerLogoUrl: z.ZodNullable<z.ZodString>;
customerLogoUrl: z.ZodNullable<z.ZodString>;
accentColor: z.ZodString;
}, z.core.$strip>;
publicLink: z.ZodNullable<z.ZodObject<{
enabled: z.ZodBoolean;
expiresAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
executiveSummary: z.ZodObject<{
overallScore: z.ZodNumber;
scoreLabel: z.ZodString;
scored: z.ZodBoolean;
scoreVersion: z.ZodNullable<z.ZodNumber>;
highlights: z.ZodArray<z.ZodString>;
serviceSummary: z.ZodRecord<z.ZodString, z.ZodObject<{
status: z.ZodEnum<{
warning: "warning";
critical: "critical";
inactive: "inactive";
healthy: "healthy";
}>;
keyMetric: z.ZodString;
keyMetricValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
change: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
}, z.core.$strip>;
threatLandscape: z.ZodObject<{
title: z.ZodString;
summary: z.ZodString;
keyThreats: z.ZodArray<z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
severity: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
affectedSystems: z.ZodArray<z.ZodString>;
}, z.core.$strip>>;
industryAlerts: z.ZodArray<z.ZodObject<{
industry: z.ZodString;
title: z.ZodString;
description: z.ZodString;
severity: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
}, z.core.$strip>>;
recommendations: z.ZodArray<z.ZodObject<{
title: z.ZodString;
description: z.ZodString;
priority: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
}>;
category: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
insights: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<{
recommendation: "recommendation";
anomaly: "anomaly";
trend: "trend";
highlight: "highlight";
}>;
severity: z.ZodEnum<{
success: "success";
info: "info";
warning: "warning";
critical: "critical";
}>;
title: z.ZodString;
description: z.ZodString;
service: z.ZodNullable<z.ZodString>;
metric: z.ZodNullable<z.ZodString>;
value: z.ZodNullable<z.ZodNumber>;
previousValue: z.ZodNullable<z.ZodNumber>;
isIncreaseBetter: z.ZodBoolean;
}, z.core.$strip>>;
aiAnalysis: z.ZodNullable<z.ZodObject<{
executiveSummary: z.ZodString;
securityAnalysis: z.ZodString;
performanceAnalysis: z.ZodString;
recommendedActions: z.ZodArray<z.ZodString>;
keyHighlights: z.ZodArray<z.ZodString>;
riskAssessment: z.ZodObject<{
level: z.ZodEnum<{
medium: "medium";
high: "high";
low: "low";
critical: "critical";
}>;
factors: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
generatedAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
comparison: z.ZodObject<{
endpointChangePct: z.ZodNullable<z.ZodNumber>;
threatsChangePct: z.ZodNullable<z.ZodNumber>;
requestsChangePct: z.ZodNullable<z.ZodNumber>;
bandwidthChangePct: z.ZodNullable<z.ZodNumber>;
cacheHitChangePct: z.ZodNullable<z.ZodNumber>;
supportTicketsChangePct: z.ZodNullable<z.ZodNumber>;
securityThreatsChangePct: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
endpoint: z.ZodObject<{
ninjaOne: z.ZodNullable<z.ZodObject<{
deviceCount: z.ZodNumber;
online: z.ZodNumber;
offline: z.ZodNumber;
}, z.core.$strip>>;
huntress: z.ZodNullable<z.ZodObject<{
agentCount: z.ZodNumber;
threatsBySeverity: z.ZodObject<{
critical: z.ZodNumber;
high: z.ZodNumber;
medium: z.ZodNumber;
low: z.ZodNumber;
}, z.core.$strip>;
remediatedThreats: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;
backup: z.ZodObject<{
afi: z.ZodNullable<z.ZodObject<{
totalLicenses: z.ZodNumber;
usedLicenses: z.ZodNumber;
utilizationPercent: z.ZodNumber;
backupSizeGB: z.ZodNumber;
protectedUsers: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;
cloudflare: z.ZodObject<{
metrics: z.ZodRecord<z.ZodString, z.ZodUnknown>;
zones: z.ZodArray<z.ZodObject<{
zoneId: z.ZodString;
zoneName: z.ZodString;
status: z.ZodString;
requests: z.ZodNumber;
bandwidth: z.ZodNumber;
cacheHitRatio: z.ZodNumber;
threats: z.ZodNumber;
}, z.core.$strip>>;
configuration: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$strip>;
support: z.ZodObject<{
issuesCreated: z.ZodNumber;
issuesClosed: z.ZodNumber;
openIssues: z.ZodNumber;
averageResolutionTimeHours: z.ZodNullable<z.ZodNumber>;
issuesByPriority: z.ZodObject<{
urgent: z.ZodNumber;
high: z.ZodNumber;
medium: z.ZodNumber;
low: z.ZodNumber;
}, z.core.$strip>;
slaCompliancePercent: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
billing: z.ZodNullable<z.ZodObject<{
activeContracts: z.ZodNumber;
totalContractValue: z.ZodNullable<z.ZodNumber>;
contractCurrency: z.ZodNullable<z.ZodString>;
invoicesInPeriod: z.ZodObject<{
count: z.ZodNumber;
totalAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
paidOnTime: z.ZodNumber;
paidLate: z.ZodNumber;
}, z.core.$strip>;
upcomingRenewals: z.ZodArray<z.ZodObject<{
contractId: z.ZodString;
name: z.ZodString;
renewalDate: z.ZodString;
value: z.ZodNullable<z.ZodNumber>;
currency: 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/customers/{id}/recon/reports/{reportId}";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers report";
readonly llms: true;
};
}, {
readonly id: "one.customerReports.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/reports";
readonly summary: "List reports";
readonly description: "Monthly security reports and quarterly business reviews together, latest period first. Customers and partners see published quarterly reviews only.";
readonly tags: readonly ["reports"];
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<{
id: z.ZodGUID;
kind: z.ZodEnum<{
monthly: "monthly";
quarterly: "quarterly";
}>;
period: z.ZodObject<{
start: z.ZodString;
end: z.ZodString;
label: z.ZodString;
}, z.core.$strip>;
status: z.ZodString;
updatedAt: z.ZodNullable<z.ZodString>;
isShared: 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}/reports";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.contracts.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/contracts";
readonly summary: "List contracts";
readonly description: "Contracts the customer owns or that its partner linked to it, newest first. Amounts are null without billing access.";
readonly tags: readonly ["contracts"];
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:contracts"];
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>>;
status: z.ZodOptional<z.ZodEnum<{
pending: "pending";
expired: "expired";
active: "active";
draft: "draft";
terminated: "terminated";
}>>;
expiringWithinDays: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
reference: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
isLinked: z.ZodBoolean;
effectiveDate: z.ZodNullable<z.ZodString>;
expirationDate: z.ZodNullable<z.ZodString>;
signedDate: z.ZodNullable<z.ZodString>;
autoRenewal: z.ZodNullable<z.ZodBoolean>;
renewalNoticeDays: z.ZodNullable<z.ZodNumber>;
billingFrequency: z.ZodNullable<z.ZodString>;
totalValue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
notes: z.ZodNullable<z.ZodString>;
agreementUrl: z.ZodNullable<z.ZodString>;
lineItems: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: 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}/contracts";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers contracts";
readonly llms: true;
};
}, {
readonly id: "one.contracts.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/contracts/{contractId}";
readonly summary: "Get a contract";
readonly description: "One contract with its line items, invoices and attachments. Amounts are null without billing access.";
readonly tags: readonly ["contracts"];
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:contracts"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
contractId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
id: z.ZodGUID;
reference: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
isLinked: z.ZodBoolean;
effectiveDate: z.ZodNullable<z.ZodString>;
expirationDate: z.ZodNullable<z.ZodString>;
signedDate: z.ZodNullable<z.ZodString>;
autoRenewal: z.ZodNullable<z.ZodBoolean>;
renewalNoticeDays: z.ZodNullable<z.ZodNumber>;
billingFrequency: z.ZodNullable<z.ZodString>;
totalValue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
notes: z.ZodNullable<z.ZodString>;
agreementUrl: z.ZodNullable<z.ZodString>;
lineItems: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
serviceId: z.ZodNullable<z.ZodGUID>;
quantity: z.ZodNullable<z.ZodNumber>;
unitPrice: z.ZodNullable<z.ZodNumber>;
totalPrice: z.ZodNullable<z.ZodNumber>;
includedQuantity: z.ZodNullable<z.ZodNumber>;
overageRate: z.ZodNullable<z.ZodNumber>;
quantityLimit: z.ZodNullable<z.ZodNumber>;
quantityUnit: z.ZodNullable<z.ZodString>;
bandwidthLimitTb: z.ZodNullable<z.ZodNumber>;
requestsLimitMillions: z.ZodNullable<z.ZodNumber>;
isActive: z.ZodBoolean;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
stripeInvoiceId: z.ZodNullable<z.ZodString>;
invoiceNumber: z.ZodNullable<z.ZodString>;
amountDue: z.ZodNullable<z.ZodNumber>;
amountPaid: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodString>;
invoiceDate: z.ZodNullable<z.ZodString>;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
createdAt: z.ZodNullable<z.ZodString>;
updatedAt: z.ZodNullable<z.ZodString>;
attachments: z.ZodArray<z.ZodObject<{
id: z.ZodGUID;
fileName: z.ZodString;
fileSize: z.ZodNullable<z.ZodNumber>;
mimeType: z.ZodNullable<z.ZodString>;
attachmentType: z.ZodNullable<z.ZodString>;
description: z.ZodNullable<z.ZodString>;
version: z.ZodNullable<z.ZodNumber>;
isLatest: z.ZodBoolean;
uploadedAt: z.ZodNullable<z.ZodString>;
}, 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/customers/{id}/contracts/{contractId}";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.usageAlerts.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/usage-alerts";
readonly summary: "List contract usage alerts";
readonly description: "Active contract line items whose usage is near or over the contracted limit, over-limit first.";
readonly tags: readonly ["contracts"];
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:contracts"];
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<{
contractId: z.ZodGUID;
contractName: z.ZodString;
serviceName: z.ZodString;
serviceType: z.ZodString;
usagePercentage: z.ZodNumber;
status: z.ZodEnum<{
warning: "warning";
critical: "critical";
over_limit: "over_limit";
}>;
}, 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}/usage-alerts";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly llms: true;
};
}, {
readonly id: "one.customerBilling.get";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/billing";
readonly summary: "Get billing";
readonly description: "The customer’s Stripe subscriptions, recent invoices, cards on file and monthly recurring revenue.";
readonly tags: readonly ["billing"];
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:billing"];
readonly request: {
readonly params: z.ZodObject<{
customerId: z.ZodGUID;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
isPartnerBilled: z.ZodBoolean;
partner: z.ZodNullable<z.ZodObject<{
id: z.ZodGUID;
name: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
billingContact: z.ZodNullable<z.ZodObject<{
name: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
monthlyRecurringRevenue: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
subscriptions: z.ZodArray<z.ZodObject<{
id: z.ZodString;
status: z.ZodString;
description: z.ZodString;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
cancelAtPeriodEnd: z.ZodBoolean;
canceledAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
invoices: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
amountDue: z.ZodNumber;
amountPaid: z.ZodNumber;
amountRemaining: z.ZodNumber;
currency: z.ZodString;
description: z.ZodNullable<z.ZodString>;
subscriptionId: z.ZodNullable<z.ZodString>;
lineCount: z.ZodNumber;
createdAt: z.ZodString;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
invoicePdfUrl: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
paymentMethods: z.ZodArray<z.ZodObject<{
id: z.ZodString;
brand: z.ZodNullable<z.ZodString>;
last4: z.ZodNullable<z.ZodString>;
expMonth: z.ZodNullable<z.ZodNumber>;
expYear: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>>;
contractCount: z.ZodNullable<z.ZodNumber>;
}, z.core.$strip>;
};
readonly errors: readonly ["unauthorized", "forbidden", "not_found", "validation_failed", "rate_limit_exceeded", "service_unavailable", "upstream_unavailable"];
readonly legacy: readonly [{
readonly host: "one";
readonly path: "/api/customers/{id}/billing";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers billing";
readonly llms: true;
};
}, {
readonly id: "one.invoices.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/invoices";
readonly summary: "List invoices";
readonly description: "The customer’s most recent Stripe invoices (up to 100), newest first. A customer billed through a partner sees only the invoices of its own contracts.";
readonly tags: readonly ["billing"];
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:billing"];
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>>;
status: z.ZodOptional<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
}, z.core.$strip>;
};
readonly responses: {
readonly 200: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
number: z.ZodNullable<z.ZodString>;
status: z.ZodNullable<z.ZodEnum<{
void: "void";
open: "open";
draft: "draft";
paid: "paid";
uncollectible: "uncollectible";
}>>;
amountDue: z.ZodNumber;
amountPaid: z.ZodNumber;
amountRemaining: z.ZodNumber;
currency: z.ZodString;
description: z.ZodNullable<z.ZodString>;
subscriptionId: z.ZodNullable<z.ZodString>;
lineCount: z.ZodNumber;
createdAt: z.ZodString;
dueDate: z.ZodNullable<z.ZodString>;
paidAt: z.ZodNullable<z.ZodString>;
hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
invoicePdfUrl: 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}/stripe/invoices";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers invoices";
readonly llms: true;
};
}, {
readonly id: "one.subscriptions.list";
readonly product: "one";
readonly version: "v1";
readonly method: "GET";
readonly path: "/customers/{customerId}/subscriptions";
readonly summary: "List subscriptions";
readonly description: "The customer’s Stripe subscriptions with priced items. A customer billed through a partner sees only the subscriptions of its own contracts.";
readonly tags: readonly ["billing"];
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:billing"];
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;
status: z.ZodString;
description: z.ZodString;
currentPeriodStart: z.ZodNullable<z.ZodString>;
currentPeriodEnd: z.ZodNullable<z.ZodString>;
cancelAtPeriodEnd: z.ZodBoolean;
canceledAt: z.ZodNullable<z.ZodString>;
createdAt: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNullable<z.ZodNumber>;
price: z.ZodObject<{
id: z.ZodString;
nickname: z.ZodNullable<z.ZodString>;
unitAmount: z.ZodNullable<z.ZodNumber>;
currency: z.ZodNullable<z.ZodString>;
billingScheme: z.ZodNullable<z.ZodEnum<{
per_unit: "per_unit";
tiered: "tiered";
}>>;
interval: z.ZodNullable<z.ZodEnum<{
day: "day";
week: "week";
month: "month";
year: "year";
}>>;
intervalCount: z.ZodNullable<z.ZodNumber>;
usageType: z.ZodNullable<z.ZodEnum<{
licensed: "licensed";
metered: "metered";
}>>;
transformQuantity: z.ZodNullable<z.ZodObject<{
divideBy: z.ZodNumber;
round: z.ZodEnum<{
up: "up";
down: "down";
}>;
}, z.core.$strip>>;
}, z.core.$strip>;
product: z.ZodObject<{
id: z.ZodNullable<z.ZodString>;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
}, 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}/stripe/subscriptions";
}];
readonly expose: {
readonly mcp: "code-mode";
readonly cli: "customers subscriptions";
readonly llms: true;
};
}];