summary refs log tree commit diff
path: root/src/util/schemas/responses/UserResponse.ts
blob: 21c30cd5c200ccc007cbc86d7ceb29cc0629b343 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { DmChannelDTO } from "../../dtos";
import { Guild, PrivateUser, PublicUser, User } from "../../entities";

export type PublicUserResponse = PublicUser;
export type PrivateUserResponse = PrivateUser;

export interface UserUpdateResponse extends PrivateUserResponse {
	newToken?: string;
}

export type UserGuildsResponse = Guild[];

export type UserChannelsResponse = DmChannelDTO[];

export interface UserBackupCodesResponse {
	expired: unknown;
	user: User;
	code: string;
	consumed: boolean;
	id: string;
}
[];