@sd-jwt/types 0.1.2-alpha.8 → 0.2.0

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.
@@ -3,6 +3,7 @@ export type Disclosure = {
3
3
  salt: string;
4
4
  key?: string;
5
5
  value: unknown;
6
+ encoded: string;
6
7
  };
7
8
  export type DisclosureWithDigest = Disclosure & {
8
9
  digest: string;
@@ -0,0 +1,5 @@
1
+ export type BaseFrame<Payload, ExtraProperties> = Payload extends Array<unknown> ? {
2
+ [K in keyof Payload]?: Payload[K] extends Record<string | number, unknown> ? BaseFrame<Payload[K], ExtraProperties> | boolean : boolean;
3
+ } : Payload extends Record<string, unknown> ? {
4
+ [K in keyof Payload]?: Payload[K] extends Array<unknown> ? BaseFrame<Payload[K], ExtraProperties> | boolean : Payload[K] extends Record<string, unknown> ? (ExtraProperties & BaseFrame<Payload[K], ExtraProperties>) | boolean : boolean;
5
+ } & ExtraProperties & Record<string, unknown> : boolean;
package/build/frame.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.js","sourceRoot":"","sources":["../src/frame.ts"],"names":[],"mappings":""}
package/build/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './disclosure';
2
2
  export * from './hasher';
3
+ export * from './frame';
package/build/index.js CHANGED
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./disclosure"), exports);
18
18
  __exportStar(require("./hasher"), exports);
19
+ __exportStar(require("./frame"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,2CAAwB;AACxB,0CAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/types",
3
- "version": "0.1.2-alpha.8",
3
+ "version": "0.2.0",
4
4
  "description": "Common types of sd-jwt Draft 06 and sd-jwt-vc Draft 01",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "author": "Berend Sliedrecht <sliedrecht@berend.io>",
@@ -40,5 +40,5 @@
40
40
  "ts-node": "*",
41
41
  "typescript": "*"
42
42
  },
43
- "gitHead": "e030a05d603046d98044eba671a2182263b8aced"
43
+ "gitHead": "8fb68d5a23b2bf157949346a6603dc40b1594195"
44
44
  }