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"; /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ export declare const SetTeamBudgetOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ export type SetTeamBudgetOwner = ClosedEnum; export declare const SetTeamBudgetPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type SetTeamBudgetPeriod = ClosedEnum; export declare const SetTeamBudgetAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type SetTeamBudgetAction = ClosedEnum; export type SetTeamBudgetThresholds = { pct: number; action: SetTeamBudgetAction; }; export type SetTeamBudgetRequestBody = { /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ owner?: SetTeamBudgetOwner | undefined; period: SetTeamBudgetPeriod; /** * Spend limit in major currency units */ limit: number; thresholds: Array; webhookUrl?: string | null | undefined; webhookSecret?: string | null | undefined; }; export type SetTeamBudgetRequest = { id: string; orgId?: string | undefined; requestBody: SetTeamBudgetRequestBody; }; export declare const SetTeamBudgetScope: { 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 SetTeamBudgetScope = ClosedEnum; export declare const SetTeamBudgetBudgetsOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type SetTeamBudgetBudgetsOwner = ClosedEnum; export declare const SetTeamBudgetBudgetsPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type SetTeamBudgetBudgetsPeriod = ClosedEnum; export declare const SetTeamBudgetBudgetsAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type SetTeamBudgetBudgetsAction = ClosedEnum; export type SetTeamBudgetBudgetsThresholds = { pct: number; action: SetTeamBudgetBudgetsAction; }; export declare const SetTeamBudgetStatus: { readonly Ok: "ok"; readonly Blocked: "blocked"; }; export type SetTeamBudgetStatus = ClosedEnum; export type SetTeamBudgetSpend = { /** * 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: SetTeamBudgetStatus; }; /** * OK */ export type SetTeamBudgetResponseBody = { id: string; scope: SetTeamBudgetScope; scopeId: string; scopeOrgId: string | null; owner: SetTeamBudgetBudgetsOwner; period: SetTeamBudgetBudgetsPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; spend: SetTeamBudgetSpend; }; /** @internal */ export declare const SetTeamBudgetOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetThresholds$inboundSchema: z.ZodType; /** @internal */ export type SetTeamBudgetThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const SetTeamBudgetThresholds$outboundSchema: z.ZodType; export declare function setTeamBudgetThresholdsToJSON(setTeamBudgetThresholds: SetTeamBudgetThresholds): string; export declare function setTeamBudgetThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamBudgetRequestBody$inboundSchema: z.ZodType; /** @internal */ export type SetTeamBudgetRequestBody$Outbound = { owner: string; period: string; limit: number; thresholds: Array; webhook_url?: string | null | undefined; webhook_secret?: string | null | undefined; }; /** @internal */ export declare const SetTeamBudgetRequestBody$outboundSchema: z.ZodType; export declare function setTeamBudgetRequestBodyToJSON(setTeamBudgetRequestBody: SetTeamBudgetRequestBody): string; export declare function setTeamBudgetRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamBudgetRequest$inboundSchema: z.ZodType; /** @internal */ export type SetTeamBudgetRequest$Outbound = { id: string; org_id?: string | undefined; RequestBody: SetTeamBudgetRequestBody$Outbound; }; /** @internal */ export declare const SetTeamBudgetRequest$outboundSchema: z.ZodType; export declare function setTeamBudgetRequestToJSON(setTeamBudgetRequest: SetTeamBudgetRequest): string; export declare function setTeamBudgetRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamBudgetScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetBudgetsThresholds$inboundSchema: z.ZodType; /** @internal */ export type SetTeamBudgetBudgetsThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const SetTeamBudgetBudgetsThresholds$outboundSchema: z.ZodType; export declare function setTeamBudgetBudgetsThresholdsToJSON(setTeamBudgetBudgetsThresholds: SetTeamBudgetBudgetsThresholds): string; export declare function setTeamBudgetBudgetsThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamBudgetStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamBudgetSpend$inboundSchema: z.ZodType; /** @internal */ export type SetTeamBudgetSpend$Outbound = { window: string; cost_spent: number; limit: number; pct: number; status: string; }; /** @internal */ export declare const SetTeamBudgetSpend$outboundSchema: z.ZodType; export declare function setTeamBudgetSpendToJSON(setTeamBudgetSpend: SetTeamBudgetSpend): string; export declare function setTeamBudgetSpendFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamBudgetResponseBody$inboundSchema: z.ZodType; /** @internal */ export type SetTeamBudgetResponseBody$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: SetTeamBudgetSpend$Outbound; }; /** @internal */ export declare const SetTeamBudgetResponseBody$outboundSchema: z.ZodType; export declare function setTeamBudgetResponseBodyToJSON(setTeamBudgetResponseBody: SetTeamBudgetResponseBody): string; export declare function setTeamBudgetResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=setteambudget.d.ts.map