diff --git a/src/account.ts b/src/account.ts index 50b0132..63e76ae 100644 --- a/src/account.ts +++ b/src/account.ts @@ -10,6 +10,7 @@ import { PasswordResetVerifyRequest, PingResponse, postApiAccountPasswordResetRequest, + postApiAccountVerifyEmailResend, postApiAuthPing, RegisterRequest, UploadLimitResponse, @@ -124,6 +125,19 @@ export class AccountApi { return this.checkSuccessBool(ret); } + public async requestEmailVerification(): Promise { + let ret: AxiosResponse; + try { + ret = await postApiAccountVerifyEmailResend(this.buildOptions()); + } catch (e) { + return new AccountError( + (e as AxiosError).response?.data as string, + (e as AxiosError).response?.status as number, + ); + } + return this.checkSuccessBool(ret); + } + public async generateOtp(): Promise< boolean | OTPGenerateResponse | AccountError > {