@sd-jwt/types 0.6.1 → 0.6.2-next.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/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/package.json +2 -2
- package/src/type.ts +7 -2
package/dist/index.d.mts
CHANGED
|
@@ -128,7 +128,11 @@ type DECOY = {
|
|
|
128
128
|
type Frame<Payload> = Payload extends Array<infer U> ? U extends object ? Record<number, Frame<U>> & SD<Payload> & DECOY : SD<Payload> & DECOY : Payload extends Record<string, unknown> ? NonNever<{
|
|
129
129
|
[K in keyof Payload]?: Payload[K] extends object ? Frame<Payload[K]> : never;
|
|
130
130
|
} & SD<Payload> & DECOY> : SD<Payload> & DECOY;
|
|
131
|
-
|
|
131
|
+
/**
|
|
132
|
+
* This is a disclosureFrame type that is used to represent the structure of what is being disclosed.
|
|
133
|
+
*/
|
|
134
|
+
type Extensible = Record<string, unknown | boolean>;
|
|
135
|
+
type DisclosureFrame<T extends Extensible> = Frame<T>;
|
|
132
136
|
/**
|
|
133
137
|
* This is a presentationFrame type that is used to represent the structure of what is being presented.
|
|
134
138
|
* PresentationFrame is made from the payload type.
|
|
@@ -175,6 +179,6 @@ type DisclosureFrame<T extends object> = Frame<T>;
|
|
|
175
179
|
type PFrame<Payload> = Payload extends Array<infer U> ? U extends object ? Record<number, PFrame<U> | boolean> | boolean : Record<number, boolean> | boolean : {
|
|
176
180
|
[K in keyof Payload]?: Payload[K] extends object ? PFrame<Payload[K]> | boolean : boolean;
|
|
177
181
|
};
|
|
178
|
-
type PresentationFrame<T extends
|
|
182
|
+
type PresentationFrame<T extends Extensible> = PFrame<T>;
|
|
179
183
|
|
|
180
|
-
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type JwtPayload, type KBOptions, KB_JWT_TYP, type KbVerifier, type OrPromise, type PresentationFrame, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload };
|
|
184
|
+
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Extensible, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type JwtPayload, type KBOptions, KB_JWT_TYP, type KbVerifier, type OrPromise, type PresentationFrame, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload };
|
package/dist/index.d.ts
CHANGED
|
@@ -128,7 +128,11 @@ type DECOY = {
|
|
|
128
128
|
type Frame<Payload> = Payload extends Array<infer U> ? U extends object ? Record<number, Frame<U>> & SD<Payload> & DECOY : SD<Payload> & DECOY : Payload extends Record<string, unknown> ? NonNever<{
|
|
129
129
|
[K in keyof Payload]?: Payload[K] extends object ? Frame<Payload[K]> : never;
|
|
130
130
|
} & SD<Payload> & DECOY> : SD<Payload> & DECOY;
|
|
131
|
-
|
|
131
|
+
/**
|
|
132
|
+
* This is a disclosureFrame type that is used to represent the structure of what is being disclosed.
|
|
133
|
+
*/
|
|
134
|
+
type Extensible = Record<string, unknown | boolean>;
|
|
135
|
+
type DisclosureFrame<T extends Extensible> = Frame<T>;
|
|
132
136
|
/**
|
|
133
137
|
* This is a presentationFrame type that is used to represent the structure of what is being presented.
|
|
134
138
|
* PresentationFrame is made from the payload type.
|
|
@@ -175,6 +179,6 @@ type DisclosureFrame<T extends object> = Frame<T>;
|
|
|
175
179
|
type PFrame<Payload> = Payload extends Array<infer U> ? U extends object ? Record<number, PFrame<U> | boolean> | boolean : Record<number, boolean> | boolean : {
|
|
176
180
|
[K in keyof Payload]?: Payload[K] extends object ? PFrame<Payload[K]> | boolean : boolean;
|
|
177
181
|
};
|
|
178
|
-
type PresentationFrame<T extends
|
|
182
|
+
type PresentationFrame<T extends Extensible> = PFrame<T>;
|
|
179
183
|
|
|
180
|
-
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type JwtPayload, type KBOptions, KB_JWT_TYP, type KbVerifier, type OrPromise, type PresentationFrame, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload };
|
|
184
|
+
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Extensible, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type JwtPayload, type KBOptions, KB_JWT_TYP, type KbVerifier, type OrPromise, type PresentationFrame, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/types",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2-next.2+2e92cb3",
|
|
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": "
|
|
56
|
+
"gitHead": "2e92cb3abc27f6dbde19c7c016bc1f8ba60f9ff6"
|
|
57
57
|
}
|
package/src/type.ts
CHANGED
|
@@ -153,7 +153,12 @@ type Frame<Payload> = Payload extends Array<infer U>
|
|
|
153
153
|
>
|
|
154
154
|
: SD<Payload> & DECOY;
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
/**
|
|
157
|
+
* This is a disclosureFrame type that is used to represent the structure of what is being disclosed.
|
|
158
|
+
*/
|
|
159
|
+
export type Extensible = Record<string, unknown | boolean>;
|
|
160
|
+
|
|
161
|
+
export type DisclosureFrame<T extends Extensible> = Frame<T>;
|
|
157
162
|
|
|
158
163
|
/**
|
|
159
164
|
* This is a presentationFrame type that is used to represent the structure of what is being presented.
|
|
@@ -208,4 +213,4 @@ type PFrame<Payload> = Payload extends Array<infer U>
|
|
|
208
213
|
: boolean;
|
|
209
214
|
};
|
|
210
215
|
|
|
211
|
-
export type PresentationFrame<T extends
|
|
216
|
+
export type PresentationFrame<T extends Extensible> = PFrame<T>;
|