@ariusii/intersect.ts
Version:
The Intersect Engine API Client Library based on TS.
36 lines • 1.38 kB
TypeScript
/**
* This is the Users Class, it contains all the methods to handle the Users.
* Those actions require the Query Role. -> users.query API
* @class Users
* @link https://docs.freemmorpgmaker.com/en-US/api/v1/endpoints/users.html
* @author AriusII
*/
export declare class Users {
private _url;
private _token;
constructor(_url: string, _token: string);
usersList(page: number, pageSize: number, limit: number): Promise<any>;
userLookup(user: string): Promise<any>;
userRegister(user: string, password: string, email: string): Promise<any>;
checkPassword(user: string, password: string): Promise<any>;
changeEmail(user: string, password: string, email: string): Promise<any>;
changePassword(user: string, password: string, newPassword: string): Promise<any>;
sendEmailResetPassword(user: string): Promise<any>;
getCharacters(user: string): Promise<any>;
getCharacter(user: string, character: string): Promise<any>;
/**
* Need the Users.Manage Role
* @param user
* @param email
* @returns
*/
sudoChangeEmail(user: string, email: string): Promise<any>;
/**
* Need the Users.Manage Role
* @param user
* @param password
* @returns
*/
sudoChangePassword(user: string, password: string): Promise<any>;
}
//# sourceMappingURL=users.d.ts.map