@sphereon/ssi-types 0.34.0 → 0.34.1-feature.SSISDK.17.bitstring.sl.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-types",
3
3
  "description": "SSI Common Types",
4
- "version": "0.34.0",
4
+ "version": "0.34.1-feature.SSISDK.17.bitstring.sl.2+0a0992f6",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -57,5 +57,5 @@
57
57
  "Verifiable Credentials",
58
58
  "DIDs"
59
59
  ],
60
- "gitHead": "b1c9c5e91a9ce4bc677ff2cce5f2d520a16b366d"
60
+ "gitHead": "0a0992f6323610a12e82716b1d80a2eedf4b4669"
61
61
  }
@@ -288,4 +288,6 @@ export enum StatusListType {
288
288
 
289
289
  export type StatusPurpose2021 = 'revocation' | 'suspension' | string
290
290
 
291
+ export type BitstringStatusPurpose = 'revocation' | 'suspension' | 'refresh' | 'message' | string
292
+
291
293
  export type StatusListIndexingDirection = 'rightToLeft'
package/src/utils/vc.ts CHANGED
@@ -19,11 +19,12 @@ export function isWrappedW3CVerifiablePresentation(vp: WrappedVerifiablePresenta
19
19
  export enum StatusListType {
20
20
  StatusList2021 = 'StatusList2021',
21
21
  OAuthStatusList = 'OAuthStatusList',
22
+ BitstringStatusList = 'BitstringStatusList',
22
23
  }
23
24
 
24
25
  function isVcdmCredential(
25
26
  credential: CredentialPayload | IVerifiableCredential | ICredential | VerifiableCredential | unknown,
26
- vcdmType: string,
27
+ vcdmType: string
27
28
  ): boolean {
28
29
  if (!credential || typeof credential !== 'object') {
29
30
  return false