Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-jose

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-jose - npm Package Compare versions

Comparing version 4.11.0 to 4.11.1

60

dist/types.d.ts
import * as jose from 'jose';
export declare type JWKObject = jose.JWK & {
export type JWKObject = jose.JWK & {
use?: KeyUsages;

@@ -8,9 +8,9 @@ alg?: JWKAlgorithms;

};
export declare type JWKey = jose.KeyLike;
export declare type JWTPayload = jose.JWTPayload;
export declare type JWKSObject = {
export type JWKey = jose.KeyLike;
export type JWTPayload = jose.JWTPayload;
export type JWKSObject = {
keys: JWKObject[];
[key: string]: unknown;
};
export declare type KeyOptions = {
export type KeyOptions = {
kid?: string;

@@ -20,10 +20,10 @@ use?: KeyUsages;

};
export declare type EmbeddedKey = Pick<JWKObject, 'kty' | 'crv' | 'x' | 'y' | 'e' | 'n'>;
export declare type KidOptions = {
export type EmbeddedKey = Pick<JWKObject, 'kty' | 'crv' | 'x' | 'y' | 'e' | 'n'>;
export type KidOptions = {
kid?: string;
};
export declare type FromJWTOptions = {
export type FromJWTOptions = {
jti?: string;
};
export declare type ToJWTOptions = {
export type ToJWTOptions = {
issuer?: string;

@@ -37,3 +37,3 @@ audience?: string | string[];

};
export declare type JWSSignOptions = {
export type JWSSignOptions = {
typ?: typ;

@@ -44,3 +44,3 @@ kid?: string;

};
export declare type JWSVerifyOptions<complete> = jose.VerifyOptions & KidOptions & {
export type JWSVerifyOptions<complete> = jose.VerifyOptions & KidOptions & {
algorithms?: JWSAlgorithms[];

@@ -50,3 +50,3 @@ typ?: typ;

};
export declare type JWSCompleteResult = {
export type JWSCompleteResult = {
payload: string;

@@ -56,8 +56,8 @@ header: jose.JWSHeaderParameters;

};
export declare type JWTVerifyOptions<complete> = jose.JWTVerifyOptions & KidOptions & FromJWTOptions & {
export type JWTVerifyOptions<complete> = jose.JWTVerifyOptions & KidOptions & FromJWTOptions & {
complete?: complete;
algorithms?: JWSAlgorithms[];
};
export declare type JWTSignOptions = ToJWTOptions & JWSSignOptions;
export declare type JWTDecryptOptions<complete> = KidOptions & jose.JWTDecryptOptions & FromJWTOptions & {
export type JWTSignOptions = ToJWTOptions & JWSSignOptions;
export type JWTDecryptOptions<complete> = KidOptions & jose.JWTDecryptOptions & FromJWTOptions & {
complete?: complete;

@@ -67,7 +67,7 @@ enc?: JWEEncryptAlgorithms | JWEEncryptAlgorithms[];

};
export declare type JWEDecryptOptions = KidOptions & {
export type JWEDecryptOptions = KidOptions & {
alg?: JWEKeyManagement | JWEKeyManagement[];
enc?: JWEEncryptAlgorithms | JWEEncryptAlgorithms[];
};
export declare type JWTEncryptOptions = jose.EncryptOptions & KidOptions & ToJWTOptions & {
export type JWTEncryptOptions = jose.EncryptOptions & KidOptions & ToJWTOptions & {
alg: JWEKeyManagement;

@@ -77,10 +77,10 @@ enc: JWEEncryptAlgorithms;

};
export declare type JWEEncryptOptions = jose.EncryptOptions & KidOptions & {
export type JWEEncryptOptions = jose.EncryptOptions & KidOptions & {
alg: JWEKeyManagement;
enc: JWEEncryptAlgorithms;
};
export declare type JWSHeaderParameters = jose.JWSHeaderParameters & {
export type JWSHeaderParameters = jose.JWSHeaderParameters & {
alg?: JWSAlgorithms;
};
export declare type JWTCompleteResult = {
export type JWTCompleteResult = {
payload: JWTPayload;

@@ -90,3 +90,3 @@ header: JWSHeaderParameters;

};
export declare type JWKGenerateOptions = {
export type JWKGenerateOptions = {
kid?: string;

@@ -97,13 +97,13 @@ use?: KeyUsages;

};
export declare type KeyUsages = 'sig' | 'enc';
export declare type KeyTypes = 'RSA' | 'EC' | 'OKP' | 'oct';
export declare type thumbprintConfig = {
export type KeyUsages = 'sig' | 'enc';
export type KeyTypes = 'RSA' | 'EC' | 'OKP' | 'oct';
export type thumbprintConfig = {
digestAlgorithm?: 'sha256' | 'sha384' | 'sha512';
};
export declare type JWSAlgorithms = 'RS256' | 'RS384' | 'RS512' | 'PS256' | 'PS384' | 'PS512' | 'ES256' | 'ES256K' | 'ES384' | 'ES512' | 'EdDSA' | 'HS256' | 'HS384' | 'HS512';
export declare type JWKCurves = 'P-256' | 'secp256k1' | 'P-384' | 'P-521' | 'Ed25519' | 'Ed448' | 'X25519' | 'X448';
export declare type JWEEncryptAlgorithms = 'A128GCM' | 'A192GCM' | 'A256GCM' | 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512';
export declare type JWEKeyManagement = 'A128KW' | 'A192KW' | 'A256KW' | 'A128GCMKW' | 'A192GCMKW' | 'A256GCMKW' | 'dir' | 'RSA-OAEP' | 'RSA-OAEP-256' | 'RSA-OAEP-384' | 'RSA-OAEP-512' | 'RSA1_5' | 'PBES2-HS256+A128KW' | 'PBES2-HS384+A192KW' | 'PBES2-HS512+A256KW' | 'ECDH-ES' | 'ECDH-ES+A128KW' | 'ECDH-ES+A192KW' | 'ECDH-ES+A256KW';
export declare type JWKAlgorithms = Exclude<JWSAlgorithms | JWEEncryptAlgorithms | JWEKeyManagement, 'dir'>;
declare type typ = 'jwt' | 'id-token+jwt' | 'ac+jwt' | '+jwt' | string;
export type JWSAlgorithms = 'RS256' | 'RS384' | 'RS512' | 'PS256' | 'PS384' | 'PS512' | 'ES256' | 'ES256K' | 'ES384' | 'ES512' | 'EdDSA' | 'HS256' | 'HS384' | 'HS512';
export type JWKCurves = 'P-256' | 'secp256k1' | 'P-384' | 'P-521' | 'Ed25519' | 'Ed448' | 'X25519' | 'X448';
export type JWEEncryptAlgorithms = 'A128GCM' | 'A192GCM' | 'A256GCM' | 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512';
export type JWEKeyManagement = 'A128KW' | 'A192KW' | 'A256KW' | 'A128GCMKW' | 'A192GCMKW' | 'A256GCMKW' | 'dir' | 'RSA-OAEP' | 'RSA-OAEP-256' | 'RSA-OAEP-384' | 'RSA-OAEP-512' | 'RSA1_5' | 'PBES2-HS256+A128KW' | 'PBES2-HS384+A192KW' | 'PBES2-HS512+A256KW' | 'ECDH-ES' | 'ECDH-ES+A128KW' | 'ECDH-ES+A192KW' | 'ECDH-ES+A256KW';
export type JWKAlgorithms = Exclude<JWSAlgorithms | JWEEncryptAlgorithms | JWEKeyManagement, 'dir'>;
type typ = 'jwt' | 'id-token+jwt' | 'ac+jwt' | '+jwt' | string;
export {};
{
"name": "ts-jose",
"version": "4.11.0",
"version": "4.11.1",
"description": "Wrap functions of JOSE in steady interface",

@@ -36,3 +36,3 @@ "keywords": [

"dependencies": {
"jose": "4.11.0"
"jose": "4.11.1"
},

@@ -39,0 +39,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc