@sphereon/ssi-sdk.credential-store 0.32.1-next.54 → 0.33.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.
|
@@ -6,7 +6,7 @@ import { CredentialStateType } from '@sphereon/ssi-sdk.data-store';
|
|
|
6
6
|
import { DigitalCredential } from '@sphereon/ssi-sdk.data-store';
|
|
7
7
|
import { DocumentType as DocumentType_2 } from '@sphereon/ssi-sdk.data-store';
|
|
8
8
|
import { FindDigitalCredentialArgs } from '@sphereon/ssi-sdk.data-store';
|
|
9
|
-
import {
|
|
9
|
+
import { HasherSync } from '@sphereon/ssi-types';
|
|
10
10
|
import { IAgentContext } from '@veramo/core';
|
|
11
11
|
import { IAgentPlugin } from '@veramo/core';
|
|
12
12
|
import { ICredential } from '@sphereon/ssi-types';
|
|
@@ -24,7 +24,7 @@ export declare type AddCredentialArgs = {
|
|
|
24
24
|
credential: AddDigitalCredential;
|
|
25
25
|
opts?: {
|
|
26
26
|
maxTimeSkewInMS?: number;
|
|
27
|
-
hasher?:
|
|
27
|
+
hasher?: HasherSync;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CredentialRole, DigitalCredential, FindDigitalCredentialArgs, NonPersistedDigitalCredential, UpdateCredentialStateArgs } from '@sphereon/ssi-sdk.data-store';
|
|
2
|
-
import {
|
|
2
|
+
import { HasherSync, ICredential, IPresentation, IVerifiableCredential, IVerifiablePresentation, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
|
|
3
3
|
import { IAgentContext, IPluginMethodMap } from '@veramo/core';
|
|
4
4
|
import { FindClaimsArgs } from './claims';
|
|
5
5
|
export type { UpdateCredentialStateArgs };
|
|
@@ -87,7 +87,7 @@ export type AddCredentialArgs = {
|
|
|
87
87
|
credential: AddDigitalCredential;
|
|
88
88
|
opts?: {
|
|
89
89
|
maxTimeSkewInMS?: number;
|
|
90
|
-
hasher?:
|
|
90
|
+
hasher?: HasherSync;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
export interface UniqueDigitalCredential {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICredentialStore.d.ts","sourceRoot":"","sources":["../../src/types/ICredentialStore.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,yBAAyB,EAC1B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"ICredentialStore.d.ts","sourceRoot":"","sources":["../../src/types/ICredentialStore.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,yBAAyB,EAC1B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,YAAY,EAAE,yBAAyB,EAAE,CAAA;AAEzC,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAErE;;;OAGG;IACH,wBAAwB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAErF;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAErE;;;OAGG;IACH,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAA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AAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpE,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAA;AAEtD,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,6BAA6B,EAC7B,IAAI,GAAG,cAAc,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,WAAW,GAAG,YAAY,CACnI,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,oBAAoB,CAAA;IAChC,IAAI,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,CAAA;KAAE,CAAA;CACzD,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,iBAAiB,EAAE,iBAAiB,CAAA;IAEpC,4BAA4B,CAAC,EAAE,4BAA4B,CAAA;IAC3D,8BAA8B,CAAC,EAAE,8BAA8B,CAAA;IAC/D,kBAAkB,CAAC,EAAE,WAAW,CAAA;IAChC,oBAAoB,CAAC,EAAE,aAAa,CAAA;IACpC,2BAA2B,CAAC,EAAE,qBAAqB,CAAA;IACnD,6BAA6B,CAAC,EAAE,uBAAuB,CAAA;CACxD;AAED,MAAM,MAAM,+BAA+B,GAAG,uBAAuB,GAAG,SAAS,CAAA;AAEjF,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.credential-store",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@sphereon/pex": "5.0.0-unstable.28",
|
|
19
19
|
"@sphereon/pex-models": "^2.3.2",
|
|
20
|
-
"@sphereon/ssi-sdk.core": "0.
|
|
21
|
-
"@sphereon/ssi-sdk.data-store": "0.
|
|
20
|
+
"@sphereon/ssi-sdk.core": "0.33.0",
|
|
21
|
+
"@sphereon/ssi-sdk.data-store": "0.33.0",
|
|
22
22
|
"cross-fetch": "^3.1.8",
|
|
23
23
|
"debug": "^4.3.4",
|
|
24
|
-
"typeorm": "^0.3.
|
|
24
|
+
"typeorm": "^0.3.21",
|
|
25
25
|
"uuid": "^9.0.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@sphereon/ssi-sdk.agent-config": "0.
|
|
29
|
-
"@sphereon/ssi-types": "0.
|
|
28
|
+
"@sphereon/ssi-sdk.agent-config": "0.33.0",
|
|
29
|
+
"@sphereon/ssi-types": "0.33.0",
|
|
30
30
|
"@types/uuid": "^9.0.8",
|
|
31
31
|
"@veramo/remote-client": "4.2.0",
|
|
32
32
|
"@veramo/remote-server": "4.2.0"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"Credential Manager"
|
|
53
53
|
],
|
|
54
54
|
"nx": {},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c575bdd6642bda761881f0152e0a70ddc82d7f61"
|
|
56
56
|
}
|
package/plugin.schema.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"type": "number"
|
|
16
16
|
},
|
|
17
17
|
"hasher": {
|
|
18
|
-
"$ref": "#/components/schemas/
|
|
18
|
+
"$ref": "#/components/schemas/HasherSync"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -101,15 +101,30 @@
|
|
|
101
101
|
"issuerCorrelationId"
|
|
102
102
|
]
|
|
103
103
|
},
|
|
104
|
-
"
|
|
105
|
-
"$comment": "(data: string, alg: string) => Uint8Array",
|
|
104
|
+
"HasherSync": {
|
|
105
|
+
"$comment": "(data: string | ArrayBuffer, alg: string) => Uint8Array",
|
|
106
106
|
"type": "object",
|
|
107
107
|
"properties": {
|
|
108
108
|
"namedArgs": {
|
|
109
109
|
"type": "object",
|
|
110
110
|
"properties": {
|
|
111
111
|
"data": {
|
|
112
|
-
"
|
|
112
|
+
"anyOf": [
|
|
113
|
+
{
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"byteLength": {
|
|
120
|
+
"type": "number"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"byteLength"
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
]
|
|
113
128
|
},
|
|
114
129
|
"alg": {
|
|
115
130
|
"type": "string"
|
|
@@ -1103,7 +1118,7 @@
|
|
|
1103
1118
|
"additionalProperties": {
|
|
1104
1119
|
"anyOf": [
|
|
1105
1120
|
{
|
|
1106
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1121
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1107
1122
|
},
|
|
1108
1123
|
{
|
|
1109
1124
|
"not": {}
|
|
@@ -1114,7 +1129,7 @@
|
|
|
1114
1129
|
{
|
|
1115
1130
|
"type": "array",
|
|
1116
1131
|
"items": {
|
|
1117
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1132
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1118
1133
|
}
|
|
1119
1134
|
}
|
|
1120
1135
|
]
|
|
@@ -1145,7 +1160,7 @@
|
|
|
1145
1160
|
"additionalProperties": {
|
|
1146
1161
|
"anyOf": [
|
|
1147
1162
|
{
|
|
1148
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1163
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1149
1164
|
},
|
|
1150
1165
|
{
|
|
1151
1166
|
"not": {}
|
|
@@ -1156,7 +1171,7 @@
|
|
|
1156
1171
|
{
|
|
1157
1172
|
"type": "array",
|
|
1158
1173
|
"items": {
|
|
1159
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1174
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1160
1175
|
}
|
|
1161
1176
|
}
|
|
1162
1177
|
]
|
|
@@ -1166,7 +1181,7 @@
|
|
|
1166
1181
|
}
|
|
1167
1182
|
]
|
|
1168
1183
|
},
|
|
1169
|
-
"alias-pes_sd-jwt-vc.d.ts-
|
|
1184
|
+
"alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006": {
|
|
1170
1185
|
"anyOf": [
|
|
1171
1186
|
{
|
|
1172
1187
|
"type": "string"
|
|
@@ -1182,7 +1197,7 @@
|
|
|
1182
1197
|
"additionalProperties": {
|
|
1183
1198
|
"anyOf": [
|
|
1184
1199
|
{
|
|
1185
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1200
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1186
1201
|
},
|
|
1187
1202
|
{
|
|
1188
1203
|
"not": {}
|
|
@@ -1193,7 +1208,7 @@
|
|
|
1193
1208
|
{
|
|
1194
1209
|
"type": "array",
|
|
1195
1210
|
"items": {
|
|
1196
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1211
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1197
1212
|
}
|
|
1198
1213
|
}
|
|
1199
1214
|
]
|
|
@@ -1265,7 +1280,7 @@
|
|
|
1265
1280
|
"additionalProperties": {
|
|
1266
1281
|
"anyOf": [
|
|
1267
1282
|
{
|
|
1268
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1283
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1269
1284
|
},
|
|
1270
1285
|
{
|
|
1271
1286
|
"not": {}
|
|
@@ -1276,7 +1291,7 @@
|
|
|
1276
1291
|
{
|
|
1277
1292
|
"type": "array",
|
|
1278
1293
|
"items": {
|
|
1279
|
-
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-
|
|
1294
|
+
"$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
|
|
1280
1295
|
}
|
|
1281
1296
|
},
|
|
1282
1297
|
{
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
UpdateCredentialStateArgs,
|
|
8
8
|
} from '@sphereon/ssi-sdk.data-store'
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
HasherSync,
|
|
11
11
|
ICredential,
|
|
12
12
|
IPresentation,
|
|
13
13
|
IVerifiableCredential,
|
|
@@ -121,7 +121,7 @@ export type AddDigitalCredential = Omit<
|
|
|
121
121
|
|
|
122
122
|
export type AddCredentialArgs = {
|
|
123
123
|
credential: AddDigitalCredential
|
|
124
|
-
opts?: { maxTimeSkewInMS?: number; hasher?:
|
|
124
|
+
opts?: { maxTimeSkewInMS?: number; hasher?: HasherSync }
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export interface UniqueDigitalCredential {
|