import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Challenge } from '../model/models'; import { ChallengeAnswer } from '../model/models'; import { ListTOTPEnrollmentResponse } from '../model/models'; import { ListWebAuthNEnrollmentResponse } from '../model/models'; import { OneTimeUseActionChallengeResponse } from '../model/models'; import { TOTPEnrollment } from '../model/models'; import { WebAuthNEnrollment } from '../model/models'; import { Configuration } from '../configuration'; import { ChallengesServiceInterface, CreateChallengeRequestParams, CreateOneTimeUseActionRequestParams, CreateTotpEnrollmentRequestParams, CreateWebauthnEnrollmentRequestParams, DeleteChallengeRequestParams, DeleteTotpEnrollmentRequestParams, DeleteWebauthnEnrollmentRequestParams, GetAnswerRequestParams, GetChallengeRequestParams, GetTotpEnrollmentRequestParams, GetWebauthnEnrollmentRequestParams, ListTotpEnrollmentRequestParams, ListWebauthnEnrollmentsRequestParams, ReplaceChallengeRequestParams, UpdateTotpEnrollmentRequestParams, UpdateWebauthnEnrollmentRequestParams } from './challenges.serviceInterface'; import * as i0 from "@angular/core"; export declare class ChallengesService implements ChallengesServiceInterface { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private getAuth; private addToHttpParams; private addToHttpParamsRecursive; /** * create a challenge * Creates a challenge according to the provide specification. This challenge will persist for a period of time waiting for the challenge to be passed. It will eventually time out. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createChallenge(requestParameters: CreateChallengeRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; createChallenge(requestParameters: CreateChallengeRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; createChallenge(requestParameters: CreateChallengeRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * create a one time use action challenge * Creates a one time use challenge according to the provide specification. This challenge will persist for a period of time waiting for the challenge to be passed. It will eventually time out. If the challenge is accepted or declined, the system will perform an action according to the configuration provided on challenge creation and the provided answer. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createOneTimeUseAction(requestParameters: CreateOneTimeUseActionRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; createOneTimeUseAction(requestParameters: CreateOneTimeUseActionRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; createOneTimeUseAction(requestParameters: CreateOneTimeUseActionRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * create a TOTP challenge enrollment * Creates a TOTP challenge enrollment. The returned body will contain the key the user needs to enroll in their application. The enrollment is not complete until the user provides a valid answer. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createTotpEnrollment(requestParameters: CreateTotpEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; createTotpEnrollment(requestParameters: CreateTotpEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; createTotpEnrollment(requestParameters: CreateTotpEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * create a WebAuthN challenge enrollment * Initiates a WebAuthN challenge enrollment. The enrollment is not complete until the user provides a valid answer. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createWebauthnEnrollment(requestParameters: CreateWebauthnEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; createWebauthnEnrollment(requestParameters: CreateWebauthnEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; createWebauthnEnrollment(requestParameters: CreateWebauthnEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Delete the challenge specified by challenge_id * Delete the challenge specified by challenge_id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteChallenge(requestParameters: DeleteChallengeRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; deleteChallenge(requestParameters: DeleteChallengeRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; deleteChallenge(requestParameters: DeleteChallengeRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Delete the TOTP enrollment specified by totp id * Delete the TOTP enrollment specified by totp id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteTotpEnrollment(requestParameters: DeleteTotpEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; deleteTotpEnrollment(requestParameters: DeleteTotpEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; deleteTotpEnrollment(requestParameters: DeleteTotpEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Delete the WebAuthN enrollment specified by webauthn_id * Delete the WebAuthN enrollment specified by webauthn_id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteWebauthnEnrollment(requestParameters: DeleteWebauthnEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; deleteWebauthnEnrollment(requestParameters: DeleteWebauthnEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; deleteWebauthnEnrollment(requestParameters: DeleteWebauthnEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * answer a challenge * Checks whether the challenge answer is correct. If the challenge is not accepting answers, or the anwer is incorrect, a failure will be returned. Otherwise, the challenge will be considered answered and the user can log in. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getAnswer(requestParameters: GetAnswerRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getAnswer(requestParameters: GetAnswerRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getAnswer(requestParameters: GetAnswerRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Get the challenge specified by challenge_id * Get the challenge specified by challenge_id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getChallenge(requestParameters: GetChallengeRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getChallenge(requestParameters: GetChallengeRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getChallenge(requestParameters: GetChallengeRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Get the TOTP enrollment specified by totp_id * Get the TOTP enrollment specified by totp_id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getTotpEnrollment(requestParameters: GetTotpEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getTotpEnrollment(requestParameters: GetTotpEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getTotpEnrollment(requestParameters: GetTotpEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Get the WebAuthN enrollment specified by webauthn_id * Get the WebAuthN enrollment specified by webauthn_id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getWebauthnEnrollment(requestParameters: GetWebauthnEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getWebauthnEnrollment(requestParameters: GetWebauthnEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getWebauthnEnrollment(requestParameters: GetWebauthnEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * List the totp enrollment results * List the totp enrollment results * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ listTotpEnrollment(requestParameters: ListTotpEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; listTotpEnrollment(requestParameters: ListTotpEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; listTotpEnrollment(requestParameters: ListTotpEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * List the webauthn enrollments * List the webauthn enrollments * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ listWebauthnEnrollments(requestParameters: ListWebauthnEnrollmentsRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; listWebauthnEnrollments(requestParameters: ListWebauthnEnrollmentsRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; listWebauthnEnrollments(requestParameters: ListWebauthnEnrollmentsRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Replace the challenge specified by challenge_id * Replace the challenge specified by challenge_id * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ replaceChallenge(requestParameters: ReplaceChallengeRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; replaceChallenge(requestParameters: ReplaceChallengeRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; replaceChallenge(requestParameters: ReplaceChallengeRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Update the totp_enrollment if the answer provided is correct. * Update the totp_enrollment if the answer provided is correct. This moves the state from pending to success. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ updateTotpEnrollment(requestParameters: UpdateTotpEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; updateTotpEnrollment(requestParameters: UpdateTotpEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; updateTotpEnrollment(requestParameters: UpdateTotpEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Update the WebAuthN enrollment if the answer provided is correct. * Update the WebAuthN enrollment if the answer provided is correct. This completes the device enrollment. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ updateWebauthnEnrollment(requestParameters: UpdateWebauthnEnrollmentRequestParams, observe?: 'body', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; updateWebauthnEnrollment(requestParameters: UpdateWebauthnEnrollmentRequestParams, observe?: 'response', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; updateWebauthnEnrollment(requestParameters: UpdateWebauthnEnrollmentRequestParams, observe?: 'events', extraHeaders?: HttpHeaders, reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }