@sphereon/ssi-sdk.credential-validation 0.33.1-feature.vcdm2.tsup.31 → 0.33.1-feature.vcdm2.tsup.33
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 +40 -208
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +40 -208
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
- package/plugin.schema.json +41 -209
package/dist/index.js
CHANGED
|
@@ -28,10 +28,7 @@ var require_plugin_schema = __commonJS({
|
|
|
28
28
|
$ref: "#/components/schemas/VerificationPolicies"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
required: [
|
|
32
|
-
"credential",
|
|
33
|
-
"fetchRemoteContexts"
|
|
34
|
-
]
|
|
31
|
+
required: ["credential", "fetchRemoteContexts"]
|
|
35
32
|
},
|
|
36
33
|
OriginalVerifiableCredential: {
|
|
37
34
|
anyOf: [
|
|
@@ -163,14 +160,7 @@ var require_plugin_schema = __commonJS({
|
|
|
163
160
|
type: "string"
|
|
164
161
|
}
|
|
165
162
|
},
|
|
166
|
-
required: [
|
|
167
|
-
"@context",
|
|
168
|
-
"credentialSubject",
|
|
169
|
-
"issuanceDate",
|
|
170
|
-
"issuer",
|
|
171
|
-
"proof",
|
|
172
|
-
"type"
|
|
173
|
-
]
|
|
163
|
+
required: ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
|
|
174
164
|
},
|
|
175
165
|
IProof: {
|
|
176
166
|
type: "object",
|
|
@@ -229,12 +219,7 @@ var require_plugin_schema = __commonJS({
|
|
|
229
219
|
}
|
|
230
220
|
}
|
|
231
221
|
},
|
|
232
|
-
required: [
|
|
233
|
-
"type",
|
|
234
|
-
"created",
|
|
235
|
-
"proofPurpose",
|
|
236
|
-
"verificationMethod"
|
|
237
|
-
]
|
|
222
|
+
required: ["type", "created", "proofPurpose", "verificationMethod"]
|
|
238
223
|
},
|
|
239
224
|
IProofType: {
|
|
240
225
|
type: "string",
|
|
@@ -304,9 +289,7 @@ var require_plugin_schema = __commonJS({
|
|
|
304
289
|
type: "string"
|
|
305
290
|
}
|
|
306
291
|
},
|
|
307
|
-
required: [
|
|
308
|
-
"id"
|
|
309
|
-
]
|
|
292
|
+
required: ["id"]
|
|
310
293
|
},
|
|
311
294
|
IIssuerId: {
|
|
312
295
|
type: "string"
|
|
@@ -318,9 +301,7 @@ var require_plugin_schema = __commonJS({
|
|
|
318
301
|
type: "string"
|
|
319
302
|
}
|
|
320
303
|
},
|
|
321
|
-
required: [
|
|
322
|
-
"id"
|
|
323
|
-
]
|
|
304
|
+
required: ["id"]
|
|
324
305
|
},
|
|
325
306
|
ICredentialStatus: {
|
|
326
307
|
type: "object",
|
|
@@ -332,10 +313,7 @@ var require_plugin_schema = __commonJS({
|
|
|
332
313
|
type: "string"
|
|
333
314
|
}
|
|
334
315
|
},
|
|
335
|
-
required: [
|
|
336
|
-
"id",
|
|
337
|
-
"type"
|
|
338
|
-
]
|
|
316
|
+
required: ["id", "type"]
|
|
339
317
|
},
|
|
340
318
|
CompactJWT: {
|
|
341
319
|
type: "string",
|
|
@@ -363,14 +341,7 @@ var require_plugin_schema = __commonJS({
|
|
|
363
341
|
type: "string"
|
|
364
342
|
}
|
|
365
343
|
},
|
|
366
|
-
required: [
|
|
367
|
-
"vc",
|
|
368
|
-
"exp",
|
|
369
|
-
"iss",
|
|
370
|
-
"nbf",
|
|
371
|
-
"sub",
|
|
372
|
-
"jti"
|
|
373
|
-
]
|
|
344
|
+
required: ["vc", "exp", "iss", "nbf", "sub", "jti"]
|
|
374
345
|
},
|
|
375
346
|
SdJwtDecodedVerifiableCredential: {
|
|
376
347
|
type: "object",
|
|
@@ -423,10 +394,7 @@ var require_plugin_schema = __commonJS({
|
|
|
423
394
|
type: "string"
|
|
424
395
|
}
|
|
425
396
|
},
|
|
426
|
-
required: [
|
|
427
|
-
"idx",
|
|
428
|
-
"uri"
|
|
429
|
-
]
|
|
397
|
+
required: ["idx", "uri"]
|
|
430
398
|
},
|
|
431
399
|
sub: {
|
|
432
400
|
type: "string"
|
|
@@ -450,21 +418,11 @@ var require_plugin_schema = __commonJS({
|
|
|
450
418
|
not: {}
|
|
451
419
|
},
|
|
452
420
|
{
|
|
453
|
-
type: [
|
|
454
|
-
"string",
|
|
455
|
-
"number",
|
|
456
|
-
"boolean",
|
|
457
|
-
"object",
|
|
458
|
-
"array"
|
|
459
|
-
]
|
|
421
|
+
type: ["string", "number", "boolean", "object", "array"]
|
|
460
422
|
}
|
|
461
423
|
]
|
|
462
424
|
},
|
|
463
|
-
required: [
|
|
464
|
-
"iat",
|
|
465
|
-
"iss",
|
|
466
|
-
"vct"
|
|
467
|
-
],
|
|
425
|
+
required: ["iat", "iss", "vct"],
|
|
468
426
|
description: "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
|
|
469
427
|
},
|
|
470
428
|
decodedPayload: {
|
|
@@ -484,19 +442,11 @@ var require_plugin_schema = __commonJS({
|
|
|
484
442
|
$ref: "#/components/schemas/CompactJWT"
|
|
485
443
|
}
|
|
486
444
|
},
|
|
487
|
-
required: [
|
|
488
|
-
"header",
|
|
489
|
-
"payload"
|
|
490
|
-
],
|
|
445
|
+
required: ["header", "payload"],
|
|
491
446
|
description: "Key binding JWT"
|
|
492
447
|
}
|
|
493
448
|
},
|
|
494
|
-
required: [
|
|
495
|
-
"compactSdJwtVc",
|
|
496
|
-
"disclosures",
|
|
497
|
-
"signedPayload",
|
|
498
|
-
"decodedPayload"
|
|
499
|
-
],
|
|
449
|
+
required: ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
|
|
500
450
|
description: "The decoded SD JWT Verifiable Credential. This representation includes multiple representations of the same SD-JWT, and allows to fully process an SD-JWT, as well as create a presentation SD-JWT (minus the KB-JWT) by removing certain disclosures from the compact SD-JWT.\n\nThis representation is useful as it doesn't require a hasher implementation to match the different digests in the signed SD-JWT payload, with the different disclosures."
|
|
501
451
|
},
|
|
502
452
|
SdJwtDisclosure: {
|
|
@@ -512,11 +462,7 @@ var require_plugin_schema = __commonJS({
|
|
|
512
462
|
type: "string"
|
|
513
463
|
}
|
|
514
464
|
},
|
|
515
|
-
required: [
|
|
516
|
-
"encoded",
|
|
517
|
-
"decoded",
|
|
518
|
-
"digest"
|
|
519
|
-
]
|
|
465
|
+
required: ["encoded", "decoded", "digest"]
|
|
520
466
|
},
|
|
521
467
|
SdJwtDecodedDisclosure: {
|
|
522
468
|
anyOf: [
|
|
@@ -678,20 +624,13 @@ var require_plugin_schema = __commonJS({
|
|
|
678
624
|
type: "string"
|
|
679
625
|
}
|
|
680
626
|
},
|
|
681
|
-
required: [
|
|
682
|
-
"idx",
|
|
683
|
-
"uri"
|
|
684
|
-
]
|
|
627
|
+
required: ["idx", "uri"]
|
|
685
628
|
},
|
|
686
629
|
sub: {
|
|
687
630
|
type: "string"
|
|
688
631
|
}
|
|
689
632
|
},
|
|
690
|
-
required: [
|
|
691
|
-
"vct",
|
|
692
|
-
"iss",
|
|
693
|
-
"iat"
|
|
694
|
-
],
|
|
633
|
+
required: ["vct", "iss", "iat"],
|
|
695
634
|
additionalProperties: {
|
|
696
635
|
anyOf: [
|
|
697
636
|
{
|
|
@@ -740,10 +679,7 @@ var require_plugin_schema = __commonJS({
|
|
|
740
679
|
type: "string"
|
|
741
680
|
}
|
|
742
681
|
},
|
|
743
|
-
required: [
|
|
744
|
-
"typ",
|
|
745
|
-
"alg"
|
|
746
|
-
]
|
|
682
|
+
required: ["typ", "alg"]
|
|
747
683
|
},
|
|
748
684
|
SdJwtVcKbJwtPayload: {
|
|
749
685
|
type: "object",
|
|
@@ -761,12 +697,7 @@ var require_plugin_schema = __commonJS({
|
|
|
761
697
|
type: "string"
|
|
762
698
|
}
|
|
763
699
|
},
|
|
764
|
-
required: [
|
|
765
|
-
"iat",
|
|
766
|
-
"aud",
|
|
767
|
-
"nonce",
|
|
768
|
-
"sd_hash"
|
|
769
|
-
],
|
|
700
|
+
required: ["iat", "aud", "nonce", "sd_hash"],
|
|
770
701
|
additionalProperties: {}
|
|
771
702
|
},
|
|
772
703
|
MdocOid4vpIssuerSigned: {
|
|
@@ -799,9 +730,7 @@ var require_plugin_schema = __commonJS({
|
|
|
799
730
|
type: "number"
|
|
800
731
|
}
|
|
801
732
|
},
|
|
802
|
-
required: [
|
|
803
|
-
"byteLength"
|
|
804
|
-
]
|
|
733
|
+
required: ["byteLength"]
|
|
805
734
|
}
|
|
806
735
|
]
|
|
807
736
|
},
|
|
@@ -809,10 +738,7 @@ var require_plugin_schema = __commonJS({
|
|
|
809
738
|
type: "string"
|
|
810
739
|
}
|
|
811
740
|
},
|
|
812
|
-
required: [
|
|
813
|
-
"data",
|
|
814
|
-
"alg"
|
|
815
|
-
],
|
|
741
|
+
required: ["data", "alg"],
|
|
816
742
|
additionalProperties: false
|
|
817
743
|
}
|
|
818
744
|
}
|
|
@@ -833,18 +759,11 @@ var require_plugin_schema = __commonJS({
|
|
|
833
759
|
type: "boolean"
|
|
834
760
|
}
|
|
835
761
|
},
|
|
836
|
-
required: [
|
|
837
|
-
"expirationDate",
|
|
838
|
-
"issuanceDate"
|
|
839
|
-
]
|
|
762
|
+
required: ["expirationDate", "issuanceDate"]
|
|
840
763
|
},
|
|
841
764
|
SchemaValidation: {
|
|
842
765
|
type: "string",
|
|
843
|
-
enum: [
|
|
844
|
-
"ALWAYS",
|
|
845
|
-
"NEVER",
|
|
846
|
-
"WHEN_PRESENT"
|
|
847
|
-
]
|
|
766
|
+
enum: ["ALWAYS", "NEVER", "WHEN_PRESENT"]
|
|
848
767
|
},
|
|
849
768
|
VerificationResult: {
|
|
850
769
|
type: "object",
|
|
@@ -875,11 +794,7 @@ var require_plugin_schema = __commonJS({
|
|
|
875
794
|
type: "string"
|
|
876
795
|
}
|
|
877
796
|
},
|
|
878
|
-
required: [
|
|
879
|
-
"result",
|
|
880
|
-
"source",
|
|
881
|
-
"subResults"
|
|
882
|
-
]
|
|
797
|
+
required: ["result", "source", "subResults"]
|
|
883
798
|
},
|
|
884
799
|
WrappedVerifiableCredential: {
|
|
885
800
|
anyOf: [
|
|
@@ -938,12 +853,7 @@ var require_plugin_schema = __commonJS({
|
|
|
938
853
|
},
|
|
939
854
|
format: {
|
|
940
855
|
type: "string",
|
|
941
|
-
enum: [
|
|
942
|
-
"jwt_vc",
|
|
943
|
-
"ldp_vc",
|
|
944
|
-
"ldp",
|
|
945
|
-
"jwt"
|
|
946
|
-
],
|
|
856
|
+
enum: ["jwt_vc", "ldp_vc", "ldp", "jwt"],
|
|
947
857
|
description: "The claim format, typically used during exchange transport protocols"
|
|
948
858
|
},
|
|
949
859
|
credential: {
|
|
@@ -951,13 +861,7 @@ var require_plugin_schema = __commonJS({
|
|
|
951
861
|
description: "Internal stable representation of a Credential"
|
|
952
862
|
}
|
|
953
863
|
},
|
|
954
|
-
required: [
|
|
955
|
-
"original",
|
|
956
|
-
"decoded",
|
|
957
|
-
"type",
|
|
958
|
-
"format",
|
|
959
|
-
"credential"
|
|
960
|
-
]
|
|
864
|
+
required: ["original", "decoded", "type", "format", "credential"]
|
|
961
865
|
},
|
|
962
866
|
WrappedSdJwtVerifiableCredential: {
|
|
963
867
|
type: "object",
|
|
@@ -1000,13 +904,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1000
904
|
description: "Internal stable representation of a Credential"
|
|
1001
905
|
}
|
|
1002
906
|
},
|
|
1003
|
-
required: [
|
|
1004
|
-
"original",
|
|
1005
|
-
"decoded",
|
|
1006
|
-
"type",
|
|
1007
|
-
"format",
|
|
1008
|
-
"credential"
|
|
1009
|
-
]
|
|
907
|
+
required: ["original", "decoded", "type", "format", "credential"]
|
|
1010
908
|
},
|
|
1011
909
|
CompactSdJwtVc: {
|
|
1012
910
|
type: "string",
|
|
@@ -1053,24 +951,14 @@ var require_plugin_schema = __commonJS({
|
|
|
1053
951
|
description: "Internal stable representation of a Credential"
|
|
1054
952
|
}
|
|
1055
953
|
},
|
|
1056
|
-
required: [
|
|
1057
|
-
"original",
|
|
1058
|
-
"decoded",
|
|
1059
|
-
"type",
|
|
1060
|
-
"format",
|
|
1061
|
-
"credential"
|
|
1062
|
-
]
|
|
954
|
+
required: ["original", "decoded", "type", "format", "credential"]
|
|
1063
955
|
},
|
|
1064
956
|
MdocDecodedPayload: {
|
|
1065
957
|
type: "object",
|
|
1066
958
|
additionalProperties: {
|
|
1067
959
|
type: "object",
|
|
1068
960
|
additionalProperties: {
|
|
1069
|
-
type: [
|
|
1070
|
-
"string",
|
|
1071
|
-
"number",
|
|
1072
|
-
"boolean"
|
|
1073
|
-
]
|
|
961
|
+
type: ["string", "number", "boolean"]
|
|
1074
962
|
}
|
|
1075
963
|
},
|
|
1076
964
|
description: "Record where keys are the namespaces and the values are objects again with the namespace values"
|
|
@@ -1132,10 +1020,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1132
1020
|
},
|
|
1133
1021
|
format: {
|
|
1134
1022
|
type: "string",
|
|
1135
|
-
enum: [
|
|
1136
|
-
"jwt_vp",
|
|
1137
|
-
"ldp_vp"
|
|
1138
|
-
],
|
|
1023
|
+
enum: ["jwt_vp", "ldp_vp"],
|
|
1139
1024
|
description: "The claim format, typically used during exchange transport protocols"
|
|
1140
1025
|
},
|
|
1141
1026
|
presentation: {
|
|
@@ -1150,14 +1035,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1150
1035
|
description: "Wrapped Verifiable Credentials belonging to the Presentation"
|
|
1151
1036
|
}
|
|
1152
1037
|
},
|
|
1153
|
-
required: [
|
|
1154
|
-
"original",
|
|
1155
|
-
"decoded",
|
|
1156
|
-
"type",
|
|
1157
|
-
"format",
|
|
1158
|
-
"presentation",
|
|
1159
|
-
"vcs"
|
|
1160
|
-
]
|
|
1038
|
+
required: ["original", "decoded", "type", "format", "presentation", "vcs"]
|
|
1161
1039
|
},
|
|
1162
1040
|
W3CVerifiablePresentation: {
|
|
1163
1041
|
anyOf: [
|
|
@@ -1231,10 +1109,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1231
1109
|
type: "string"
|
|
1232
1110
|
}
|
|
1233
1111
|
},
|
|
1234
|
-
required: [
|
|
1235
|
-
"@context",
|
|
1236
|
-
"proof"
|
|
1237
|
-
]
|
|
1112
|
+
required: ["@context", "proof"]
|
|
1238
1113
|
},
|
|
1239
1114
|
PresentationSubmission: {
|
|
1240
1115
|
type: "object",
|
|
@@ -1255,11 +1130,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1255
1130
|
description: "List of descriptors of how the claims are being mapped to presentation definition"
|
|
1256
1131
|
}
|
|
1257
1132
|
},
|
|
1258
|
-
required: [
|
|
1259
|
-
"id",
|
|
1260
|
-
"definition_id",
|
|
1261
|
-
"descriptor_map"
|
|
1262
|
-
],
|
|
1133
|
+
required: ["id", "definition_id", "descriptor_map"],
|
|
1263
1134
|
description: "It expresses how the inputs are presented as proofs to a Verifier."
|
|
1264
1135
|
},
|
|
1265
1136
|
Descriptor: {
|
|
@@ -1281,11 +1152,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1281
1152
|
description: "The Proof or JWT algorith that the proof is in"
|
|
1282
1153
|
}
|
|
1283
1154
|
},
|
|
1284
|
-
required: [
|
|
1285
|
-
"id",
|
|
1286
|
-
"path",
|
|
1287
|
-
"format"
|
|
1288
|
-
],
|
|
1155
|
+
required: ["id", "path", "format"],
|
|
1289
1156
|
description: "descriptor map laying out the structure of the presentation submission."
|
|
1290
1157
|
},
|
|
1291
1158
|
JwtDecodedVerifiablePresentation: {
|
|
@@ -1316,16 +1183,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1316
1183
|
type: "string"
|
|
1317
1184
|
}
|
|
1318
1185
|
},
|
|
1319
|
-
required: [
|
|
1320
|
-
"vp",
|
|
1321
|
-
"exp",
|
|
1322
|
-
"iss",
|
|
1323
|
-
"nbf",
|
|
1324
|
-
"sub",
|
|
1325
|
-
"jti",
|
|
1326
|
-
"aud",
|
|
1327
|
-
"iat"
|
|
1328
|
-
]
|
|
1186
|
+
required: ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
|
|
1329
1187
|
},
|
|
1330
1188
|
UniformVerifiablePresentation: {
|
|
1331
1189
|
type: "object",
|
|
@@ -1369,11 +1227,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1369
1227
|
type: "string"
|
|
1370
1228
|
}
|
|
1371
1229
|
},
|
|
1372
|
-
required: [
|
|
1373
|
-
"@context",
|
|
1374
|
-
"type",
|
|
1375
|
-
"verifiableCredential"
|
|
1376
|
-
]
|
|
1230
|
+
required: ["@context", "type", "verifiableCredential"]
|
|
1377
1231
|
},
|
|
1378
1232
|
WrappedSdJwtVerifiablePresentation: {
|
|
1379
1233
|
type: "object",
|
|
@@ -1425,14 +1279,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1425
1279
|
description: "Wrapped Verifiable Credentials belonging to the Presentation. Will always be an array with a single SdJwtVerifiableCredential entry."
|
|
1426
1280
|
}
|
|
1427
1281
|
},
|
|
1428
|
-
required: [
|
|
1429
|
-
"original",
|
|
1430
|
-
"decoded",
|
|
1431
|
-
"type",
|
|
1432
|
-
"format",
|
|
1433
|
-
"presentation",
|
|
1434
|
-
"vcs"
|
|
1435
|
-
]
|
|
1282
|
+
required: ["original", "decoded", "type", "format", "presentation", "vcs"]
|
|
1436
1283
|
},
|
|
1437
1284
|
WrappedMdocPresentation: {
|
|
1438
1285
|
type: "object",
|
|
@@ -1482,14 +1329,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1482
1329
|
description: "Wrapped Mdocs belonging to the Presentation. There can be multiple documents in a single device response"
|
|
1483
1330
|
}
|
|
1484
1331
|
},
|
|
1485
|
-
required: [
|
|
1486
|
-
"original",
|
|
1487
|
-
"decoded",
|
|
1488
|
-
"type",
|
|
1489
|
-
"format",
|
|
1490
|
-
"presentation",
|
|
1491
|
-
"vcs"
|
|
1492
|
-
]
|
|
1332
|
+
required: ["original", "decoded", "type", "format", "presentation", "vcs"]
|
|
1493
1333
|
},
|
|
1494
1334
|
MdocDeviceResponse: {
|
|
1495
1335
|
$ref: "#/components/schemas/com.sphereon.mdoc.data.device.DeviceResponseCbor"
|
|
@@ -1514,9 +1354,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1514
1354
|
type: "string"
|
|
1515
1355
|
}
|
|
1516
1356
|
},
|
|
1517
|
-
required: [
|
|
1518
|
-
"result"
|
|
1519
|
-
]
|
|
1357
|
+
required: ["result"]
|
|
1520
1358
|
},
|
|
1521
1359
|
VerifyMdocCredentialArgs: {
|
|
1522
1360
|
type: "object",
|
|
@@ -1525,9 +1363,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1525
1363
|
type: "string"
|
|
1526
1364
|
}
|
|
1527
1365
|
},
|
|
1528
|
-
required: [
|
|
1529
|
-
"credential"
|
|
1530
|
-
]
|
|
1366
|
+
required: ["credential"]
|
|
1531
1367
|
},
|
|
1532
1368
|
ValidateSchemaArgs: {
|
|
1533
1369
|
type: "object",
|
|
@@ -1542,9 +1378,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1542
1378
|
$ref: "#/components/schemas/HasherSync"
|
|
1543
1379
|
}
|
|
1544
1380
|
},
|
|
1545
|
-
required: [
|
|
1546
|
-
"credential"
|
|
1547
|
-
]
|
|
1381
|
+
required: ["credential"]
|
|
1548
1382
|
},
|
|
1549
1383
|
VerifySDJWTCredentialArgs: {
|
|
1550
1384
|
type: "object",
|
|
@@ -1556,9 +1390,7 @@ var require_plugin_schema = __commonJS({
|
|
|
1556
1390
|
$ref: "#/components/schemas/HasherSync"
|
|
1557
1391
|
}
|
|
1558
1392
|
},
|
|
1559
|
-
required: [
|
|
1560
|
-
"credential"
|
|
1561
|
-
]
|
|
1393
|
+
required: ["credential"]
|
|
1562
1394
|
},
|
|
1563
1395
|
VerifyW3CCredentialArgs: {
|
|
1564
1396
|
type: "object"
|