Dispose the native DaVinci instance and release runtime state.
Promise resolved when disposal completes.
Returns the native DaVinci instance identifier.
The internal DaVinci instance id.
Log out the active user and clear the session.
Promise resolved when logout completes.
Advance the active DaVinci flow by applying collector values.
Key-indexed collector values to apply before advancing.
Next flow node.
Streams PollingStatus updates for the active PollingCollector
on the current node.
Callback invoked with each streamed PollingStatus tick.
Optionaloptions: DaVinciPollStatusOptionsOptional collector selection (key), when more than one
PollingCollector is present on the active node.
An unsubscribe function that stops local event delivery. It does not stop the native poll, which cannot be cancelled.
Does not auto-advance the flow — the consumer must call next()
explicitly on any terminal status (complete, timedOut, expired,
error) to progress past it. The returned unsubscribe function stops
local event delivery only — neither native SDK exposes a primitive to
cancel an in-flight poll, so the native poll keeps running to completion
(bounded by pollRetries × pollInterval) even after unsubscribing.
Refresh the active user session tokens.
Refreshed session payload, or null when no active session exists.
Revoke the active user access/refresh tokens.
true when revocation completes.
Start the DaVinci flow.
The first flow node.
Resolve the active user session.
Session payload, or null when no active session exists.
Resolve userinfo claims for the active session.
Userinfo payload, or null when no active session exists.
Validate one active collector without advancing the flow.
Collector key to update and validate.
Candidate value to apply to the collector before validating.
Validation errors for the collector, or an empty array when valid (or when the collector has no validator).
This is a command-query operation, not a pure check: it writes value
onto the live collector backing the in-progress submission, because
neither native SDK exposes a primitive that validates a candidate value
without first setting it on the collector. The value passed in will be
part of what a subsequent next() submits, even if the caller only
intended a speculative/preview check.
An empty result array means either "no validation errors" or "this collector has no validator" — it is not a positive confirmation that the value was actually checked.
DaVinci imperative client API contract.
Remarks
Obtain an instance via createDaVinciClient.
Example