import type { PasswordChangeDetails } from '../models/PasswordChangeDetails.js'; import type { Person } from '../models/Person.js'; import type { UserDetailsForUpdate } from '../models/UserDetailsForUpdate.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class UserService { /** * Change password * Change the password for the current user. * * Validation Rules: * * - New password supplied cannot be null or blank * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/current/password` * @param requestBody password change details * @returns void * @throws ApiError */ static changePassword1(requestBody?: PasswordChangeDetails): CancelablePromise; /** * Get information about anonymous user type * Get information about how anonymous is represented in Confluence. Example request URI(s): * * `http://example.com/confluence/rest/api/user/anonymous` * @param expand properties to expand on the user. * @returns Person Returns a full JSON representation of a user. * @throws ApiError */ static getAnonymous(expand?: string): CancelablePromise; /** * Get current user * Get information about the current logged in user. Example request URI(s): * * `http://example.com/confluence/rest/api/user/current` * @param expand properties to expand on the user. * @returns Person Returns a full JSON representation of a user. * @throws ApiError */ static getCurrent(expand?: string): CancelablePromise; /** * Update details of the current user * Change the current user's details. * * Validation Rules: * - Full name cannot be blank, containing <> characters or be reserved by Confluence. * - Email must be a valid email address. * - Current password must be supplied for changing email address. * * Example PUT request URI(s): * `http://example.com/confluence/rest/api/user/current` * * @param requestBody User details * @returns void * @throws ApiError */ static updateUser1(requestBody?: UserDetailsForUpdate): CancelablePromise; /** * Get groups * Get a paginated collection of groups that the given user is a member of. Example request URI(s): * * `http://example.com/confluence/rest/api/user/memberof?username=jblogs` * `http://example.com/confluence/rest/api/user/memberof?key=402880824ff933a4014ff9345d7c0002` * @param expand properties to expand on the user. * @param limit the limit of the number of users to return, this may be restricted by fixed system limits. * @param start the start point of the collection to return. This must be non-negative. Default value is 0. * @param key userkey of the user to request from this resource * @param username userName of the user to get the groups for. * @returns any Returns a full JSON representation of a user. * @throws ApiError */ static getGroups1(expand?: string, limit?: string, start?: string, key?: string, username?: string): CancelablePromise<{ results?: Array; totalCount?: number; start?: number; limit?: number; size?: number; _links?: { base?: string; context?: string; self?: string; next?: string; prev?: string; }; }>; /** * Get user * Get information about a user identified by either user key or username. Example request URI(s): * * `http://example.com/confluence/rest/api/user?username=jblogs` * `http://example.com/confluence/rest/api/user?key=402880824ff933a4014ff9345d7c0002` * @param expand properties to expand on the user. * @param key userkey of the user to request from this resource. * @param username userName of the user to create the new watcher for. * @returns Person Returns a full JSON representation of a user * @throws ApiError */ static getUser(expand?: string, key?: string, username?: string): CancelablePromise; /** * Get registered users * Gets a paginated collection of all registered users, including but not limited to: * * - Disabled users * - Enabled users * - Enabled users which count towards the license count on the site * - Enabled users which do not count towards the license count on the site * - Enabled users which have "can use" global permissions * - Enabled users which do not have "can use" global permissions * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/list` * `http://example.com/confluence/rest/api/user/list?start=0` * `http://example.com/confluence/rest/api/user/list?start=0&limit=100` * `http://example.com/confluence/rest/api/user/list?start=0&limit=100&expand=status` * @param expand properties to expand on the user. * @param limit the limit of the number of users to return, this may be restricted by fixed system limits. * @param start the start point of the collection to return. This must be non-negative. Default value is 0. * @returns any returns a paginated collection of users. * @throws ApiError */ static getUsers(expand?: string, limit?: string, start?: string): CancelablePromise<{ results?: Array; totalCount?: number; start?: number; limit?: number; size?: number; _links?: { base?: string; context?: string; self?: string; next?: string; prev?: string; }; }>; } //# sourceMappingURL=UserService.d.ts.map