/** * Gender type */ export declare enum GenderType { Male = 0, Female = 1, Other = 2 } /** * Tax country information */ export interface TaxCountry { country: string; taxNumber: string; } /** * Additional data for applicant */ export interface ApplicantAdditionalData { paramName: string; value: string; } /** * Applicant registration request input (Individual) */ export interface ApplicantRegistrationRequestInput { applicantId?: number | null; ownerClientId?: number | null; workflowKey: string; creationType?: string; firstName: string; lastName: string; title?: string; email: string; dateOfBirth?: string; phonenumber: string; externalRefId: string; mobileCountryCode?: string; street?: string; streetNumber?: string; zip?: string; city?: string; country?: string; nationality?: string; otherNationality?: string[]; defaultLanguage?: string; taxCountry?: string; placeOfBirth?: string; countryOfBirth?: string; salutation?: GenderType | null; educationLevel?: string; occupation?: string; taxNumber?: string; otherTaxCountries?: TaxCountry[]; applicantAdditionalDatas?: ApplicantAdditionalData[]; } /** * Company applicant registration request input. * * Mirrors the backend `ApplicantCompanyRegistrationRequestInput` DTO 1:1 * (Newtonsoft.Json camelCases C# property names). Required fields here match * the [Required] attributes on the C# side. */ export interface CompanyApplicantRegistrationRequestInput { applicantId?: number | null; workflowKey?: string; externalRefId?: string; /** Company contact email (REQUIRED) */ email: string; phone?: string; /** ISO 639-1 / language code, defaults to "EN" on the backend */ lang?: string; /** REQUIRED */ companyName: string; /** REQUIRED */ registrationNumber: string; legalAddress?: string; /** REQUIRED — accepts ISO date string ("YYYY-MM-DD") or full ISO datetime */ incorporatedOn: string; controlScheme?: string; /** REQUIRED */ taxId: string; registrationLocation?: string; website?: string; lei?: string; streetNumber?: string; postalAddress?: string; /** REQUIRED */ street: string; /** REQUIRED */ city: string; state?: string; postalCode?: string; addressCountry?: string; noUBO?: boolean; /** Always set to true by the SDK — distinguishes web-SDK submissions from API client submissions */ webSdk?: boolean; contactInfo?: CompanyContactInfoDto; /** REQUIRED on the backend (int). Set when the KYB Legal Entity step is enabled. */ legalEntityId?: number; /** REQUIRED on the backend (int). Set when the KYB Branch step is enabled. */ branchId?: number; applicantAdditionalDatas?: ApplicantAdditionalData[]; /** Related people (the same email may appear in multiple lists when a person holds multiple roles) */ companyRepresentatives?: CompanyRepresentativeDto[]; companyUBOs?: CompanyUboDto[]; companyDirectors?: CompanyDirectorDto[]; /** * Corporate (company) shareholders. Persisted as a child collection of the parent * company applicant — never promoted to their own KYC applicants and never trigger * webhook fan-out (the shareholder is itself a company, not a natural person). */ companyCorporateShareholders?: CompanyCorporateShareholderDto[]; } export interface CompanyContactInfoDto { fullName?: string; role?: string; title?: string; email?: string; phone?: string; } /** * Common person fields shared across Representative/UBO/Director DTOs. * Names mirror the backend Company* DTOs (camelCased C# names). */ export interface CompanyPersonBaseDto { applicantId?: number | null; firstName?: string; lastName?: string; /** Backend stores as string */ dateOfBirth?: string; nationality?: string; email?: string; phone?: string; street?: string; streetNumber?: string; /** Backend property is `ZIP` → JSON `zip` */ zip?: string; city?: string; country?: string; } export interface CompanyRepresentativeDto extends CompanyPersonBaseDto { isVerified?: boolean; } export interface CompanyUboDto extends CompanyPersonBaseDto { /** Backend type is double — send as number, not string */ shareSize?: number; directOwnership?: boolean; indirectOwnership?: boolean; controlVIAVotingRights?: boolean; controlByOtherMeans?: boolean; } export interface CompanyDirectorDto extends CompanyPersonBaseDto { } /** * Corporate shareholder DTO. Mirrors backend `CompanyCorporateShareholderDto` 1:1 * (camelCased C# names). Unlike UBO/Director, this is a *company* — not a person — * so it carries company-shaped fields (companyName, registrationNumber, website, * full address) plus a ShareSize percentage. */ export interface CompanyCorporateShareholderDto { id?: number; email?: string; phone?: string; lang?: string; companyName?: string; registrationNumber?: string; website?: string; street?: string; streetNumber?: string; city?: string; state?: string; postalCode?: string; addressCountry?: string; /** Backend type is double — send as number, not string */ shareSize?: number; } /** * Applicant request data DTO (nested in ApplicantDataDto) */ export interface ApplicantRequestDataDto { id: number; firstName: string; lastName: string; email: string; dateOfBirth?: string; salutation?: string; title?: string; phonenumber: string; mobileCountryCode?: string; street?: string; streetNumber?: string; zip?: string; city?: string; country?: string; nationality?: string; countryOfBirth?: string; placeOfBirth?: string; taxCountry?: string; taxNumber?: string; educationLevel?: string; occupation?: string; defaultLanguage?: string; isCompanyRepresentative: boolean; otherNationalities?: string[]; otherTaxResidencies?: string[]; applicantAdditionalDatas?: ApplicantAdditionalData[]; } /** * A single questionnaire question result (from GetApplicantData) */ export interface QuestionnaireResultItem { question: string; answers: string[]; } /** * A single risk criterion result (from GetApplicantData) */ export interface RiskCriteriaResultItem { riskCriteriaId?: number; riskCriteria?: string; answer?: string; } /** * A risk scoring plan result (from GetApplicantData) */ export interface RiskScoringResultItem { riskScoringPlanId?: number; totalScore?: number; riskLevel?: number; riskCriteriaResults?: RiskCriteriaResultItem[]; } /** * Applicant data DTO (full response from GetApplicantData) */ export interface ApplicantDataDto { id: number; providerTokenObject?: string; applicantStatus?: number; reviewStatus?: number; kycStatus?: number; storageStatus?: number; providerResult?: string; externalRefId?: string; workflowId: number; workflowName: string; workflowColor?: string; riskLevel?: number; relatedApplicantId?: number; applicantRequestData?: ApplicantRequestDataDto; companyApplicantRequestData?: any; applicantDocuments?: any[]; riskScoringResults?: RiskScoringResultItem[]; questionnaireResults?: QuestionnaireResultItem[]; uploadDocumentResults?: any[]; appropriatenessTestResults?: any[]; kycRecords?: any[]; progressStatus?: number; onHoldReason?: number; } /** * Duplicate applicant input — matches backend DuplicateApplicantInput DTO */ export interface DuplicateApplicantInput { applicantId: number; workflowKey: string; } /** * SDK state phases returned by GetSdkState */ export type SdkPhase = 'create_applicant' | 'workflow' | 'finished' | 'on_hold' | 'identity_pending'; /** * What the SDK starts Sardine's device script with, as VeroCompliance sends it: set when the applicant's run can * reach Sardine and the tenant has Sardine credentials. */ export interface SdkSardineSettings { clientId: string; environment: 'sandbox' | 'production'; region?: 'eu' | 'ca' | 'au' | null; /** The live device session key; every Sardine call on the run carries it. */ sessionKey: string; /** The Sardine customer id of the calls, sent as the script's `userIdHash`. */ customerId: string; /** Seconds until the key expires; the SDK asks for the next one before then. */ expiresInSeconds: number; } /** * Result from the GetSdkState endpoint. * Tells the SDK which phase to render based on token claims and backend state. */ export interface SdkStateResult { phase: SdkPhase; applicantId?: number; isCompany: boolean; workflowKey?: string; status?: string; /** Sardine's device-script settings; absent when the run doesn't use Sardine, or on an older backend. */ sardine?: SdkSardineSettings | null; } //# sourceMappingURL=applicant.d.ts.map