import { ResetPinRequest } from './model/resetPinRequest'; import { LoginPinDeviceRequest } from "./model/loginPinDeviceRequest"; import { IamAccessToken } from "./model/iamAccessToken"; import { RegistrationRequest } from "./model/registrationRequest"; import { RegistrationResponse } from "./model/registrationResponse"; import { ActivationRequest } from "./model/activationRequest"; import { ForgotPinRequest } from "./model/forgotPinRequest"; import { ChallengeRequest } from './model/challengeRequest'; import { ChallengeResponse } from './model/challengeResponse'; import { EmailRegistrationRequest } from './model/emailRegistrationRequest'; import { EmailRegistrationResponse } from './model/emailRegistrationResponse'; import { ForgotPinResponse } from "./model/forgotPinResponse"; import { ForgotPinChallengeRequest } from "./model/forgotPinChallengeRequest"; import { ResendRegistrationChallengeRequest } from "./model/resendRegistrationChallengeRequest"; import { ResendRegistrationChallengeResponse } from "./model/resendRegistrationChallengeResponse"; import { ForgotPinResendChallengeRequest } from "./model/forgotPinResendChallengeRequest"; import { ForgotPinResendChallengeResponse } from "./model/forgotPinResendChallengeResponse"; export declare class HaventecOidc { private readonly redirectUri; private readonly service; private readonly landingPage; constructor(iamClientId: string, realm: string, iamUrl: string, redirectUri: string); /** * This function is called when a registered device attempts to authenticate * a successful authentication will resut in a JWT * * @param loginRequest LoginStructure to authenticate a device * @returns The result of a successful login will return the rolled authKey along with a userJwt */ loginPinDevice(loginRequest: LoginPinDeviceRequest): Promise; /** * This function is used to register a new user or device. * * @param registrationRequest Registration structure for initial registration * @returns A unique registration ID to be sent to be used during the activate request */ registerUserOrDevice(registrationRequest: RegistrationRequest): Promise; /** * This function is used to valide the otpValue sent to either the mobile or email account * @param challengeRequest A structure containing the required information for validation * @param registrationUuid The registration uuid from the registerUserOrDevice * @returns A successful response and next steps */ validateChallenge(challengeRequest: ChallengeRequest, registrationUuid: string): Promise; /** * This function is used to register an email address after a mobile has been registered * @param emailRegistrationRequest The required information to register an email addres * @param registrationUuid The registraion uuid from the the registerUserOrDevice * @returns A response of the next steps to perform */ updateRegistrationWithEmail(emailRegistrationRequest: EmailRegistrationRequest, registrationUuid: string): Promise; /** * This functionn is called to activate the new user or device. The successful result will be an authenticated Jwt * @param activationRequest Activation data required to authenticate a new user or device * @param registrationUuid The registration uuid from the registerUserOrDevice * @returns The result of a successful login will return the rolled authKey along with a userJwt */ activateUserOrDevice(activationRequest: ActivationRequest, registrationUuid: string): Promise; /** * This function kicks off a reset pin by requesting a resetToken for a given device * @param forgotPinRequest The information required to request a token to reset a device * @returns A boolean true as a promise, otherwise a reject on failure */ forgotPin(forgotPinRequest: ForgotPinRequest): Promise; /** * Thie function completes the reset pin phase by using the emailed token requested in the forgotPin request * @param resetPinRequest The information required to perform a reset pin for a device * @param requestUuid The request uuid from the forgotPin * @returns A promise to an IamAccessToken containing the authenticated user. */ resetPin(resetPinRequest: ResetPinRequest, requestUuid: string): Promise; /** * This method clears down any authentication tokens within the IAM * @param iamAccessToken The access token returned on a login event */ logout(iamIdToken: string): Promise; /** * This function is used to valid the otpValue sent to either the mobile or email account * @param forgotPinChallengeRequest A structure containing the required information for validation * @param requestUuid The request uuid from the forgotPin * @returns A successful response and next steps */ forgotPinValidateChallenge(forgotPinChallengeRequest: ForgotPinChallengeRequest, requestUuid: string): Promise; /** * This function is used to request for resending the challenge for the current registration step * @param resendRegistrationChallengeRequest A structure containing the required information for resend challenge request * @param registrationUuid The registration uuid * @returns A successful response and next steps */ resendRegistrationChallenge(resendRegistrationChallengeRequest: ResendRegistrationChallengeRequest, registrationUuid: string): Promise; /** * Request to resend forgot pin challenge to mobile or email if the previous challenge is expired or lost * * @param request forgot pin resend challenge Request contains *

clientId : e.g. 3dc7f13c-aac0-40d9-b9f1-e73c42b412b5 *

requestSession : session id of the request session e.g. jIgW1g73xOpdeqAw1HWplh1AZ5rYxEYfkuNKvK0Xu7H1gMgo+UimGjVFXiMV+jWvmFDekTOBYIzeWe6wGoQZEoPOEa0aYtHtCK7SXUb0RJU6Ovl6BQg4fp87+b8EoqhpzDunqbYkzA8HojoCBTrZF6mEmljhko5f+HfLTRQXqgU= * @param requestUuid request uuid e.g. 2c4502ac-ff9d-4b63-8f00-66c27cd01111 * @param params Oidc parameters from the startOidc transaction * @returns Response Contains response status and next action or step if successful */ forgotPinResendChallenge(request: ForgotPinResendChallengeRequest, requestUuid: string): Promise; } //# sourceMappingURL=haventecOidc.d.ts.map