@sphereon/ssi-sdk.credential-validation 0.33.1-feature.vcdm2.tsup.32 → 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 CHANGED
@@ -54,10 +54,7 @@ var require_plugin_schema = __commonJS({
54
54
  $ref: "#/components/schemas/VerificationPolicies"
55
55
  }
56
56
  },
57
- required: [
58
- "credential",
59
- "fetchRemoteContexts"
60
- ]
57
+ required: ["credential", "fetchRemoteContexts"]
61
58
  },
62
59
  OriginalVerifiableCredential: {
63
60
  anyOf: [
@@ -189,14 +186,7 @@ var require_plugin_schema = __commonJS({
189
186
  type: "string"
190
187
  }
191
188
  },
192
- required: [
193
- "@context",
194
- "credentialSubject",
195
- "issuanceDate",
196
- "issuer",
197
- "proof",
198
- "type"
199
- ]
189
+ required: ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
200
190
  },
201
191
  IProof: {
202
192
  type: "object",
@@ -255,12 +245,7 @@ var require_plugin_schema = __commonJS({
255
245
  }
256
246
  }
257
247
  },
258
- required: [
259
- "type",
260
- "created",
261
- "proofPurpose",
262
- "verificationMethod"
263
- ]
248
+ required: ["type", "created", "proofPurpose", "verificationMethod"]
264
249
  },
265
250
  IProofType: {
266
251
  type: "string",
@@ -330,9 +315,7 @@ var require_plugin_schema = __commonJS({
330
315
  type: "string"
331
316
  }
332
317
  },
333
- required: [
334
- "id"
335
- ]
318
+ required: ["id"]
336
319
  },
337
320
  IIssuerId: {
338
321
  type: "string"
@@ -344,9 +327,7 @@ var require_plugin_schema = __commonJS({
344
327
  type: "string"
345
328
  }
346
329
  },
347
- required: [
348
- "id"
349
- ]
330
+ required: ["id"]
350
331
  },
351
332
  ICredentialStatus: {
352
333
  type: "object",
@@ -358,10 +339,7 @@ var require_plugin_schema = __commonJS({
358
339
  type: "string"
359
340
  }
360
341
  },
361
- required: [
362
- "id",
363
- "type"
364
- ]
342
+ required: ["id", "type"]
365
343
  },
366
344
  CompactJWT: {
367
345
  type: "string",
@@ -389,14 +367,7 @@ var require_plugin_schema = __commonJS({
389
367
  type: "string"
390
368
  }
391
369
  },
392
- required: [
393
- "vc",
394
- "exp",
395
- "iss",
396
- "nbf",
397
- "sub",
398
- "jti"
399
- ]
370
+ required: ["vc", "exp", "iss", "nbf", "sub", "jti"]
400
371
  },
401
372
  SdJwtDecodedVerifiableCredential: {
402
373
  type: "object",
@@ -449,10 +420,7 @@ var require_plugin_schema = __commonJS({
449
420
  type: "string"
450
421
  }
451
422
  },
452
- required: [
453
- "idx",
454
- "uri"
455
- ]
423
+ required: ["idx", "uri"]
456
424
  },
457
425
  sub: {
458
426
  type: "string"
@@ -476,21 +444,11 @@ var require_plugin_schema = __commonJS({
476
444
  not: {}
477
445
  },
478
446
  {
479
- type: [
480
- "string",
481
- "number",
482
- "boolean",
483
- "object",
484
- "array"
485
- ]
447
+ type: ["string", "number", "boolean", "object", "array"]
486
448
  }
487
449
  ]
488
450
  },
489
- required: [
490
- "iat",
491
- "iss",
492
- "vct"
493
- ],
451
+ required: ["iat", "iss", "vct"],
494
452
  description: "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
495
453
  },
496
454
  decodedPayload: {
@@ -510,19 +468,11 @@ var require_plugin_schema = __commonJS({
510
468
  $ref: "#/components/schemas/CompactJWT"
511
469
  }
512
470
  },
513
- required: [
514
- "header",
515
- "payload"
516
- ],
471
+ required: ["header", "payload"],
517
472
  description: "Key binding JWT"
518
473
  }
519
474
  },
520
- required: [
521
- "compactSdJwtVc",
522
- "disclosures",
523
- "signedPayload",
524
- "decodedPayload"
525
- ],
475
+ required: ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
526
476
  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."
527
477
  },
528
478
  SdJwtDisclosure: {
@@ -538,11 +488,7 @@ var require_plugin_schema = __commonJS({
538
488
  type: "string"
539
489
  }
540
490
  },
541
- required: [
542
- "encoded",
543
- "decoded",
544
- "digest"
545
- ]
491
+ required: ["encoded", "decoded", "digest"]
546
492
  },
547
493
  SdJwtDecodedDisclosure: {
548
494
  anyOf: [
@@ -704,20 +650,13 @@ var require_plugin_schema = __commonJS({
704
650
  type: "string"
705
651
  }
706
652
  },
707
- required: [
708
- "idx",
709
- "uri"
710
- ]
653
+ required: ["idx", "uri"]
711
654
  },
712
655
  sub: {
713
656
  type: "string"
714
657
  }
715
658
  },
716
- required: [
717
- "vct",
718
- "iss",
719
- "iat"
720
- ],
659
+ required: ["vct", "iss", "iat"],
721
660
  additionalProperties: {
722
661
  anyOf: [
723
662
  {
@@ -766,10 +705,7 @@ var require_plugin_schema = __commonJS({
766
705
  type: "string"
767
706
  }
768
707
  },
769
- required: [
770
- "typ",
771
- "alg"
772
- ]
708
+ required: ["typ", "alg"]
773
709
  },
774
710
  SdJwtVcKbJwtPayload: {
775
711
  type: "object",
@@ -787,12 +723,7 @@ var require_plugin_schema = __commonJS({
787
723
  type: "string"
788
724
  }
789
725
  },
790
- required: [
791
- "iat",
792
- "aud",
793
- "nonce",
794
- "sd_hash"
795
- ],
726
+ required: ["iat", "aud", "nonce", "sd_hash"],
796
727
  additionalProperties: {}
797
728
  },
798
729
  MdocOid4vpIssuerSigned: {
@@ -825,9 +756,7 @@ var require_plugin_schema = __commonJS({
825
756
  type: "number"
826
757
  }
827
758
  },
828
- required: [
829
- "byteLength"
830
- ]
759
+ required: ["byteLength"]
831
760
  }
832
761
  ]
833
762
  },
@@ -835,10 +764,7 @@ var require_plugin_schema = __commonJS({
835
764
  type: "string"
836
765
  }
837
766
  },
838
- required: [
839
- "data",
840
- "alg"
841
- ],
767
+ required: ["data", "alg"],
842
768
  additionalProperties: false
843
769
  }
844
770
  }
@@ -859,18 +785,11 @@ var require_plugin_schema = __commonJS({
859
785
  type: "boolean"
860
786
  }
861
787
  },
862
- required: [
863
- "expirationDate",
864
- "issuanceDate"
865
- ]
788
+ required: ["expirationDate", "issuanceDate"]
866
789
  },
867
790
  SchemaValidation: {
868
791
  type: "string",
869
- enum: [
870
- "ALWAYS",
871
- "NEVER",
872
- "WHEN_PRESENT"
873
- ]
792
+ enum: ["ALWAYS", "NEVER", "WHEN_PRESENT"]
874
793
  },
875
794
  VerificationResult: {
876
795
  type: "object",
@@ -901,11 +820,7 @@ var require_plugin_schema = __commonJS({
901
820
  type: "string"
902
821
  }
903
822
  },
904
- required: [
905
- "result",
906
- "source",
907
- "subResults"
908
- ]
823
+ required: ["result", "source", "subResults"]
909
824
  },
910
825
  WrappedVerifiableCredential: {
911
826
  anyOf: [
@@ -964,12 +879,7 @@ var require_plugin_schema = __commonJS({
964
879
  },
965
880
  format: {
966
881
  type: "string",
967
- enum: [
968
- "jwt_vc",
969
- "ldp_vc",
970
- "ldp",
971
- "jwt"
972
- ],
882
+ enum: ["jwt_vc", "ldp_vc", "ldp", "jwt"],
973
883
  description: "The claim format, typically used during exchange transport protocols"
974
884
  },
975
885
  credential: {
@@ -977,13 +887,7 @@ var require_plugin_schema = __commonJS({
977
887
  description: "Internal stable representation of a Credential"
978
888
  }
979
889
  },
980
- required: [
981
- "original",
982
- "decoded",
983
- "type",
984
- "format",
985
- "credential"
986
- ]
890
+ required: ["original", "decoded", "type", "format", "credential"]
987
891
  },
988
892
  WrappedSdJwtVerifiableCredential: {
989
893
  type: "object",
@@ -1026,13 +930,7 @@ var require_plugin_schema = __commonJS({
1026
930
  description: "Internal stable representation of a Credential"
1027
931
  }
1028
932
  },
1029
- required: [
1030
- "original",
1031
- "decoded",
1032
- "type",
1033
- "format",
1034
- "credential"
1035
- ]
933
+ required: ["original", "decoded", "type", "format", "credential"]
1036
934
  },
1037
935
  CompactSdJwtVc: {
1038
936
  type: "string",
@@ -1079,24 +977,14 @@ var require_plugin_schema = __commonJS({
1079
977
  description: "Internal stable representation of a Credential"
1080
978
  }
1081
979
  },
1082
- required: [
1083
- "original",
1084
- "decoded",
1085
- "type",
1086
- "format",
1087
- "credential"
1088
- ]
980
+ required: ["original", "decoded", "type", "format", "credential"]
1089
981
  },
1090
982
  MdocDecodedPayload: {
1091
983
  type: "object",
1092
984
  additionalProperties: {
1093
985
  type: "object",
1094
986
  additionalProperties: {
1095
- type: [
1096
- "string",
1097
- "number",
1098
- "boolean"
1099
- ]
987
+ type: ["string", "number", "boolean"]
1100
988
  }
1101
989
  },
1102
990
  description: "Record where keys are the namespaces and the values are objects again with the namespace values"
@@ -1158,10 +1046,7 @@ var require_plugin_schema = __commonJS({
1158
1046
  },
1159
1047
  format: {
1160
1048
  type: "string",
1161
- enum: [
1162
- "jwt_vp",
1163
- "ldp_vp"
1164
- ],
1049
+ enum: ["jwt_vp", "ldp_vp"],
1165
1050
  description: "The claim format, typically used during exchange transport protocols"
1166
1051
  },
1167
1052
  presentation: {
@@ -1176,14 +1061,7 @@ var require_plugin_schema = __commonJS({
1176
1061
  description: "Wrapped Verifiable Credentials belonging to the Presentation"
1177
1062
  }
1178
1063
  },
1179
- required: [
1180
- "original",
1181
- "decoded",
1182
- "type",
1183
- "format",
1184
- "presentation",
1185
- "vcs"
1186
- ]
1064
+ required: ["original", "decoded", "type", "format", "presentation", "vcs"]
1187
1065
  },
1188
1066
  W3CVerifiablePresentation: {
1189
1067
  anyOf: [
@@ -1257,10 +1135,7 @@ var require_plugin_schema = __commonJS({
1257
1135
  type: "string"
1258
1136
  }
1259
1137
  },
1260
- required: [
1261
- "@context",
1262
- "proof"
1263
- ]
1138
+ required: ["@context", "proof"]
1264
1139
  },
1265
1140
  PresentationSubmission: {
1266
1141
  type: "object",
@@ -1281,11 +1156,7 @@ var require_plugin_schema = __commonJS({
1281
1156
  description: "List of descriptors of how the claims are being mapped to presentation definition"
1282
1157
  }
1283
1158
  },
1284
- required: [
1285
- "id",
1286
- "definition_id",
1287
- "descriptor_map"
1288
- ],
1159
+ required: ["id", "definition_id", "descriptor_map"],
1289
1160
  description: "It expresses how the inputs are presented as proofs to a Verifier."
1290
1161
  },
1291
1162
  Descriptor: {
@@ -1307,11 +1178,7 @@ var require_plugin_schema = __commonJS({
1307
1178
  description: "The Proof or JWT algorith that the proof is in"
1308
1179
  }
1309
1180
  },
1310
- required: [
1311
- "id",
1312
- "path",
1313
- "format"
1314
- ],
1181
+ required: ["id", "path", "format"],
1315
1182
  description: "descriptor map laying out the structure of the presentation submission."
1316
1183
  },
1317
1184
  JwtDecodedVerifiablePresentation: {
@@ -1342,16 +1209,7 @@ var require_plugin_schema = __commonJS({
1342
1209
  type: "string"
1343
1210
  }
1344
1211
  },
1345
- required: [
1346
- "vp",
1347
- "exp",
1348
- "iss",
1349
- "nbf",
1350
- "sub",
1351
- "jti",
1352
- "aud",
1353
- "iat"
1354
- ]
1212
+ required: ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
1355
1213
  },
1356
1214
  UniformVerifiablePresentation: {
1357
1215
  type: "object",
@@ -1395,11 +1253,7 @@ var require_plugin_schema = __commonJS({
1395
1253
  type: "string"
1396
1254
  }
1397
1255
  },
1398
- required: [
1399
- "@context",
1400
- "type",
1401
- "verifiableCredential"
1402
- ]
1256
+ required: ["@context", "type", "verifiableCredential"]
1403
1257
  },
1404
1258
  WrappedSdJwtVerifiablePresentation: {
1405
1259
  type: "object",
@@ -1451,14 +1305,7 @@ var require_plugin_schema = __commonJS({
1451
1305
  description: "Wrapped Verifiable Credentials belonging to the Presentation. Will always be an array with a single SdJwtVerifiableCredential entry."
1452
1306
  }
1453
1307
  },
1454
- required: [
1455
- "original",
1456
- "decoded",
1457
- "type",
1458
- "format",
1459
- "presentation",
1460
- "vcs"
1461
- ]
1308
+ required: ["original", "decoded", "type", "format", "presentation", "vcs"]
1462
1309
  },
1463
1310
  WrappedMdocPresentation: {
1464
1311
  type: "object",
@@ -1508,14 +1355,7 @@ var require_plugin_schema = __commonJS({
1508
1355
  description: "Wrapped Mdocs belonging to the Presentation. There can be multiple documents in a single device response"
1509
1356
  }
1510
1357
  },
1511
- required: [
1512
- "original",
1513
- "decoded",
1514
- "type",
1515
- "format",
1516
- "presentation",
1517
- "vcs"
1518
- ]
1358
+ required: ["original", "decoded", "type", "format", "presentation", "vcs"]
1519
1359
  },
1520
1360
  MdocDeviceResponse: {
1521
1361
  $ref: "#/components/schemas/com.sphereon.mdoc.data.device.DeviceResponseCbor"
@@ -1540,9 +1380,7 @@ var require_plugin_schema = __commonJS({
1540
1380
  type: "string"
1541
1381
  }
1542
1382
  },
1543
- required: [
1544
- "result"
1545
- ]
1383
+ required: ["result"]
1546
1384
  },
1547
1385
  VerifyMdocCredentialArgs: {
1548
1386
  type: "object",
@@ -1551,9 +1389,7 @@ var require_plugin_schema = __commonJS({
1551
1389
  type: "string"
1552
1390
  }
1553
1391
  },
1554
- required: [
1555
- "credential"
1556
- ]
1392
+ required: ["credential"]
1557
1393
  },
1558
1394
  ValidateSchemaArgs: {
1559
1395
  type: "object",
@@ -1568,9 +1404,7 @@ var require_plugin_schema = __commonJS({
1568
1404
  $ref: "#/components/schemas/HasherSync"
1569
1405
  }
1570
1406
  },
1571
- required: [
1572
- "credential"
1573
- ]
1407
+ required: ["credential"]
1574
1408
  },
1575
1409
  VerifySDJWTCredentialArgs: {
1576
1410
  type: "object",
@@ -1582,9 +1416,7 @@ var require_plugin_schema = __commonJS({
1582
1416
  $ref: "#/components/schemas/HasherSync"
1583
1417
  }
1584
1418
  },
1585
- required: [
1586
- "credential"
1587
- ]
1419
+ required: ["credential"]
1588
1420
  },
1589
1421
  VerifyW3CCredentialArgs: {
1590
1422
  type: "object"