This commit is contained in:
Vendored
+3
-2
@@ -10,6 +10,7 @@ import type { RefreshAuth } from '../models/RefreshAuth';
|
||||
import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError';
|
||||
import type { ResetPassword } from '../models/ResetPassword';
|
||||
import type { ResponseAuth } from '../models/ResponseAuth';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError';
|
||||
import type { UserNotFoundError } from '../models/UserNotFoundError';
|
||||
export declare class AuthService {
|
||||
@@ -45,10 +46,10 @@ export declare class AuthService {
|
||||
* Get reset token
|
||||
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
|
||||
* @param requestBody CreateResetToken
|
||||
* @returns any
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerGetResetToken(requestBody?: CreateResetToken): Promise<(ResponseAuth | UserNotFoundError | UsernameOrEmailNeededError)>;
|
||||
static authControllerGetResetToken(requestBody?: CreateResetToken): Promise<ResponseEmpty>;
|
||||
/**
|
||||
* Reset password
|
||||
* Reset a user's utilising a valid password reset token. <br> This will set the user's password to the one you provided in the body. <br> To get a reset token post to /api/auth/reset with your username.
|
||||
|
||||
Vendored
+1
-1
@@ -56,7 +56,7 @@ class AuthService {
|
||||
* Get reset token
|
||||
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
|
||||
* @param requestBody CreateResetToken
|
||||
* @returns any
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerGetResetToken(requestBody) {
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
export declare class MailService {
|
||||
/**
|
||||
* Get
|
||||
* Sends a test email to the configured from-address.
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static mailControllerGet(): Promise<ResponseEmpty>;
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MailService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class MailService {
|
||||
/**
|
||||
* Get
|
||||
* Sends a test email to the configured from-address.
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async mailControllerGet() {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/mails/test`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.MailService = MailService;
|
||||
Reference in New Issue
Block a user