import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Time bucket width for aggregation */ export declare const BucketWidth: { readonly Hour: "hour"; readonly Day: "day"; }; /** * Time bucket width for aggregation */ export type BucketWidth = ClosedEnum; export declare const BreakdownType: { readonly VoiceId: "voice_id"; readonly VoiceName: "voice_name"; readonly ApiKey: "api_key"; readonly Model: "model"; }; export type BreakdownType = ClosedEnum; export type GetUsageRequest = { /** * Start time in RFC3339 format */ startTime: string; /** * End time in RFC3339 format */ endTime: string; /** * Time bucket width for aggregation */ bucketWidth?: BucketWidth | undefined; /** * Dimensions to break down usage data */ breakdownType?: Array | undefined; /** * Number of results per page */ pageSize?: number | undefined; /** * Pagination token from previous response */ nextPageToken?: string | undefined; }; /** @internal */ export declare const BucketWidth$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const BucketWidth$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BucketWidth$ { /** @deprecated use `BucketWidth$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Hour: "hour"; readonly Day: "day"; }>; /** @deprecated use `BucketWidth$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Hour: "hour"; readonly Day: "day"; }>; } /** @internal */ export declare const BreakdownType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const BreakdownType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BreakdownType$ { /** @deprecated use `BreakdownType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly VoiceId: "voice_id"; readonly VoiceName: "voice_name"; readonly ApiKey: "api_key"; readonly Model: "model"; }>; /** @deprecated use `BreakdownType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly VoiceId: "voice_id"; readonly VoiceName: "voice_name"; readonly ApiKey: "api_key"; readonly Model: "model"; }>; } /** @internal */ export declare const GetUsageRequest$inboundSchema: z.ZodType; /** @internal */ export type GetUsageRequest$Outbound = { start_time: string; end_time: string; bucket_width: string; breakdown_type?: Array | undefined; page_size: number; next_page_token?: string | undefined; }; /** @internal */ export declare const GetUsageRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetUsageRequest$ { /** @deprecated use `GetUsageRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetUsageRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetUsageRequest$Outbound` instead. */ type Outbound = GetUsageRequest$Outbound; } export declare function getUsageRequestToJSON(getUsageRequest: GetUsageRequest): string; export declare function getUsageRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getusage.d.ts.map