Skip to content

Commit b04fbda

Browse files
committed
chore: ssi-types update
1 parent e4b2942 commit b04fbda

11 files changed

Lines changed: 1344 additions & 1334 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ receive verifiable credentials. W3C formats as well as other Credential formats
2323
OAuth 2.0 deployments and OpenID Connect OPs (see [OpenID.Core]) to extend their service and become Credential Issuers.
2424
It also allows new applications built using Verifiable Credentials to utilize OAuth 2.0 as an integration and
2525
interoperability layer. This package provides holder/wallet support to interact with OpenID4VCI capable Issuer systems.
26-
26+
fetch
2727
In addition to the client and issuer, there is also a common package, which has all the types and payloads shared between the client and issuer.
2828

2929
# Packages

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"pnpm": ">=10"
2727
},
2828
"resolutions": {
29-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
29+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
3030
"dcql": "1.0.1",
3131
"node-fetch": "2.6.12",
3232
"typescript": "5.8.3"

packages/callback-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@sphereon/oid4vci-client": "workspace:^",
3131
"@sphereon/oid4vci-common": "workspace:^",
3232
"@sphereon/oid4vci-issuer": "workspace:^",
33-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
33+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
3434
"jose": "^4.10.0"
3535
},
3636
"devDependencies": {

packages/client/lib/AuthorizationCodeClient.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,21 @@ export const createAuthorizationRequestUrl = async ({
109109
clientId?: string
110110
version?: OpenId4VCIVersion
111111
}): Promise<string> => {
112-
function removeDisplayAndValueTypes(obj: any) {
112+
113+
function removeDisplayAndValueTypes(obj: any): any {
114+
if (Array.isArray(obj)) {
115+
return obj.map(item => removeDisplayAndValueTypes(item))
116+
}
117+
118+
if (typeof obj !== 'object' || obj === null) {
119+
return obj
120+
}
121+
113122
const newObj = { ...obj }
114123
for (const prop in newObj) {
115124
if (['display', 'value_type'].includes(prop)) {
116125
delete newObj[prop]
117-
} else if (typeof newObj[prop] === 'object') {
126+
} else if (typeof newObj[prop] === 'object' && newObj[prop] !== null) {
118127
newObj[prop] = removeDisplayAndValueTypes(newObj[prop])
119128
}
120129
}

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@sphereon/oid4vc-common": "workspace:^",
3131
"@sphereon/oid4vci-common": "workspace:^",
32-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
32+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
3333
"cross-fetch": "^4.1.0",
3434
"debug": "^4.4.0"
3535
},

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test": "vitest run --config ../../vitest.config.mts --coverage"
2323
},
2424
"dependencies": {
25-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
25+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
2626
"jwt-decode": "^4.0.0",
2727
"uint8arrays": "^3.1.1",
2828
"uuid": "^9.0.0"

packages/issuer-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@sphereon/oid4vci-common": "workspace:^",
2727
"@sphereon/oid4vci-issuer": "workspace:^",
2828
"@sphereon/ssi-express-support": "0.34.1-next.3",
29-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
29+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
3030
"body-parser": "^1.20.2",
3131
"cookie-parser": "^1.4.6",
3232
"cors": "^2.8.5",

packages/issuer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@sphereon/oid4vc-common": "workspace:^",
2525
"@sphereon/oid4vci-common": "workspace:^",
2626
"@sphereon/ssi-express-support": "0.34.1-next.3",
27-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
27+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
2828
"short-uuid": "^4.2.2",
2929
"uuid": "^9.0.0"
3030
},

packages/oid4vci-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"@sphereon/oid4vc-common": "workspace:^",
25-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
25+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
2626
"cross-fetch": "^4.1.0",
2727
"debug": "^4.4.0",
2828
"jwt-decode": "^4.0.0",

packages/siop-oid4vp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@sphereon/jarm": "workspace:^",
3131
"@sphereon/oid4vc-common": "workspace:^",
3232
"@sphereon/pex": "5.0.0-unstable.28",
33-
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
33+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
3434
"cross-fetch": "^4.0.0",
3535
"dcql": "1.0.1",
3636
"debug": "^4.4.0",

0 commit comments

Comments
 (0)