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 SetUserBudgetOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ export type SetUserBudgetOwner = ClosedEnum; export declare const SetUserBudgetPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type SetUserBudgetPeriod = ClosedEnum; export declare const SetUserBudgetAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type SetUserBudgetAction = ClosedEnum; export type SetUserBudgetThresholds = { pct: number; action: SetUserBudgetAction; }; export type SetUserBudgetRequestBody = { /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ owner?: SetUserBudgetOwner | undefined; period: SetUserBudgetPeriod; /** * Spend limit in major currency units */ limit: number; thresholds: Array; webhookUrl?: string | null | undefined; webhookSecret?: string | null | undefined; }; export type SetUserBudgetRequest = { id: string; orgId?: string | undefined; requestBody: SetUserBudgetRequestBody; }; export declare const SetUserBudgetScope: { 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 SetUserBudgetScope = ClosedEnum; export declare const SetUserBudgetBudgetsOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type SetUserBudgetBudgetsOwner = ClosedEnum; export declare const SetUserBudgetBudgetsPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type SetUserBudgetBudgetsPeriod = ClosedEnum; export declare const SetUserBudgetBudgetsAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type SetUserBudgetBudgetsAction = ClosedEnum; export type SetUserBudgetBudgetsThresholds = { pct: number; action: SetUserBudgetBudgetsAction; }; export declare const SetUserBudgetStatus: { readonly Ok: "ok"; readonly Blocked: "blocked"; }; export type SetUserBudgetStatus = ClosedEnum; export type SetUserBudgetSpend = { /** * 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: SetUserBudgetStatus; }; /** * OK */ export type SetUserBudgetResponseBody = { id: string; scope: SetUserBudgetScope; scopeId: string; scopeOrgId: string | null; owner: SetUserBudgetBudgetsOwner; period: SetUserBudgetBudgetsPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; spend: SetUserBudgetSpend; }; /** @internal */ export declare const SetUserBudgetOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetThresholds$inboundSchema: z.ZodType; /** @internal */ export type SetUserBudgetThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const SetUserBudgetThresholds$outboundSchema: z.ZodType; export declare function setUserBudgetThresholdsToJSON(setUserBudgetThresholds: SetUserBudgetThresholds): string; export declare function setUserBudgetThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetUserBudgetRequestBody$inboundSchema: z.ZodType; /** @internal */ export type SetUserBudgetRequestBody$Outbound = { owner: string; period: string; limit: number; thresholds: Array; webhook_url?: string | null | undefined; webhook_secret?: string | null | undefined; }; /** @internal */ export declare const SetUserBudgetRequestBody$outboundSchema: z.ZodType; export declare function setUserBudgetRequestBodyToJSON(setUserBudgetRequestBody: SetUserBudgetRequestBody): string; export declare function setUserBudgetRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetUserBudgetRequest$inboundSchema: z.ZodType; /** @internal */ export type SetUserBudgetRequest$Outbound = { id: string; org_id?: string | undefined; RequestBody: SetUserBudgetRequestBody$Outbound; }; /** @internal */ export declare const SetUserBudgetRequest$outboundSchema: z.ZodType; export declare function setUserBudgetRequestToJSON(setUserBudgetRequest: SetUserBudgetRequest): string; export declare function setUserBudgetRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetUserBudgetScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetBudgetsThresholds$inboundSchema: z.ZodType; /** @internal */ export type SetUserBudgetBudgetsThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const SetUserBudgetBudgetsThresholds$outboundSchema: z.ZodType; export declare function setUserBudgetBudgetsThresholdsToJSON(setUserBudgetBudgetsThresholds: SetUserBudgetBudgetsThresholds): string; export declare function setUserBudgetBudgetsThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetUserBudgetStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetUserBudgetSpend$inboundSchema: z.ZodType; /** @internal */ export type SetUserBudgetSpend$Outbound = { window: string; cost_spent: number; limit: number; pct: number; status: string; }; /** @internal */ export declare const SetUserBudgetSpend$outboundSchema: z.ZodType; export declare function setUserBudgetSpendToJSON(setUserBudgetSpend: SetUserBudgetSpend): string; export declare function setUserBudgetSpendFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetUserBudgetResponseBody$inboundSchema: z.ZodType; /** @internal */ export type SetUserBudgetResponseBody$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: SetUserBudgetSpend$Outbound; }; /** @internal */ export declare const SetUserBudgetResponseBody$outboundSchema: z.ZodType; export declare function setUserBudgetResponseBodyToJSON(setUserBudgetResponseBody: SetUserBudgetResponseBody): string; export declare function setUserBudgetResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=setuserbudget.d.ts.map