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 GetTeamBudgetsRequest = { id: string; orgId?: string | undefined; }; export declare const GetTeamBudgetsScope: { 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 GetTeamBudgetsScope = ClosedEnum; export declare const GetTeamBudgetsOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type GetTeamBudgetsOwner = ClosedEnum; export declare const GetTeamBudgetsPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type GetTeamBudgetsPeriod = ClosedEnum; export declare const GetTeamBudgetsAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type GetTeamBudgetsAction = ClosedEnum; export type GetTeamBudgetsThresholds = { pct: number; action: GetTeamBudgetsAction; }; export declare const GetTeamBudgetsStatus: { readonly Ok: "ok"; readonly Blocked: "blocked"; }; export type GetTeamBudgetsStatus = ClosedEnum; export type GetTeamBudgetsSpend = { /** * 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: GetTeamBudgetsStatus; }; export type GetTeamBudgetsData = { id: string; scope: GetTeamBudgetsScope; scopeId: string; scopeOrgId: string | null; owner: GetTeamBudgetsOwner; period: GetTeamBudgetsPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; spend: GetTeamBudgetsSpend; }; /** * OK */ export type GetTeamBudgetsResponseBody = { object: "list"; data: Array; }; /** @internal */ export declare const GetTeamBudgetsRequest$inboundSchema: z.ZodType; /** @internal */ export type GetTeamBudgetsRequest$Outbound = { id: string; org_id?: string | undefined; }; /** @internal */ export declare const GetTeamBudgetsRequest$outboundSchema: z.ZodType; export declare function getTeamBudgetsRequestToJSON(getTeamBudgetsRequest: GetTeamBudgetsRequest): string; export declare function getTeamBudgetsRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetTeamBudgetsScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsThresholds$inboundSchema: z.ZodType; /** @internal */ export type GetTeamBudgetsThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const GetTeamBudgetsThresholds$outboundSchema: z.ZodType; export declare function getTeamBudgetsThresholdsToJSON(getTeamBudgetsThresholds: GetTeamBudgetsThresholds): string; export declare function getTeamBudgetsThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetTeamBudgetsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetTeamBudgetsSpend$inboundSchema: z.ZodType; /** @internal */ export type GetTeamBudgetsSpend$Outbound = { window: string; cost_spent: number; limit: number; pct: number; status: string; }; /** @internal */ export declare const GetTeamBudgetsSpend$outboundSchema: z.ZodType; export declare function getTeamBudgetsSpendToJSON(getTeamBudgetsSpend: GetTeamBudgetsSpend): string; export declare function getTeamBudgetsSpendFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetTeamBudgetsData$inboundSchema: z.ZodType; /** @internal */ export type GetTeamBudgetsData$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: GetTeamBudgetsSpend$Outbound; }; /** @internal */ export declare const GetTeamBudgetsData$outboundSchema: z.ZodType; export declare function getTeamBudgetsDataToJSON(getTeamBudgetsData: GetTeamBudgetsData): string; export declare function getTeamBudgetsDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetTeamBudgetsResponseBody$inboundSchema: z.ZodType; /** @internal */ export type GetTeamBudgetsResponseBody$Outbound = { object: "list"; data: Array; }; /** @internal */ export declare const GetTeamBudgetsResponseBody$outboundSchema: z.ZodType; export declare function getTeamBudgetsResponseBodyToJSON(getTeamBudgetsResponseBody: GetTeamBudgetsResponseBody): string; export declare function getTeamBudgetsResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getteambudgets.d.ts.map