@sphereon/ssi-sdk.credential-validation 0.33.1-feature.vcdm2.tsup.32 → 0.33.1-next.3
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/agent/CredentialValidation.d.ts +20 -0
- package/dist/agent/CredentialValidation.d.ts.map +1 -0
- package/dist/agent/CredentialValidation.js +243 -0
- package/dist/agent/CredentialValidation.js.map +1 -0
- package/dist/index.d.ts +4 -79
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -1866
- package/dist/index.js.map +1 -1
- package/dist/{index.d.cts → ssi-sdk.credential-validation.d.ts} +101 -83
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/types/ICredentialValidation.d.ts +59 -0
- package/dist/types/ICredentialValidation.d.ts.map +1 -0
- package/dist/types/ICredentialValidation.js +10 -0
- package/dist/types/ICredentialValidation.js.map +1 -0
- package/package.json +14 -27
- package/plugin.schema.json +26 -62
- package/src/types/ICredentialValidation.ts +1 -1
- package/dist/index.cjs +0 -1898
- package/dist/index.cjs.map +0 -1
package/plugin.schema.json
CHANGED
|
@@ -910,19 +910,11 @@
|
|
|
910
910
|
"description": "In case of JWT credential it will be the decoded version. In other cases it will be the same as original one"
|
|
911
911
|
},
|
|
912
912
|
"type": {
|
|
913
|
-
"
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
{
|
|
919
|
-
"type": "string",
|
|
920
|
-
"const": "jwt-encoded"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"type": "string",
|
|
924
|
-
"const": "jwt-decoded"
|
|
925
|
-
}
|
|
913
|
+
"type": "string",
|
|
914
|
+
"enum": [
|
|
915
|
+
"json-ld",
|
|
916
|
+
"jwt-encoded",
|
|
917
|
+
"jwt-decoded"
|
|
926
918
|
],
|
|
927
919
|
"description": "Type of this credential. Supported types are json-ld, jwt (decoded/encoded)"
|
|
928
920
|
},
|
|
@@ -968,15 +960,10 @@
|
|
|
968
960
|
"description": "Decoded version of the SD-JWT payload. This is the decoded payload, rather than the whole SD-JWT as the `decoded` property is used in e.g. PEX to check for path filters from fields. The full decoded credential can be found in the `credential` field."
|
|
969
961
|
},
|
|
970
962
|
"type": {
|
|
971
|
-
"
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"type": "string",
|
|
978
|
-
"const": "sd-jwt-vc-encoded"
|
|
979
|
-
}
|
|
963
|
+
"type": "string",
|
|
964
|
+
"enum": [
|
|
965
|
+
"sd-jwt-vc-decoded",
|
|
966
|
+
"sd-jwt-vc-encoded"
|
|
980
967
|
],
|
|
981
968
|
"description": "Type of this credential."
|
|
982
969
|
},
|
|
@@ -1021,15 +1008,10 @@
|
|
|
1021
1008
|
"description": "Record where keys are the namespaces and the values are objects again with the namespace values"
|
|
1022
1009
|
},
|
|
1023
1010
|
"type": {
|
|
1024
|
-
"
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
"type": "string",
|
|
1031
|
-
"const": "mso_mdoc-encoded"
|
|
1032
|
-
}
|
|
1011
|
+
"type": "string",
|
|
1012
|
+
"enum": [
|
|
1013
|
+
"mso_mdoc-decoded",
|
|
1014
|
+
"mso_mdoc-encoded"
|
|
1033
1015
|
],
|
|
1034
1016
|
"description": "Type of this credential."
|
|
1035
1017
|
},
|
|
@@ -1104,19 +1086,11 @@
|
|
|
1104
1086
|
"description": "In case of JWT VP it will be the decoded version. In other cases it will be the same as original one"
|
|
1105
1087
|
},
|
|
1106
1088
|
"type": {
|
|
1107
|
-
"
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
{
|
|
1113
|
-
"type": "string",
|
|
1114
|
-
"const": "jwt-encoded"
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
"type": "string",
|
|
1118
|
-
"const": "jwt-decoded"
|
|
1119
|
-
}
|
|
1089
|
+
"type": "string",
|
|
1090
|
+
"enum": [
|
|
1091
|
+
"json-ld",
|
|
1092
|
+
"jwt-encoded",
|
|
1093
|
+
"jwt-decoded"
|
|
1120
1094
|
],
|
|
1121
1095
|
"description": "Type of this Presentation. Supported types are json-ld and jwt (decoded/encoded) and sd-jwt-vc (decoded/encoded)"
|
|
1122
1096
|
},
|
|
@@ -1384,15 +1358,10 @@
|
|
|
1384
1358
|
"description": "Decoded version of the SD-JWT payload. This is the decoded payload, rather than the whole SD-JWT."
|
|
1385
1359
|
},
|
|
1386
1360
|
"type": {
|
|
1387
|
-
"
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
},
|
|
1392
|
-
{
|
|
1393
|
-
"type": "string",
|
|
1394
|
-
"const": "sd-jwt-vc-encoded"
|
|
1395
|
-
}
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
"enum": [
|
|
1363
|
+
"sd-jwt-vc-decoded",
|
|
1364
|
+
"sd-jwt-vc-encoded"
|
|
1396
1365
|
],
|
|
1397
1366
|
"description": "Type of this Presentation."
|
|
1398
1367
|
},
|
|
@@ -1443,15 +1412,10 @@
|
|
|
1443
1412
|
"description": "Decoded version of the SD-JWT payload. This is the decoded payload, rather than the whole SD-JWT."
|
|
1444
1413
|
},
|
|
1445
1414
|
"type": {
|
|
1446
|
-
"
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
"type": "string",
|
|
1453
|
-
"const": "mso_mdoc-decoded"
|
|
1454
|
-
}
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
"enum": [
|
|
1417
|
+
"mso_mdoc-encoded",
|
|
1418
|
+
"mso_mdoc-decoded"
|
|
1455
1419
|
],
|
|
1456
1420
|
"description": "Type of this Presentation."
|
|
1457
1421
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAgentContext, ICredentialVerifier, IPluginMethodMap } from '@veramo/core'
|
|
2
2
|
import { HasherSync, WrappedVerifiableCredential, WrappedVerifiablePresentation } from '@sphereon/ssi-types'
|
|
3
3
|
import { ImDLMdoc } from '@sphereon/ssi-sdk.mdl-mdoc'
|
|
4
|
-
import { OriginalVerifiableCredential } from '@sphereon/ssi-types'
|
|
4
|
+
import { OriginalVerifiableCredential } from '@sphereon/ssi-types/dist'
|
|
5
5
|
|
|
6
6
|
export interface ICredentialValidation extends IPluginMethodMap {
|
|
7
7
|
cvVerifyCredential(args: VerifyCredentialArgs, context: RequiredContext): Promise<VerificationResult>
|