import type { SetRequired } from 'type-fest'; import type { DocumentType } from '../documents/documents.types.d.ts'; import type { components } from './idVerificationProviders.contract'; export type StartVerificationCheckResponse = components['schemas']['ProviderStartProcessResponse']; export type InstantIdVerificationTokenRequest = components['schemas']['ProviderInitiateRequest']; /** The SDK starts document-only checks; CaptureMetadata.face is not sent in this flow. */ export type InstantIdVerificationStartCheckRequest = Omit & { captureMetadata: { document_front: { id: string; type: DocumentType; side: 'front'; }; document_back?: { id: string; type: DocumentType; side: 'back'; }; }; }; export type IdVerificationProvidersRequest = InstantIdVerificationStartCheckRequest; /** * Dto says both of these fields are optional but they should always be returned by the API. */ export type InstantIdVerificationTokenResponse = SetRequired; export type ProviderExtractionResponse = components['schemas']['ProviderExtractionResponse']; export type ProviderExtractionRequest = components['schemas']['ProviderExtractionRequest'];