import { HttpClient } from '../client/http-client'; import { ApplicantRegistrationRequestInput, CompanyApplicantRegistrationRequestInput, ProgressApplicantResult, ProgressApplicantStatusResult, ApplicantDataDto, DuplicateApplicantInput, SdkStateResult, SdkSardineSettings } from '../types'; /** * Applicant service * Handles all applicant-related API calls */ export declare class ApplicantService { private httpClient; constructor(httpClient: HttpClient); /** * Create a new individual applicant */ createApplicant(input: ApplicantRegistrationRequestInput): Promise; /** * Saves changes to an individual applicant already under way: only the fields given, the rest keep their * value. VeroCompliance refuses it once an identity step has the provider's result (`ApplicantFlow.Immutable`). * Sent as a registration of that applicant without `webSdk`, so no second OnApplicantCreated webhook. */ updateApplicantFields(applicantId: number, workflowKey: string, fields: Partial>): Promise; /** * Create a new company applicant */ createCompanyApplicant(input: CompanyApplicantRegistrationRequestInput): Promise; /** * Duplicate an existing applicant with a new workflow */ duplicateApplicant(input: DuplicateApplicantInput): Promise; /** * Get applicant progress * * @param applicantId Applicant id to fetch progress for. * @param fetchStepInfo When true the backend re-evaluates and returns the * full localized step info (display names, copy, ...) * in the active `Accept-Language`. Defaults to `false` * to keep the lightweight progress polling cheap; the * SDK opts in when the user changes language so chrome * step labels refresh. */ getProgress(applicantId: number, fetchStepInfo?: boolean): Promise; /** * Get applicant progress status (simplified) */ getProgressStatus(applicantId: number): Promise; /** * Get applicant data */ getApplicantData(applicantId: number): Promise; /** * Get applicant status */ getApplicantStatus(applicantId: number): Promise; /** * Reset KYC data for the applicant (clears provider data without changing tokens). * Used for Sumsub to allow the user to restart their identity verification. */ resetKyc(applicantId: number): Promise; /** * Stop applicant progress */ stopProgress(applicantId: number): Promise; /** * Move back one step in the workflow. * Returns { isSuccess, backIsPossible } — when backIsPossible is false the * SDK should hide the back button for this step. */ progressStepBack(applicantId: number): Promise<{ isSuccess: boolean; backIsPossible: boolean; }>; /** * Set applicant language */ setLanguage(applicantId: number, language: string): Promise; /** * Activate applicant * * @deprecated Server only: VeroCompliance refuses it with 403 (`Sdk.ServerOnly`) when the SDK runs with an * applicant's session or KYC-link token. It works only with the tenant's API key and secret: call the * endpoint from your backend instead. */ activateApplicant(applicantId: number): Promise; /** * Delete applicant * * @deprecated Server only: VeroCompliance refuses it with 403 (`Sdk.ServerOnly`) when the SDK runs with an * applicant's session or KYC-link token. It works only with the tenant's API key and secret: call the * endpoint from your backend instead. */ deleteApplicant(applicantId: number): Promise; /** * Check if applicant exists by external reference ID */ checkApplicantExists(externalRefId: string): Promise; /** * Get the current SDK state based on the session token. * The backend reads ExternalRefId, WorkflowKey, and IsCompany from the token * and resolves the current phase (create_applicant, workflow, finished, etc.) */ getSdkState(): Promise; /** * The applicant's live Sardine device session: the same key while it lives, a new one once it expired. * Null when the applicant's run doesn't reach Sardine. */ refreshSardineSession(applicantId: number): Promise; /** Tells VeroCompliance whether Sardine's device script loaded for the key. */ reportSardineDevice(applicantId: number, sessionKey: string, loaded: boolean): Promise; } //# sourceMappingURL=applicant.service.d.ts.map