UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

39 lines (38 loc) • 1.91 kB
import { JsonObject, SingleOrArray } from "../../../../types.mjs"; import { ClaimFormat } from "../ClaimFormat.mjs"; import { W3cV2Presentation } from "./W3cV2Presentation.mjs"; import { W3cV2SdJwtVerifiablePresentation } from "../../sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs"; import "../../sd-jwt-vc/index.mjs"; import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.mjs"; import "../../jwt-vc/index.mjs"; import { ValidationOptions } from "class-validator"; //#region src/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts interface W3cV2EnvelopedVerifiablePresentationOptions { id: string; context?: string | Array<string | JsonObject>; type?: SingleOrArray<string>; } declare class W3cV2EnvelopedVerifiablePresentation { private _envelopedPresentation?; constructor(options: W3cV2EnvelopedVerifiablePresentationOptions); static fromVerifiablePresentation(presentation: W3cV2SdJwtVerifiablePresentation | W3cV2JwtVerifiablePresentation): W3cV2EnvelopedVerifiablePresentation; context: string | Array<string | JsonObject>; id: string; type: SingleOrArray<string>; /** * Gets the enveloped presentation. */ get envelopedPresentation(): W3cV2JwtVerifiablePresentation | W3cV2SdJwtVerifiablePresentation; /** * Resolved presentation is the fully resolved {@link W3cV2Presentation} instance. */ get resolvedPresentation(): W3cV2Presentation; /** * The {@link ClaimFormat} of the enveloped presentation. */ get claimFormat(): ClaimFormat.SdJwtW3cVp | ClaimFormat.JwtW3cVp; } declare function IsEnvelopedVerifiablePresentationType(validationOptions?: ValidationOptions): PropertyDecorator; //#endregion export { IsEnvelopedVerifiablePresentationType, W3cV2EnvelopedVerifiablePresentation, W3cV2EnvelopedVerifiablePresentationOptions }; //# sourceMappingURL=W3cV2EnvelopedVerifiablePresentation.d.mts.map