import { Checked, Status } from '../../ConstraintUtils'; import { VerifiableCredential } from '../../types'; import { SubmissionRequirementMatch } from './submissionRequirementMatch'; export interface SelectResults { errors?: Checked[]; matches?: SubmissionRequirementMatch[]; /** * This is the parameter that pejs library user should look into to determine what to do next * Status can have three values: * 1. INFO: everything is fine, you can call `presentationFrom` after this method * 2. WARN: method was called with more credentials than required. * To enhance credential holder's privacy it is recommended to select credentials which are absolutely required. * 3. Error: the credentials you've sent didn't satisfy the requirement defined presentationDefinition object */ areRequiredCredentialsPresent: Status; /** * All matched/selectable credentials */ verifiableCredential?: VerifiableCredential[]; /** * Following are indexes of the verifiableCredentials passed to the selectFrom method that have been selected. */ vcIndexes?: number[]; warnings?: Checked[]; }