import { AnonCredsProof } from '@aries-framework/anoncreds' type AnonCredsProofIdentifier = AnonCredsProof['identifiers'][number] export interface MissingAttribute { name: string } export interface SharedAttribute { name: string value: string identifiers: AnonCredsProofIdentifier } export interface SharedGroupedAttribute { name: string value: string } export interface SharedAttributesGroup { attributes: Array identifiers: AnonCredsProofIdentifier } export interface ResolvedPredicate { name: string predicateType: string predicateValue: number identifiers: AnonCredsProofIdentifier } export interface UnresolvedPredicate { name: string predicateType: string predicateValue: number } export class ParsedAnonCredsProof { public sharedAttributes: Array public sharedAttributeGroups: Array public resolvedPredicates: Array public unresolvedAttributes: Array public unresolvedAttributeGroups: Array> public unresolvedPredicates: Array public constructor() { this.sharedAttributes = [] this.sharedAttributeGroups = [] this.resolvedPredicates = [] this.unresolvedAttributes = [] this.unresolvedAttributeGroups = [] this.unresolvedPredicates = [] } } export class CredentialSharedProofData { public sharedAttributes: Array public sharedAttributeGroups: Array public resolvedPredicates: Array public constructor() { this.sharedAttributes = [] this.sharedAttributeGroups = [] this.resolvedPredicates = [] } } export type GroupedSharedProofDataItem = { data: CredentialSharedProofData; identifiers: AnonCredsProofIdentifier } export type GroupedSharedProofData = Map