@sphereon/ssi-sdk.vc-status-list 0.34.1-fix.80 → 0.34.1-next.278
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 +17 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +20 -15
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
- package/src/impl/StatusList2021.ts +6 -0
- package/src/impl/encoding/cbor.ts +14 -12
- package/src/types/BitstringStatusList.ts +1 -1
- package/src/types/index.ts +2 -0
package/dist/index.cjs
CHANGED
|
@@ -51,17 +51,17 @@ __export(index_exports, {
|
|
|
51
51
|
module.exports = __toCommonJS(index_exports);
|
|
52
52
|
|
|
53
53
|
// src/types/index.ts
|
|
54
|
-
var StatusOAuth = /* @__PURE__ */ function(StatusOAuth2) {
|
|
54
|
+
var StatusOAuth = /* @__PURE__ */ (function(StatusOAuth2) {
|
|
55
55
|
StatusOAuth2[StatusOAuth2["Valid"] = 0] = "Valid";
|
|
56
56
|
StatusOAuth2[StatusOAuth2["Invalid"] = 1] = "Invalid";
|
|
57
57
|
StatusOAuth2[StatusOAuth2["Suspended"] = 2] = "Suspended";
|
|
58
58
|
return StatusOAuth2;
|
|
59
|
-
}({});
|
|
60
|
-
var Status2021 = /* @__PURE__ */ function(Status20212) {
|
|
59
|
+
})({});
|
|
60
|
+
var Status2021 = /* @__PURE__ */ (function(Status20212) {
|
|
61
61
|
Status20212[Status20212["Valid"] = 0] = "Valid";
|
|
62
62
|
Status20212[Status20212["Invalid"] = 1] = "Invalid";
|
|
63
63
|
return Status20212;
|
|
64
|
-
}({});
|
|
64
|
+
})({});
|
|
65
65
|
|
|
66
66
|
// src/functions.ts
|
|
67
67
|
var import_ssi_types7 = require("@sphereon/ssi-types");
|
|
@@ -251,7 +251,8 @@ var StatusList2021Implementation = class {
|
|
|
251
251
|
statusListCredential,
|
|
252
252
|
statusList2021: {
|
|
253
253
|
statusPurpose,
|
|
254
|
-
indexingDirection: "rightToLeft"
|
|
254
|
+
indexingDirection: "rightToLeft",
|
|
255
|
+
credentialIdMode: import_ssi_types2.StatusListCredentialIdMode.ISSUANCE
|
|
255
256
|
},
|
|
256
257
|
length,
|
|
257
258
|
type: import_ssi_types2.StatusListType.StatusList2021,
|
|
@@ -290,7 +291,8 @@ var StatusList2021Implementation = class {
|
|
|
290
291
|
encodedList,
|
|
291
292
|
statusList2021: {
|
|
292
293
|
statusPurpose: credentialSubject.statusPurpose,
|
|
293
|
-
indexingDirection: "rightToLeft"
|
|
294
|
+
indexingDirection: "rightToLeft",
|
|
295
|
+
credentialIdMode: import_ssi_types2.StatusListCredentialIdMode.ISSUANCE
|
|
294
296
|
},
|
|
295
297
|
length: statusList.length - 1,
|
|
296
298
|
type: import_ssi_types2.StatusListType.StatusList2021,
|
|
@@ -327,7 +329,8 @@ var StatusList2021Implementation = class {
|
|
|
327
329
|
encodedList: newEncodedList,
|
|
328
330
|
statusList2021: {
|
|
329
331
|
statusPurpose: args.statusList2021.statusPurpose,
|
|
330
|
-
indexingDirection: "rightToLeft"
|
|
332
|
+
indexingDirection: "rightToLeft",
|
|
333
|
+
credentialIdMode: import_ssi_types2.StatusListCredentialIdMode.ISSUANCE
|
|
331
334
|
},
|
|
332
335
|
length: statusList.length,
|
|
333
336
|
proofFormat: args.proofFormat ?? "lds",
|
|
@@ -389,7 +392,8 @@ var StatusList2021Implementation = class {
|
|
|
389
392
|
statusPurpose,
|
|
390
393
|
statusList2021: {
|
|
391
394
|
indexingDirection: "rightToLeft",
|
|
392
|
-
statusPurpose
|
|
395
|
+
statusPurpose,
|
|
396
|
+
credentialIdMode: import_ssi_types2.StatusListCredentialIdMode.ISSUANCE
|
|
393
397
|
}
|
|
394
398
|
};
|
|
395
399
|
} else {
|
|
@@ -414,7 +418,8 @@ var StatusList2021Implementation = class {
|
|
|
414
418
|
statusPurpose: statusList2021Entity.statusPurpose,
|
|
415
419
|
statusList2021: {
|
|
416
420
|
indexingDirection: statusList2021Entity.indexingDirection,
|
|
417
|
-
statusPurpose: statusList2021Entity.statusPurpose
|
|
421
|
+
statusPurpose: statusList2021Entity.statusPurpose,
|
|
422
|
+
credentialIdMode: import_ssi_types2.StatusListCredentialIdMode.ISSUANCE
|
|
418
423
|
}
|
|
419
424
|
};
|
|
420
425
|
}
|
|
@@ -566,9 +571,9 @@ var import_pako = require("pako");
|
|
|
566
571
|
var import_kmp_mdoc_core = __toESM(require("@sphereon/kmp-mdoc-core"), 1);
|
|
567
572
|
var import_base64url2 = __toESM(require("base64url"), 1);
|
|
568
573
|
var { com, kotlin } = import_kmp_mdoc_core.default;
|
|
569
|
-
var CborByteString = com.sphereon.cbor.CborByteString;
|
|
570
|
-
var CborUInt = com.sphereon.cbor.CborUInt;
|
|
571
|
-
var CborString = com.sphereon.cbor.CborString;
|
|
574
|
+
var CborByteString = import_kmp_mdoc_core.default.com.sphereon.cbor.CborByteString;
|
|
575
|
+
var CborUInt = import_kmp_mdoc_core.default.com.sphereon.cbor.CborUInt;
|
|
576
|
+
var CborString = import_kmp_mdoc_core.default.com.sphereon.cbor.CborString;
|
|
572
577
|
var decompressRawStatusList = import_jwt_status_list2.StatusList.decodeStatusList.bind(import_jwt_status_list2.StatusList);
|
|
573
578
|
var CWT_CLAIMS = {
|
|
574
579
|
SUBJECT: 2,
|