diff --git a/docs/modules/jwe_compact_decrypt.md b/docs/modules/jwe_compact_decrypt.md index 82c440d625..ab50d0875d 100644 --- a/docs/modules/jwe_compact_decrypt.md +++ b/docs/modules/jwe_compact_decrypt.md @@ -2,12 +2,6 @@ ## Table of contents -### References - -- [CompactDecryptResult](jwe_compact_decrypt.md#compactdecryptresult) -- [DecryptOptions](jwe_compact_decrypt.md#decryptoptions) -- [KeyLike](jwe_compact_decrypt.md#keylike) - ### Interfaces - [CompactDecryptGetKey](../interfaces/jwe_compact_decrypt.CompactDecryptGetKey.md) @@ -15,21 +9,3 @@ ### Functions - [compactDecrypt](../functions/jwe_compact_decrypt.compactDecrypt.md) - -## References - -### CompactDecryptResult - -Re-exports: [CompactDecryptResult](../interfaces/types.CompactDecryptResult.md) - -___ - -### DecryptOptions - -Re-exports: [DecryptOptions](../interfaces/types.DecryptOptions.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwe_compact_encrypt.md b/docs/modules/jwe_compact_encrypt.md index 4fbc0e755a..5f297a7359 100644 --- a/docs/modules/jwe_compact_encrypt.md +++ b/docs/modules/jwe_compact_encrypt.md @@ -2,30 +2,6 @@ ## Table of contents -### References - -- [JWEHeaderParameters](jwe_compact_encrypt.md#jweheaderparameters) -- [JWEKeyManagementHeaderParameters](jwe_compact_encrypt.md#jwekeymanagementheaderparameters) -- [KeyLike](jwe_compact_encrypt.md#keylike) - ### Classes - [CompactEncrypt](../classes/jwe_compact_encrypt.CompactEncrypt.md) - -## References - -### JWEHeaderParameters - -Re-exports: [JWEHeaderParameters](../interfaces/types.JWEHeaderParameters.md) - -___ - -### JWEKeyManagementHeaderParameters - -Re-exports: [JWEKeyManagementHeaderParameters](../interfaces/types.JWEKeyManagementHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwe_flattened_decrypt.md b/docs/modules/jwe_flattened_decrypt.md index 7e181c59e1..014d49df4f 100644 --- a/docs/modules/jwe_flattened_decrypt.md +++ b/docs/modules/jwe_flattened_decrypt.md @@ -2,14 +2,6 @@ ## Table of contents -### References - -- [DecryptOptions](jwe_flattened_decrypt.md#decryptoptions) -- [FlattenedDecryptResult](jwe_flattened_decrypt.md#flatteneddecryptresult) -- [FlattenedJWE](jwe_flattened_decrypt.md#flattenedjwe) -- [JWEHeaderParameters](jwe_flattened_decrypt.md#jweheaderparameters) -- [KeyLike](jwe_flattened_decrypt.md#keylike) - ### Interfaces - [FlattenedDecryptGetKey](../interfaces/jwe_flattened_decrypt.FlattenedDecryptGetKey.md) @@ -17,33 +9,3 @@ ### Functions - [flattenedDecrypt](../functions/jwe_flattened_decrypt.flattenedDecrypt.md) - -## References - -### DecryptOptions - -Re-exports: [DecryptOptions](../interfaces/types.DecryptOptions.md) - -___ - -### FlattenedDecryptResult - -Re-exports: [FlattenedDecryptResult](../interfaces/types.FlattenedDecryptResult.md) - -___ - -### FlattenedJWE - -Re-exports: [FlattenedJWE](../interfaces/types.FlattenedJWE.md) - -___ - -### JWEHeaderParameters - -Re-exports: [JWEHeaderParameters](../interfaces/types.JWEHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwe_flattened_encrypt.md b/docs/modules/jwe_flattened_encrypt.md index b3a3664926..539c26b671 100644 --- a/docs/modules/jwe_flattened_encrypt.md +++ b/docs/modules/jwe_flattened_encrypt.md @@ -2,37 +2,6 @@ ## Table of contents -### References - -- [FlattenedJWE](jwe_flattened_encrypt.md#flattenedjwe) -- [JWEHeaderParameters](jwe_flattened_encrypt.md#jweheaderparameters) -- [JWEKeyManagementHeaderParameters](jwe_flattened_encrypt.md#jwekeymanagementheaderparameters) -- [KeyLike](jwe_flattened_encrypt.md#keylike) - ### Classes - [FlattenedEncrypt](../classes/jwe_flattened_encrypt.FlattenedEncrypt.md) - -## References - -### FlattenedJWE - -Re-exports: [FlattenedJWE](../interfaces/types.FlattenedJWE.md) - -___ - -### JWEHeaderParameters - -Re-exports: [JWEHeaderParameters](../interfaces/types.JWEHeaderParameters.md) - -___ - -### JWEKeyManagementHeaderParameters - -Re-exports: [JWEKeyManagementHeaderParameters](../interfaces/types.JWEKeyManagementHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwe_general_decrypt.md b/docs/modules/jwe_general_decrypt.md index 0ec8198375..d8fc3f97d2 100644 --- a/docs/modules/jwe_general_decrypt.md +++ b/docs/modules/jwe_general_decrypt.md @@ -2,13 +2,6 @@ ## Table of contents -### References - -- [DecryptOptions](jwe_general_decrypt.md#decryptoptions) -- [GeneralDecryptResult](jwe_general_decrypt.md#generaldecryptresult) -- [GeneralJWE](jwe_general_decrypt.md#generaljwe) -- [KeyLike](jwe_general_decrypt.md#keylike) - ### Interfaces - [GeneralDecryptGetKey](../interfaces/jwe_general_decrypt.GeneralDecryptGetKey.md) @@ -16,27 +9,3 @@ ### Functions - [generalDecrypt](../functions/jwe_general_decrypt.generalDecrypt.md) - -## References - -### DecryptOptions - -Re-exports: [DecryptOptions](../interfaces/types.DecryptOptions.md) - -___ - -### GeneralDecryptResult - -Re-exports: [GeneralDecryptResult](../interfaces/types.GeneralDecryptResult.md) - -___ - -### GeneralJWE - -Re-exports: [GeneralJWE](../interfaces/types.GeneralJWE.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwk_thumbprint.md b/docs/modules/jwk_thumbprint.md index 65cf6cb0df..2e260373cc 100644 --- a/docs/modules/jwk_thumbprint.md +++ b/docs/modules/jwk_thumbprint.md @@ -2,16 +2,6 @@ ## Table of contents -### References - -- [JWK](jwk_thumbprint.md#jwk) - ### Functions - [calculateJwkThumbprint](../functions/jwk_thumbprint.calculateJwkThumbprint.md) - -## References - -### JWK - -Re-exports: [JWK](../interfaces/types.JWK.md) diff --git a/docs/modules/jws_compact_sign.md b/docs/modules/jws_compact_sign.md index f29ad9cbd7..bf4c7ecce1 100644 --- a/docs/modules/jws_compact_sign.md +++ b/docs/modules/jws_compact_sign.md @@ -2,23 +2,6 @@ ## Table of contents -### References - -- [JWSHeaderParameters](jws_compact_sign.md#jwsheaderparameters) -- [KeyLike](jws_compact_sign.md#keylike) - ### Classes - [CompactSign](../classes/jws_compact_sign.CompactSign.md) - -## References - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jws_compact_verify.md b/docs/modules/jws_compact_verify.md index 9cffbdcde3..b9145a061a 100644 --- a/docs/modules/jws_compact_verify.md +++ b/docs/modules/jws_compact_verify.md @@ -2,12 +2,6 @@ ## Table of contents -### References - -- [CompactVerifyResult](jws_compact_verify.md#compactverifyresult) -- [KeyLike](jws_compact_verify.md#keylike) -- [VerifyOptions](jws_compact_verify.md#verifyoptions) - ### Interfaces - [CompactVerifyGetKey](../interfaces/jws_compact_verify.CompactVerifyGetKey.md) @@ -15,21 +9,3 @@ ### Functions - [compactVerify](../functions/jws_compact_verify.compactVerify.md) - -## References - -### CompactVerifyResult - -Re-exports: [CompactVerifyResult](../interfaces/types.CompactVerifyResult.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) - -___ - -### VerifyOptions - -Re-exports: [VerifyOptions](../interfaces/types.VerifyOptions.md) diff --git a/docs/modules/jws_flattened_sign.md b/docs/modules/jws_flattened_sign.md index 979340de19..e7f34c9f0e 100644 --- a/docs/modules/jws_flattened_sign.md +++ b/docs/modules/jws_flattened_sign.md @@ -2,30 +2,6 @@ ## Table of contents -### References - -- [FlattenedJWS](jws_flattened_sign.md#flattenedjws) -- [JWSHeaderParameters](jws_flattened_sign.md#jwsheaderparameters) -- [KeyLike](jws_flattened_sign.md#keylike) - ### Classes - [FlattenedSign](../classes/jws_flattened_sign.FlattenedSign.md) - -## References - -### FlattenedJWS - -Re-exports: [FlattenedJWS](../interfaces/types.FlattenedJWS.md) - -___ - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jws_flattened_verify.md b/docs/modules/jws_flattened_verify.md index bd64bb02ec..8974712424 100644 --- a/docs/modules/jws_flattened_verify.md +++ b/docs/modules/jws_flattened_verify.md @@ -2,15 +2,6 @@ ## Table of contents -### References - -- [FlattenedJWSInput](jws_flattened_verify.md#flattenedjwsinput) -- [FlattenedVerifyResult](jws_flattened_verify.md#flattenedverifyresult) -- [GetKeyFunction](jws_flattened_verify.md#getkeyfunction) -- [JWSHeaderParameters](jws_flattened_verify.md#jwsheaderparameters) -- [KeyLike](jws_flattened_verify.md#keylike) -- [VerifyOptions](jws_flattened_verify.md#verifyoptions) - ### Interfaces - [FlattenedVerifyGetKey](../interfaces/jws_flattened_verify.FlattenedVerifyGetKey.md) @@ -18,39 +9,3 @@ ### Functions - [flattenedVerify](../functions/jws_flattened_verify.flattenedVerify.md) - -## References - -### FlattenedJWSInput - -Re-exports: [FlattenedJWSInput](../interfaces/types.FlattenedJWSInput.md) - -___ - -### FlattenedVerifyResult - -Re-exports: [FlattenedVerifyResult](../interfaces/types.FlattenedVerifyResult.md) - -___ - -### GetKeyFunction - -Re-exports: [GetKeyFunction](../interfaces/types.GetKeyFunction.md) - -___ - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) - -___ - -### VerifyOptions - -Re-exports: [VerifyOptions](../interfaces/types.VerifyOptions.md) diff --git a/docs/modules/jws_general_sign.md b/docs/modules/jws_general_sign.md index a319e269c2..07b2f031a8 100644 --- a/docs/modules/jws_general_sign.md +++ b/docs/modules/jws_general_sign.md @@ -2,12 +2,6 @@ ## Table of contents -### References - -- [GeneralJWS](jws_general_sign.md#generaljws) -- [JWSHeaderParameters](jws_general_sign.md#jwsheaderparameters) -- [KeyLike](jws_general_sign.md#keylike) - ### Classes - [GeneralSign](../classes/jws_general_sign.GeneralSign.md) @@ -15,21 +9,3 @@ ### Interfaces - [Signature](../interfaces/jws_general_sign.Signature.md) - -## References - -### GeneralJWS - -Re-exports: [GeneralJWS](../interfaces/types.GeneralJWS.md) - -___ - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jws_general_verify.md b/docs/modules/jws_general_verify.md index 262a160273..02d9e18645 100644 --- a/docs/modules/jws_general_verify.md +++ b/docs/modules/jws_general_verify.md @@ -2,13 +2,6 @@ ## Table of contents -### References - -- [GeneralJWSInput](jws_general_verify.md#generaljwsinput) -- [GeneralVerifyResult](jws_general_verify.md#generalverifyresult) -- [KeyLike](jws_general_verify.md#keylike) -- [VerifyOptions](jws_general_verify.md#verifyoptions) - ### Interfaces - [GeneralVerifyGetKey](../interfaces/jws_general_verify.GeneralVerifyGetKey.md) @@ -16,27 +9,3 @@ ### Functions - [generalVerify](../functions/jws_general_verify.generalVerify.md) - -## References - -### GeneralJWSInput - -Re-exports: [GeneralJWSInput](../interfaces/types.GeneralJWSInput.md) - -___ - -### GeneralVerifyResult - -Re-exports: [GeneralVerifyResult](../interfaces/types.GeneralVerifyResult.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) - -___ - -### VerifyOptions - -Re-exports: [VerifyOptions](../interfaces/types.VerifyOptions.md) diff --git a/docs/modules/jwt_decrypt.md b/docs/modules/jwt_decrypt.md index 91f578f17d..30ce4e8f20 100644 --- a/docs/modules/jwt_decrypt.md +++ b/docs/modules/jwt_decrypt.md @@ -2,13 +2,6 @@ ## Table of contents -### References - -- [DecryptOptions](jwt_decrypt.md#decryptoptions) -- [JWTDecryptResult](jwt_decrypt.md#jwtdecryptresult) -- [JWTPayload](jwt_decrypt.md#jwtpayload) -- [KeyLike](jwt_decrypt.md#keylike) - ### Interfaces - [JWTDecryptGetKey](../interfaces/jwt_decrypt.JWTDecryptGetKey.md) @@ -17,27 +10,3 @@ ### Functions - [jwtDecrypt](../functions/jwt_decrypt.jwtDecrypt.md) - -## References - -### DecryptOptions - -Re-exports: [DecryptOptions](../interfaces/types.DecryptOptions.md) - -___ - -### JWTDecryptResult - -Re-exports: [JWTDecryptResult](../interfaces/types.JWTDecryptResult.md) - -___ - -### JWTPayload - -Re-exports: [JWTPayload](../interfaces/types.JWTPayload.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwt_encrypt.md b/docs/modules/jwt_encrypt.md index 17c94dc75c..405c9a1997 100644 --- a/docs/modules/jwt_encrypt.md +++ b/docs/modules/jwt_encrypt.md @@ -2,30 +2,6 @@ ## Table of contents -### References - -- [JWEHeaderParameters](jwt_encrypt.md#jweheaderparameters) -- [JWTPayload](jwt_encrypt.md#jwtpayload) -- [KeyLike](jwt_encrypt.md#keylike) - ### Classes - [EncryptJWT](../classes/jwt_encrypt.EncryptJWT.md) - -## References - -### JWEHeaderParameters - -Re-exports: [JWEHeaderParameters](../interfaces/types.JWEHeaderParameters.md) - -___ - -### JWTPayload - -Re-exports: [JWTPayload](../interfaces/types.JWTPayload.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwt_sign.md b/docs/modules/jwt_sign.md index 11a6906feb..c2334d7304 100644 --- a/docs/modules/jwt_sign.md +++ b/docs/modules/jwt_sign.md @@ -2,30 +2,6 @@ ## Table of contents -### References - -- [JWSHeaderParameters](jwt_sign.md#jwsheaderparameters) -- [JWTPayload](jwt_sign.md#jwtpayload) -- [KeyLike](jwt_sign.md#keylike) - ### Classes - [SignJWT](../classes/jwt_sign.SignJWT.md) - -## References - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### JWTPayload - -Re-exports: [JWTPayload](../interfaces/types.JWTPayload.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/jwt_unsecured.md b/docs/modules/jwt_unsecured.md index 3e13fcafb6..a356248229 100644 --- a/docs/modules/jwt_unsecured.md +++ b/docs/modules/jwt_unsecured.md @@ -2,11 +2,6 @@ ## Table of contents -### References - -- [JWSHeaderParameters](jwt_unsecured.md#jwsheaderparameters) -- [JWTPayload](jwt_unsecured.md#jwtpayload) - ### Classes - [UnsecuredJWT](../classes/jwt_unsecured.UnsecuredJWT.md) @@ -14,15 +9,3 @@ ### Interfaces - [UnsecuredResult](../interfaces/jwt_unsecured.UnsecuredResult.md) - -## References - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### JWTPayload - -Re-exports: [JWTPayload](../interfaces/types.JWTPayload.md) diff --git a/docs/modules/jwt_verify.md b/docs/modules/jwt_verify.md index fc3b7f2c3f..1ee8f20582 100644 --- a/docs/modules/jwt_verify.md +++ b/docs/modules/jwt_verify.md @@ -2,14 +2,6 @@ ## Table of contents -### References - -- [GetKeyFunction](jwt_verify.md#getkeyfunction) -- [JWSHeaderParameters](jwt_verify.md#jwsheaderparameters) -- [JWTPayload](jwt_verify.md#jwtpayload) -- [JWTVerifyResult](jwt_verify.md#jwtverifyresult) -- [KeyLike](jwt_verify.md#keylike) - ### Interfaces - [JWTVerifyGetKey](../interfaces/jwt_verify.JWTVerifyGetKey.md) @@ -18,33 +10,3 @@ ### Functions - [jwtVerify](../functions/jwt_verify.jwtVerify.md) - -## References - -### GetKeyFunction - -Re-exports: [GetKeyFunction](../interfaces/types.GetKeyFunction.md) - -___ - -### JWSHeaderParameters - -Re-exports: [JWSHeaderParameters](../interfaces/types.JWSHeaderParameters.md) - -___ - -### JWTPayload - -Re-exports: [JWTPayload](../interfaces/types.JWTPayload.md) - -___ - -### JWTVerifyResult - -Re-exports: [JWTVerifyResult](../interfaces/types.JWTVerifyResult.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/key_export.md b/docs/modules/key_export.md index 87ec764f86..ab3895df91 100644 --- a/docs/modules/key_export.md +++ b/docs/modules/key_export.md @@ -2,25 +2,8 @@ ## Table of contents -### References - -- [JWK](key_export.md#jwk) -- [KeyLike](key_export.md#keylike) - ### Functions - [exportJWK](../functions/key_export.exportJWK.md) - [exportPKCS8](../functions/key_export.exportPKCS8.md) - [exportSPKI](../functions/key_export.exportSPKI.md) - -## References - -### JWK - -Re-exports: [JWK](../interfaces/types.JWK.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/docs/modules/key_import.md b/docs/modules/key_import.md index be22d6a703..40938d75e7 100644 --- a/docs/modules/key_import.md +++ b/docs/modules/key_import.md @@ -2,11 +2,6 @@ ## Table of contents -### References - -- [JWK](key_import.md#jwk) -- [KeyLike](key_import.md#keylike) - ### Interfaces - [PEMImportOptions](../interfaces/key_import.PEMImportOptions.md) @@ -17,15 +12,3 @@ - [importPKCS8](../functions/key_import.importPKCS8.md) - [importSPKI](../functions/key_import.importSPKI.md) - [importX509](../functions/key_import.importX509.md) - -## References - -### JWK - -Re-exports: [JWK](../interfaces/types.JWK.md) - -___ - -### KeyLike - -Re-exports: [KeyLike](../types/types.KeyLike.md) diff --git a/src/jwe/compact/decrypt.ts b/src/jwe/compact/decrypt.ts index f65493e5b2..51454ea8ee 100644 --- a/src/jwe/compact/decrypt.ts +++ b/src/jwe/compact/decrypt.ts @@ -110,5 +110,3 @@ export async function compactDecrypt( return result } - -export type { KeyLike, DecryptOptions, CompactDecryptResult } diff --git a/src/jwe/compact/encrypt.ts b/src/jwe/compact/encrypt.ts index 411aa2a7cb..98c61e4290 100644 --- a/src/jwe/compact/encrypt.ts +++ b/src/jwe/compact/encrypt.ts @@ -105,5 +105,3 @@ export class CompactEncrypt { return [jwe.protected, jwe.encrypted_key, jwe.iv, jwe.ciphertext, jwe.tag].join('.') } } - -export type { KeyLike, JWEKeyManagementHeaderParameters, JWEHeaderParameters } diff --git a/src/jwe/flattened/decrypt.ts b/src/jwe/flattened/decrypt.ts index a3d5038419..fb89a1e398 100644 --- a/src/jwe/flattened/decrypt.ts +++ b/src/jwe/flattened/decrypt.ts @@ -261,5 +261,3 @@ export async function flattenedDecrypt( return result } - -export type { KeyLike, FlattenedJWE, JWEHeaderParameters, DecryptOptions, FlattenedDecryptResult } diff --git a/src/jwe/flattened/encrypt.ts b/src/jwe/flattened/encrypt.ts index 5d9601d47d..963246d342 100644 --- a/src/jwe/flattened/encrypt.ts +++ b/src/jwe/flattened/encrypt.ts @@ -313,5 +313,3 @@ export class FlattenedEncrypt { return jwe } } - -export type { KeyLike, FlattenedJWE, JWEHeaderParameters, JWEKeyManagementHeaderParameters } diff --git a/src/jwe/general/decrypt.ts b/src/jwe/general/decrypt.ts index fb829074df..cb5145b18d 100644 --- a/src/jwe/general/decrypt.ts +++ b/src/jwe/general/decrypt.ts @@ -117,5 +117,3 @@ export async function generalDecrypt( } throw new JWEDecryptionFailed() } - -export type { KeyLike, GeneralJWE, DecryptOptions, GeneralDecryptResult } diff --git a/src/jwk/thumbprint.ts b/src/jwk/thumbprint.ts index 06ac183646..c4ccdbf5b8 100644 --- a/src/jwk/thumbprint.ts +++ b/src/jwk/thumbprint.ts @@ -83,5 +83,3 @@ export async function calculateJwkThumbprint( const data = encoder.encode(JSON.stringify(components)) return base64url(await digest(digestAlgorithm, data)) } - -export type { JWK } diff --git a/src/jws/compact/sign.ts b/src/jws/compact/sign.ts index c3584f7db7..dc36ea96df 100644 --- a/src/jws/compact/sign.ts +++ b/src/jws/compact/sign.ts @@ -66,5 +66,3 @@ export class CompactSign { return `${jws.protected}.${jws.payload}.${jws.signature}` } } - -export type { JWSHeaderParameters, KeyLike } diff --git a/src/jws/compact/verify.ts b/src/jws/compact/verify.ts index d3b05dbb47..c988ff1b8f 100644 --- a/src/jws/compact/verify.ts +++ b/src/jws/compact/verify.ts @@ -105,5 +105,3 @@ export async function compactVerify( return result } - -export type { KeyLike, VerifyOptions, CompactVerifyResult } diff --git a/src/jws/flattened/sign.ts b/src/jws/flattened/sign.ts index c1c7a9ff15..a9b7392d25 100644 --- a/src/jws/flattened/sign.ts +++ b/src/jws/flattened/sign.ts @@ -165,5 +165,3 @@ export class FlattenedSign { return jws } } - -export type { KeyLike, FlattenedJWS, JWSHeaderParameters } diff --git a/src/jws/flattened/verify.ts b/src/jws/flattened/verify.ts index 843c7d6c72..f9ec34cd09 100644 --- a/src/jws/flattened/verify.ts +++ b/src/jws/flattened/verify.ts @@ -213,12 +213,3 @@ export async function flattenedVerify( return result } - -export type { - KeyLike, - FlattenedJWSInput, - GetKeyFunction, - JWSHeaderParameters, - VerifyOptions, - FlattenedVerifyResult, -} diff --git a/src/jws/general/sign.ts b/src/jws/general/sign.ts index a4bbe52e5f..17c53f56bf 100644 --- a/src/jws/general/sign.ts +++ b/src/jws/general/sign.ts @@ -157,5 +157,3 @@ export class GeneralSign { return jws } } - -export type { KeyLike, GeneralJWS, JWSHeaderParameters } diff --git a/src/jws/general/verify.ts b/src/jws/general/verify.ts index d1eb8f9293..ab47485f94 100644 --- a/src/jws/general/verify.ts +++ b/src/jws/general/verify.ts @@ -109,5 +109,3 @@ export async function generalVerify( } throw new JWSSignatureVerificationFailed() } - -export type { KeyLike, GeneralJWSInput, VerifyOptions, GeneralVerifyResult } diff --git a/src/jwt/decrypt.ts b/src/jwt/decrypt.ts index 68bff065e0..3e9295d780 100644 --- a/src/jwt/decrypt.ts +++ b/src/jwt/decrypt.ts @@ -2,7 +2,6 @@ import { compactDecrypt } from '../jwe/compact/decrypt.js' import type { KeyLike, DecryptOptions, - JWTPayload, JWTClaimVerificationOptions, GetKeyFunction, JWEHeaderParameters, @@ -16,7 +15,7 @@ import { JWTClaimValidationFailed } from '../util/errors.js' /** * Combination of JWE Decryption options and JWT Claims Set verification options. */ -interface JWTDecryptOptions extends DecryptOptions, JWTClaimVerificationOptions {} +export interface JWTDecryptOptions extends DecryptOptions, JWTClaimVerificationOptions {} /** * Interface for JWT Decryption dynamic key resolution. @@ -119,5 +118,3 @@ export async function jwtDecrypt( return result } - -export type { KeyLike, DecryptOptions, JWTPayload, JWTDecryptOptions, JWTDecryptResult } diff --git a/src/jwt/encrypt.ts b/src/jwt/encrypt.ts index 40f5182803..6a5bfb38e3 100644 --- a/src/jwt/encrypt.ts +++ b/src/jwt/encrypt.ts @@ -3,7 +3,6 @@ import type { EncryptOptions, JWEHeaderParameters, JWEKeyManagementHeaderParameters, - JWTPayload, KeyLike, } from '../types.d' import { encoder } from '../lib/buffer_utils.js' @@ -175,5 +174,3 @@ export class EncryptJWT extends ProduceJWT { return enc.encrypt(key, options) } } - -export type { JWEHeaderParameters, JWTPayload, KeyLike } diff --git a/src/jwt/sign.ts b/src/jwt/sign.ts index 04b6606a4f..4ae374cf20 100644 --- a/src/jwt/sign.ts +++ b/src/jwt/sign.ts @@ -1,6 +1,6 @@ import { CompactSign } from '../jws/compact/sign.js' import { JWTInvalid } from '../util/errors.js' -import type { JWSHeaderParameters, JWTPayload, KeyLike, SignOptions } from '../types.d' +import type { JWSHeaderParameters, KeyLike, SignOptions } from '../types.d' import { encoder } from '../lib/buffer_utils.js' import { ProduceJWT } from './produce.js' @@ -67,5 +67,3 @@ export class SignJWT extends ProduceJWT { return sig.sign(key, options) } } - -export type { JWSHeaderParameters, JWTPayload, KeyLike } diff --git a/src/jwt/unsecured.ts b/src/jwt/unsecured.ts index 9ce74abbee..e064aefee7 100644 --- a/src/jwt/unsecured.ts +++ b/src/jwt/unsecured.ts @@ -6,7 +6,7 @@ import { JWTInvalid } from '../util/errors.js' import jwtPayload from '../lib/jwt_claims_set.js' import { ProduceJWT } from './produce.js' -interface UnsecuredResult { +export interface UnsecuredResult { payload: JWTPayload header: JWSHeaderParameters } @@ -91,5 +91,3 @@ export class UnsecuredJWT extends ProduceJWT { return { payload, header } } } - -export type { JWSHeaderParameters, JWTPayload, UnsecuredResult } diff --git a/src/jwt/verify.ts b/src/jwt/verify.ts index 131ef50901..a98c677843 100644 --- a/src/jwt/verify.ts +++ b/src/jwt/verify.ts @@ -2,7 +2,6 @@ import { compactVerify } from '../jws/compact/verify.js' import type { KeyLike, VerifyOptions, - JWTPayload, JWTClaimVerificationOptions, JWSHeaderParameters, GetKeyFunction, @@ -16,7 +15,7 @@ import { JWTInvalid } from '../util/errors.js' /** * Combination of JWS Verification options and JWT Claims Set verification options. */ -interface JWTVerifyOptions extends VerifyOptions, JWTClaimVerificationOptions {} +export interface JWTVerifyOptions extends VerifyOptions, JWTClaimVerificationOptions {} /** * Interface for JWT Verification dynamic key resolution. @@ -93,12 +92,3 @@ export async function jwtVerify( } return result } - -export type { - KeyLike, - JWTPayload, - JWTVerifyOptions, - JWSHeaderParameters, - GetKeyFunction, - JWTVerifyResult, -} diff --git a/src/key/export.ts b/src/key/export.ts index 9a6fc3364f..b1a051c055 100644 --- a/src/key/export.ts +++ b/src/key/export.ts @@ -98,5 +98,3 @@ export async function exportPKCS8(key: KeyLike): Promise { export async function exportJWK(key: KeyLike | Uint8Array): Promise { return keyToJWK(key) } - -export type { KeyLike, JWK } diff --git a/src/key/import.ts b/src/key/import.ts index 43aa0dcee9..87415cad49 100644 --- a/src/key/import.ts +++ b/src/key/import.ts @@ -319,5 +319,3 @@ export async function importJWK( throw new JOSENotSupported('Unsupported "kty" (Key Type) Parameter value') } } - -export type { KeyLike, JWK }