UNPKG

@animo-id/pex

Version:

A Typescript implementation of the v1 and v2 DIF Presentation Exchange specification

13 lines (12 loc) 1.32 kB
import { PresentationDefinitionV1 as PdV1, PresentationDefinitionV2 as PdV2 } from '@sphereon/pex-models'; import { JwtDecodedVerifiablePresentation } from '@sphereon/ssi-types'; import { IInternalPresentationDefinition, InternalPresentationDefinitionV1, InternalPresentationDefinitionV2, IPresentationDefinition } from './Internal.types'; import { OriginalVerifiableCredential, OriginalVerifiablePresentation, WrappedVerifiableCredential, WrappedVerifiablePresentation } from './PexCredentialMapper'; export declare class SSITypesBuilder { static modelEntityToInternalPresentationDefinitionV1(p: PdV1): InternalPresentationDefinitionV1; static modelEntityInternalPresentationDefinitionV2(p: PdV2): InternalPresentationDefinitionV2; static createCopyAndModifyPresentationDefinition(p: IPresentationDefinition): IPresentationDefinition; static mapExternalVerifiablePresentationToWrappedVP(presentation: OriginalVerifiablePresentation | JwtDecodedVerifiablePresentation): WrappedVerifiablePresentation; static mapExternalVerifiableCredentialsToWrappedVcs(verifiableCredentials: OriginalVerifiableCredential | OriginalVerifiableCredential[]): WrappedVerifiableCredential[]; static toInternalPresentationDefinition(presentationDefinition: IPresentationDefinition): IInternalPresentationDefinition; }