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 type GetOrgBudgetsRequest = { orgId?: string | undefined; }; export declare const GetOrgBudgetsScope: { 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 GetOrgBudgetsScope = ClosedEnum; export declare const GetOrgBudgetsOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type GetOrgBudgetsOwner = ClosedEnum; export declare const GetOrgBudgetsPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type GetOrgBudgetsPeriod = ClosedEnum; export declare const GetOrgBudgetsAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type GetOrgBudgetsAction = ClosedEnum; export type GetOrgBudgetsThresholds = { pct: number; action: GetOrgBudgetsAction; }; export declare const GetOrgBudgetsStatus: { readonly Ok: "ok"; readonly Blocked: "blocked"; }; export type GetOrgBudgetsStatus = ClosedEnum; export type GetOrgBudgetsSpend = { /** * 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: GetOrgBudgetsStatus; }; export type GetOrgBudgetsData = { id: string; scope: GetOrgBudgetsScope; scopeId: string; scopeOrgId: string | null; owner: GetOrgBudgetsOwner; period: GetOrgBudgetsPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; spend: GetOrgBudgetsSpend; }; /** * OK */ export type GetOrgBudgetsResponseBody = { object: "list"; data: Array; }; /** @internal */ export declare const GetOrgBudgetsRequest$inboundSchema: z.ZodType; /** @internal */ export type GetOrgBudgetsRequest$Outbound = { org_id?: string | undefined; }; /** @internal */ export declare const GetOrgBudgetsRequest$outboundSchema: z.ZodType; export declare function getOrgBudgetsRequestToJSON(getOrgBudgetsRequest: GetOrgBudgetsRequest): string; export declare function getOrgBudgetsRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetOrgBudgetsScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsThresholds$inboundSchema: z.ZodType; /** @internal */ export type GetOrgBudgetsThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const GetOrgBudgetsThresholds$outboundSchema: z.ZodType; export declare function getOrgBudgetsThresholdsToJSON(getOrgBudgetsThresholds: GetOrgBudgetsThresholds): string; export declare function getOrgBudgetsThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetOrgBudgetsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetOrgBudgetsSpend$inboundSchema: z.ZodType; /** @internal */ export type GetOrgBudgetsSpend$Outbound = { window: string; cost_spent: number; limit: number; pct: number; status: string; }; /** @internal */ export declare const GetOrgBudgetsSpend$outboundSchema: z.ZodType; export declare function getOrgBudgetsSpendToJSON(getOrgBudgetsSpend: GetOrgBudgetsSpend): string; export declare function getOrgBudgetsSpendFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetOrgBudgetsData$inboundSchema: z.ZodType; /** @internal */ export type GetOrgBudgetsData$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: GetOrgBudgetsSpend$Outbound; }; /** @internal */ export declare const GetOrgBudgetsData$outboundSchema: z.ZodType; export declare function getOrgBudgetsDataToJSON(getOrgBudgetsData: GetOrgBudgetsData): string; export declare function getOrgBudgetsDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetOrgBudgetsResponseBody$inboundSchema: z.ZodType; /** @internal */ export type GetOrgBudgetsResponseBody$Outbound = { object: "list"; data: Array; }; /** @internal */ export declare const GetOrgBudgetsResponseBody$outboundSchema: z.ZodType; export declare function getOrgBudgetsResponseBodyToJSON(getOrgBudgetsResponseBody: GetOrgBudgetsResponseBody): string; export declare function getOrgBudgetsResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getorgbudgets.d.ts.map