import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import * as SpeedAPI from "./speed.js"; export declare class Availabilities extends APIResource { /** * Retrieves quota for all plans, as well as the current zone quota. * * @example * ```ts * const availability = await client.speed.availabilities.list( * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ list(params: AvailabilityListParams, options?: Core.RequestOptions): Core.APIPromise; } export interface Availability { quota?: Availability.Quota; regions?: Array; /** * Available regions. */ regionsPerPlan?: Availability.RegionsPerPlan; } export declare namespace Availability { interface Quota { /** * Cloudflare plan. */ plan?: string; /** * The number of tests available per plan. */ quotasPerPlan?: Quota.QuotasPerPlan; /** * The number of remaining schedules available. */ remainingSchedules?: number; /** * The number of remaining tests available. */ remainingTests?: number; /** * The number of schedules available per plan. */ scheduleQuotasPerPlan?: Quota.ScheduleQuotasPerPlan; } namespace Quota { /** * The number of tests available per plan. */ interface QuotasPerPlan { /** * Counts per account plan. */ value?: QuotasPerPlan.Value; } namespace QuotasPerPlan { /** * Counts per account plan. */ interface Value { business?: number; enterprise?: number; free?: number; pro?: number; } } /** * The number of schedules available per plan. */ interface ScheduleQuotasPerPlan { /** * Counts per account plan. */ value?: ScheduleQuotasPerPlan.Value; } namespace ScheduleQuotasPerPlan { /** * Counts per account plan. */ interface Value { business?: number; enterprise?: number; free?: number; pro?: number; } } } /** * Available regions. */ interface RegionsPerPlan { business?: Array; enterprise?: Array; free?: Array; pro?: Array; } } export interface AvailabilityListParams { /** * Identifier. */ zone_id: string; } export declare namespace Availabilities { export { type Availability as Availability, type AvailabilityListParams as AvailabilityListParams }; } //# sourceMappingURL=availabilities.d.ts.map