oapi: finish users

This commit is contained in:
Puyodead1
2023-04-13 15:39:31 -04:00
parent 1ce7879ee8
commit 860b9d583e
14 changed files with 14995 additions and 71 deletions
+10 -1
View File
@@ -1,6 +1,15 @@
import { UserSettings } from "../../entities";
import { BackupCode, UserSettings } from "../../entities";
export interface TokenResponse {
token: string;
settings: UserSettings;
}
export interface TokenOnlyResponse {
token: string;
}
export interface TokenWithBackupCodesResponse {
token: string;
backup_codes: BackupCode[];
}
+2 -9
View File
@@ -1,5 +1,5 @@
import { DmChannelDTO } from "../../dtos";
import { Guild, PrivateUser, PublicUser, User } from "../../entities";
import { BackupCode, Guild, PrivateUser, PublicUser } from "../../entities";
export type PublicUserResponse = PublicUser;
export type PrivateUserResponse = PrivateUser;
@@ -12,11 +12,4 @@ export type UserGuildsResponse = Guild[];
export type UserChannelsResponse = DmChannelDTO[];
export interface UserBackupCodesResponse {
expired: unknown;
user: User;
code: string;
consumed: boolean;
id: string;
}
[];
export type UserBackupCodesResponse = BackupCode[];
@@ -0,0 +1,4 @@
export interface WebAuthnCreateResponse {
name: string;
id: string;
}
+1
View File
@@ -44,4 +44,5 @@ export * from "./UserProfileResponse";
export * from "./UserRelationshipsResponse";
export * from "./UserRelationsResponse";
export * from "./UserResponse";
export * from "./WebAuthnCreateResponse";
export * from "./WebhookCreateResponse";