OptionalaiPriseTimeoutMs?: numberHow long a collapse waits for one AiPrise call. Default 20 seconds: prod writes outlast 10, and the backfill's page goes stale 24 seconds after a heartbeat, so it cannot go higher.
Protected ReadonlydbStaticinstanceThe process default: built from each dependency's own instance().
Push an operator's decision to AiPrise; the RESULT_UPDATE webhook is the
only status writer. A caller that already read the live row passes
verificationProfileId to skip the re-read.
Optionalnote?: stringKept beside the code as the MANUAL reason's detail; AiPrise never sees it.
OptionalreasonCode?: stringOptionalverificationProfileId?: stringLive rows on one organization sharing a name and date of birth: a person
entered once per role before a control person could carry
isBeneficialOwner. limit counts groups. A collapsed pair leaves one live
row and drops out. after is a group's cursor from an earlier page.
The people listed in an organization's AiPrise business-profile copy, for
an organization with no related person rows. Only name, ownership, shares
and active role names leave the query; items is empty when the
organization is missing or deleted, has no profile copy, or the copy lists
no people. At most AIPRISE_PROFILE_PEOPLE_MAX people.
Collapses a CONTROL row and a BENEFICIAL_OWNER row of one human onto the
CONTROL row, flagged isBeneficialOwner. Reads AiPrise first with no lock
held, then in one transaction locks both rows, re-checks them, widens the
keeper and deletes the owner in AiPrise, and writes the rows. An AiPrise
failure there rolls the rows back for a re-run. After the commit it
publishes; an event that fails is returned in unfinished, not thrown.
dryRun only reads.
OptionaldryRun?: booleanOptionalheartbeat?: () => voidCalled before each AiPrise call and each write; a throw stops the merge.
Writes the verification status and/or the RouteFusion and Zenus stamps on the
live row id. A status change emits statusUpdated; an unchanged status or a
stamp alone emits nothing. A soft-deleted person is NOT_FOUND.
OptionalrouteFusionDocumentsUploadedAt?: stringOptionalrouteFusionRepresentativeId?: stringOptionalstatus?: "PENDING_VERIFICATION" | "ACTION_REQUIRED" | "APPROVED" | "REVIEW" | "BLOCKED"OptionalverificationReasons?: VerificationReasons | nullWhy the verification landed where it did; null clears it.
OptionalzenusPersonId?: string
Admin writes on related people: webhook status mapping and operator decisions.