@atproto/jwk
Version:
A library for working with JSON Web Keys (JWKs) in TypeScript. This is meant to be extended by environment-specific libraries like @atproto/jwk-jose.
1,785 lines • 75.3 kB
TypeScript
import { z } from 'zod';
export declare const signedJwtSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}.${string}`, string>;
export type SignedJwt = z.infer<typeof signedJwtSchema>;
export declare const isSignedJwt: (data: unknown) => data is `${string}.${string}.${string}`;
export declare const unsignedJwtSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}`, string>;
export type UnsignedJwt = z.infer<typeof unsignedJwtSchema>;
export declare const isUnsignedJwt: (data: unknown) => data is `${string}.${string}`;
/**
* @see {@link https://www.rfc-editor.org/rfc/rfc7515.html#section-4}
*/
export declare const jwtHeaderSchema: z.ZodObject<{
/** "alg" (Algorithm) Header Parameter */
alg: z.ZodString;
/** "jku" (JWK Set URL) Header Parameter */
jku: z.ZodOptional<z.ZodString>;
/** "jwk" (JSON Web Key) Header Parameter */
jwk: z.ZodOptional<z.ZodObject<{
kty: z.ZodString;
crv: z.ZodOptional<z.ZodString>;
x: z.ZodOptional<z.ZodString>;
y: z.ZodOptional<z.ZodString>;
e: z.ZodOptional<z.ZodString>;
n: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
kty: string;
n?: string | undefined;
e?: string | undefined;
crv?: string | undefined;
x?: string | undefined;
y?: string | undefined;
}, {
kty: string;
n?: string | undefined;
e?: string | undefined;
crv?: string | undefined;
x?: string | undefined;
y?: string | undefined;
}>>;
/** "kid" (Key ID) Header Parameter */
kid: z.ZodOptional<z.ZodString>;
/** "x5u" (X.509 URL) Header Parameter */
x5u: z.ZodOptional<z.ZodString>;
/** "x5c" (X.509 Certificate Chain) Header Parameter */
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
/** "x5t" (X.509 Certificate SHA-1 Thumbprint) Header Parameter */
x5t: z.ZodOptional<z.ZodString>;
/** "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Header Parameter */
'x5t#S256': z.ZodOptional<z.ZodString>;
/** "typ" (Type) Header Parameter */
typ: z.ZodOptional<z.ZodString>;
/** "cty" (Content Type) Header Parameter */
cty: z.ZodOptional<z.ZodString>;
/** "crit" (Critical) Header Parameter */
crit: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
alg: string;
kid?: string | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
jku?: string | undefined;
jwk?: {
kty: string;
n?: string | undefined;
e?: string | undefined;
crv?: string | undefined;
x?: string | undefined;
y?: string | undefined;
} | undefined;
typ?: string | undefined;
cty?: string | undefined;
crit?: string[] | undefined;
}, {
alg: string;
kid?: string | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
jku?: string | undefined;
jwk?: {
kty: string;
n?: string | undefined;
e?: string | undefined;
crv?: string | undefined;
x?: string | undefined;
y?: string | undefined;
} | undefined;
typ?: string | undefined;
cty?: string | undefined;
crit?: string[] | undefined;
}>;
export type JwtHeader = z.infer<typeof jwtHeaderSchema>;
export declare const jwtPayloadSchema: z.ZodObject<{
iss: z.ZodOptional<z.ZodString>;
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>>;
sub: z.ZodOptional<z.ZodString>;
exp: z.ZodOptional<z.ZodNumber>;
nbf: z.ZodOptional<z.ZodNumber>;
iat: z.ZodOptional<z.ZodNumber>;
jti: z.ZodOptional<z.ZodString>;
htm: z.ZodOptional<z.ZodString>;
htu: z.ZodOptional<z.ZodString>;
ath: z.ZodOptional<z.ZodString>;
acr: z.ZodOptional<z.ZodString>;
azp: z.ZodOptional<z.ZodString>;
amr: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
cnf: z.ZodOptional<z.ZodObject<{
kid: z.ZodOptional<z.ZodString>;
jwk: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
kty: z.ZodString;
alg: z.ZodOptional<z.ZodString>;
kid: z.ZodOptional<z.ZodString>;
ext: z.ZodOptional<z.ZodBoolean>;
use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
/** "alg" (Algorithm) Header Parameter */
key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
x5t: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
x5u: z.ZodOptional<z.ZodString>;
}, {
kty: z.ZodEffects<z.ZodString, string, string>;
}>, "strip", z.ZodTypeAny, {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}, {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
kty: z.ZodString;
alg: z.ZodOptional<z.ZodString>;
kid: z.ZodOptional<z.ZodString>;
ext: z.ZodOptional<z.ZodBoolean>;
use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
/** "alg" (Algorithm) Header Parameter */
key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
x5t: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
x5u: z.ZodOptional<z.ZodString>;
}, {
kty: z.ZodLiteral<"RSA">;
alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
n: z.ZodString;
e: z.ZodString;
d: z.ZodOptional<z.ZodString>;
p: z.ZodOptional<z.ZodString>;
q: z.ZodOptional<z.ZodString>;
dp: z.ZodOptional<z.ZodString>;
dq: z.ZodOptional<z.ZodString>;
qi: z.ZodOptional<z.ZodString>; /** "cty" (Content Type) Header Parameter */
oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
r: z.ZodOptional<z.ZodString>;
d: z.ZodOptional<z.ZodString>;
t: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, {
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}>, "atleastone">>;
}>, "strip", z.ZodTypeAny, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
}, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
kty: z.ZodString;
alg: z.ZodOptional<z.ZodString>;
kid: z.ZodOptional<z.ZodString>;
ext: z.ZodOptional<z.ZodBoolean>;
use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
/** "alg" (Algorithm) Header Parameter */
key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
x5t: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
x5u: z.ZodOptional<z.ZodString>;
}, {
kty: z.ZodLiteral<"EC">;
alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
x: z.ZodString;
y: z.ZodString;
d: z.ZodOptional<z.ZodString>;
}>, "strip", z.ZodTypeAny, {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
}, {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
kty: z.ZodString;
alg: z.ZodOptional<z.ZodString>;
kid: z.ZodOptional<z.ZodString>;
ext: z.ZodOptional<z.ZodBoolean>;
use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
/** "alg" (Algorithm) Header Parameter */
key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
x5t: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
x5u: z.ZodOptional<z.ZodString>;
}, {
kty: z.ZodLiteral<"EC">;
alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
crv: z.ZodEnum<["secp256k1"]>;
x: z.ZodString;
y: z.ZodString;
d: z.ZodOptional<z.ZodString>;
}>, "strip", z.ZodTypeAny, {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
}, {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
kty: z.ZodString;
alg: z.ZodOptional<z.ZodString>;
kid: z.ZodOptional<z.ZodString>;
ext: z.ZodOptional<z.ZodBoolean>;
use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
/** "alg" (Algorithm) Header Parameter */
key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
x5t: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
x5u: z.ZodOptional<z.ZodString>;
}, {
kty: z.ZodLiteral<"OKP">;
alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
crv: z.ZodEnum<["Ed25519", "Ed448"]>;
x: z.ZodString;
d: z.ZodOptional<z.ZodString>;
}>, "strip", z.ZodTypeAny, {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
}, {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
}>, z.ZodObject<z.objectUtil.extendShape<{
kty: z.ZodString;
alg: z.ZodOptional<z.ZodString>;
kid: z.ZodOptional<z.ZodString>;
ext: z.ZodOptional<z.ZodBoolean>;
use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
/** "alg" (Algorithm) Header Parameter */
key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
x5t: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
x5u: z.ZodOptional<z.ZodString>;
}, {
kty: z.ZodLiteral<"oct">;
alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
k: z.ZodString;
}>, "strip", z.ZodTypeAny, {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}, {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}>]>, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}>, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}>, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}>, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}, {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
}>>;
jwe: z.ZodOptional<z.ZodString>;
jku: z.ZodOptional<z.ZodString>;
jkt: z.ZodOptional<z.ZodString>;
'x5t#S256': z.ZodOptional<z.ZodString>;
osc: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
kid?: string | undefined;
'x5t#S256'?: string | undefined;
jku?: string | undefined;
jwk?: {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | undefined;
jwe?: string | undefined;
jkt?: string | undefined;
osc?: string | undefined;
}, {
kid?: string | undefined;
'x5t#S256'?: string | undefined;
jku?: string | undefined;
jwk?: {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | undefined;
jwe?: string | undefined;
jkt?: string | undefined;
osc?: string | undefined;
}>>;
client_id: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
nonce: z.ZodOptional<z.ZodString>;
at_hash: z.ZodOptional<z.ZodString>;
c_hash: z.ZodOptional<z.ZodString>;
s_hash: z.ZodOptional<z.ZodString>;
auth_time: z.ZodOptional<z.ZodNumber>;
name: z.ZodOptional<z.ZodString>;
family_name: z.ZodOptional<z.ZodString>;
given_name: z.ZodOptional<z.ZodString>;
middle_name: z.ZodOptional<z.ZodString>;
nickname: z.ZodOptional<z.ZodString>;
preferred_username: z.ZodOptional<z.ZodString>;
gender: z.ZodOptional<z.ZodString>;
picture: z.ZodOptional<z.ZodString>;
profile: z.ZodOptional<z.ZodString>;
website: z.ZodOptional<z.ZodString>;
birthdate: z.ZodOptional<z.ZodString>;
zoneinfo: z.ZodOptional<z.ZodString>;
locale: z.ZodOptional<z.ZodString>;
updated_at: z.ZodOptional<z.ZodNumber>;
email: z.ZodOptional<z.ZodString>;
email_verified: z.ZodOptional<z.ZodBoolean>;
phone_number: z.ZodOptional<z.ZodString>;
phone_number_verified: z.ZodOptional<z.ZodBoolean>;
address: z.ZodOptional<z.ZodObject<{
formatted: z.ZodOptional<z.ZodString>;
street_address: z.ZodOptional<z.ZodString>;
locality: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
postal_code: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
formatted?: string | undefined;
street_address?: string | undefined;
locality?: string | undefined;
region?: string | undefined;
postal_code?: string | undefined;
country?: string | undefined;
}, {
formatted?: string | undefined;
street_address?: string | undefined;
locality?: string | undefined;
region?: string | undefined;
postal_code?: string | undefined;
country?: string | undefined;
}>>;
authorization_details: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodString;
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
identifier: z.ZodOptional<z.ZodString>;
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodString;
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
identifier: z.ZodOptional<z.ZodString>;
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodString;
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
identifier: z.ZodOptional<z.ZodString>;
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, "strip", z.ZodTypeAny, {
sub?: string | undefined;
iss?: string | undefined;
aud?: string | [string, ...string[]] | undefined;
exp?: number | undefined;
nbf?: number | undefined;
iat?: number | undefined;
jti?: string | undefined;
htm?: string | undefined;
htu?: string | undefined;
ath?: string | undefined;
acr?: string | undefined;
azp?: string | undefined;
amr?: string[] | undefined;
cnf?: {
kid?: string | undefined;
'x5t#S256'?: string | undefined;
jku?: string | undefined;
jwk?: {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | undefined;
jwe?: string | undefined;
jkt?: string | undefined;
osc?: string | undefined;
} | undefined;
client_id?: string | undefined;
scope?: string | undefined;
nonce?: string | undefined;
at_hash?: string | undefined;
c_hash?: string | undefined;
s_hash?: string | undefined;
auth_time?: number | undefined;
name?: string | undefined;
family_name?: string | undefined;
given_name?: string | undefined;
middle_name?: string | undefined;
nickname?: string | undefined;
preferred_username?: string | undefined;
gender?: string | undefined;
picture?: string | undefined;
profile?: string | undefined;
website?: string | undefined;
birthdate?: string | undefined;
zoneinfo?: string | undefined;
locale?: string | undefined;
updated_at?: number | undefined;
email?: string | undefined;
email_verified?: boolean | undefined;
phone_number?: string | undefined;
phone_number_verified?: boolean | undefined;
address?: {
formatted?: string | undefined;
street_address?: string | undefined;
locality?: string | undefined;
region?: string | undefined;
postal_code?: string | undefined;
country?: string | undefined;
} | undefined;
authorization_details?: z.objectOutputType<{
type: z.ZodString;
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
identifier: z.ZodOptional<z.ZodString>;
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[] | undefined;
}, {
sub?: string | undefined;
iss?: string | undefined;
aud?: string | [string, ...string[]] | undefined;
exp?: number | undefined;
nbf?: number | undefined;
iat?: number | undefined;
jti?: string | undefined;
htm?: string | undefined;
htu?: string | undefined;
ath?: string | undefined;
acr?: string | undefined;
azp?: string | undefined;
amr?: string[] | undefined;
cnf?: {
kid?: string | undefined;
'x5t#S256'?: string | undefined;
jku?: string | undefined;
jwk?: {
kty: "RSA";
n: string;
e: string;
alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
oth?: [{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}, ...{
d?: string | undefined;
r?: string | undefined;
t?: string | undefined;
}[]] | undefined;
} | {
kty: "EC";
crv: "P-256" | "P-384" | "P-521";
x: string;
y: string;
alg?: "ES256" | "ES384" | "ES512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "EC";
crv: "secp256k1";
x: string;
y: string;
alg?: "ES256K" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "OKP";
crv: "Ed25519" | "Ed448";
x: string;
alg?: "EdDSA" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
d?: string | undefined;
} | {
kty: "oct";
k: string;
alg?: "HS256" | "HS384" | "HS512" | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | {
kty: string;
alg?: string | undefined;
kid?: string | undefined;
ext?: boolean | undefined;
use?: "sig" | "enc" | undefined;
key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
x5c?: string[] | undefined;
x5t?: string | undefined;
'x5t#S256'?: string | undefined;
x5u?: string | undefined;
} | undefined;
jwe?: string | undefined;
jkt?: string | undefined;
osc?: string | undefined;
} | undefined;
client_id?: string | undefined;
scope?: string | undefined;
nonce?: string | undefined;
at_hash?: string | undefined;
c_hash?: string | undefined;
s_hash?: string | undefined;
auth_time?: number | undefined;
name?: string | undefined;
family_name?: string | undefined;
given_name?: string | undefined;
middle_name?: string | undefined;
nickname?: string | undefined;
preferred_username?: string | undefined;
gender?: string | undefined;
picture?: string | undefined;
profile?: string | undefined;
website?: string | undefined;
birthdate?: string | undefined;
zoneinfo?: string | undefined;
locale?: string | undefined;
updated_at?: number | undefined;
email?: string | undefined;
email_verified?: boolean | undefined;
phone_number?: string | undefined;
phone_number_verified?: boolean | undefined;
address?: {
formatted?: string | undefined;
street_address?: string | undefined;
locality?: string | undefined;
region?: string | undefined;
postal_code?: string | undefined;
country?: string | undefined;
} | undefined;
authorization_details?: z.objectInputType<{
type: z.ZodString;
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
identifier: z.ZodOptional<z.ZodString>;
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[] | undefined;
}>;
export type JwtPayload = z.infer<typeof jwtPayloadSchema>;
//# sourceMappingURL=jwt.d.ts.map