import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; export declare class Budgets extends ClientSDK { /** * List budgets * * @remarks * Cluster admins see all budgets; org admins see their org's budgets (including member budgets and per-member default budgets) plus budgets on API keys in their org. */ list(options?: RequestOptions): Promise; /** * List org budgets * * @remarks * Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. */ getOrg(request: operations.GetOrgBudgetsRequest, options?: RequestOptions): Promise; /** * Set an org budget * * @remarks * Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. */ setOrg(request: operations.SetOrgBudgetRequest, options?: RequestOptions): Promise; /** * Delete an org budget * * @remarks * Removes the org's budget for the given owner; enforcement and alerts stop. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. */ deleteOrg(request: operations.DeleteOrgBudgetRequest, options?: RequestOptions): Promise; /** * List org budget events * * @remarks * Returns recent threshold-alert and block events for the org's budgets. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. */ orgEvents(request: operations.ListOrgBudgetEventsRequest, options?: RequestOptions): Promise; /** * List apikey budgets * * @remarks * Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization. */ getApiKey(request: operations.GetApiKeyBudgetsRequest, options?: RequestOptions): Promise; /** * Set an apikey budget * * @remarks * Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend. Callable by cluster admins, or org admins for API keys in their own organization. */ setApiKey(request: operations.SetApiKeyBudgetRequest, options?: RequestOptions): Promise; /** * Delete an apikey budget * * @remarks * Removes the apikey's budget for the given owner; enforcement and alerts stop. Callable by cluster admins, or org admins for API keys in their own organization. */ deleteApiKey(request: operations.DeleteApiKeyBudgetRequest, options?: RequestOptions): Promise; /** * List apikey budget events * * @remarks * Returns recent threshold-alert and block events for the apikey's budgets. Callable by cluster admins, or org admins for API keys in their own organization. */ apiKeyEvents(request: operations.ListApiKeyBudgetEventsRequest, options?: RequestOptions): Promise; /** * List user budgets * * @remarks * Returns the user's budgets in the target org (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for users in their own organization (owner=org). */ getUser(request: operations.GetUserBudgetsRequest, options?: RequestOptions): Promise; /** * Set a user budget * * @remarks * Creates or updates a budget for the user in the target org. One budget per (scope, owner); editing re-evaluates against live spend. An explicit user budget replaces the org's per-user default budget of the same owner and period for this user (exemption-by-override — it may raise or tighten it); different-period defaults, org budgets, and API-key budgets still apply. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for users in their own organization (owner=org). */ setUser(request: operations.SetUserBudgetRequest, options?: RequestOptions): Promise; /** * Delete a user budget * * @remarks * Removes the user's budget for the given owner; the org's per-user default budget (if any) applies to them again. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for users in their own organization (owner=org). */ deleteUser(request: operations.DeleteUserBudgetRequest, options?: RequestOptions): Promise; /** * List user budget events * * @remarks * Returns recent threshold-alert and block events for the user's budgets in the target org. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for users in their own organization (owner=org). */ userEvents(request: operations.ListUserBudgetEventsRequest, options?: RequestOptions): Promise; /** * List team budgets * * @remarks * Returns the team's budgets in the target org (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for teams in their own organization (owner=org). */ getTeam(request: operations.GetTeamBudgetsRequest, options?: RequestOptions): Promise; /** * Set a team budget * * @remarks * Creates or updates a budget for the team in the target org. One budget per (scope, owner); editing re-evaluates against live spend. An explicit team budget replaces the org's per-team default budget of the same owner and period for this team (exemption-by-override — it may raise or tighten it); different-period defaults, org budgets, and API-key budgets still apply. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for teams in their own organization (owner=org). */ setTeam(request: operations.SetTeamBudgetRequest, options?: RequestOptions): Promise; /** * Delete a team budget * * @remarks * Removes the team's budget for the given owner; the org's per-team default budget (if any) applies to them again. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for teams in their own organization (owner=org). */ deleteTeam(request: operations.DeleteTeamBudgetRequest, options?: RequestOptions): Promise; /** * List team budget events * * @remarks * Returns recent threshold-alert and block events for the team's budgets in the target org. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for teams in their own organization (owner=org). */ teamEvents(request: operations.ListTeamBudgetEventsRequest, options?: RequestOptions): Promise; /** * List external user budgets * * @remarks * Returns the external user's budgets in the target org (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for external users in their own organization (owner=org). */ getExternalUser(request: operations.GetExternalUserBudgetsRequest, options?: RequestOptions): Promise; /** * Set a external user budget * * @remarks * Creates or updates a budget for the external user in the target org. One budget per (scope, owner); editing re-evaluates against live spend. An explicit external user budget replaces the org's per-external user default budget of the same owner and period for this external user (exemption-by-override — it may raise or tighten it); different-period defaults, org budgets, and API-key budgets still apply. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for external users in their own organization (owner=org). */ setExternalUser(request: operations.SetExternalUserBudgetRequest, options?: RequestOptions): Promise; /** * Delete a external user budget * * @remarks * Removes the external user's budget for the given owner; the org's per-external user default budget (if any) applies to them again. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for external users in their own organization (owner=org). */ deleteExternalUser(request: operations.DeleteExternalUserBudgetRequest, options?: RequestOptions): Promise; /** * List external user budget events * * @remarks * Returns recent threshold-alert and block events for the external user's budgets in the target org. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for external users in their own organization (owner=org). */ externalUserEvents(request: operations.ListExternalUserBudgetEventsRequest, options?: RequestOptions): Promise; /** * List per-user default budgets * * @remarks * Returns the org's per-user default budgets (self-set and/or operator ceiling). A default budget applies to every user in the org against that user's own spend counter, unless an explicit user budget of the same owner and period exists for them. It has no spend gauge of its own. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ getUserDefault(request: operations.GetUserDefaultBudgetsRequest, options?: RequestOptions): Promise; /** * Set a per-user default budget * * @remarks * Creates or updates the org's per-user default budget: a cap applying to EACH user in the org individually (not in aggregate), unless an explicit user budget of the same owner and period exists for them. Threshold alerts and blocks fire per user. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ setUserDefault(request: operations.SetUserDefaultBudgetRequest, options?: RequestOptions): Promise; /** * Delete a per-user default budget * * @remarks * Removes the org's per-user default budget for the given owner; only explicit user budgets remain. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ deleteUserDefault(request: operations.DeleteUserDefaultBudgetRequest, options?: RequestOptions): Promise; /** * List per-user default budget events * * @remarks * Returns recent threshold-alert and block events for the org's per-user default budgets. Each event's target_id names the user it fired for. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ userDefaultEvents(request: operations.ListUserDefaultBudgetEventsRequest, options?: RequestOptions): Promise; /** * List per-team default budgets * * @remarks * Returns the org's per-team default budgets (self-set and/or operator ceiling). A default budget applies to every team in the org against that team's own spend counter, unless an explicit team budget of the same owner and period exists for them. It has no spend gauge of its own. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ getTeamDefault(request: operations.GetTeamDefaultBudgetsRequest, options?: RequestOptions): Promise; /** * Set a per-team default budget * * @remarks * Creates or updates the org's per-team default budget: a cap applying to EACH team in the org individually (not in aggregate), unless an explicit team budget of the same owner and period exists for them. Threshold alerts and blocks fire per team. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ setTeamDefault(request: operations.SetTeamDefaultBudgetRequest, options?: RequestOptions): Promise; /** * Delete a per-team default budget * * @remarks * Removes the org's per-team default budget for the given owner; only explicit team budgets remain. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ deleteTeamDefault(request: operations.DeleteTeamDefaultBudgetRequest, options?: RequestOptions): Promise; /** * List per-team default budget events * * @remarks * Returns recent threshold-alert and block events for the org's per-team default budgets. Each event's target_id names the team it fired for. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ teamDefaultEvents(request: operations.ListTeamDefaultBudgetEventsRequest, options?: RequestOptions): Promise; /** * List per-external user default budgets * * @remarks * Returns the org's per-external user default budgets (self-set and/or operator ceiling). A default budget applies to every external user in the org against that external user's own spend counter, unless an explicit external user budget of the same owner and period exists for them. It has no spend gauge of its own. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ getExternalUserDefault(request: operations.GetExternalUserDefaultBudgetsRequest, options?: RequestOptions): Promise; /** * Set a per-external user default budget * * @remarks * Creates or updates the org's per-external user default budget: a cap applying to EACH external user in the org individually (not in aggregate), unless an explicit external user budget of the same owner and period exists for them. Threshold alerts and blocks fire per external user. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ setExternalUserDefault(request: operations.SetExternalUserDefaultBudgetRequest, options?: RequestOptions): Promise; /** * Delete a per-external user default budget * * @remarks * Removes the org's per-external user default budget for the given owner; only explicit external user budgets remain. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ deleteExternalUserDefault(request: operations.DeleteExternalUserDefaultBudgetRequest, options?: RequestOptions): Promise; /** * List per-external user default budget events * * @remarks * Returns recent threshold-alert and block events for the org's per-external user default budgets. Each event's target_id names the external user it fired for. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ externalUserDefaultEvents(request: operations.ListExternalUserDefaultBudgetEventsRequest, options?: RequestOptions): Promise; /** * Get display currency */ getCurrency(options?: RequestOptions): Promise; /** * Set display currency * * @remarks * ISO 4217 code used for display on budgets and cost reports. No conversion is performed anywhere. */ setCurrency(request: operations.SetCurrencyRequestBody, options?: RequestOptions): Promise; } //# sourceMappingURL=budgets.d.ts.map