StepInput

Types

Link copied to clipboard
data class FormSubmission(val values: List<FormFieldValue>) : StepInput

One strongly-typed value per descriptor returned in InputRequest.Form. A field with no value here is unanswered; a value for a field the form doesn't have is ignored.

Link copied to clipboard
data object None : StepInput

Advance to or run the previously returned StepAction.EngineStep, retry a resolved StepResult.Blocked, or retry a StepResult.Failed whose StepResult.Failed.retryAction is RetryAction.CallNextWithoutInput.

Link copied to clipboard
data class UploadIdDocument(val front: UploadFile, val back: UploadFile?) : StepInput

Photos of the ID, as JPEG or PNG, for an InputRequest.UploadIdDocument.

Link copied to clipboard
data class UploadNonIdDocument(val document: AllowedDocument?, val file: UploadFile) : StepInput

A file for an InputRequest.UploadNonIdDocument, and which of its documents it is. Engine checks the file by its first bytes, as the backend does, never by UploadFile.contentType, so a file in another format (a HEIC photo, say) needs converting first.