import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Group cost by model / api_key_id (tenant key) / team_id (sub-tenant within an org) / external_user_id (caller-supplied end user, X-On-Behalf-Of, for resale chargeback) / org_id */ export type GroupBy = Array | components.CostsUsageGroupBy; export type GetCostsUsageRequest = { startTime: number; endTime: number; orgId?: string | undefined; /** * Group cost by model / api_key_id (tenant key) / team_id (sub-tenant within an org) / external_user_id (caller-supplied end user, X-On-Behalf-Of, for resale chargeback) / org_id */ groupBy?: Array | components.CostsUsageGroupBy | undefined; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; }; /** @internal */ export declare const GroupBy$inboundSchema: z.ZodType; /** @internal */ export type GroupBy$Outbound = Array | string; /** @internal */ export declare const GroupBy$outboundSchema: z.ZodType; export declare function groupByToJSON(groupBy: GroupBy): string; export declare function groupByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetCostsUsageRequest$inboundSchema: z.ZodType; /** @internal */ export type GetCostsUsageRequest$Outbound = { start_time: number; end_time: number; org_id?: string | undefined; group_by?: Array | string | undefined; "X-On-Behalf-Of"?: string | undefined; }; /** @internal */ export declare const GetCostsUsageRequest$outboundSchema: z.ZodType; export declare function getCostsUsageRequestToJSON(getCostsUsageRequest: GetCostsUsageRequest): string; export declare function getCostsUsageRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getcostsusage.d.ts.map