import type * as ElevenLabs from "../index"; /** * Response model for OAuth2 JWT auth connections */ export interface OAuth2JwtResponse { name: string; provider: string; /** JWT signing algorithm */ algorithm?: ElevenLabs.OAuth2JwtResponseAlgorithm; /** Key ID (kid) for JWT header - useful for key rotation */ keyId?: string; /** JWT issuer (iss claim) */ issuer: string; /** JWT audience (aud claim) */ audience: string; /** JWT subject (sub claim) */ subject: string; /** Token expiration time in seconds */ expirationSeconds?: number; /** Additional custom claims to include in the JWT */ extraParams?: Record; /** Additional JWT header parameters (e.g. x5t). 'alg' and 'kid' are set from algorithm and key_id. */ extraHeaders?: Record; /** Token endpoint URL for exchanging JWT for access token */ tokenUrl: string; /** OAuth2 scopes to request when exchanging JWT for access token */ scopes?: string[]; /** Token field to extract from the token endpoint response. */ tokenResponseField?: ElevenLabs.OAuth2JwtResponseTokenResponseField; /** How the JWT is used at the token endpoint. 'authorization_grant' sends it as a jwt-bearer grant. 'client_authentication' sends it as a client_assertion on a client_credentials request, with the subject as client_id and scopes in the request body. */ jwtUsage?: ElevenLabs.OAuth2JwtResponseJwtUsage; id: string; usedBy?: ElevenLabs.AuthConnectionDependencies; status?: ElevenLabs.AuthConnectionStatus; statusDetail?: string; statusUpdatedAt?: string; }