45 lines
975 B
TypeScript
45 lines
975 B
TypeScript
declare namespace REST {
|
|
export namespace To {
|
|
export interface Post {
|
|
'/auth/login': {
|
|
email: string;
|
|
password: string;
|
|
}
|
|
'/auth/register': {
|
|
email: string;
|
|
username: string;
|
|
password: string;
|
|
}
|
|
'/auth/change-password': {
|
|
email: string;
|
|
oldPassword: string;
|
|
newPassword: string;
|
|
}
|
|
}
|
|
}
|
|
|
|
export namespace From {
|
|
export interface Get {
|
|
'/users/entities': {
|
|
channels: Entity.Channel[];
|
|
guilds: Entity.Guild[];
|
|
members: Entity.GuildMember[];
|
|
roles: Entity.Role[];
|
|
users: Entity.User[];
|
|
}
|
|
'/auth/email/verify-email': {
|
|
message?: 'Email sent';
|
|
}
|
|
'/auth/verify': {
|
|
token?: string;
|
|
message?: 'Email verified' | 'Password reset';
|
|
}
|
|
}
|
|
export interface Post {
|
|
'/auth/change-password': {
|
|
message: string;
|
|
token: string;
|
|
}
|
|
}
|
|
}
|
|
} |