@sphereon/ssi-sdk.credential-store 0.34.1-next.91 → 0.36.0
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 +21 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
- package/src/agent/CredentialStore.ts +7 -7
- package/src/index.ts +2 -2
- package/src/types/ICredentialStore.ts +2 -2
- package/src/utils/filters.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.credential-store",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@sphereon/pex": "5.0.0-unstable.28",
|
|
31
31
|
"@sphereon/pex-models": "^2.3.2",
|
|
32
|
-
"@sphereon/ssi-sdk.core": "0.
|
|
33
|
-
"@sphereon/ssi-sdk.data-store": "0.
|
|
32
|
+
"@sphereon/ssi-sdk.core": "0.36.0",
|
|
33
|
+
"@sphereon/ssi-sdk.data-store": "0.36.0",
|
|
34
|
+
"@sphereon/ssi-sdk.data-store-types": "0.36.0",
|
|
34
35
|
"cross-fetch": "^4.1.0",
|
|
35
36
|
"debug": "^4.3.4",
|
|
36
37
|
"typeorm": "0.3.20",
|
|
37
38
|
"uuid": "^9.0.1"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@sphereon/ssi-sdk.agent-config": "0.
|
|
41
|
-
"@sphereon/ssi-types": "0.
|
|
41
|
+
"@sphereon/ssi-sdk.agent-config": "0.36.0",
|
|
42
|
+
"@sphereon/ssi-types": "0.36.0",
|
|
42
43
|
"@types/uuid": "^9.0.8",
|
|
43
44
|
"@veramo/remote-client": "4.2.0",
|
|
44
45
|
"@veramo/remote-server": "4.2.0"
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
"Veramo",
|
|
64
65
|
"Credential Manager"
|
|
65
66
|
],
|
|
66
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "f713d3a83948ef69aaa7d435700b16d5655ac863"
|
|
67
68
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { shaHasher as defaultHasher } from '@sphereon/ssi-sdk.core'
|
|
2
|
+
import { parseRawDocument } from '@sphereon/ssi-sdk.data-store'
|
|
1
3
|
import {
|
|
2
4
|
AbstractDigitalCredentialStore,
|
|
3
5
|
type DigitalCredential,
|
|
4
|
-
type UpdateCredentialStateArgs,
|
|
5
6
|
DocumentType,
|
|
6
|
-
|
|
7
|
-
} from '@sphereon/ssi-sdk.data-store'
|
|
8
|
-
import { shaHasher as defaultHasher } from '@sphereon/ssi-sdk.core'
|
|
7
|
+
type UpdateCredentialStateArgs,
|
|
8
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
9
9
|
import { type IVerifiableCredential } from '@sphereon/ssi-types'
|
|
10
10
|
import { type IAgentPlugin } from '@veramo/core'
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { logger, schema } from '../index'
|
|
12
|
+
import type { TClaimsColumns } from '../types/claims'
|
|
13
13
|
import type {
|
|
14
14
|
AddCredentialArgs,
|
|
15
15
|
DeleteCredentialArgs,
|
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
OptionalUniqueDigitalCredential,
|
|
23
23
|
UniqueDigitalCredential,
|
|
24
24
|
} from '../types/ICredentialStore'
|
|
25
|
-
import
|
|
25
|
+
import { credentialIdOrHashFilter } from '../utils/filters'
|
|
26
26
|
|
|
27
27
|
// Exposing the methods here for any REST implementation
|
|
28
28
|
export const credentialStoreMethods: Array<string> = [
|
package/src/index.ts
CHANGED
|
@@ -10,14 +10,14 @@ export const logger = Loggers.DEFAULT.get('sphereon:credential-store')
|
|
|
10
10
|
|
|
11
11
|
export { CredentialStore, credentialStoreMethods } from './agent/CredentialStore'
|
|
12
12
|
export {
|
|
13
|
-
CredentialRole,
|
|
14
13
|
CredentialStateType,
|
|
15
14
|
CredentialCorrelationType,
|
|
16
15
|
CredentialDocumentFormat,
|
|
17
16
|
DocumentType,
|
|
18
17
|
type DigitalCredential,
|
|
19
18
|
type FindDigitalCredentialArgs,
|
|
20
|
-
} from '@sphereon/ssi-sdk.data-store'
|
|
19
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
20
|
+
export { CredentialRole } from '@sphereon/ssi-types'
|
|
21
21
|
export * from './types/ICredentialStore'
|
|
22
22
|
export * from './types/claims'
|
|
23
23
|
export * from './utils/filters'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { contextHasPlugin } from '@sphereon/ssi-sdk.agent-config'
|
|
2
2
|
import {
|
|
3
|
-
CredentialRole,
|
|
4
3
|
type DigitalCredential,
|
|
5
4
|
type FindDigitalCredentialArgs,
|
|
6
5
|
type NonPersistedDigitalCredential,
|
|
7
6
|
type UpdateCredentialStateArgs,
|
|
8
|
-
} from '@sphereon/ssi-sdk.data-store'
|
|
7
|
+
} from '@sphereon/ssi-sdk.data-store-types'
|
|
9
8
|
import type {
|
|
9
|
+
CredentialRole,
|
|
10
10
|
HasherSync,
|
|
11
11
|
ICredential,
|
|
12
12
|
IPresentation,
|
package/src/utils/filters.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type DigitalCredential, DocumentType, type FindDigitalCredentialArgs } from '@sphereon/ssi-sdk.data-store-types'
|
|
2
|
+
import { CredentialRole } from '@sphereon/ssi-types'
|
|
2
3
|
import { validate as uuidValidate } from 'uuid'
|
|
3
4
|
|
|
4
5
|
/**
|