import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "./models/index.js"; export declare class Users extends ClientSDK { /** * Create user or service account * * @remarks * Create a user account (type=user, email required; returns user + password for login) or a service account (type=service_account, roles required) for API/automation access. */ createUser(request: models.CreateUserRequest, options?: RequestOptions): Promise; /** * Get current user * * @remarks * Use to show the logged-in user's profile in the UI or to check permissions and roles for the current session. */ getUserInfo(options?: RequestOptions): Promise; /** * Update current user * * @remarks * Update the current authenticated user. Supports name and metadata updates. */ updateUser(request: models.UpdateUserRequest, options?: RequestOptions): Promise; /** * Query users * * @remarks * Use when listing or searching service accounts in an admin UI, or when auditing who has API access and which roles they have. */ queryUser(request: models.UserFilter, options?: RequestOptions): Promise; /** * Update service account * * @remarks * Update a service account by ID (name only). */ updateServiceAccount(id: string, body: models.UpdateServiceAccountRequest, options?: RequestOptions): Promise; /** * Delete service account * * @remarks * Soft-delete (archive) a service account by ID. */ deleteServiceAccount(id: string, options?: RequestOptions): Promise; /** * Update user roles * * @remarks * Update the roles of a user account (not service accounts — their roles are fixed at creation). Restricted to super_admin; a caller cannot update their own roles. Blocked with a 400 if the user has any active (published, unexpired) API key in any environment, since a key's permissions are snapshotted at creation time and would otherwise silently keep running on the old roles; the error lists the active keys grouped by environment ID so the caller can prompt to expire them first, then retry. */ updateUserRoles(id: string, body: models.UpdateUserRolesRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=users.d.ts.map