/** * Project API namespace — API token management. */ import type { HttpClient } from '../HttpClient.js'; import { BaseResource } from '../base/BaseResource.js'; /** Project API token management. */ export declare class ProjectTokens extends BaseResource { constructor(http: HttpClient); /** * Create a new project-scoped API token. * * @param body - Token creation payload (friendly name, scopes, etc.). * @returns The newly-created token record, including the secret value * (which is typically returned ONCE and not retrievable again). * @throws {RestError} On any non-2xx HTTP response. */ create(body: any): Promise; /** * Update a project API token's attributes (e.g. friendly name). * * @param tokenId - Unique identifier of the token. * @param body - Partial update payload. * @returns The updated token record. * @throws {RestError} On any non-2xx HTTP response. */ update(tokenId: string, body: any): Promise; /** * Revoke and delete a project API token. * * @param tokenId - Unique identifier of the token to revoke. * @returns The platform's delete response. * @throws {RestError} On any non-2xx HTTP response. */ delete(tokenId: string): Promise; } /** * Project API namespace. * * Access via `client.project.*`. Manages project-level resources like * secondary API tokens. */ export declare class ProjectNamespace { /** Project-scoped API token create / update / delete. */ readonly tokens: ProjectTokens; constructor(http: HttpClient); }