File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {DcqlPresentation, DcqlQuery} from 'dcql'
1313import { verifyRevocation } from '../helpers'
1414import { AuthorizationResponse } from './AuthorizationResponse'
1515import { Dcql } from './Dcql'
16- import { RevocationVerification , VerifiedOpenID4VPSubmission } from '../types'
16+ import { PresentationSubmission , RevocationVerification , VerifiedOpenID4VPSubmission } from '../types'
1717import { VerifyAuthorizationResponseOpts , } from './types'
1818
1919export const extractNonceFromWrappedVerifiablePresentation = ( wrappedVp : WrappedVerifiablePresentation ) : string | undefined => {
@@ -101,7 +101,7 @@ export const verifyPresentations = async (
101101export const extractDcqlPresentationFromDcqlVpToken = (
102102 vpToken : DcqlPresentation . Input | string ,
103103 opts ?: { hasher ?: HasherSync } ,
104- ) : { [ credentialQueryId : string ] : WrappedVerifiablePresentation } => {
104+ ) : PresentationSubmission => {
105105 return Object . fromEntries (
106106 Object . entries ( DcqlPresentation . parse ( vpToken ) ) . map ( ( [ credentialQueryId , vp ] ) => [
107107 credentialQueryId ,
Original file line number Diff line number Diff line change @@ -482,10 +482,14 @@ export interface VerifiedIDToken {
482482
483483export interface VerifiedOpenID4VPSubmission {
484484 dcqlQuery : DcqlQuery
485- presentation : { [ credentialQueryId : string ] : WrappedVerifiablePresentation }
485+ presentation : PresentationSubmission
486486 nonce ?: string
487487}
488488
489+ export interface PresentationSubmission {
490+ [ credentialQueryId : string ] : WrappedVerifiablePresentation
491+ }
492+
489493export interface VerifiedAuthorizationResponse {
490494 correlationId : string
491495 authorizationResponse : AuthorizationResponse
You can’t perform that action at this time.
0 commit comments