import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { AlertSettings } from "./alert-settings.js"; import { AlertState } from "./alert-state.js"; import { AutoTopup } from "./auto-topup.js"; import { CreditBreakdown } from "./credit-breakdown.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { Status } from "./status.js"; import { WalletConfig } from "./wallet-config.js"; import { WalletStatus } from "./wallet-status.js"; import { WalletType } from "./wallet-type.js"; export type WalletBalanceResponse = { alertSettings?: AlertSettings | undefined; alertState?: AlertState | undefined; autoTopup?: AutoTopup | undefined; balance?: string | undefined; balanceUpdatedAt?: Date | undefined; config?: WalletConfig | undefined; /** * amount in the currency = number of credits * conversion_rate * * @remarks * ex if conversion_rate is 1, then 1 USD = 1 credit * ex if conversion_rate is 2, then 1 USD = 0.5 credits * ex if conversion_rate is 0.5, then 1 USD = 2 credits */ conversionRate?: string | undefined; createdAt?: Date | undefined; createdBy?: string | undefined; creditBalance?: string | undefined; creditsAvailableBreakdown?: CreditBreakdown | undefined; currency?: string | undefined; currentPeriodUsage?: string | undefined; customerId?: string | undefined; description?: string | undefined; environmentId?: string | undefined; id?: string | undefined; /** * IsCachedFallback is true whenever the response is sourced from cache: * * @remarks * either an explicit cache request, or fallback after a real-time failure. * Clients should treat the absence of this field as if it were true and * only trust freshness when the server explicitly emits false. */ isCachedFallback?: boolean | undefined; metadata?: { [k: string]: string; } | undefined; name?: string | undefined; realTimeBalance?: string | undefined; realTimeCreditBalance?: string | undefined; status?: Status | undefined; tenantId?: string | undefined; /** * topup_conversion_rate is the conversion rate for the topup to the currency * * @remarks * ex if topup_conversion_rate is 1, then 1 USD = 1 credit * ex if topup_conversion_rate is 2, then 1 USD = 0.5 credits * ex if topup_conversion_rate is 0.5, then 1 USD = 2 credits */ topupConversionRate?: string | undefined; unpaidInvoicesAmount?: string | undefined; updatedAt?: Date | undefined; updatedBy?: string | undefined; walletStatus?: WalletStatus | undefined; walletType?: WalletType | undefined; }; /** @internal */ export declare const WalletBalanceResponse$inboundSchema: z.ZodMiniType; export declare function walletBalanceResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=wallet-balance-response.d.ts.map