import { RegistrationRequest } from '../models/RegistrationRequest'; import { VerificationRequest } from '../models/VerificationRequest'; import { ForgotPasswordRequest } from '../models/ForgotPasswordRequest'; import { ForgottenPasswordResetRequest } from '../models/ForgottenPasswordResetRequest'; import { User } from '../models/User'; import { SelfServiceUnlockRequest } from '../models/SelfServiceUnlockRequest'; import { Confirmation } from '../models/Confirmation'; import { RequiredDeep } from '../models/RequiredDeep'; import { RequestOptions } from '../models/RequestOptions'; declare class Accounts { /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * Register via email address Provide an email address in the request body. You wil recieve an email with a verification code that can be used to complete the registration process. * * @param registrationRequest Email address of the user to add to the system * @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. */ Register(registrationRequest: RegistrationRequest, requestOptions?: RequestOptions): Promise; /** * Verify your email address Using the verification code you should have received in your email inbox send this request to complete your email verification * * @param verificationRequest Verification code from your inbox * @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. */ Verify(verificationRequest: VerificationRequest, requestOptions?: RequestOptions): Promise; /** * Send a forgot password email * * @param forgotPasswordRequest Email of the account you forgot the password to * @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. */ ForgotPassword(forgotPasswordRequest: ForgotPasswordRequest, requestOptions?: RequestOptions): Promise; /** * Reset password using a code from an email * * @param forgottenPasswordResetRequest Email of the account you forgot the password to * @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. */ ResetPassword(forgottenPasswordResetRequest: ForgottenPasswordResetRequest, requestOptions?: RequestOptions): Promise>; /** * Unlock an account that has been locked due to failed login attempts * * @param selfServiceUnlockRequest Using the verification code you should have received in your email inbox send this request to complete your self-service unlock * @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. */ Unlock(selfServiceUnlockRequest: SelfServiceUnlockRequest, requestOptions?: RequestOptions): Promise; /** * Confirm authorization with a code * * @param confirmation * @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. */ Confirm(confirmation: Confirmation, requestOptions?: RequestOptions): Promise; } declare const _default: Accounts; export default _default;