@sd-jwt/types 0.3.2-next.103 → 0.3.2-next.104

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
@@ -31,6 +31,26 @@ type kbPayload = {
31
31
  type KBOptions = {
32
32
  payload: Omit<kbPayload, 'sd_hash'>;
33
33
  };
34
+ interface JsonWebKey {
35
+ alg?: string;
36
+ crv?: string;
37
+ d?: string;
38
+ dp?: string;
39
+ dq?: string;
40
+ e?: string;
41
+ ext?: boolean;
42
+ k?: string;
43
+ key_ops?: string[];
44
+ kty?: string;
45
+ n?: string;
46
+ oth?: RsaOtherPrimesInfo[];
47
+ p?: string;
48
+ q?: string;
49
+ qi?: string;
50
+ use?: string;
51
+ x?: string;
52
+ y?: string;
53
+ }
34
54
  interface JwtPayload {
35
55
  cnf?: {
36
56
  jwk: JsonWebKey;
package/dist/index.d.ts CHANGED
@@ -31,6 +31,26 @@ type kbPayload = {
31
31
  type KBOptions = {
32
32
  payload: Omit<kbPayload, 'sd_hash'>;
33
33
  };
34
+ interface JsonWebKey {
35
+ alg?: string;
36
+ crv?: string;
37
+ d?: string;
38
+ dp?: string;
39
+ dq?: string;
40
+ e?: string;
41
+ ext?: boolean;
42
+ k?: string;
43
+ key_ops?: string[];
44
+ kty?: string;
45
+ n?: string;
46
+ oth?: RsaOtherPrimesInfo[];
47
+ p?: string;
48
+ q?: string;
49
+ qi?: string;
50
+ use?: string;
51
+ x?: string;
52
+ y?: string;
53
+ }
34
54
  interface JwtPayload {
35
55
  cnf?: {
36
56
  jwk: JsonWebKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/types",
3
- "version": "0.3.2-next.103+a28ae21",
3
+ "version": "0.3.2-next.104+38ffb3c",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -53,5 +53,5 @@
53
53
  "esm"
54
54
  ]
55
55
  },
56
- "gitHead": "a28ae21d24c2e20f41857f2205c24a2609c10736"
56
+ "gitHead": "38ffb3c34f291f62a3ac52f29366b5ebbad11327"
57
57
  }
package/src/type.ts CHANGED
@@ -34,6 +34,27 @@ export type KBOptions = {
34
34
  payload: Omit<kbPayload, 'sd_hash'>;
35
35
  };
36
36
 
37
+ interface JsonWebKey {
38
+ alg?: string;
39
+ crv?: string;
40
+ d?: string;
41
+ dp?: string;
42
+ dq?: string;
43
+ e?: string;
44
+ ext?: boolean;
45
+ k?: string;
46
+ key_ops?: string[];
47
+ kty?: string;
48
+ n?: string;
49
+ oth?: RsaOtherPrimesInfo[];
50
+ p?: string;
51
+ q?: string;
52
+ qi?: string;
53
+ use?: string;
54
+ x?: string;
55
+ y?: string;
56
+ }
57
+
37
58
  export interface JwtPayload {
38
59
  cnf?: {
39
60
  jwk: JsonWebKey;