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 SetTeamDefaultBudgetOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ export type SetTeamDefaultBudgetOwner = ClosedEnum; export declare const SetTeamDefaultBudgetPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type SetTeamDefaultBudgetPeriod = ClosedEnum; export declare const SetTeamDefaultBudgetAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type SetTeamDefaultBudgetAction = ClosedEnum; export type SetTeamDefaultBudgetThresholds = { pct: number; action: SetTeamDefaultBudgetAction; }; export type SetTeamDefaultBudgetRequestBody = { /** * cluster = operator ceiling (org-admin read-only); org = self-budget */ owner?: SetTeamDefaultBudgetOwner | undefined; period: SetTeamDefaultBudgetPeriod; /** * Spend limit in major currency units */ limit: number; thresholds: Array; webhookUrl?: string | null | undefined; webhookSecret?: string | null | undefined; }; export type SetTeamDefaultBudgetRequest = { orgId?: string | undefined; requestBody: SetTeamDefaultBudgetRequestBody; }; export declare const SetTeamDefaultBudgetScope: { 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 SetTeamDefaultBudgetScope = ClosedEnum; export declare const SetTeamDefaultBudgetBudgetsOwner: { readonly Cluster: "cluster"; readonly Org: "org"; }; export type SetTeamDefaultBudgetBudgetsOwner = ClosedEnum; export declare const SetTeamDefaultBudgetBudgetsPeriod: { readonly Daily: "daily"; readonly Weekly: "weekly"; readonly Monthly: "monthly"; }; export type SetTeamDefaultBudgetBudgetsPeriod = ClosedEnum; export declare const SetTeamDefaultBudgetBudgetsAction: { readonly Alert: "alert"; readonly Block: "block"; }; export type SetTeamDefaultBudgetBudgetsAction = ClosedEnum; export type SetTeamDefaultBudgetBudgetsThresholds = { pct: number; action: SetTeamDefaultBudgetBudgetsAction; }; /** * OK */ export type SetTeamDefaultBudgetResponseBody = { id: string; scope: SetTeamDefaultBudgetScope; scopeId: string; scopeOrgId: string | null; owner: SetTeamDefaultBudgetBudgetsOwner; period: SetTeamDefaultBudgetBudgetsPeriod; limit: number; thresholds: Array; alertWebhookUrl: string | null; }; /** @internal */ export declare const SetTeamDefaultBudgetOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetThresholds$inboundSchema: z.ZodType; /** @internal */ export type SetTeamDefaultBudgetThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const SetTeamDefaultBudgetThresholds$outboundSchema: z.ZodType; export declare function setTeamDefaultBudgetThresholdsToJSON(setTeamDefaultBudgetThresholds: SetTeamDefaultBudgetThresholds): string; export declare function setTeamDefaultBudgetThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamDefaultBudgetRequestBody$inboundSchema: z.ZodType; /** @internal */ export type SetTeamDefaultBudgetRequestBody$Outbound = { owner: string; period: string; limit: number; thresholds: Array; webhook_url?: string | null | undefined; webhook_secret?: string | null | undefined; }; /** @internal */ export declare const SetTeamDefaultBudgetRequestBody$outboundSchema: z.ZodType; export declare function setTeamDefaultBudgetRequestBodyToJSON(setTeamDefaultBudgetRequestBody: SetTeamDefaultBudgetRequestBody): string; export declare function setTeamDefaultBudgetRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamDefaultBudgetRequest$inboundSchema: z.ZodType; /** @internal */ export type SetTeamDefaultBudgetRequest$Outbound = { org_id?: string | undefined; RequestBody: SetTeamDefaultBudgetRequestBody$Outbound; }; /** @internal */ export declare const SetTeamDefaultBudgetRequest$outboundSchema: z.ZodType; export declare function setTeamDefaultBudgetRequestToJSON(setTeamDefaultBudgetRequest: SetTeamDefaultBudgetRequest): string; export declare function setTeamDefaultBudgetRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamDefaultBudgetScope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetScope$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsOwner$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsOwner$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsPeriod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsThresholds$inboundSchema: z.ZodType; /** @internal */ export type SetTeamDefaultBudgetBudgetsThresholds$Outbound = { pct: number; action: string; }; /** @internal */ export declare const SetTeamDefaultBudgetBudgetsThresholds$outboundSchema: z.ZodType; export declare function setTeamDefaultBudgetBudgetsThresholdsToJSON(setTeamDefaultBudgetBudgetsThresholds: SetTeamDefaultBudgetBudgetsThresholds): string; export declare function setTeamDefaultBudgetBudgetsThresholdsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SetTeamDefaultBudgetResponseBody$inboundSchema: z.ZodType; /** @internal */ export type SetTeamDefaultBudgetResponseBody$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 SetTeamDefaultBudgetResponseBody$outboundSchema: z.ZodType; export declare function setTeamDefaultBudgetResponseBodyToJSON(setTeamDefaultBudgetResponseBody: SetTeamDefaultBudgetResponseBody): string; export declare function setTeamDefaultBudgetResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=setteamdefaultbudget.d.ts.map