import type * as ElevenLabs from "../index"; /** * Request model for creating OAuth2 JWT auth connections - inherits common settings and includes sensitive fields */ export interface CreateOAuth2JwtRequest { name: string; provider: string; /** JWT signing algorithm */ algorithm?: ElevenLabs.CreateOAuth2JwtRequestAlgorithm; /** 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.CreateOAuth2JwtRequestTokenResponseField; /** 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.CreateOAuth2JwtRequestJwtUsage; secretKey: string; }