import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare const DataScope: { readonly Org: "org"; readonly Apikey: "apikey"; readonly User: "user"; readonly Team: "team"; readonly ExternalUser: "external_user"; readonly UserDefault: "user_default"; readonly TeamDefault: "team_default"; readonly ExternalUserDefault: "external_user_default"; }; export type DataScope = ClosedEnum; export declare const DataOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type DataOwner = ClosedEnum; export declare const DataPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type DataPeriod = ClosedEnum; export declare const DataAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type DataAction = ClosedEnum; export type DataThresholds = { pct: number; action: DataAction; }; export type Data2 = { id: string; scope: DataScope; scopeId: string; scopeOrgId: string | null; owner: DataOwner; period: DataPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; }; export declare const ListBudgetsDataScope: { readonly Org: "org"; readonly Apikey: "apikey"; readonly User: "user"; readonly Team: "team"; readonly ExternalUser: "external_user"; readonly UserDefault: "user_default"; readonly TeamDefault: "team_default"; readonly ExternalUserDefault: "external_user_default"; }; export type ListBudgetsDataScope = ClosedEnum; export declare const ListBudgetsDataOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type ListBudgetsDataOwner = ClosedEnum; export declare const ListBudgetsDataPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type ListBudgetsDataPeriod = ClosedEnum; export declare const ListBudgetsDataAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type ListBudgetsDataAction = ClosedEnum; export type ListBudgetsDataThresholds = { pct: number; action: ListBudgetsDataAction; }; export declare const DataStatus: { readonly Ok: "ok"; readonly Blocked: "blocked"; }; export type DataStatus = ClosedEnum; export type DataSpend = { /** * Current period bucket, e.g. 2026-07 / 2026-W28 / 2026-07-07 */ window: string; /** * Live spend this window, major currency units */ costSpent: number; limit: number; pct: number; status: DataStatus; }; export type Data1 = { id: string; scope: ListBudgetsDataScope; scopeId: string; scopeOrgId: string | null; owner: ListBudgetsDataOwner; period: ListBudgetsDataPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; spend: DataSpend; }; export type ListBudgetsData = Data1 | Data2; /** * OK */ export type ListBudgetsResponseBody = { object: "list"; data: Array; }; /** @internal */ export declare const DataScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataThresholds$inboundSchema: z.ZodType; /** @internal */ export type DataThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const DataThresholds$outboundSchema: z.ZodType; export declare function dataThresholdsToJSON(dataThresholds: DataThresholds): string; export declare function dataThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Data2$inboundSchema: z.ZodType; /** @internal */ export type Data2$Outbound = { id: string; scope: string; scope_id: string; scope_org_id: string | null; owner: string; period: string; limit: number; thresholds: Array; alert_webhook_url: string | null; }; /** @internal */ export declare const Data2$outboundSchema: z.ZodType; export declare function data2ToJSON(data2: Data2): string; export declare function data2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListBudgetsDataScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBudgetsDataThresholds$inboundSchema: z.ZodType; /** @internal */ export type ListBudgetsDataThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const ListBudgetsDataThresholds$outboundSchema: z.ZodType; export declare function listBudgetsDataThresholdsToJSON(listBudgetsDataThresholds: ListBudgetsDataThresholds): string; export declare function listBudgetsDataThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DataStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataSpend$inboundSchema: z.ZodType; /** @internal */ export type DataSpend$Outbound = { window: string; cost_spent: number; limit: number; pct: number; status: string; }; /** @internal */ export declare const DataSpend$outboundSchema: z.ZodType; export declare function dataSpendToJSON(dataSpend: DataSpend): string; export declare function dataSpendFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Data1$inboundSchema: z.ZodType; /** @internal */ export type Data1$Outbound = { id: string; scope: string; scope_id: string; scope_org_id: string | null; owner: string; period: string; limit: number; thresholds: Array; alert_webhook_url: string | null; spend: DataSpend$Outbound; }; /** @internal */ export declare const Data1$outboundSchema: z.ZodType; export declare function data1ToJSON(data1: Data1): string; export declare function data1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListBudgetsData$inboundSchema: z.ZodType; /** @internal */ export type ListBudgetsData$Outbound = Data1$Outbound | Data2$Outbound; /** @internal */ export declare const ListBudgetsData$outboundSchema: z.ZodType; export declare function listBudgetsDataToJSON(listBudgetsData: ListBudgetsData): string; export declare function listBudgetsDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListBudgetsResponseBody$inboundSchema: z.ZodType; /** @internal */ export type ListBudgetsResponseBody$Outbound = { object: "list"; data: Array; }; /** @internal */ export declare const ListBudgetsResponseBody$outboundSchema: z.ZodType; export declare function listBudgetsResponseBodyToJSON(listBudgetsResponseBody: ListBudgetsResponseBody): string; export declare function listBudgetsResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listbudgets.d.ts.map