@sd-jwt/sd-jwt-vc 0.7.2-next.0 → 0.7.2-next.1

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.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _sd_jwt_types from '@sd-jwt/types';
1
2
  import { SDJWTConfig, DisclosureFrame } from '@sd-jwt/types';
2
3
  import { SdJwtPayload, SDJwtInstance } from '@sd-jwt/core';
3
4
 
@@ -57,6 +58,10 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
57
58
  verify(encodedSDJwt: string, requiredClaimKeys?: string[], requireKeyBindings?: boolean): Promise<{
58
59
  payload: SdJwtVcPayload;
59
60
  header: Record<string, unknown> | undefined;
61
+ kb: {
62
+ payload: _sd_jwt_types.kbPayload;
63
+ header: _sd_jwt_types.kbHeader;
64
+ } | undefined;
60
65
  }>;
61
66
  }
62
67
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _sd_jwt_types from '@sd-jwt/types';
1
2
  import { SDJWTConfig, DisclosureFrame } from '@sd-jwt/types';
2
3
  import { SdJwtPayload, SDJwtInstance } from '@sd-jwt/core';
3
4
 
@@ -57,6 +58,10 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
57
58
  verify(encodedSDJwt: string, requiredClaimKeys?: string[], requireKeyBindings?: boolean): Promise<{
58
59
  payload: SdJwtVcPayload;
59
60
  header: Record<string, unknown> | undefined;
61
+ kb: {
62
+ payload: _sd_jwt_types.kbPayload;
63
+ header: _sd_jwt_types.kbHeader;
64
+ } | undefined;
60
65
  }>;
61
66
  }
62
67
 
package/dist/index.js CHANGED
@@ -123,7 +123,11 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
123
123
  return __async(this, null, function* () {
124
124
  var _a, _b, _c;
125
125
  const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, requiredClaimKeys, requireKeyBindings).then((res) => {
126
- return { payload: res.payload, header: res.header };
126
+ return {
127
+ payload: res.payload,
128
+ header: res.header,
129
+ kb: res.kb
130
+ };
127
131
  });
128
132
  if (result.payload.status) {
129
133
  if (result.payload.status.status_list) {
package/dist/index.mjs CHANGED
@@ -100,7 +100,11 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
100
100
  return __async(this, null, function* () {
101
101
  var _a, _b, _c;
102
102
  const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, requiredClaimKeys, requireKeyBindings).then((res) => {
103
- return { payload: res.payload, header: res.header };
103
+ return {
104
+ payload: res.payload,
105
+ header: res.header,
106
+ kb: res.kb
107
+ };
104
108
  });
105
109
  if (result.payload.status) {
106
110
  if (result.payload.status.status_list) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/sd-jwt-vc",
3
- "version": "0.7.2-next.0+5f57edc",
3
+ "version": "0.7.2-next.1+6747319",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -39,13 +39,13 @@
39
39
  },
40
40
  "license": "Apache-2.0",
41
41
  "dependencies": {
42
- "@sd-jwt/core": "0.7.2-next.0+5f57edc",
43
- "@sd-jwt/jwt-status-list": "0.7.2-next.0+5f57edc",
44
- "@sd-jwt/utils": "0.7.2-next.0+5f57edc"
42
+ "@sd-jwt/core": "0.7.2-next.1+6747319",
43
+ "@sd-jwt/jwt-status-list": "0.7.2-next.1+6747319",
44
+ "@sd-jwt/utils": "0.7.2-next.1+6747319"
45
45
  },
46
46
  "devDependencies": {
47
- "@sd-jwt/crypto-nodejs": "0.7.2-next.0+5f57edc",
48
- "@sd-jwt/types": "0.7.2-next.0+5f57edc",
47
+ "@sd-jwt/crypto-nodejs": "0.7.2-next.1+6747319",
48
+ "@sd-jwt/types": "0.7.2-next.1+6747319",
49
49
  "jose": "^5.2.2"
50
50
  },
51
51
  "publishConfig": {
@@ -64,5 +64,5 @@
64
64
  "esm"
65
65
  ]
66
66
  },
67
- "gitHead": "5f57edcee454c51a4dd2e34bcd845a54554ee2b3"
67
+ "gitHead": "6747319c6f8ee748d84d1cb6ced43fcaec5f4fca"
68
68
  }
@@ -104,7 +104,11 @@ export class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
104
104
  const result = await super
105
105
  .verify(encodedSDJwt, requiredClaimKeys, requireKeyBindings)
106
106
  .then((res) => {
107
- return { payload: res.payload as SdJwtVcPayload, header: res.header };
107
+ return {
108
+ payload: res.payload as SdJwtVcPayload,
109
+ header: res.header,
110
+ kb: res.kb,
111
+ };
108
112
  });
109
113
 
110
114
  if (result.payload.status) {
@@ -260,6 +260,7 @@ async function JSONtest(filename: string) {
260
260
  expect(verified).toBeDefined();
261
261
  expect(verified).toStrictEqual({
262
262
  header: { alg: 'EdDSA', typ: 'vc+sd-jwt' },
263
+ kb: undefined,
263
264
  payload,
264
265
  });
265
266
  }