import type { RestLinks } from './common.js'; /** * User type values from Bitbucket Server. */ export type UserType = 'NORMAL' | 'SERVICE'; /** * Bitbucket Server user object (RestUser schema from Swagger). */ export interface RestUser { /** User's display name */ displayName: string; /** User's email address */ emailAddress?: string; /** Unique user ID */ id?: number; /** User's short name/username */ name: string; /** User's slug */ slug: string; /** User type */ type?: UserType; /** Whether user is active */ active?: boolean; /** Links */ links?: RestLinks; } /** * User object as returned by Bitbucket API. * Alias for RestUser since base type now includes all API fields. */ export type RestUserApiResponse = RestUser; /** * Parameters for getProfile method */ export interface GetUserProfileParams { /** The username/slug of the Bitbucket Server user */ username: string; } /** * Parameters for getAll method */ export interface GetAllUsersParams { /** Filter users by username, name or email address (partial match) */ filter?: string; } //# sourceMappingURL=user.d.ts.map