client.screening. pepSanctions and titleCheck are synchronous; adverseMedia is async and returns an AdverseMediaHandle you poll for the result.
pepSanctions and titleCheck are sent with retries disabled (maxRetries: 0). The server bounds an un-cancellable upstream and returns 503 (ServiceUnavailableError) on breach without billing — an immediate retry would hit the same slow path, so the SDK fails fast. Back off and retry yourself.pepSanctions(input)
Returns
PepSanctionsResult:
ValidationError (400), AuthenticationError (401), InsufficientFundsError (402), RateLimitError (429), ServiceUnavailableError (503), DeepIDVError.
adverseMedia(input)
jobId immediately; the SDK wraps it in an AdverseMediaHandle so you can .wait() for the result or .refresh() for a single snapshot.
Returns an
AdverseMediaHandle:
wait(options?)— auto-polls until the job reachesreadyorfailed, returning the typedAdverseMediaResult. ThrowsAdverseMediaFailedErrorif the job fails, orPollTimeoutErroriftimeoutMselapses first. A poll timeout does not mean the job died — resume later withclient.asyncJobs.get(jobId).refresh()— performs a single non-blocking poll and returns the currentAdverseMediaJobSnapshot.
adverseMedia() throws ValidationError (400), AuthenticationError (401), InsufficientFundsError (402), RateLimitError (429), DeepIDVError. The handle’s wait() additionally throws AdverseMediaFailedError and PollTimeoutError.
titleCheck(input)
Returns
TitleCheckResult — a discriminated union on status:
ValidationError (400), AuthenticationError (401), InsufficientFundsError (402), RateLimitError (429), ServiceUnavailableError (503), DeepIDVError.