@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
36 lines • 2.62 kB
text/typescript
import { SingleOrArray } from "../../../types.mjs";
import { SdJwtVcHeader } from "../../sd-jwt-vc/SdJwtVcOptions.mjs";
import { SdJwtVc } from "../../sd-jwt-vc/SdJwtVcService.mjs";
import "../../sd-jwt-vc/index.mjs";
import { MdocDeviceResponse } from "../../mdoc/MdocDeviceResponse.mjs";
import "../../mdoc/index.mjs";
import { ClaimFormat } from "../../vc/models/ClaimFormat.mjs";
import { W3cJwtVerifiableCredential } from "../../vc/jwt-vc/W3cJwtVerifiableCredential.mjs";
import { W3cJsonLdVerifiableCredential } from "../../vc/linked-data-proofs/models/W3cJsonLdVerifiableCredential.mjs";
import { W3cJsonLdVerifiablePresentation } from "../../vc/linked-data-proofs/models/W3cJsonLdVerifiablePresentation.mjs";
import { W3cJwtVerifiablePresentation } from "../../vc/jwt-vc/W3cJwtVerifiablePresentation.mjs";
import { DifPresentationExchangeDefinition, DifPresentationExchangeSubmission, VerifiablePresentation } from "../models/index.mjs";
import "../../vc/index.mjs";
//#region src/modules/dif-presentation-exchange/utils/presentationSelection.d.ts
export type DifPexPresentationWithDescriptor = ReturnType<typeof extractPresentationsWithDescriptorsFromSubmission>[number];
export declare function extractPresentationsWithDescriptorsFromSubmission(presentations: SingleOrArray<VerifiablePresentation>, submission: DifPresentationExchangeSubmission, definition: DifPresentationExchangeDefinition): ({
readonly claimFormat: ClaimFormat.MsoMdoc;
readonly descriptor: import("@sphereon/pex-models").Descriptor;
readonly presentation: MdocDeviceResponse;
readonly credential: import("@owf/mdoc").Document;
readonly inputDescriptor: import("@sphereon/pex-models").InputDescriptorV1 | import("@sphereon/pex-models").InputDescriptorV2;
} | {
readonly claimFormat: ClaimFormat.JwtVp | ClaimFormat.LdpVp;
readonly descriptor: import("@sphereon/pex-models").Descriptor;
readonly presentation: W3cJwtVerifiablePresentation | W3cJsonLdVerifiablePresentation;
readonly credential: W3cJwtVerifiableCredential | W3cJsonLdVerifiableCredential;
readonly inputDescriptor: import("@sphereon/pex-models").InputDescriptorV1 | import("@sphereon/pex-models").InputDescriptorV2;
} | {
readonly claimFormat: ClaimFormat.SdJwtDc;
readonly descriptor: import("@sphereon/pex-models").Descriptor;
readonly presentation: SdJwtVc<SdJwtVcHeader, import("@sd-jwt/sd-jwt-vc").SdJwtVcPayload>;
readonly credential: SdJwtVc;
readonly inputDescriptor: import("@sphereon/pex-models").InputDescriptorV1 | import("@sphereon/pex-models").InputDescriptorV2;
})[];
//#endregion
//# sourceMappingURL=presentationSelection.d.mts.map