import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * Create and manage projects for resource isolation within an organization. */ export declare class Limits extends APIResource { /** * Get the resource limit overrides for a project. Null values mean no * project-level cap (org limit applies). * * @example * ```ts * const projectLimits = await client.projects.limits.retrieve( * 'id', * ); * ``` */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Update resource limit overrides for a project. Only fields present in the * request are modified. Set a field to 0 to remove that limit cap; omit a field to * leave it unchanged. * * @example * ```ts * const projectLimits = await client.projects.limits.update( * 'id', * ); * ``` */ update(id: string, body: LimitUpdateParams, options?: RequestOptions): APIPromise; } export interface ProjectLimits { /** * Maximum concurrent app invocations for this project. Null means no project-level * cap. */ max_concurrent_invocations?: number | null; /** * Maximum concurrent browser sessions for this project. Null means no * project-level cap. */ max_concurrent_sessions?: number | null; /** * Maximum pooled sessions capacity for this project. Null means no project-level * cap. */ max_pooled_sessions?: number | null; } export interface UpdateProjectLimitsRequest { /** * Maximum concurrent app invocations for this project. Set to 0 to remove the cap; * omit to leave unchanged. */ max_concurrent_invocations?: number | null; /** * Maximum concurrent browser sessions for this project. Set to 0 to remove the * cap; omit to leave unchanged. */ max_concurrent_sessions?: number | null; /** * Maximum pooled sessions capacity for this project. Set to 0 to remove the cap; * omit to leave unchanged. */ max_pooled_sessions?: number | null; } export interface LimitUpdateParams { /** * Maximum concurrent app invocations for this project. Set to 0 to remove the cap; * omit to leave unchanged. */ max_concurrent_invocations?: number | null; /** * Maximum concurrent browser sessions for this project. Set to 0 to remove the * cap; omit to leave unchanged. */ max_concurrent_sessions?: number | null; /** * Maximum pooled sessions capacity for this project. Set to 0 to remove the cap; * omit to leave unchanged. */ max_pooled_sessions?: number | null; } export declare namespace Limits { export { type ProjectLimits as ProjectLimits, type UpdateProjectLimitsRequest as UpdateProjectLimitsRequest, type LimitUpdateParams as LimitUpdateParams, }; } //# sourceMappingURL=limits.d.ts.map