@sphereon/ssi-sdk.credential-store 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.js CHANGED
@@ -30,9 +30,7 @@ var require_plugin_schema = __commonJS({
30
30
  }
31
31
  }
32
32
  },
33
- required: [
34
- "credential"
35
- ]
33
+ required: ["credential"]
36
34
  },
37
35
  AddDigitalCredential: {
38
36
  type: "object",
@@ -104,12 +102,7 @@ var require_plugin_schema = __commonJS({
104
102
  properties: {}
105
103
  }
106
104
  },
107
- required: [
108
- "credentialRole",
109
- "rawDocument",
110
- "issuerCorrelationType",
111
- "issuerCorrelationId"
112
- ]
105
+ required: ["credentialRole", "rawDocument", "issuerCorrelationType", "issuerCorrelationId"]
113
106
  },
114
107
  HasherSync: {
115
108
  $comment: "(data: string | ArrayBuffer, alg: string) => Uint8Array",
@@ -130,9 +123,7 @@ var require_plugin_schema = __commonJS({
130
123
  type: "number"
131
124
  }
132
125
  },
133
- required: [
134
- "byteLength"
135
- ]
126
+ required: ["byteLength"]
136
127
  }
137
128
  ]
138
129
  },
@@ -140,10 +131,7 @@ var require_plugin_schema = __commonJS({
140
131
  type: "string"
141
132
  }
142
133
  },
143
- required: [
144
- "data",
145
- "alg"
146
- ],
134
+ required: ["data", "alg"],
147
135
  additionalProperties: false
148
136
  }
149
137
  }
@@ -260,56 +248,27 @@ var require_plugin_schema = __commonJS({
260
248
  },
261
249
  DocumentType: {
262
250
  type: "string",
263
- enum: [
264
- "VC",
265
- "VP",
266
- "P",
267
- "C"
268
- ]
251
+ enum: ["VC", "VP", "P", "C"]
269
252
  },
270
253
  CredentialDocumentFormat: {
271
254
  type: "string",
272
- enum: [
273
- "JSON_LD",
274
- "JWT",
275
- "SD_JWT",
276
- "MSO_MDOC"
277
- ]
255
+ enum: ["JSON_LD", "JWT", "SD_JWT", "MSO_MDOC"]
278
256
  },
279
257
  CredentialRole: {
280
258
  type: "string",
281
- enum: [
282
- "ISSUER",
283
- "VERIFIER",
284
- "HOLDER",
285
- "FEDERATION_TRUST_ANCHOR"
286
- ]
259
+ enum: ["ISSUER", "VERIFIER", "HOLDER", "FEDERATION_TRUST_ANCHOR"]
287
260
  },
288
261
  RegulationType: {
289
262
  type: "string",
290
- enum: [
291
- "PID",
292
- "QEAA",
293
- "EAA",
294
- "NON_REGULATED"
295
- ]
263
+ enum: ["PID", "QEAA", "EAA", "NON_REGULATED"]
296
264
  },
297
265
  CredentialCorrelationType: {
298
266
  type: "string",
299
- enum: [
300
- "DID",
301
- "X509_SAN",
302
- "KID",
303
- "URL"
304
- ]
267
+ enum: ["DID", "X509_SAN", "KID", "URL"]
305
268
  },
306
269
  CredentialStateType: {
307
270
  type: "string",
308
- enum: [
309
- "REVOKED",
310
- "VERIFIED",
311
- "EXPIRED"
312
- ]
271
+ enum: ["REVOKED", "VERIFIED", "EXPIRED"]
313
272
  },
314
273
  DeleteCredentialArgs: {
315
274
  anyOf: [
@@ -320,9 +279,7 @@ var require_plugin_schema = __commonJS({
320
279
  type: "string"
321
280
  }
322
281
  },
323
- required: [
324
- "id"
325
- ]
282
+ required: ["id"]
326
283
  },
327
284
  {
328
285
  type: "object",
@@ -331,9 +288,7 @@ var require_plugin_schema = __commonJS({
331
288
  type: "string"
332
289
  }
333
290
  },
334
- required: [
335
- "hash"
336
- ]
291
+ required: ["hash"]
337
292
  }
338
293
  ]
339
294
  },
@@ -347,9 +302,7 @@ var require_plugin_schema = __commonJS({
347
302
  $ref: "#/components/schemas/FindDigitalCredentialArgs"
348
303
  }
349
304
  },
350
- required: [
351
- "filter"
352
- ]
305
+ required: ["filter"]
353
306
  },
354
307
  FindDigitalCredentialArgs: {
355
308
  type: "array",
@@ -457,9 +410,7 @@ var require_plugin_schema = __commonJS({
457
410
  type: "string"
458
411
  }
459
412
  },
460
- required: [
461
- "id"
462
- ]
413
+ required: ["id"]
463
414
  },
464
415
  GetCredentialsByClaimsArgs: {
465
416
  type: "object",
@@ -474,9 +425,7 @@ var require_plugin_schema = __commonJS({
474
425
  type: "string"
475
426
  }
476
427
  },
477
- required: [
478
- "filter"
479
- ]
428
+ required: ["filter"]
480
429
  },
481
430
  FindClaimsArgs: {
482
431
  $ref: "#/components/schemas/FindArgs-TClaimsColumns"
@@ -525,39 +474,15 @@ var require_plugin_schema = __commonJS({
525
474
  },
526
475
  op: {
527
476
  type: "string",
528
- enum: [
529
- "LessThan",
530
- "LessThanOrEqual",
531
- "MoreThan",
532
- "MoreThanOrEqual",
533
- "Equal",
534
- "Like",
535
- "Between",
536
- "In",
537
- "Any",
538
- "IsNull"
539
- ]
477
+ enum: ["LessThan", "LessThanOrEqual", "MoreThan", "MoreThanOrEqual", "Equal", "Like", "Between", "In", "Any", "IsNull"]
540
478
  }
541
479
  },
542
- required: [
543
- "column"
544
- ],
480
+ required: ["column"],
545
481
  description: "Represents a WHERE predicate for a {@link FindArgs } query. In situations where multiple WHERE predicates are present, they are combined with AND."
546
482
  },
547
483
  TClaimsColumns: {
548
484
  type: "string",
549
- enum: [
550
- "context",
551
- "credentialType",
552
- "type",
553
- "value",
554
- "isObj",
555
- "id",
556
- "issuer",
557
- "subject",
558
- "expirationDate",
559
- "issuanceDate"
560
- ]
485
+ enum: ["context", "credentialType", "type", "value", "isObj", "id", "issuer", "subject", "expirationDate", "issuanceDate"]
561
486
  },
562
487
  "Order-TClaimsColumns": {
563
488
  type: "object",
@@ -567,16 +492,10 @@ var require_plugin_schema = __commonJS({
567
492
  },
568
493
  direction: {
569
494
  type: "string",
570
- enum: [
571
- "ASC",
572
- "DESC"
573
- ]
495
+ enum: ["ASC", "DESC"]
574
496
  }
575
497
  },
576
- required: [
577
- "column",
578
- "direction"
579
- ],
498
+ required: ["column", "direction"],
580
499
  description: "Represents the sort order of results from a {@link FindArgs } query."
581
500
  },
582
501
  UniqueDigitalCredential: {
@@ -610,10 +529,7 @@ var require_plugin_schema = __commonJS({
610
529
  $ref: "#/components/schemas/IVerifiablePresentation"
611
530
  }
612
531
  },
613
- required: [
614
- "hash",
615
- "digitalCredential"
616
- ]
532
+ required: ["hash", "digitalCredential"]
617
533
  },
618
534
  OriginalVerifiableCredential: {
619
535
  anyOf: [
@@ -745,14 +661,7 @@ var require_plugin_schema = __commonJS({
745
661
  type: "string"
746
662
  }
747
663
  },
748
- required: [
749
- "@context",
750
- "credentialSubject",
751
- "issuanceDate",
752
- "issuer",
753
- "proof",
754
- "type"
755
- ]
664
+ required: ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
756
665
  },
757
666
  IProof: {
758
667
  type: "object",
@@ -811,12 +720,7 @@ var require_plugin_schema = __commonJS({
811
720
  }
812
721
  }
813
722
  },
814
- required: [
815
- "type",
816
- "created",
817
- "proofPurpose",
818
- "verificationMethod"
819
- ]
723
+ required: ["type", "created", "proofPurpose", "verificationMethod"]
820
724
  },
821
725
  IProofType: {
822
726
  type: "string",
@@ -886,9 +790,7 @@ var require_plugin_schema = __commonJS({
886
790
  type: "string"
887
791
  }
888
792
  },
889
- required: [
890
- "id"
891
- ]
793
+ required: ["id"]
892
794
  },
893
795
  IIssuerId: {
894
796
  type: "string"
@@ -900,9 +802,7 @@ var require_plugin_schema = __commonJS({
900
802
  type: "string"
901
803
  }
902
804
  },
903
- required: [
904
- "id"
905
- ]
805
+ required: ["id"]
906
806
  },
907
807
  ICredentialStatus: {
908
808
  type: "object",
@@ -914,10 +814,7 @@ var require_plugin_schema = __commonJS({
914
814
  type: "string"
915
815
  }
916
816
  },
917
- required: [
918
- "id",
919
- "type"
920
- ]
817
+ required: ["id", "type"]
921
818
  },
922
819
  CompactJWT: {
923
820
  type: "string",
@@ -945,14 +842,7 @@ var require_plugin_schema = __commonJS({
945
842
  type: "string"
946
843
  }
947
844
  },
948
- required: [
949
- "vc",
950
- "exp",
951
- "iss",
952
- "nbf",
953
- "sub",
954
- "jti"
955
- ]
845
+ required: ["vc", "exp", "iss", "nbf", "sub", "jti"]
956
846
  },
957
847
  SdJwtDecodedVerifiableCredential: {
958
848
  type: "object",
@@ -1005,10 +895,7 @@ var require_plugin_schema = __commonJS({
1005
895
  type: "string"
1006
896
  }
1007
897
  },
1008
- required: [
1009
- "idx",
1010
- "uri"
1011
- ]
898
+ required: ["idx", "uri"]
1012
899
  },
1013
900
  sub: {
1014
901
  type: "string"
@@ -1032,21 +919,11 @@ var require_plugin_schema = __commonJS({
1032
919
  not: {}
1033
920
  },
1034
921
  {
1035
- type: [
1036
- "string",
1037
- "number",
1038
- "boolean",
1039
- "object",
1040
- "array"
1041
- ]
922
+ type: ["string", "number", "boolean", "object", "array"]
1042
923
  }
1043
924
  ]
1044
925
  },
1045
- required: [
1046
- "iat",
1047
- "iss",
1048
- "vct"
1049
- ],
926
+ required: ["iat", "iss", "vct"],
1050
927
  description: "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
1051
928
  },
1052
929
  decodedPayload: {
@@ -1066,19 +943,11 @@ var require_plugin_schema = __commonJS({
1066
943
  $ref: "#/components/schemas/CompactJWT"
1067
944
  }
1068
945
  },
1069
- required: [
1070
- "header",
1071
- "payload"
1072
- ],
946
+ required: ["header", "payload"],
1073
947
  description: "Key binding JWT"
1074
948
  }
1075
949
  },
1076
- required: [
1077
- "compactSdJwtVc",
1078
- "disclosures",
1079
- "signedPayload",
1080
- "decodedPayload"
1081
- ],
950
+ required: ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
1082
951
  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."
1083
952
  },
1084
953
  SdJwtDisclosure: {
@@ -1094,11 +963,7 @@ var require_plugin_schema = __commonJS({
1094
963
  type: "string"
1095
964
  }
1096
965
  },
1097
- required: [
1098
- "encoded",
1099
- "decoded",
1100
- "digest"
1101
- ]
966
+ required: ["encoded", "decoded", "digest"]
1102
967
  },
1103
968
  SdJwtDecodedDisclosure: {
1104
969
  anyOf: [
@@ -1260,20 +1125,13 @@ var require_plugin_schema = __commonJS({
1260
1125
  type: "string"
1261
1126
  }
1262
1127
  },
1263
- required: [
1264
- "idx",
1265
- "uri"
1266
- ]
1128
+ required: ["idx", "uri"]
1267
1129
  },
1268
1130
  sub: {
1269
1131
  type: "string"
1270
1132
  }
1271
1133
  },
1272
- required: [
1273
- "vct",
1274
- "iss",
1275
- "iat"
1276
- ],
1134
+ required: ["vct", "iss", "iat"],
1277
1135
  additionalProperties: {
1278
1136
  anyOf: [
1279
1137
  {
@@ -1322,10 +1180,7 @@ var require_plugin_schema = __commonJS({
1322
1180
  type: "string"
1323
1181
  }
1324
1182
  },
1325
- required: [
1326
- "typ",
1327
- "alg"
1328
- ]
1183
+ required: ["typ", "alg"]
1329
1184
  },
1330
1185
  SdJwtVcKbJwtPayload: {
1331
1186
  type: "object",
@@ -1343,12 +1198,7 @@ var require_plugin_schema = __commonJS({
1343
1198
  type: "string"
1344
1199
  }
1345
1200
  },
1346
- required: [
1347
- "iat",
1348
- "aud",
1349
- "nonce",
1350
- "sd_hash"
1351
- ],
1201
+ required: ["iat", "aud", "nonce", "sd_hash"],
1352
1202
  additionalProperties: {}
1353
1203
  },
1354
1204
  MdocOid4vpIssuerSigned: {
@@ -1453,10 +1303,7 @@ var require_plugin_schema = __commonJS({
1453
1303
  type: "string"
1454
1304
  }
1455
1305
  },
1456
- required: [
1457
- "@context",
1458
- "proof"
1459
- ]
1306
+ required: ["@context", "proof"]
1460
1307
  },
1461
1308
  PresentationSubmission: {
1462
1309
  type: "object",
@@ -1477,11 +1324,7 @@ var require_plugin_schema = __commonJS({
1477
1324
  description: "List of descriptors of how the claims are being mapped to presentation definition"
1478
1325
  }
1479
1326
  },
1480
- required: [
1481
- "id",
1482
- "definition_id",
1483
- "descriptor_map"
1484
- ],
1327
+ required: ["id", "definition_id", "descriptor_map"],
1485
1328
  description: "It expresses how the inputs are presented as proofs to a Verifier."
1486
1329
  },
1487
1330
  Descriptor: {
@@ -1503,11 +1346,7 @@ var require_plugin_schema = __commonJS({
1503
1346
  description: "The Proof or JWT algorith that the proof is in"
1504
1347
  }
1505
1348
  },
1506
- required: [
1507
- "id",
1508
- "path",
1509
- "format"
1510
- ],
1349
+ required: ["id", "path", "format"],
1511
1350
  description: "descriptor map laying out the structure of the presentation submission."
1512
1351
  },
1513
1352
  JwtDecodedVerifiablePresentation: {
@@ -1538,16 +1377,7 @@ var require_plugin_schema = __commonJS({
1538
1377
  type: "string"
1539
1378
  }
1540
1379
  },
1541
- required: [
1542
- "vp",
1543
- "exp",
1544
- "iss",
1545
- "nbf",
1546
- "sub",
1547
- "jti",
1548
- "aud",
1549
- "iat"
1550
- ]
1380
+ required: ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
1551
1381
  },
1552
1382
  MdocOid4vpMdocVpToken: {
1553
1383
  type: "string"
@@ -1646,13 +1476,7 @@ var require_plugin_schema = __commonJS({
1646
1476
  type: "string"
1647
1477
  }
1648
1478
  },
1649
- required: [
1650
- "@context",
1651
- "type",
1652
- "issuer",
1653
- "issuanceDate",
1654
- "credentialSubject"
1655
- ]
1479
+ required: ["@context", "type", "issuer", "issuanceDate", "credentialSubject"]
1656
1480
  },
1657
1481
  IPresentation: {
1658
1482
  type: "object",
@@ -1702,9 +1526,7 @@ var require_plugin_schema = __commonJS({
1702
1526
  type: "string"
1703
1527
  }
1704
1528
  },
1705
- required: [
1706
- "@context"
1707
- ]
1529
+ required: ["@context"]
1708
1530
  },
1709
1531
  GetCredentialsByIdOrHashArgs: {
1710
1532
  type: "object",
@@ -1716,10 +1538,7 @@ var require_plugin_schema = __commonJS({
1716
1538
  type: "string"
1717
1539
  }
1718
1540
  },
1719
- required: [
1720
- "credentialRole",
1721
- "idOrHash"
1722
- ]
1541
+ required: ["credentialRole", "idOrHash"]
1723
1542
  },
1724
1543
  OptionalUniqueDigitalCredential: {
1725
1544
  anyOf: [
@@ -1751,10 +1570,7 @@ var require_plugin_schema = __commonJS({
1751
1570
  type: "string"
1752
1571
  }
1753
1572
  },
1754
- required: [
1755
- "id",
1756
- "verifiedState"
1757
- ]
1573
+ required: ["id", "verifiedState"]
1758
1574
  },
1759
1575
  {
1760
1576
  type: "object",
@@ -1774,10 +1590,7 @@ var require_plugin_schema = __commonJS({
1774
1590
  type: "string"
1775
1591
  }
1776
1592
  },
1777
- required: [
1778
- "hash",
1779
- "verifiedState"
1780
- ]
1593
+ required: ["hash", "verifiedState"]
1781
1594
  }
1782
1595
  ]
1783
1596
  }