oapi: finish users
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -44,4 +44,5 @@ export * from "./UserProfileResponse";
|
||||
export * from "./UserRelationshipsResponse";
|
||||
export * from "./UserRelationsResponse";
|
||||
export * from "./UserResponse";
|
||||
export * from "./WebAuthnCreateResponse";
|
||||
export * from "./WebhookCreateResponse";
|
||||
|
||||
Reference in New Issue
Block a user