11import {
22 AuthorizationChallengeCodeResponse ,
3- AuthorizationChallengeRequestOpts ,
4- AuthorizationDetails ,
3+ AuthorizationChallengeRequestOpts , AuthorizationDetailsV1_0_15 ,
54 AuthorizationRequestOpts ,
65 CodeChallengeMethod ,
76 CommonAuthorizationChallengeRequest ,
@@ -185,7 +184,7 @@ export const createAuthorizationRequestUrl = async ({
185184 ...( format && { format } ) ,
186185 ...( vct && { vct, claims : cred . claims ? removeDisplayAndValueTypes ( cred . claims ) : undefined } ) ,
187186 ...( doctype && { doctype, claims : cred . claims ? removeDisplayAndValueTypes ( cred . claims ) : undefined } )
188- } as AuthorizationDetails
187+ } as AuthorizationDetailsV1_0_15
189188 } )
190189 if ( ! authorizationDetails || authorizationDetails . length === 0 ) {
191190 throw Error ( `Could not create authorization details from credential offer. Please pass in explicit details` )
@@ -278,8 +277,8 @@ const hasCredentialDefinition = (cred: any): cred is {
278277
279278const handleAuthorizationDetails = (
280279 endpointMetadata : EndpointMetadataResultV1_0_15 ,
281- authorizationDetails ?: AuthorizationDetails | AuthorizationDetails [ ]
282- ) : AuthorizationDetails | AuthorizationDetails [ ] | undefined => {
280+ authorizationDetails ?: AuthorizationDetailsV1_0_15 | AuthorizationDetailsV1_0_15 [ ]
281+ ) : AuthorizationDetailsV1_0_15 | AuthorizationDetailsV1_0_15 [ ] | undefined => {
283282 if ( authorizationDetails ) {
284283 if ( typeof authorizationDetails === 'string' ) {
285284 // backwards compat for older versions of the lib
@@ -298,7 +297,7 @@ const handleAuthorizationDetails = (
298297
299298const handleLocations = (
300299 endpointMetadata : EndpointMetadataResultV1_0_15 ,
301- authorizationDetails : AuthorizationDetails
300+ authorizationDetails : AuthorizationDetailsV1_0_15
302301) => {
303302 if ( typeof authorizationDetails === 'string' ) {
304303 // backwards compat for older versions of the lib
0 commit comments