@sphereon/ssi-sdk.credential-store 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 CHANGED
@@ -46,9 +46,7 @@ var require_plugin_schema = __commonJS({
46
46
  }
47
47
  }
48
48
  },
49
- required: [
50
- "credential"
51
- ]
49
+ required: ["credential"]
52
50
  },
53
51
  AddDigitalCredential: {
54
52
  type: "object",
@@ -120,12 +118,7 @@ var require_plugin_schema = __commonJS({
120
118
  properties: {}
121
119
  }
122
120
  },
123
- required: [
124
- "credentialRole",
125
- "rawDocument",
126
- "issuerCorrelationType",
127
- "issuerCorrelationId"
128
- ]
121
+ required: ["credentialRole", "rawDocument", "issuerCorrelationType", "issuerCorrelationId"]
129
122
  },
130
123
  HasherSync: {
131
124
  $comment: "(data: string | ArrayBuffer, alg: string) => Uint8Array",
@@ -146,9 +139,7 @@ var require_plugin_schema = __commonJS({
146
139
  type: "number"
147
140
  }
148
141
  },
149
- required: [
150
- "byteLength"
151
- ]
142
+ required: ["byteLength"]
152
143
  }
153
144
  ]
154
145
  },
@@ -156,10 +147,7 @@ var require_plugin_schema = __commonJS({
156
147
  type: "string"
157
148
  }
158
149
  },
159
- required: [
160
- "data",
161
- "alg"
162
- ],
150
+ required: ["data", "alg"],
163
151
  additionalProperties: false
164
152
  }
165
153
  }
@@ -276,56 +264,27 @@ var require_plugin_schema = __commonJS({
276
264
  },
277
265
  DocumentType: {
278
266
  type: "string",
279
- enum: [
280
- "VC",
281
- "VP",
282
- "P",
283
- "C"
284
- ]
267
+ enum: ["VC", "VP", "P", "C"]
285
268
  },
286
269
  CredentialDocumentFormat: {
287
270
  type: "string",
288
- enum: [
289
- "JSON_LD",
290
- "JWT",
291
- "SD_JWT",
292
- "MSO_MDOC"
293
- ]
271
+ enum: ["JSON_LD", "JWT", "SD_JWT", "MSO_MDOC"]
294
272
  },
295
273
  CredentialRole: {
296
274
  type: "string",
297
- enum: [
298
- "ISSUER",
299
- "VERIFIER",
300
- "HOLDER",
301
- "FEDERATION_TRUST_ANCHOR"
302
- ]
275
+ enum: ["ISSUER", "VERIFIER", "HOLDER", "FEDERATION_TRUST_ANCHOR"]
303
276
  },
304
277
  RegulationType: {
305
278
  type: "string",
306
- enum: [
307
- "PID",
308
- "QEAA",
309
- "EAA",
310
- "NON_REGULATED"
311
- ]
279
+ enum: ["PID", "QEAA", "EAA", "NON_REGULATED"]
312
280
  },
313
281
  CredentialCorrelationType: {
314
282
  type: "string",
315
- enum: [
316
- "DID",
317
- "X509_SAN",
318
- "KID",
319
- "URL"
320
- ]
283
+ enum: ["DID", "X509_SAN", "KID", "URL"]
321
284
  },
322
285
  CredentialStateType: {
323
286
  type: "string",
324
- enum: [
325
- "REVOKED",
326
- "VERIFIED",
327
- "EXPIRED"
328
- ]
287
+ enum: ["REVOKED", "VERIFIED", "EXPIRED"]
329
288
  },
330
289
  DeleteCredentialArgs: {
331
290
  anyOf: [
@@ -336,9 +295,7 @@ var require_plugin_schema = __commonJS({
336
295
  type: "string"
337
296
  }
338
297
  },
339
- required: [
340
- "id"
341
- ]
298
+ required: ["id"]
342
299
  },
343
300
  {
344
301
  type: "object",
@@ -347,9 +304,7 @@ var require_plugin_schema = __commonJS({
347
304
  type: "string"
348
305
  }
349
306
  },
350
- required: [
351
- "hash"
352
- ]
307
+ required: ["hash"]
353
308
  }
354
309
  ]
355
310
  },
@@ -363,9 +318,7 @@ var require_plugin_schema = __commonJS({
363
318
  $ref: "#/components/schemas/FindDigitalCredentialArgs"
364
319
  }
365
320
  },
366
- required: [
367
- "filter"
368
- ]
321
+ required: ["filter"]
369
322
  },
370
323
  FindDigitalCredentialArgs: {
371
324
  type: "array",
@@ -473,9 +426,7 @@ var require_plugin_schema = __commonJS({
473
426
  type: "string"
474
427
  }
475
428
  },
476
- required: [
477
- "id"
478
- ]
429
+ required: ["id"]
479
430
  },
480
431
  GetCredentialsByClaimsArgs: {
481
432
  type: "object",
@@ -490,9 +441,7 @@ var require_plugin_schema = __commonJS({
490
441
  type: "string"
491
442
  }
492
443
  },
493
- required: [
494
- "filter"
495
- ]
444
+ required: ["filter"]
496
445
  },
497
446
  FindClaimsArgs: {
498
447
  $ref: "#/components/schemas/FindArgs-TClaimsColumns"
@@ -541,39 +490,15 @@ var require_plugin_schema = __commonJS({
541
490
  },
542
491
  op: {
543
492
  type: "string",
544
- enum: [
545
- "LessThan",
546
- "LessThanOrEqual",
547
- "MoreThan",
548
- "MoreThanOrEqual",
549
- "Equal",
550
- "Like",
551
- "Between",
552
- "In",
553
- "Any",
554
- "IsNull"
555
- ]
493
+ enum: ["LessThan", "LessThanOrEqual", "MoreThan", "MoreThanOrEqual", "Equal", "Like", "Between", "In", "Any", "IsNull"]
556
494
  }
557
495
  },
558
- required: [
559
- "column"
560
- ],
496
+ required: ["column"],
561
497
  description: "Represents a WHERE predicate for a {@link FindArgs } query. In situations where multiple WHERE predicates are present, they are combined with AND."
562
498
  },
563
499
  TClaimsColumns: {
564
500
  type: "string",
565
- enum: [
566
- "context",
567
- "credentialType",
568
- "type",
569
- "value",
570
- "isObj",
571
- "id",
572
- "issuer",
573
- "subject",
574
- "expirationDate",
575
- "issuanceDate"
576
- ]
501
+ enum: ["context", "credentialType", "type", "value", "isObj", "id", "issuer", "subject", "expirationDate", "issuanceDate"]
577
502
  },
578
503
  "Order-TClaimsColumns": {
579
504
  type: "object",
@@ -583,16 +508,10 @@ var require_plugin_schema = __commonJS({
583
508
  },
584
509
  direction: {
585
510
  type: "string",
586
- enum: [
587
- "ASC",
588
- "DESC"
589
- ]
511
+ enum: ["ASC", "DESC"]
590
512
  }
591
513
  },
592
- required: [
593
- "column",
594
- "direction"
595
- ],
514
+ required: ["column", "direction"],
596
515
  description: "Represents the sort order of results from a {@link FindArgs } query."
597
516
  },
598
517
  UniqueDigitalCredential: {
@@ -626,10 +545,7 @@ var require_plugin_schema = __commonJS({
626
545
  $ref: "#/components/schemas/IVerifiablePresentation"
627
546
  }
628
547
  },
629
- required: [
630
- "hash",
631
- "digitalCredential"
632
- ]
548
+ required: ["hash", "digitalCredential"]
633
549
  },
634
550
  OriginalVerifiableCredential: {
635
551
  anyOf: [
@@ -761,14 +677,7 @@ var require_plugin_schema = __commonJS({
761
677
  type: "string"
762
678
  }
763
679
  },
764
- required: [
765
- "@context",
766
- "credentialSubject",
767
- "issuanceDate",
768
- "issuer",
769
- "proof",
770
- "type"
771
- ]
680
+ required: ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
772
681
  },
773
682
  IProof: {
774
683
  type: "object",
@@ -827,12 +736,7 @@ var require_plugin_schema = __commonJS({
827
736
  }
828
737
  }
829
738
  },
830
- required: [
831
- "type",
832
- "created",
833
- "proofPurpose",
834
- "verificationMethod"
835
- ]
739
+ required: ["type", "created", "proofPurpose", "verificationMethod"]
836
740
  },
837
741
  IProofType: {
838
742
  type: "string",
@@ -902,9 +806,7 @@ var require_plugin_schema = __commonJS({
902
806
  type: "string"
903
807
  }
904
808
  },
905
- required: [
906
- "id"
907
- ]
809
+ required: ["id"]
908
810
  },
909
811
  IIssuerId: {
910
812
  type: "string"
@@ -916,9 +818,7 @@ var require_plugin_schema = __commonJS({
916
818
  type: "string"
917
819
  }
918
820
  },
919
- required: [
920
- "id"
921
- ]
821
+ required: ["id"]
922
822
  },
923
823
  ICredentialStatus: {
924
824
  type: "object",
@@ -930,10 +830,7 @@ var require_plugin_schema = __commonJS({
930
830
  type: "string"
931
831
  }
932
832
  },
933
- required: [
934
- "id",
935
- "type"
936
- ]
833
+ required: ["id", "type"]
937
834
  },
938
835
  CompactJWT: {
939
836
  type: "string",
@@ -961,14 +858,7 @@ var require_plugin_schema = __commonJS({
961
858
  type: "string"
962
859
  }
963
860
  },
964
- required: [
965
- "vc",
966
- "exp",
967
- "iss",
968
- "nbf",
969
- "sub",
970
- "jti"
971
- ]
861
+ required: ["vc", "exp", "iss", "nbf", "sub", "jti"]
972
862
  },
973
863
  SdJwtDecodedVerifiableCredential: {
974
864
  type: "object",
@@ -1021,10 +911,7 @@ var require_plugin_schema = __commonJS({
1021
911
  type: "string"
1022
912
  }
1023
913
  },
1024
- required: [
1025
- "idx",
1026
- "uri"
1027
- ]
914
+ required: ["idx", "uri"]
1028
915
  },
1029
916
  sub: {
1030
917
  type: "string"
@@ -1048,21 +935,11 @@ var require_plugin_schema = __commonJS({
1048
935
  not: {}
1049
936
  },
1050
937
  {
1051
- type: [
1052
- "string",
1053
- "number",
1054
- "boolean",
1055
- "object",
1056
- "array"
1057
- ]
938
+ type: ["string", "number", "boolean", "object", "array"]
1058
939
  }
1059
940
  ]
1060
941
  },
1061
- required: [
1062
- "iat",
1063
- "iss",
1064
- "vct"
1065
- ],
942
+ required: ["iat", "iss", "vct"],
1066
943
  description: "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
1067
944
  },
1068
945
  decodedPayload: {
@@ -1082,19 +959,11 @@ var require_plugin_schema = __commonJS({
1082
959
  $ref: "#/components/schemas/CompactJWT"
1083
960
  }
1084
961
  },
1085
- required: [
1086
- "header",
1087
- "payload"
1088
- ],
962
+ required: ["header", "payload"],
1089
963
  description: "Key binding JWT"
1090
964
  }
1091
965
  },
1092
- required: [
1093
- "compactSdJwtVc",
1094
- "disclosures",
1095
- "signedPayload",
1096
- "decodedPayload"
1097
- ],
966
+ required: ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
1098
967
  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."
1099
968
  },
1100
969
  SdJwtDisclosure: {
@@ -1110,11 +979,7 @@ var require_plugin_schema = __commonJS({
1110
979
  type: "string"
1111
980
  }
1112
981
  },
1113
- required: [
1114
- "encoded",
1115
- "decoded",
1116
- "digest"
1117
- ]
982
+ required: ["encoded", "decoded", "digest"]
1118
983
  },
1119
984
  SdJwtDecodedDisclosure: {
1120
985
  anyOf: [
@@ -1276,20 +1141,13 @@ var require_plugin_schema = __commonJS({
1276
1141
  type: "string"
1277
1142
  }
1278
1143
  },
1279
- required: [
1280
- "idx",
1281
- "uri"
1282
- ]
1144
+ required: ["idx", "uri"]
1283
1145
  },
1284
1146
  sub: {
1285
1147
  type: "string"
1286
1148
  }
1287
1149
  },
1288
- required: [
1289
- "vct",
1290
- "iss",
1291
- "iat"
1292
- ],
1150
+ required: ["vct", "iss", "iat"],
1293
1151
  additionalProperties: {
1294
1152
  anyOf: [
1295
1153
  {
@@ -1338,10 +1196,7 @@ var require_plugin_schema = __commonJS({
1338
1196
  type: "string"
1339
1197
  }
1340
1198
  },
1341
- required: [
1342
- "typ",
1343
- "alg"
1344
- ]
1199
+ required: ["typ", "alg"]
1345
1200
  },
1346
1201
  SdJwtVcKbJwtPayload: {
1347
1202
  type: "object",
@@ -1359,12 +1214,7 @@ var require_plugin_schema = __commonJS({
1359
1214
  type: "string"
1360
1215
  }
1361
1216
  },
1362
- required: [
1363
- "iat",
1364
- "aud",
1365
- "nonce",
1366
- "sd_hash"
1367
- ],
1217
+ required: ["iat", "aud", "nonce", "sd_hash"],
1368
1218
  additionalProperties: {}
1369
1219
  },
1370
1220
  MdocOid4vpIssuerSigned: {
@@ -1469,10 +1319,7 @@ var require_plugin_schema = __commonJS({
1469
1319
  type: "string"
1470
1320
  }
1471
1321
  },
1472
- required: [
1473
- "@context",
1474
- "proof"
1475
- ]
1322
+ required: ["@context", "proof"]
1476
1323
  },
1477
1324
  PresentationSubmission: {
1478
1325
  type: "object",
@@ -1493,11 +1340,7 @@ var require_plugin_schema = __commonJS({
1493
1340
  description: "List of descriptors of how the claims are being mapped to presentation definition"
1494
1341
  }
1495
1342
  },
1496
- required: [
1497
- "id",
1498
- "definition_id",
1499
- "descriptor_map"
1500
- ],
1343
+ required: ["id", "definition_id", "descriptor_map"],
1501
1344
  description: "It expresses how the inputs are presented as proofs to a Verifier."
1502
1345
  },
1503
1346
  Descriptor: {
@@ -1519,11 +1362,7 @@ var require_plugin_schema = __commonJS({
1519
1362
  description: "The Proof or JWT algorith that the proof is in"
1520
1363
  }
1521
1364
  },
1522
- required: [
1523
- "id",
1524
- "path",
1525
- "format"
1526
- ],
1365
+ required: ["id", "path", "format"],
1527
1366
  description: "descriptor map laying out the structure of the presentation submission."
1528
1367
  },
1529
1368
  JwtDecodedVerifiablePresentation: {
@@ -1554,16 +1393,7 @@ var require_plugin_schema = __commonJS({
1554
1393
  type: "string"
1555
1394
  }
1556
1395
  },
1557
- required: [
1558
- "vp",
1559
- "exp",
1560
- "iss",
1561
- "nbf",
1562
- "sub",
1563
- "jti",
1564
- "aud",
1565
- "iat"
1566
- ]
1396
+ required: ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
1567
1397
  },
1568
1398
  MdocOid4vpMdocVpToken: {
1569
1399
  type: "string"
@@ -1662,13 +1492,7 @@ var require_plugin_schema = __commonJS({
1662
1492
  type: "string"
1663
1493
  }
1664
1494
  },
1665
- required: [
1666
- "@context",
1667
- "type",
1668
- "issuer",
1669
- "issuanceDate",
1670
- "credentialSubject"
1671
- ]
1495
+ required: ["@context", "type", "issuer", "issuanceDate", "credentialSubject"]
1672
1496
  },
1673
1497
  IPresentation: {
1674
1498
  type: "object",
@@ -1718,9 +1542,7 @@ var require_plugin_schema = __commonJS({
1718
1542
  type: "string"
1719
1543
  }
1720
1544
  },
1721
- required: [
1722
- "@context"
1723
- ]
1545
+ required: ["@context"]
1724
1546
  },
1725
1547
  GetCredentialsByIdOrHashArgs: {
1726
1548
  type: "object",
@@ -1732,10 +1554,7 @@ var require_plugin_schema = __commonJS({
1732
1554
  type: "string"
1733
1555
  }
1734
1556
  },
1735
- required: [
1736
- "credentialRole",
1737
- "idOrHash"
1738
- ]
1557
+ required: ["credentialRole", "idOrHash"]
1739
1558
  },
1740
1559
  OptionalUniqueDigitalCredential: {
1741
1560
  anyOf: [
@@ -1767,10 +1586,7 @@ var require_plugin_schema = __commonJS({
1767
1586
  type: "string"
1768
1587
  }
1769
1588
  },
1770
- required: [
1771
- "id",
1772
- "verifiedState"
1773
- ]
1589
+ required: ["id", "verifiedState"]
1774
1590
  },
1775
1591
  {
1776
1592
  type: "object",
@@ -1790,10 +1606,7 @@ var require_plugin_schema = __commonJS({
1790
1606
  type: "string"
1791
1607
  }
1792
1608
  },
1793
- required: [
1794
- "hash",
1795
- "verifiedState"
1796
- ]
1609
+ required: ["hash", "verifiedState"]
1797
1610
  }
1798
1611
  ]
1799
1612
  }