import { ResetPinResponse } from './model/resetPinResponse'; import { ActivationRequest } from "./model/activationRequest"; import { ActivationResponse } from "./model/activationResponse"; import { LoginPinDeviceRequest } from "./model/loginPinDeviceRequest"; import { LoginPinDeviceResponse } from "./model/loginPinDeviceResponse"; import { OidcParams } from "./model/oidcParams"; import { RegistrationRequest } from "./model/registrationRequest"; import { RegistrationResponse } from "./model/registrationResponse"; import { ForgotPinRequest } from "./model/forgotPinRequest"; import { ResetPinRequest } from "./model/resetPinRequest"; import { ChallengeResponse } from './model/challengeResponse'; import { ChallengeRequest } from './model/challengeRequest'; import { EmailRegistrationRequest } from './model/emailRegistrationRequest'; import { EmailRegistrationResponse } from './model/emailRegistrationResponse'; import { ForgotPinResponse } from "./model/forgotPinResponse"; import { ForgotPinChallengeRequest } from "./model/forgotPinChallengeRequest"; import { ResendRegistrationChallengeResponse } from "./model/resendRegistrationChallengeResponse"; import { ResendRegistrationChallengeRequest } from "./model/resendRegistrationChallengeRequest"; import { ForgotPinResendChallengeRequest } from "./model/forgotPinResendChallengeRequest"; import { ForgotPinResendChallengeResponse } from "./model/forgotPinResendChallengeResponse"; export default class LandingPage { private readonly LP_API_URI; private readonly LOGIN_PIN_DEVICE; private readonly REGISTRATION_PRE; private readonly SESSION_ENDPOINT; private readonly CHALLENGE_VALIDATE_ENDPOINT; private readonly RESEND_CHALLENGE_ENDPOINT; private readonly ACTIVATE_ENDPOINT; private readonly FORGOT_PIN_ENDPOINT; private readonly RESET_PIN_ENDPOINT; private readonly SUCCESS; private readonly ERROR; private readonly HEADERS; /** * Login call to the OIDC Landing page * @param request All the required information to assert the device and user are who they say they are * @param params IAM parameters used to track the authentication was from the IAM * @returns A token that is given to the IAM in exchange for a Jwt, along with an updated authKey */ loginPinDevice(request: LoginPinDeviceRequest, params: OidcParams): Promise; /** * Registration of the a user and/or device within the OIDC Landing page * @param request The information needed to register a device with the OIDC landing page * @param params IAM parameters passed so we can work out the request was initiated from a trusted source * @returns A response containing a registraion token. An out of band email or SMS is also sent from the OIDC */ registerUserOrDevice(request: RegistrationRequest, params: OidcParams): Promise; /** * Validate the otp entered by the user against the registration flow information * @param request Incoming registration information * @param registrationUuid Registation uuid from the initial transactions * @param params Oidc parameters from the startOidc transaction * @returns A result from the challenge */ validateChallenge(request: ChallengeRequest, registrationUuid: string, params: OidcParams): Promise; /** * Validate the otp entered by the user against the registration flow information * Request for resend sending challenge for the current step * @param request Incoming resend challenge information * @param registrationUuid Registration uuid from the initial transactions * @param params Oidc parameters from the startOidc transaction * @returns A result from resend challenge */ resendRegistrationChallenge(request: ResendRegistrationChallengeRequest, registrationUuid: string, params: OidcParams): Promise; /** * Request Haventec Connect 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, params: OidcParams): Promise; /** * Add an email address as part of the registration flow * @param request The details to register an email addres * @param registrationUuid The registration uuid from the initial transaction * @param params oidc parameters from the startOidc flow * @returns The next step if successful */ updateRegistrationWithEmail(request: EmailRegistrationRequest, registrationUuid: string, params: OidcParams): Promise; /** * Activation of a device based using the results from the registration call * @param request The activation request parameters * @param registrationUuid The registration uuid from the initial transaction * @param params The oidc parameters collected from startOidc * @returns An activation response token and associated device information */ activateUserOrDevice(request: ActivationRequest, registrationUuid: string, params: OidcParams): Promise; /** * This is called to kick off a reset pin request. A reset token will be emailed on success * @param request The informaiton required to reset a device * @param params The oidc parameters collected from a previous call * @returns True if there were no errors */ forgotPin(request: ForgotPinRequest, params: OidcParams): Promise; /** * This method is called after forgot Pin with the reset token * @param request Contains all the required items to reset the PIN * @param requestUuid Request uuid from the initial transactions * @param params The oidc parameters collected from start oidc * @returns A promise to the reset pin response */ resetPin(request: ResetPinRequest, requestUuid: string, params: OidcParams): Promise; /** * Validate the otp entered by the user against the forgot pin flow information * @param request Incoming registration information * @param requestUuid Request uuid from the initial transactions * @param params Oidc parameters from the startOidc transaction * @returns A result from the challenge */ forgotPinValidateChallenge(request: ForgotPinChallengeRequest, requestUuid: string, params: OidcParams): Promise; /*** * Method to handle the error while doing API calls * * @param apiCall Represents API calls made on Haventec Connect */ private executeCall; } //# sourceMappingURL=landingPage.d.ts.map