Protected ReadonlydbStaticinstanceThe process default: built from each dependency's own instance().
create for a person AiPrise already holds linked to the org's business
profile (its hosted form did both): stores that linkage, starts from the
profile's result, and tags the profile with the row's id so its events
reach it. Onboarding only — never reachable from a request body.
Idempotent on the user profile: a person the org already holds is returned as it is, so a retried onboarding adopts only the people still missing.
Alpha-2 ISO-3166-1. Required: it supplies identity_country_code on this
person's AiPrise verifications, which are rejected without it.
OptionalorganizationId?: stringWhen provided, scopes to a specific organization (the API path case). When omitted, scopes by customer only — used by the document flow, which knows the related person id but not its organization.
OptionalcreatedAt?: DbTimestampCriteriaOptionalids?: string[]OptionalincludeDeleted?: booleanOptionalorderBy?: DbOrderByCriterion<OptionalorganizationId?: stringOmit to search every business of the customer.
Optionalpage?: numberDefaults to 1
OptionalpageSize?: numberDefaults to 50
Optionalstatuses?: (Optionaltx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>Reads inside this transaction rather than on a pool connection.
Optionaltypes?: ("CONTROL" | "BENEFICIAL_OWNER")[]OptionalupdatedAt?: DbTimestampCriteriaOptionalverificationProfileIds?: string[]The person's AiPrise user profile ids.
name may be partial; the parts sent replace the stored ones.
Read/write access to an organization's related persons. Writes are forwarded to AiPrise (the KYB provider): create links a fresh user profile onto the org's business profile, or adopts one AiPrise already holds linked there, update re-pushes the changed fields, delete removes the association. Create calls AiPrise before it writes, so a failure there throws; update and delete write first, so an AiPrise refusal after them is returned with the committed row (
RELATED_PERSON_VERIFICATION_FAILED/RELATED_PERSON_UNLINK_FAILED).One row is one human with one AiPrise profile: a control person who also owns is a CONTROL row with
isBeneficialOwner, never a second row.