summary refs log tree commit diff
path: root/src/util/schemas/responses/UserResponse.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-25 16:09:04 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 15:38:52 -0400
commit1ce7879ee85ea5bb5efaff3cf950e65513098d3c (patch)
tree825ae4c842b096736221668e59fc4c815998aec3 /src/util/schemas/responses/UserResponse.ts
parentoapi: stickers (diff)
downloadserver-1ce7879ee85ea5bb5efaff3cf950e65513098d3c.tar.xz
oapi: users progress
Diffstat (limited to 'src/util/schemas/responses/UserResponse.ts')
-rw-r--r--src/util/schemas/responses/UserResponse.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/util/schemas/responses/UserResponse.ts b/src/util/schemas/responses/UserResponse.ts
new file mode 100644
index 00000000..21c30cd5
--- /dev/null
+++ b/src/util/schemas/responses/UserResponse.ts
@@ -0,0 +1,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;
+}
+[];