import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CreditUsageReportPeriod } from "./creditusagereportperiod.js"; import { SourceUsageBreakdown } from "./sourceusagebreakdown.js"; /** * The granularity of the report. */ export declare const Granularity: { readonly Daily: "daily"; readonly Monthly: "monthly"; }; /** * The granularity of the report. */ export type Granularity = OpenEnum; export type CreditUsageReport = { /** * The breakdown of credits consumed by consumer. This may not be present if the report is generated for a specific user. */ creditsConsumedByConsumer?: string | undefined; creditsConsumedBySource: SourceUsageBreakdown; /** * The end time of the window for this report. */ endTime: Date; /** * The granularity of the report. */ granularity: Granularity; /** * The periods of the report (i.e. time buckets). */ periods: Array | null; /** * The start time of the window for this report. */ startTime: Date; /** * The total amount of credits added during the report period. */ totalAdded: number; /** * The total amount of credits consumed during the report period. */ totalConsumed: number; /** * The total amount of credits expired during the report period. */ totalExpired: number; /** * The total number of transactions during the report period. */ transactionCount: number; }; /** @internal */ export declare const Granularity$inboundSchema: z.ZodType; /** @internal */ export declare const CreditUsageReport$inboundSchema: z.ZodType; export declare function creditUsageReportFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=creditusagereport.d.ts.map