import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { Addon } from "./addon.js"; import { AggregationType } from "./aggregation-type.js"; import { BucketSummary } from "./bucket-summary.js"; import { CommitmentInfo } from "./commitment-info.js"; import { Feature } from "./feature.js"; import { GroupGroup } from "./group-group.js"; import { MeterMeter } from "./meter-meter.js"; import { Plan } from "./plan.js"; import { PriceResponse } from "./price-response.js"; import { ReportingUnit } from "./reporting-unit.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { SubscriptionSubscriptionLineItem } from "./subscription-subscription-line-item.js"; import { UsageAnalyticPoint } from "./usage-analytic-point.js"; import { WindowSize } from "./window-size.js"; export type UsageAnalyticItem = { addOnId?: string | undefined; addon?: Addon | undefined; aggregationType?: AggregationType | undefined; /** * BucketSummaries is populated only when BreakdownBucket=true. Contains one * * @remarks * entry per defined CommitmentTimeBucket plus one for out-of-bucket usage. */ bucketSummaries?: Array | undefined; commitmentInfo?: CommitmentInfo | undefined; currency?: string | undefined; /** * Number of events that contributed to this aggregation */ eventCount?: number | undefined; eventName?: string | undefined; feature?: Feature | undefined; featureId?: string | undefined; group?: GroupGroup | undefined; meter?: MeterMeter | undefined; /** * Meter ID */ meterId?: string | undefined; name?: string | undefined; plan?: Plan | undefined; planId?: string | undefined; points?: Array | undefined; price?: PriceResponse | undefined; /** * Price ID used for this usage */ priceId?: string | undefined; /** * Stores property values for flexible grouping (e.g., org_id -> "org123") */ properties?: { [k: string]: string; } | undefined; reportingUnit?: ReportingUnit | undefined; source?: string | undefined; /** * List of sources when not grouping by source */ sources?: Array | undefined; /** * Subscription line item ID */ subLineItemId?: string | undefined; /** * Subscription ID */ subscriptionId?: string | undefined; subscriptionLineItem?: SubscriptionSubscriptionLineItem | undefined; subtotal?: string | undefined; /** * TotalCost is the final cost after discount (Subtotal - TotalDiscount) */ totalCost?: string | undefined; totalDiscount?: string | undefined; totalUsage?: string | undefined; /** * Empty string when feature has no reporting unit; otherwise the value in reporting units */ totalUsageDisplay?: string | undefined; unit?: string | undefined; unitPlural?: string | undefined; windowSize?: WindowSize | undefined; }; /** @internal */ export declare const UsageAnalyticItem$inboundSchema: z.ZodMiniType; export declare function usageAnalyticItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=usage-analytic-item.d.ts.map