@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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.credential-store",
3
- "version": "0.33.1-feature.vcdm2.tsup.31+71b615ad",
3
+ "version": "0.33.1-feature.vcdm2.tsup.33+7765edb3",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
+ "react-native": "./dist/index.js",
10
11
  "import": {
11
12
  "types": "./dist/index.d.ts",
12
13
  "import": "./dist/index.js"
@@ -28,16 +29,16 @@
28
29
  "dependencies": {
29
30
  "@sphereon/pex": "5.0.0-unstable.28",
30
31
  "@sphereon/pex-models": "^2.3.2",
31
- "@sphereon/ssi-sdk.core": "^0.33.1-feature.vcdm2.tsup.31+71b615ad",
32
- "@sphereon/ssi-sdk.data-store": "^0.33.1-feature.vcdm2.tsup.31+71b615ad",
32
+ "@sphereon/ssi-sdk.core": "^0.33.1-feature.vcdm2.tsup.33+7765edb3",
33
+ "@sphereon/ssi-sdk.data-store": "^0.33.1-feature.vcdm2.tsup.33+7765edb3",
33
34
  "cross-fetch": "^3.1.8",
34
35
  "debug": "^4.3.4",
35
- "typeorm": "^0.3.22",
36
+ "typeorm": "0.3.20",
36
37
  "uuid": "^9.0.1"
37
38
  },
38
39
  "devDependencies": {
39
- "@sphereon/ssi-sdk.agent-config": "^0.33.1-feature.vcdm2.tsup.31+71b615ad",
40
- "@sphereon/ssi-types": "^0.33.1-feature.vcdm2.tsup.31+71b615ad",
40
+ "@sphereon/ssi-sdk.agent-config": "^0.33.1-feature.vcdm2.tsup.33+7765edb3",
41
+ "@sphereon/ssi-types": "^0.33.1-feature.vcdm2.tsup.33+7765edb3",
41
42
  "@types/uuid": "^9.0.8",
42
43
  "@veramo/remote-client": "4.2.0",
43
44
  "@veramo/remote-server": "4.2.0"
@@ -62,5 +63,5 @@
62
63
  "Veramo",
63
64
  "Credential Manager"
64
65
  ],
65
- "gitHead": "71b615adbfef8ecd843edb2f3d0c58cb6453cff9"
66
+ "gitHead": "7765edb3fd7f69b4fbd36f02a725821cb38e4e30"
66
67
  }
@@ -20,9 +20,7 @@
20
20
  }
21
21
  }
22
22
  },
23
- "required": [
24
- "credential"
25
- ]
23
+ "required": ["credential"]
26
24
  },
27
25
  "AddDigitalCredential": {
28
26
  "type": "object",
@@ -94,12 +92,7 @@
94
92
  "properties": {}
95
93
  }
96
94
  },
97
- "required": [
98
- "credentialRole",
99
- "rawDocument",
100
- "issuerCorrelationType",
101
- "issuerCorrelationId"
102
- ]
95
+ "required": ["credentialRole", "rawDocument", "issuerCorrelationType", "issuerCorrelationId"]
103
96
  },
104
97
  "HasherSync": {
105
98
  "$comment": "(data: string | ArrayBuffer, alg: string) => Uint8Array",
@@ -120,9 +113,7 @@
120
113
  "type": "number"
121
114
  }
122
115
  },
123
- "required": [
124
- "byteLength"
125
- ]
116
+ "required": ["byteLength"]
126
117
  }
127
118
  ]
128
119
  },
@@ -130,10 +121,7 @@
130
121
  "type": "string"
131
122
  }
132
123
  },
133
- "required": [
134
- "data",
135
- "alg"
136
- ],
124
+ "required": ["data", "alg"],
137
125
  "additionalProperties": false
138
126
  }
139
127
  }
@@ -250,56 +238,27 @@
250
238
  },
251
239
  "DocumentType": {
252
240
  "type": "string",
253
- "enum": [
254
- "VC",
255
- "VP",
256
- "P",
257
- "C"
258
- ]
241
+ "enum": ["VC", "VP", "P", "C"]
259
242
  },
260
243
  "CredentialDocumentFormat": {
261
244
  "type": "string",
262
- "enum": [
263
- "JSON_LD",
264
- "JWT",
265
- "SD_JWT",
266
- "MSO_MDOC"
267
- ]
245
+ "enum": ["JSON_LD", "JWT", "SD_JWT", "MSO_MDOC"]
268
246
  },
269
247
  "CredentialRole": {
270
248
  "type": "string",
271
- "enum": [
272
- "ISSUER",
273
- "VERIFIER",
274
- "HOLDER",
275
- "FEDERATION_TRUST_ANCHOR"
276
- ]
249
+ "enum": ["ISSUER", "VERIFIER", "HOLDER", "FEDERATION_TRUST_ANCHOR"]
277
250
  },
278
251
  "RegulationType": {
279
252
  "type": "string",
280
- "enum": [
281
- "PID",
282
- "QEAA",
283
- "EAA",
284
- "NON_REGULATED"
285
- ]
253
+ "enum": ["PID", "QEAA", "EAA", "NON_REGULATED"]
286
254
  },
287
255
  "CredentialCorrelationType": {
288
256
  "type": "string",
289
- "enum": [
290
- "DID",
291
- "X509_SAN",
292
- "KID",
293
- "URL"
294
- ]
257
+ "enum": ["DID", "X509_SAN", "KID", "URL"]
295
258
  },
296
259
  "CredentialStateType": {
297
260
  "type": "string",
298
- "enum": [
299
- "REVOKED",
300
- "VERIFIED",
301
- "EXPIRED"
302
- ]
261
+ "enum": ["REVOKED", "VERIFIED", "EXPIRED"]
303
262
  },
304
263
  "DeleteCredentialArgs": {
305
264
  "anyOf": [
@@ -310,9 +269,7 @@
310
269
  "type": "string"
311
270
  }
312
271
  },
313
- "required": [
314
- "id"
315
- ]
272
+ "required": ["id"]
316
273
  },
317
274
  {
318
275
  "type": "object",
@@ -321,9 +278,7 @@
321
278
  "type": "string"
322
279
  }
323
280
  },
324
- "required": [
325
- "hash"
326
- ]
281
+ "required": ["hash"]
327
282
  }
328
283
  ]
329
284
  },
@@ -337,9 +292,7 @@
337
292
  "$ref": "#/components/schemas/FindDigitalCredentialArgs"
338
293
  }
339
294
  },
340
- "required": [
341
- "filter"
342
- ]
295
+ "required": ["filter"]
343
296
  },
344
297
  "FindDigitalCredentialArgs": {
345
298
  "type": "array",
@@ -447,9 +400,7 @@
447
400
  "type": "string"
448
401
  }
449
402
  },
450
- "required": [
451
- "id"
452
- ]
403
+ "required": ["id"]
453
404
  },
454
405
  "GetCredentialsByClaimsArgs": {
455
406
  "type": "object",
@@ -464,9 +415,7 @@
464
415
  "type": "string"
465
416
  }
466
417
  },
467
- "required": [
468
- "filter"
469
- ]
418
+ "required": ["filter"]
470
419
  },
471
420
  "FindClaimsArgs": {
472
421
  "$ref": "#/components/schemas/FindArgs-TClaimsColumns"
@@ -515,39 +464,15 @@
515
464
  },
516
465
  "op": {
517
466
  "type": "string",
518
- "enum": [
519
- "LessThan",
520
- "LessThanOrEqual",
521
- "MoreThan",
522
- "MoreThanOrEqual",
523
- "Equal",
524
- "Like",
525
- "Between",
526
- "In",
527
- "Any",
528
- "IsNull"
529
- ]
467
+ "enum": ["LessThan", "LessThanOrEqual", "MoreThan", "MoreThanOrEqual", "Equal", "Like", "Between", "In", "Any", "IsNull"]
530
468
  }
531
469
  },
532
- "required": [
533
- "column"
534
- ],
470
+ "required": ["column"],
535
471
  "description": "Represents a WHERE predicate for a {@link FindArgs } query. In situations where multiple WHERE predicates are present, they are combined with AND."
536
472
  },
537
473
  "TClaimsColumns": {
538
474
  "type": "string",
539
- "enum": [
540
- "context",
541
- "credentialType",
542
- "type",
543
- "value",
544
- "isObj",
545
- "id",
546
- "issuer",
547
- "subject",
548
- "expirationDate",
549
- "issuanceDate"
550
- ]
475
+ "enum": ["context", "credentialType", "type", "value", "isObj", "id", "issuer", "subject", "expirationDate", "issuanceDate"]
551
476
  },
552
477
  "Order-TClaimsColumns": {
553
478
  "type": "object",
@@ -557,16 +482,10 @@
557
482
  },
558
483
  "direction": {
559
484
  "type": "string",
560
- "enum": [
561
- "ASC",
562
- "DESC"
563
- ]
485
+ "enum": ["ASC", "DESC"]
564
486
  }
565
487
  },
566
- "required": [
567
- "column",
568
- "direction"
569
- ],
488
+ "required": ["column", "direction"],
570
489
  "description": "Represents the sort order of results from a {@link FindArgs } query."
571
490
  },
572
491
  "UniqueDigitalCredential": {
@@ -600,10 +519,7 @@
600
519
  "$ref": "#/components/schemas/IVerifiablePresentation"
601
520
  }
602
521
  },
603
- "required": [
604
- "hash",
605
- "digitalCredential"
606
- ]
522
+ "required": ["hash", "digitalCredential"]
607
523
  },
608
524
  "OriginalVerifiableCredential": {
609
525
  "anyOf": [
@@ -735,14 +651,7 @@
735
651
  "type": "string"
736
652
  }
737
653
  },
738
- "required": [
739
- "@context",
740
- "credentialSubject",
741
- "issuanceDate",
742
- "issuer",
743
- "proof",
744
- "type"
745
- ]
654
+ "required": ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
746
655
  },
747
656
  "IProof": {
748
657
  "type": "object",
@@ -801,12 +710,7 @@
801
710
  }
802
711
  }
803
712
  },
804
- "required": [
805
- "type",
806
- "created",
807
- "proofPurpose",
808
- "verificationMethod"
809
- ]
713
+ "required": ["type", "created", "proofPurpose", "verificationMethod"]
810
714
  },
811
715
  "IProofType": {
812
716
  "type": "string",
@@ -876,9 +780,7 @@
876
780
  "type": "string"
877
781
  }
878
782
  },
879
- "required": [
880
- "id"
881
- ]
783
+ "required": ["id"]
882
784
  },
883
785
  "IIssuerId": {
884
786
  "type": "string"
@@ -890,9 +792,7 @@
890
792
  "type": "string"
891
793
  }
892
794
  },
893
- "required": [
894
- "id"
895
- ]
795
+ "required": ["id"]
896
796
  },
897
797
  "ICredentialStatus": {
898
798
  "type": "object",
@@ -904,10 +804,7 @@
904
804
  "type": "string"
905
805
  }
906
806
  },
907
- "required": [
908
- "id",
909
- "type"
910
- ]
807
+ "required": ["id", "type"]
911
808
  },
912
809
  "CompactJWT": {
913
810
  "type": "string",
@@ -935,14 +832,7 @@
935
832
  "type": "string"
936
833
  }
937
834
  },
938
- "required": [
939
- "vc",
940
- "exp",
941
- "iss",
942
- "nbf",
943
- "sub",
944
- "jti"
945
- ]
835
+ "required": ["vc", "exp", "iss", "nbf", "sub", "jti"]
946
836
  },
947
837
  "SdJwtDecodedVerifiableCredential": {
948
838
  "type": "object",
@@ -995,10 +885,7 @@
995
885
  "type": "string"
996
886
  }
997
887
  },
998
- "required": [
999
- "idx",
1000
- "uri"
1001
- ]
888
+ "required": ["idx", "uri"]
1002
889
  },
1003
890
  "sub": {
1004
891
  "type": "string"
@@ -1022,21 +909,11 @@
1022
909
  "not": {}
1023
910
  },
1024
911
  {
1025
- "type": [
1026
- "string",
1027
- "number",
1028
- "boolean",
1029
- "object",
1030
- "array"
1031
- ]
912
+ "type": ["string", "number", "boolean", "object", "array"]
1032
913
  }
1033
914
  ]
1034
915
  },
1035
- "required": [
1036
- "iat",
1037
- "iss",
1038
- "vct"
1039
- ],
916
+ "required": ["iat", "iss", "vct"],
1040
917
  "description": "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
1041
918
  },
1042
919
  "decodedPayload": {
@@ -1056,19 +933,11 @@
1056
933
  "$ref": "#/components/schemas/CompactJWT"
1057
934
  }
1058
935
  },
1059
- "required": [
1060
- "header",
1061
- "payload"
1062
- ],
936
+ "required": ["header", "payload"],
1063
937
  "description": "Key binding JWT"
1064
938
  }
1065
939
  },
1066
- "required": [
1067
- "compactSdJwtVc",
1068
- "disclosures",
1069
- "signedPayload",
1070
- "decodedPayload"
1071
- ],
940
+ "required": ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
1072
941
  "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."
1073
942
  },
1074
943
  "SdJwtDisclosure": {
@@ -1084,11 +953,7 @@
1084
953
  "type": "string"
1085
954
  }
1086
955
  },
1087
- "required": [
1088
- "encoded",
1089
- "decoded",
1090
- "digest"
1091
- ]
956
+ "required": ["encoded", "decoded", "digest"]
1092
957
  },
1093
958
  "SdJwtDecodedDisclosure": {
1094
959
  "anyOf": [
@@ -1250,20 +1115,13 @@
1250
1115
  "type": "string"
1251
1116
  }
1252
1117
  },
1253
- "required": [
1254
- "idx",
1255
- "uri"
1256
- ]
1118
+ "required": ["idx", "uri"]
1257
1119
  },
1258
1120
  "sub": {
1259
1121
  "type": "string"
1260
1122
  }
1261
1123
  },
1262
- "required": [
1263
- "vct",
1264
- "iss",
1265
- "iat"
1266
- ],
1124
+ "required": ["vct", "iss", "iat"],
1267
1125
  "additionalProperties": {
1268
1126
  "anyOf": [
1269
1127
  {
@@ -1312,10 +1170,7 @@
1312
1170
  "type": "string"
1313
1171
  }
1314
1172
  },
1315
- "required": [
1316
- "typ",
1317
- "alg"
1318
- ]
1173
+ "required": ["typ", "alg"]
1319
1174
  },
1320
1175
  "SdJwtVcKbJwtPayload": {
1321
1176
  "type": "object",
@@ -1333,12 +1188,7 @@
1333
1188
  "type": "string"
1334
1189
  }
1335
1190
  },
1336
- "required": [
1337
- "iat",
1338
- "aud",
1339
- "nonce",
1340
- "sd_hash"
1341
- ],
1191
+ "required": ["iat", "aud", "nonce", "sd_hash"],
1342
1192
  "additionalProperties": {}
1343
1193
  },
1344
1194
  "MdocOid4vpIssuerSigned": {
@@ -1443,10 +1293,7 @@
1443
1293
  "type": "string"
1444
1294
  }
1445
1295
  },
1446
- "required": [
1447
- "@context",
1448
- "proof"
1449
- ]
1296
+ "required": ["@context", "proof"]
1450
1297
  },
1451
1298
  "PresentationSubmission": {
1452
1299
  "type": "object",
@@ -1467,11 +1314,7 @@
1467
1314
  "description": "List of descriptors of how the claims are being mapped to presentation definition"
1468
1315
  }
1469
1316
  },
1470
- "required": [
1471
- "id",
1472
- "definition_id",
1473
- "descriptor_map"
1474
- ],
1317
+ "required": ["id", "definition_id", "descriptor_map"],
1475
1318
  "description": "It expresses how the inputs are presented as proofs to a Verifier."
1476
1319
  },
1477
1320
  "Descriptor": {
@@ -1493,11 +1336,7 @@
1493
1336
  "description": "The Proof or JWT algorith that the proof is in"
1494
1337
  }
1495
1338
  },
1496
- "required": [
1497
- "id",
1498
- "path",
1499
- "format"
1500
- ],
1339
+ "required": ["id", "path", "format"],
1501
1340
  "description": "descriptor map laying out the structure of the presentation submission."
1502
1341
  },
1503
1342
  "JwtDecodedVerifiablePresentation": {
@@ -1528,16 +1367,7 @@
1528
1367
  "type": "string"
1529
1368
  }
1530
1369
  },
1531
- "required": [
1532
- "vp",
1533
- "exp",
1534
- "iss",
1535
- "nbf",
1536
- "sub",
1537
- "jti",
1538
- "aud",
1539
- "iat"
1540
- ]
1370
+ "required": ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
1541
1371
  },
1542
1372
  "MdocOid4vpMdocVpToken": {
1543
1373
  "type": "string"
@@ -1636,13 +1466,7 @@
1636
1466
  "type": "string"
1637
1467
  }
1638
1468
  },
1639
- "required": [
1640
- "@context",
1641
- "type",
1642
- "issuer",
1643
- "issuanceDate",
1644
- "credentialSubject"
1645
- ]
1469
+ "required": ["@context", "type", "issuer", "issuanceDate", "credentialSubject"]
1646
1470
  },
1647
1471
  "IPresentation": {
1648
1472
  "type": "object",
@@ -1692,9 +1516,7 @@
1692
1516
  "type": "string"
1693
1517
  }
1694
1518
  },
1695
- "required": [
1696
- "@context"
1697
- ]
1519
+ "required": ["@context"]
1698
1520
  },
1699
1521
  "GetCredentialsByIdOrHashArgs": {
1700
1522
  "type": "object",
@@ -1706,10 +1528,7 @@
1706
1528
  "type": "string"
1707
1529
  }
1708
1530
  },
1709
- "required": [
1710
- "credentialRole",
1711
- "idOrHash"
1712
- ]
1531
+ "required": ["credentialRole", "idOrHash"]
1713
1532
  },
1714
1533
  "OptionalUniqueDigitalCredential": {
1715
1534
  "anyOf": [
@@ -1741,10 +1560,7 @@
1741
1560
  "type": "string"
1742
1561
  }
1743
1562
  },
1744
- "required": [
1745
- "id",
1746
- "verifiedState"
1747
- ]
1563
+ "required": ["id", "verifiedState"]
1748
1564
  },
1749
1565
  {
1750
1566
  "type": "object",
@@ -1764,10 +1580,7 @@
1764
1580
  "type": "string"
1765
1581
  }
1766
1582
  },
1767
- "required": [
1768
- "hash",
1769
- "verifiedState"
1770
- ]
1583
+ "required": ["hash", "verifiedState"]
1771
1584
  }
1772
1585
  ]
1773
1586
  }
@@ -1875,4 +1688,4 @@
1875
1688
  }
1876
1689
  }
1877
1690
  }
1878
- }
1691
+ }