UNPKG

@bitzonegaming/roleplay-engine-sdk

Version:
22 lines (21 loc) 878 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserInfoApi = void 0; class UserInfoApi { constructor(client) { this.client = client; } /** * Returns the user information of the authenticated user, including account policies, username, and email.<br/>This endpoint performs server-level operations. The token does not need to be associated with any account or character.<br/><br/> This endpoint requires authorization, and supports following token types:<br/>🔓 [SSO Token]<br/>🔓 [Access Token]<br/>🔓 [Session Token] * @summary Get user info * @param {*} [options] Override http request option. * @throws {EngineError} */ getUserInfo(options) { return this.client.get({ url: 'user-info', options, }); } } exports.UserInfoApi = UserInfoApi;