@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.SSISDK.57.uni.client.205 → 0.34.1-feature.SSISDK.58.host.nonce.endpoint.145
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 +5 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/impl/StatusList2021.ts +0 -6
- package/src/types/BitstringStatusList.ts +1 -1
- package/src/types/index.ts +0 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IIdentifierResolution } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
2
|
-
import { IIssuer, StatusListType, CredentialProofFormat, StatusListCredential, StatusListDriverType, StatusListIndexingDirection, StatusPurpose2021,
|
|
2
|
+
import { IIssuer, StatusListType, CredentialProofFormat, StatusListCredential, StatusListDriverType, StatusListIndexingDirection, StatusPurpose2021, ICredentialStatus, OrPromise, ICredential, IVerifiableCredential } from '@sphereon/ssi-types';
|
|
3
3
|
import { IPluginMethodMap, IAgentContext, ICredentialIssuer, ICredentialVerifier, IKeyManager, CredentialPayload } from '@veramo/core';
|
|
4
4
|
import { DataSource } from 'typeorm';
|
|
5
5
|
import { StatusList, BitsPerStatus } from '@sd-jwt/jwt-status-list';
|
|
@@ -134,7 +134,6 @@ interface StatusListResult {
|
|
|
134
134
|
statusList2021?: {
|
|
135
135
|
indexingDirection: StatusListIndexingDirection;
|
|
136
136
|
statusPurpose: StatusPurpose2021;
|
|
137
|
-
credentialIdMode: StatusListCredentialIdMode;
|
|
138
137
|
};
|
|
139
138
|
oauthStatusList?: {
|
|
140
139
|
bitsPerStatus: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IIdentifierResolution } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
2
|
-
import { IIssuer, StatusListType, CredentialProofFormat, StatusListCredential, StatusListDriverType, StatusListIndexingDirection, StatusPurpose2021,
|
|
2
|
+
import { IIssuer, StatusListType, CredentialProofFormat, StatusListCredential, StatusListDriverType, StatusListIndexingDirection, StatusPurpose2021, ICredentialStatus, OrPromise, ICredential, IVerifiableCredential } from '@sphereon/ssi-types';
|
|
3
3
|
import { IPluginMethodMap, IAgentContext, ICredentialIssuer, ICredentialVerifier, IKeyManager, CredentialPayload } from '@veramo/core';
|
|
4
4
|
import { DataSource } from 'typeorm';
|
|
5
5
|
import { StatusList, BitsPerStatus } from '@sd-jwt/jwt-status-list';
|
|
@@ -134,7 +134,6 @@ interface StatusListResult {
|
|
|
134
134
|
statusList2021?: {
|
|
135
135
|
indexingDirection: StatusListIndexingDirection;
|
|
136
136
|
statusPurpose: StatusPurpose2021;
|
|
137
|
-
credentialIdMode: StatusListCredentialIdMode;
|
|
138
137
|
};
|
|
139
138
|
oauthStatusList?: {
|
|
140
139
|
bitsPerStatus: number;
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ function ensureDate(value) {
|
|
|
172
172
|
__name(ensureDate, "ensureDate");
|
|
173
173
|
|
|
174
174
|
// src/impl/StatusList2021.ts
|
|
175
|
-
import { CredentialMapper as CredentialMapper2, DocumentFormat as DocumentFormat2,
|
|
175
|
+
import { CredentialMapper as CredentialMapper2, DocumentFormat as DocumentFormat2, StatusListType as StatusListType2 } from "@sphereon/ssi-types";
|
|
176
176
|
import { StatusList } from "@sphereon/vc-status-list";
|
|
177
177
|
var DEFAULT_LIST_LENGTH = 25e4;
|
|
178
178
|
var DEFAULT_PROOF_FORMAT = "lds";
|
|
@@ -202,8 +202,7 @@ var StatusList2021Implementation = class {
|
|
|
202
202
|
statusListCredential,
|
|
203
203
|
statusList2021: {
|
|
204
204
|
statusPurpose,
|
|
205
|
-
indexingDirection: "rightToLeft"
|
|
206
|
-
credentialIdMode: StatusListCredentialIdMode.ISSUANCE
|
|
205
|
+
indexingDirection: "rightToLeft"
|
|
207
206
|
},
|
|
208
207
|
length,
|
|
209
208
|
type: StatusListType2.StatusList2021,
|
|
@@ -242,8 +241,7 @@ var StatusList2021Implementation = class {
|
|
|
242
241
|
encodedList,
|
|
243
242
|
statusList2021: {
|
|
244
243
|
statusPurpose: credentialSubject.statusPurpose,
|
|
245
|
-
indexingDirection: "rightToLeft"
|
|
246
|
-
credentialIdMode: StatusListCredentialIdMode.ISSUANCE
|
|
244
|
+
indexingDirection: "rightToLeft"
|
|
247
245
|
},
|
|
248
246
|
length: statusList.length - 1,
|
|
249
247
|
type: StatusListType2.StatusList2021,
|
|
@@ -280,8 +278,7 @@ var StatusList2021Implementation = class {
|
|
|
280
278
|
encodedList: newEncodedList,
|
|
281
279
|
statusList2021: {
|
|
282
280
|
statusPurpose: args.statusList2021.statusPurpose,
|
|
283
|
-
indexingDirection: "rightToLeft"
|
|
284
|
-
credentialIdMode: StatusListCredentialIdMode.ISSUANCE
|
|
281
|
+
indexingDirection: "rightToLeft"
|
|
285
282
|
},
|
|
286
283
|
length: statusList.length,
|
|
287
284
|
proofFormat: args.proofFormat ?? "lds",
|
|
@@ -343,8 +340,7 @@ var StatusList2021Implementation = class {
|
|
|
343
340
|
statusPurpose,
|
|
344
341
|
statusList2021: {
|
|
345
342
|
indexingDirection: "rightToLeft",
|
|
346
|
-
statusPurpose
|
|
347
|
-
credentialIdMode: StatusListCredentialIdMode.ISSUANCE
|
|
343
|
+
statusPurpose
|
|
348
344
|
}
|
|
349
345
|
};
|
|
350
346
|
} else {
|
|
@@ -369,8 +365,7 @@ var StatusList2021Implementation = class {
|
|
|
369
365
|
statusPurpose: statusList2021Entity.statusPurpose,
|
|
370
366
|
statusList2021: {
|
|
371
367
|
indexingDirection: statusList2021Entity.indexingDirection,
|
|
372
|
-
statusPurpose: statusList2021Entity.statusPurpose
|
|
373
|
-
credentialIdMode: StatusListCredentialIdMode.ISSUANCE
|
|
368
|
+
statusPurpose: statusList2021Entity.statusPurpose
|
|
374
369
|
}
|
|
375
370
|
};
|
|
376
371
|
}
|