@sphereon/ssi-sdk.ebsi-support 0.34.1-fix.79 → 0.34.1-next.278
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +83 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +327 -5
- package/dist/index.d.ts +327 -5
- package/dist/index.js +75 -13
- package/dist/index.js.map +1 -1
- package/package.json +24 -23
- package/plugin.schema.json +1 -1
- package/src/did/functions.ts +2 -2
- package/src/did/index.ts +1 -0
- package/src/did/types.ts +1 -1
- package/src/functions/Attestation.ts +1 -1
- package/src/functions/AttestationHeadlessCallbacks.ts +2 -2
- package/src/index.ts +1 -1
- package/src/types/IEbsiSupport.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.ebsi-support",
|
|
3
|
-
"version": "0.34.1-
|
|
3
|
+
"version": "0.34.1-next.278+0eacb25b",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ethersproject/random": "^5.7.0",
|
|
30
|
-
"@sphereon/did-auth-siop": "0.19.1-
|
|
31
|
-
"@sphereon/did-auth-siop-adapter": "0.19.1-
|
|
30
|
+
"@sphereon/did-auth-siop": "0.19.1-next.220",
|
|
31
|
+
"@sphereon/did-auth-siop-adapter": "0.19.1-next.220",
|
|
32
32
|
"@sphereon/pex": "5.0.0-unstable.28",
|
|
33
33
|
"@sphereon/pex-models": "^2.3.2",
|
|
34
|
-
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.34.1-
|
|
35
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-
|
|
36
|
-
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-
|
|
37
|
-
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-
|
|
38
|
-
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-
|
|
39
|
-
"@sphereon/ssi-sdk.contact-manager": "0.34.1-
|
|
40
|
-
"@sphereon/ssi-sdk.core": "0.34.1-
|
|
41
|
-
"@sphereon/ssi-sdk.oid4vci-holder": "0.34.1-
|
|
42
|
-
"@sphereon/ssi-sdk.presentation-exchange": "0.34.1-
|
|
43
|
-
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-
|
|
44
|
-
"@sphereon/ssi-types": "0.34.1-
|
|
34
|
+
"@sphereon/ssi-sdk-ext.did-resolver-ebsi": "0.34.1-next.278+0eacb25b",
|
|
35
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-next.278+0eacb25b",
|
|
36
|
+
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-next.278+0eacb25b",
|
|
37
|
+
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-next.278+0eacb25b",
|
|
38
|
+
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-next.278+0eacb25b",
|
|
39
|
+
"@sphereon/ssi-sdk.contact-manager": "0.34.1-next.278+0eacb25b",
|
|
40
|
+
"@sphereon/ssi-sdk.core": "0.34.1-next.278+0eacb25b",
|
|
41
|
+
"@sphereon/ssi-sdk.oid4vci-holder": "0.34.1-next.278+0eacb25b",
|
|
42
|
+
"@sphereon/ssi-sdk.presentation-exchange": "0.34.1-next.278+0eacb25b",
|
|
43
|
+
"@sphereon/ssi-sdk.siopv2-oid4vp-op-auth": "0.34.1-next.278+0eacb25b",
|
|
44
|
+
"@sphereon/ssi-types": "0.34.1-next.278+0eacb25b",
|
|
45
45
|
"@veramo/core": "4.2.0",
|
|
46
46
|
"@veramo/did-manager": "4.2.0",
|
|
47
47
|
"@veramo/utils": "4.2.0",
|
|
@@ -56,14 +56,15 @@
|
|
|
56
56
|
"xstate": "^4.38.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@sphereon/oid4vci-client": "0.19.1-
|
|
60
|
-
"@sphereon/oid4vci-common": "0.19.1-
|
|
61
|
-
"@sphereon/ssi-express-support": "0.34.1-
|
|
62
|
-
"@sphereon/ssi-sdk-ext.key-manager": "0.34.1-
|
|
63
|
-
"@sphereon/ssi-sdk-ext.kms-local": "0.34.1-
|
|
64
|
-
"@sphereon/ssi-sdk.agent-config": "0.34.1-
|
|
65
|
-
"@sphereon/ssi-sdk.data-store": "0.34.1-
|
|
66
|
-
"@sphereon/ssi-sdk.
|
|
59
|
+
"@sphereon/oid4vci-client": "0.19.1-next.220",
|
|
60
|
+
"@sphereon/oid4vci-common": "0.19.1-next.220",
|
|
61
|
+
"@sphereon/ssi-express-support": "0.34.1-next.278+0eacb25b",
|
|
62
|
+
"@sphereon/ssi-sdk-ext.key-manager": "0.34.1-next.278+0eacb25b",
|
|
63
|
+
"@sphereon/ssi-sdk-ext.kms-local": "0.34.1-next.278+0eacb25b",
|
|
64
|
+
"@sphereon/ssi-sdk.agent-config": "0.34.1-next.278+0eacb25b",
|
|
65
|
+
"@sphereon/ssi-sdk.data-store": "0.34.1-next.278+0eacb25b",
|
|
66
|
+
"@sphereon/ssi-sdk.data-store-types": "0.34.1-next.278+0eacb25b",
|
|
67
|
+
"@sphereon/ssi-sdk.public-key-hosting": "0.34.1-next.278+0eacb25b",
|
|
67
68
|
"@transmute/json-web-signature": "0.7.0-unstable.81",
|
|
68
69
|
"@types/cors": "^2.8.17",
|
|
69
70
|
"@types/express": "^4.17.21",
|
|
@@ -98,5 +99,5 @@
|
|
|
98
99
|
"EBSI",
|
|
99
100
|
"EBSI Authorization Client"
|
|
100
101
|
],
|
|
101
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "0eacb25b6e38cef88d04d696d84e3c2ebcf89ede"
|
|
102
103
|
}
|
package/plugin.schema.json
CHANGED
package/src/did/functions.ts
CHANGED
|
@@ -236,7 +236,7 @@ export const toMinimalImportableKey = async (args: { key?: IKeyOpts; type: EbsiK
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
minimalImportableKey.meta = {
|
|
239
|
-
purposes: assertedPurposes({ key }) ??
|
|
239
|
+
purposes: assertedPurposes({ key }) ?? setPurposes({ key, type }),
|
|
240
240
|
jwkThumbprint: calculateJwkThumbprintForKey({
|
|
241
241
|
key: minimalImportableKey as MinimalImportableKey,
|
|
242
242
|
digestAlgorithm: 'sha256',
|
|
@@ -275,7 +275,7 @@ export const assertedPurposes = (args: { key?: IKeyOpts }): EbsiPublicKeyPurpose
|
|
|
275
275
|
return key?.purposes
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
export const
|
|
278
|
+
export const setPurposes = (args: { key?: IKeyOpts; type: EbsiKeyType }): EbsiPublicKeyPurpose[] => {
|
|
279
279
|
const { key, type } = args
|
|
280
280
|
if (!key?.purposes || key.purposes.length === 0) {
|
|
281
281
|
switch (type) {
|
package/src/did/index.ts
CHANGED
package/src/did/types.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { IService } from '@veramo/core'
|
|
|
4
4
|
import { DIDDocument } from 'did-resolver'
|
|
5
5
|
import { AccessListish, BigNumberish, BytesLike } from 'ethers'
|
|
6
6
|
import { ApiOpts, EbsiEnvironment } from '../types/IEbsiSupport'
|
|
7
|
-
import { CredentialRole } from '@sphereon/ssi-
|
|
7
|
+
import { CredentialRole } from '@sphereon/ssi-types'
|
|
8
8
|
|
|
9
9
|
export type IContext = IAgentContext<IKeyManager>
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
Siopv2OID4VPLinkHandler,
|
|
31
31
|
} from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth'
|
|
32
32
|
import { _ExtendedIKey } from '@veramo/utils'
|
|
33
|
-
import { waitFor } from 'xstate/lib/waitFor'
|
|
33
|
+
import { waitFor } from 'xstate/lib/waitFor.js'
|
|
34
34
|
import { logger } from '../index'
|
|
35
35
|
import { AttestationResult, CreateAttestationAuthRequestURLArgs, EbsiEnvironment, GetAttestationArgs, IRequiredContext } from '../types/IEbsiSupport'
|
|
36
36
|
import {
|
|
@@ -3,15 +3,15 @@ import { getIssuerName } from '@sphereon/oid4vci-common'
|
|
|
3
3
|
import {
|
|
4
4
|
ConnectionType,
|
|
5
5
|
CorrelationIdentifierType,
|
|
6
|
-
CredentialRole,
|
|
7
6
|
IdentityOrigin,
|
|
8
7
|
NonPersistedParty,
|
|
9
8
|
Party,
|
|
10
9
|
PartyOrigin,
|
|
11
10
|
PartyTypeType,
|
|
12
|
-
} from '@sphereon/ssi-sdk.data-store'
|
|
11
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
13
12
|
import { OID4VCIMachine, OID4VCIMachineEvents, OID4VCIMachineInterpreter, OID4VCIMachineState } from '@sphereon/ssi-sdk.oid4vci-holder'
|
|
14
13
|
import { Siopv2MachineInterpreter, Siopv2MachineState, Siopv2OID4VPLinkHandler } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth'
|
|
14
|
+
import { CredentialRole } from '@sphereon/ssi-types'
|
|
15
15
|
import fetch from 'cross-fetch'
|
|
16
16
|
import { logger } from '../index'
|
|
17
17
|
import { IRequiredContext } from '../types/IEbsiSupport'
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { OID4VCICredentialFormat, RequestObjectOpts } from '@sphereon/oid4vci-co
|
|
|
3
3
|
import { Format, PresentationDefinitionV2 } from '@sphereon/pex-models'
|
|
4
4
|
import { IIdentifierResolution, ManagedIdentifierDidOpts, ManagedIdentifierDidResult } from '@sphereon/ssi-sdk-ext.identifier-resolution'
|
|
5
5
|
import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service'
|
|
6
|
-
import {
|
|
6
|
+
import { IBasicCredentialLocaleBranding, Party } from '@sphereon/ssi-sdk.data-store-types'
|
|
7
|
+
import { CredentialRole } from '@sphereon/ssi-types'
|
|
7
8
|
import { ErrorDetails, IOID4VCIHolder, MappedCredentialToAccept } from '@sphereon/ssi-sdk.oid4vci-holder'
|
|
8
9
|
import { IPresentationExchange } from '@sphereon/ssi-sdk.presentation-exchange'
|
|
9
10
|
import { IDidAuthSiopOpAuthenticator } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth'
|