@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.FIDES.1.274 → 0.34.1-feature.IDK.11.49

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-sdk.vc-status-list",
3
3
  "description": "Sphereon SSI-SDK plugin for Status List management, like StatusList2021.",
4
- "version": "0.34.1-feature.FIDES.1.274+3d1f4edd",
4
+ "version": "0.34.1-feature.IDK.11.49+19dd3372",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -23,18 +23,17 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@4sure-tech/vc-bitstring-status-lists": "0.1.0-unstable.1",
26
- "@sd-jwt/core": "^0.15.0",
27
- "@sd-jwt/jwt-status-list": "^0.15.0",
28
- "@sd-jwt/sd-jwt-vc": "^0.15.1",
26
+ "@sd-jwt/core": "^0.9.2",
27
+ "@sd-jwt/jwt-status-list": "^0.9.1",
28
+ "@sd-jwt/sd-jwt-vc": "^0.9.2",
29
29
  "@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
30
- "@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.219",
31
- "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.FIDES.1.274+3d1f4edd",
32
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.FIDES.1.274+3d1f4edd",
33
- "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.FIDES.1.274+3d1f4edd",
34
- "@sphereon/ssi-sdk.credential-vcdm": "0.34.1-feature.FIDES.1.274+3d1f4edd",
35
- "@sphereon/ssi-sdk.data-store": "0.34.1-feature.FIDES.1.274+3d1f4edd",
36
- "@sphereon/ssi-sdk.data-store-types": "0.34.1-feature.FIDES.1.274+3d1f4edd",
37
- "@sphereon/ssi-types": "0.34.1-feature.FIDES.1.274+3d1f4edd",
30
+ "@sphereon/oid4vci-common": "0.19.1-next.2",
31
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.IDK.11.49+19dd3372",
32
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.IDK.11.49+19dd3372",
33
+ "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.IDK.11.49+19dd3372",
34
+ "@sphereon/ssi-sdk.credential-vcdm": "0.34.1-feature.IDK.11.49+19dd3372",
35
+ "@sphereon/ssi-sdk.data-store": "0.34.1-feature.IDK.11.49+19dd3372",
36
+ "@sphereon/ssi-types": "0.34.1-feature.IDK.11.49+19dd3372",
38
37
  "@sphereon/vc-status-list": "7.0.0-next.0",
39
38
  "@veramo/core": "4.2.0",
40
39
  "@veramo/credential-status": "4.2.0",
@@ -73,5 +72,5 @@
73
72
  "SSI",
74
73
  "StatusList2021"
75
74
  ],
76
- "gitHead": "3d1f4edd13301b5e8ae524e80249b5e25f99eeac"
75
+ "gitHead": "19dd33727e96d37a7b9c9ff3dadcbfd2d1885d09"
77
76
  }
@@ -6,7 +6,6 @@ import {
6
6
  DocumentFormat,
7
7
  type IIssuer,
8
8
  type StatusListCredential,
9
- StatusListCredentialIdMode,
10
9
  StatusListType,
11
10
  } from '@sphereon/ssi-types'
12
11
 
@@ -61,7 +60,6 @@ export class StatusList2021Implementation implements IStatusList {
61
60
  statusList2021: {
62
61
  statusPurpose,
63
62
  indexingDirection: 'rightToLeft',
64
- credentialIdMode: StatusListCredentialIdMode.ISSUANCE,
65
63
  },
66
64
  length,
67
65
  type: StatusListType.StatusList2021,
@@ -110,7 +108,6 @@ export class StatusList2021Implementation implements IStatusList {
110
108
  statusList2021: {
111
109
  statusPurpose: credentialSubject.statusPurpose,
112
110
  indexingDirection: 'rightToLeft',
113
- credentialIdMode: StatusListCredentialIdMode.ISSUANCE,
114
111
  },
115
112
  length: statusList.length - 1,
116
113
  type: StatusListType.StatusList2021,
@@ -156,7 +153,6 @@ export class StatusList2021Implementation implements IStatusList {
156
153
  statusList2021: {
157
154
  statusPurpose: args.statusList2021.statusPurpose,
158
155
  indexingDirection: 'rightToLeft',
159
- credentialIdMode: StatusListCredentialIdMode.ISSUANCE,
160
156
  },
161
157
  length: statusList.length,
162
158
  proofFormat: args.proofFormat ?? 'lds',
@@ -228,7 +224,6 @@ export class StatusList2021Implementation implements IStatusList {
228
224
  statusList2021: {
229
225
  indexingDirection: 'rightToLeft',
230
226
  statusPurpose,
231
- credentialIdMode: StatusListCredentialIdMode.ISSUANCE,
232
227
  },
233
228
  }
234
229
  } else {
@@ -256,7 +251,6 @@ export class StatusList2021Implementation implements IStatusList {
256
251
  statusList2021: {
257
252
  indexingDirection: statusList2021Entity.indexingDirection,
258
253
  statusPurpose: statusList2021Entity.statusPurpose,
259
- credentialIdMode: StatusListCredentialIdMode.ISSUANCE,
260
254
  },
261
255
  }
262
256
  }
@@ -1,25 +1,23 @@
1
1
  import type { BitsPerStatus } from '@sd-jwt/jwt-status-list'
2
2
  import { StatusList } from '@sd-jwt/jwt-status-list'
3
3
  import { deflate, inflate } from 'pako'
4
-
5
- import mdocPkg from '@sphereon/kmp-mdoc-core'
6
- const { com, kotlin } = mdocPkg
7
-
4
+ import pkg from '@sphereon/kmp-mdoc-core'
5
+ const { com, kotlin } = pkg
8
6
  import base64url from 'base64url'
9
7
  import type { IRequiredContext, SignedStatusListData } from '../../types'
10
8
  import { type DecodedStatusListPayload, resolveIdentifier } from './common'
11
9
 
12
- export type IKey = mdocPkg.com.sphereon.crypto.IKey
13
- export type CborItem<T> = mdocPkg.com.sphereon.cbor.CborItem<T>
14
- export const CborByteString = mdocPkg.com.sphereon.cbor.CborByteString
15
- export type CborByteStringType = mdocPkg.com.sphereon.cbor.CborByteString
16
- export const CborUInt = mdocPkg.com.sphereon.cbor.CborUInt
17
- export type CborUIntType = mdocPkg.com.sphereon.cbor.CborUInt
18
- export const CborString = mdocPkg.com.sphereon.cbor.CborString
19
- export type CborStringType = mdocPkg.com.sphereon.cbor.CborString
10
+ export type IKey = pkg.com.sphereon.crypto.IKey
11
+ export type CborItem<T> = pkg.com.sphereon.cbor.CborItem<T>
12
+ export const CborByteString = com.sphereon.cbor.CborByteString
13
+ export type CborByteStringType = pkg.com.sphereon.cbor.CborByteString
14
+ export const CborUInt = com.sphereon.cbor.CborUInt
15
+ export type CborUIntType = pkg.com.sphereon.cbor.CborUInt
16
+ export const CborString = com.sphereon.cbor.CborString
17
+ export type CborStringType = pkg.com.sphereon.cbor.CborString
20
18
 
21
19
  // const cbor = cborpkg.com.sphereon.cbor
22
- // const kmp = cborpkg. mdoc.com.sphereon.kmp
20
+ // const kmp = cborpkg.com.sphereon.kmp
23
21
  // const kotlin = cborpkg.kotlin
24
22
  const decompressRawStatusList = (StatusList as any).decodeStatusList.bind(StatusList)
25
23
 
@@ -95,7 +93,7 @@ export const createSignedCbor = async (
95
93
  function buildClaimsMap(
96
94
  id: string,
97
95
  issuerString: string,
98
- statusListMap: mdocPkg.com.sphereon.cbor.CborMap<CborStringType, CborItem<any>>,
96
+ statusListMap: pkg.com.sphereon.cbor.CborMap<CborStringType, CborItem<any>>,
99
97
  expiresAt?: Date,
100
98
  ) {
101
99
  const ttl = 65535 // FIXME figure out what value should be / come from and what the difference is with exp
@@ -1,4 +1,4 @@
1
- import { BitstringStatusListCredentialUnsigned } from '@4sure-tech/vc-bitstring-status-lists'
2
1
  import { StatusListCredential } from '@sphereon/ssi-types'
2
+ import { BitstringStatusListCredentialUnsigned } from '../../../../../vc-bitstring-status-lists'
3
3
 
4
4
  export type BitstringStatusListCredential = BitstringStatusListCredentialUnsigned & StatusListCredential
@@ -7,7 +7,6 @@ import {
7
7
  type IVerifiableCredential,
8
8
  type OrPromise,
9
9
  type StatusListCredential,
10
- StatusListCredentialIdMode,
11
10
  StatusListDriverType,
12
11
  type StatusListIndexingDirection,
13
12
  StatusListType,
@@ -113,7 +112,6 @@ export interface StatusListResult {
113
112
  statusList2021?: {
114
113
  indexingDirection: StatusListIndexingDirection
115
114
  statusPurpose: StatusPurpose2021
116
- credentialIdMode: StatusListCredentialIdMode
117
115
  }
118
116
  oauthStatusList?: {
119
117
  bitsPerStatus: number