import { PasswordResetRequest } from '../models/PasswordResetRequest'; import { PasswordReset } from '../models/PasswordReset'; import { RequestOptions } from '../models/RequestOptions'; declare class ForgottenPassword { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * Send a verification code. Sends a temporary verification code via email, which must subsequently be passed in a Reset Password call. The verification code expires in 120 minutes. * Check out the {@link https://ordercloud.io/api-reference/authentication-and-authorization/forgotten-password/send-verification-code|api docs} for more info * * @param passwordResetRequest Required fields: ClientID * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ SendVerificationCode(passwordResetRequest: PasswordResetRequest, requestOptions?: RequestOptions): Promise; /** * Reset a password by verification code. * Check out the {@link https://ordercloud.io/api-reference/authentication-and-authorization/forgotten-password/reset-password-by-verification-code|api docs} for more info * * @param verificationCode Verification code of the password reset. * @param passwordReset Required fields: ClientID * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ResetPasswordByVerificationCode(verificationCode: string, passwordReset: PasswordReset, requestOptions?: RequestOptions): Promise; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * ForgottenPassword.As().List() // lists ForgottenPassword using the impersonated users' token */ As(): this; } declare const _default: ForgottenPassword; export default _default;