import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Whether to break down credit usage on a daily or monthly basis. */ export declare const V3AccountmanagementUserCreditsUsageQueryParamGranularity: { readonly Daily: "daily"; readonly Monthly: "monthly"; }; /** * Whether to break down credit usage on a daily or monthly basis. */ export type V3AccountmanagementUserCreditsUsageQueryParamGranularity = ClosedEnum; export type V3AccountmanagementUserCreditsUsageRequest = { /** * The date for the credit usage report in YYYY-MM-DD format (e.g., 2025-11-06). This field is deprecated and will be removed in a future version. Use start_date and end_date instead. The date must be on or after 2025-01-01 (the earliest date available for credit usage reports). */ date?: string | undefined; /** * The start date for the credit usage report in YYYY-MM-DD format (e.g., 2025-11-01). Must be on or after 2025-01-01 (the earliest date available for credit usage reports). */ startDate?: RFCDate | undefined; /** * The end date for the credit usage report in YYYY-MM-DD format (e.g., 2025-12-01). If omitted, will default to today's date. The date range (end_date - start_date) cannot exceed 365 days (1 year). */ endDate?: RFCDate | undefined; /** * Whether to break down credit usage on a daily or monthly basis. */ granularity?: V3AccountmanagementUserCreditsUsageQueryParamGranularity | undefined; }; export type V3AccountmanagementUserCreditsUsageResponse = { headers: { [k: string]: Array; }; result: components.ResponseEnvelopeCreditUsageReport; }; /** @internal */ export declare const V3AccountmanagementUserCreditsUsageQueryParamGranularity$outboundSchema: z.ZodNativeEnum; /** @internal */ export type V3AccountmanagementUserCreditsUsageRequest$Outbound = { date?: string | undefined; start_date?: string | undefined; end_date?: string | undefined; granularity: string; }; /** @internal */ export declare const V3AccountmanagementUserCreditsUsageRequest$outboundSchema: z.ZodType; export declare function v3AccountmanagementUserCreditsUsageRequestToJSON(v3AccountmanagementUserCreditsUsageRequest: V3AccountmanagementUserCreditsUsageRequest): string; /** @internal */ export declare const V3AccountmanagementUserCreditsUsageResponse$inboundSchema: z.ZodType; export declare function v3AccountmanagementUserCreditsUsageResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=v3accountmanagementusercreditsusage.d.ts.map