KycClient class
Holds the validated configuration and session used by an SDK workflow.
Constructors
- KycClient.fromSession({required KycConfig config, required VerificationSession session})
-
Creates a client from an already parsed session.
factory
Properties
- config → KycConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → VerificationSession
-
final
Methods
-
attachPayload(
VerificationPayloadRequest request) → Future< VerificationPayloadReceipt> - Attaches one structured payload declared by the active workflow.
-
cancelSession(
) → Future< VerificationSessionState> - Cancels a mutable verification session and returns its current state.
-
close(
) → void - Releases network resources owned by this client.
-
listConsentEvidence(
) → Future< VerificationConsentEvidenceList> - Returns consent evidence currently retained for this session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pollSession(
[VerificationPollingOptions options = const VerificationPollingOptions()]) → Stream< VerificationSessionState> - Polls recoverable SDK state until a terminal status is received.
-
recordConsentEvidence(
VerificationConsentRequest request) → Future< VerificationConsentEvidence> - Records the client assertion for one exact consent notice.
-
recoverSession(
) → Future< VerificationSessionState> - Recovers current SDK state and every unexpired staged hosted asset.
-
submitExternalAssets(
ExternalAssetSubmissionRequest request) → Future< VerificationSubmission> - Submits temporary customer-managed HTTPS references for server fetching.
-
submitHostedAssets(
HostedAssetSubmissionRequest request) → Future< VerificationSubmission> - Submits exact hosted asset keys selected for the workflow input slots.
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadHostedAsset(
HostedAssetUploadRequest request) → Future< HostedAsset> - Stages one workflow-declared asset through the NestJS hosted upload.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bootstrap(
{required KycConfig config, required VerificationSessionProvider sessionProvider}) → Future< KycClient> - Requests a session through the host application and validates its shape.