Skip to content

Commit feced9f

Browse files
Merge pull request #200 from Sphereon-Opensource/fix/SSISDK-61
fix/SSISDK-61
2 parents b8717ff + 04efdb0 commit feced9f

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

packages/siop-oid4vp/lib/types/SIOP.types.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
AdditionalClaims,
55
CompactSdJwtVc,
66
Format,
7-
IPresentation,
87
MdocOid4vpMdocVpToken,
98
W3CVerifiableCredential,
109
W3CVerifiablePresentation,
@@ -192,7 +191,7 @@ export interface AuthorizationResponsePayload {
192191
| CompactSdJwtVc
193192
| MdocOid4vpMdocVpToken
194193
| EncodedDcqlPresentationVpToken
195-
verifiedData?: IPresentation | AdditionalClaims
194+
verified_data?: VerifiedData
196195
is_first_party?: boolean
197196
// eslint-disable-next-line @typescript-eslint/no-explicit-any
198197
[x: string]: any
@@ -696,3 +695,35 @@ export type CreateAuthorizationRequestPayload = z.infer<typeof CreateAuthorizati
696695
export type CreateAuthorizationResponse = z.infer<typeof CreateAuthorizationResponseSchema>
697696
export type CreateAuthorizationResponsePayload = z.infer<typeof CreateAuthorizationResponsePayloadSchema>
698697
export type VerifiedDataOpts = z.infer<typeof VerifiedDataOptsSchema>
698+
699+
export type VerifiedData = {
700+
authorization_response?: VerifiedDataAuthorizationResponse
701+
credential_claims?: Array<VerifiedDataClaimsSet>
702+
}
703+
704+
export type VerifiedDataClaimsSet = {
705+
id: string
706+
type: string
707+
claims?: AdditionalClaims
708+
}
709+
710+
export type VerifiedDataAuthorizationResponse = {
711+
presentation_submission?: Record<string, any>
712+
vp_token?: VpToken
713+
}
714+
715+
export type SingleObjectVpTokenPE = Record<string, any>
716+
717+
export type SingleStringVpTokenPE = string
718+
719+
export type MultipleVpTokens = Array<SingleObjectVpTokenPE> | Array<SingleStringVpTokenPE>
720+
721+
export type MultipleVpTokenDCQL = {
722+
[x: string]: MultipleVpTokens
723+
}
724+
725+
export type VpToken =
726+
| SingleObjectVpTokenPE
727+
| SingleStringVpTokenPE
728+
| MultipleVpTokens
729+
| MultipleVpTokenDCQL

0 commit comments

Comments
 (0)