/** * `grants` namespace — per-project capability grants for non-member * (agent / CI) principals (gateway `org-member-management`). Issue or revoke a * grant against `/projects/v1/:project_id/grants`. Mutations require the caller * to be an active owner of the project's owning org. * * Exposed both unscoped (`r.grants.create(projectId, …)`) and project-scoped * (`r.project(id).grants.create(…)`), mirroring `r.functions` / `r.jobs`. */ import type { Client } from "../kernel.js"; import type { CreateGrantInput, GrantCreateResult, GrantRevokeResult } from "./grants.types.js"; export declare class Grants { private readonly client; constructor(client: Client); /** * Issue a capability grant to a wallet for a project * (`POST /projects/v1/:project_id/grants`). Requires owner of the project's org. */ create(projectId: string, input: CreateGrantInput): Promise; /** * Revoke a capability grant * (`DELETE /projects/v1/:project_id/grants/:grant_id`). Requires owner of the * project's org. */ revoke(projectId: string, grantId: string): Promise; } //# sourceMappingURL=grants.d.ts.map