lfk-client-js/dist/services/MeService.d.ts
Nicolai Ort 045f76f3bd
All checks were successful
continuous-integration/drone Build is passing
🚀New lib version v0.6.4 [CI SKIP]
2021-03-19 16:46:13 +00:00

36 lines
1.4 KiB
TypeScript

import type { ResponseUser } from '../models/ResponseUser';
import type { ResponseUserPermissions } from '../models/ResponseUserPermissions';
import type { UpdateUser } from '../models/UpdateUser';
export declare class MeService {
/**
* Get
* Lists all information about yourself.
* @returns ResponseUser
* @throws ApiError
*/
static meControllerGet(): Promise<ResponseUser>;
/**
* Put
* Update the yourself. <br> You can't edit your own permissions or group memberships here - Please use the /api/users/:id enpoint instead. <br> Please remember that ids can't be changed.
* @param requestBody UpdateUser
* @returns ResponseUser
* @throws ApiError
*/
static meControllerPut(requestBody?: UpdateUser): Promise<ResponseUser>;
/**
* Remove
* Delete yourself. <br> You have to confirm your decision by providing the ?force=true query param. <br> If there are any permissions directly granted to you they will get deleted as well.
* @param force
* @returns ResponseUser
* @throws ApiError
*/
static meControllerRemove(force?: boolean): Promise<ResponseUser>;
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* @throws ApiError
*/
static meControllerGetPermissions(): Promise<ResponseUserPermissions>;
}