import * as z from 'zod/mini'; import * as Response from '../../../internal/Response.js'; import type { Environment } from '../App.js'; /** Zod schemas owned by the usage resource. */ export declare namespace schema { /** Schemas for the getRequestUsage operation. */ namespace getRequestUsage { /** Usage grouped by API key. */ const KeyBreakdown: z.ZodMiniObject<{ apiKeyId: z.ZodMiniString; averageDurationMs: z.ZodMiniNumber; errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; }, z.core.$strip>; /** Path parameters addressing one organization's usage. */ const Params: z.ZodMiniObject<{ orgId: z.ZodMiniString; }, z.core.$strip>; /** Query parameters for request usage. */ const Query: z.ZodMiniObject<{ environment: z.ZodMiniOptional>; from: z.ZodMiniOptional; interval: z.ZodMiniDefault>; projectId: z.ZodMiniOptional>; to: z.ZodMiniOptional; }, z.core.$strict>; /** Usage grouped by route. */ const RouteBreakdown: z.ZodMiniObject<{ averageDurationMs: z.ZodMiniNumber; errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; route: z.ZodMiniString; }, z.core.$strip>; /** One usage series point. */ const SeriesPoint: z.ZodMiniObject<{ errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; time: z.ZodMiniISODateTime; }, z.core.$strip>; /** Usage grouped by status code. */ const StatusBreakdown: z.ZodMiniObject<{ requests: z.ZodMiniNumber; status: z.ZodMiniNumber; }, z.core.$strip>; /** Overall usage totals. */ const Totals: z.ZodMiniObject<{ averageDurationMs: z.ZodMiniNumber; errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; }, z.core.$strip>; /** Request usage. */ const Response: z.ZodMiniObject<{ byKey: z.ZodMiniArray; averageDurationMs: z.ZodMiniNumber; errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; }, z.core.$strip>>; byRoute: z.ZodMiniArray; errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; route: z.ZodMiniString; }, z.core.$strip>>; byStatus: z.ZodMiniArray; status: z.ZodMiniNumber; }, z.core.$strip>>; from: z.ZodMiniISODateTime; interval: z.ZodMiniEnum<{ day: "day"; hour: "hour"; }>; series: z.ZodMiniArray; requests: z.ZodMiniNumber; time: z.ZodMiniISODateTime; }, z.core.$strip>>; to: z.ZodMiniISODateTime; totals: z.ZodMiniObject<{ averageDurationMs: z.ZodMiniNumber; errors: z.ZodMiniNumber; requests: z.ZodMiniNumber; }, z.core.$strip>; }, z.core.$strip>; } /** Schemas for the getSponsorshipUsage operation. */ namespace getSponsorshipUsage { /** One time bucket of sponsorship usage. */ const Bucket: z.ZodMiniObject<{ count: z.ZodMiniNumber; failed: z.ZodMiniNumber; feeTotal: z.ZodMiniObject<{ amount: z.ZodMiniString; currency: z.ZodMiniEnum<{ usd: "usd"; }>; }, z.core.$strip>; timestamp: z.ZodMiniISODateTime; }, z.core.$strip>; /** Path parameters addressing one organization's usage. */ const Params: z.ZodMiniObject<{ orgId: z.ZodMiniString; }, z.core.$strip>; /** Query parameters scoping the sponsorship usage series. */ const Query: z.ZodMiniObject<{ environment: z.ZodMiniOptional>; from: z.ZodMiniOptional; interval: z.ZodMiniDefault>; projectId: z.ZodMiniOptional>; to: z.ZodMiniOptional; }, z.core.$strict>; /** Sponsorship usage bucketed over time. */ const Response: z.ZodMiniObject<{ data: z.ZodMiniArray; failed: z.ZodMiniNumber; feeTotal: z.ZodMiniObject<{ amount: z.ZodMiniString; currency: z.ZodMiniEnum<{ usd: "usd"; }>; }, z.core.$strip>; timestamp: z.ZodMiniISODateTime; }, z.core.$strip>>; }, z.core.$strip>; } } /** Mounts organization request and sponsorship usage. Reads require membership or a scoped API key. */ export declare function usage(): import("hono/hono-base").HonoBase; //# sourceMappingURL=usage.d.ts.map