/** * Supported identity verification types. * - "nin" / "bvn": Data verification (Nigeria-only, requires id_number) * - "passport" / "national_id" / "drivers_license": Document verification (global) */ export type OnboardingType = "nin" | "bvn" | "passport" | "national_id" | "drivers_license"; /** * Request payload for POST /v1/sdk/onboarding/verify/ * Uses identity_type_id (from ChannelItem.id) and dynamic fields. */ export interface VerifyIdentityRequest { identity_type_id: number; fields: Record; } /** * Response from the onboarding verify endpoint (full envelope). * Backend returns: { status, code, message, data, request_id } — see * sdk/services/responses.py::success_response/error_response. The envelope * `status` is only ever literally "success" or "error"; per-check outcomes * like verified/pending/failed live inside `data`, not at this level. */ export interface VerifyIdentityResponse { status: "success" | "error"; code: string; message: string; data: Record; request_id?: string; } /** * Session creation response (unwrapped from envelope). */ export interface SessionResponse { token: string; expires_at: string; } /** * SDK configuration returned by GET /v1/sdk/initialize/ */ export interface SDKInitConfig { id: number; brand_name: string; description: string; theme: string; theme_hex?: string | null; verification_type: string[]; redirect_url: string | null; channels: Record; } export interface SDKChannel { id: number; name: string; code?: string; requires_back_side?: boolean | "optional"; fields: { type: string; label: string; options?: string[]; }[]; } //# sourceMappingURL=onboarding.d.ts.map