DefaultParallelModelAuthenticationOptions
Interface: DefaultParallelModelAuthenticationOptions
Defined in: transport.ts:63
Connection, credential, timeout and token-refresh settings for the SDK.
Properties
authBaseUri?
optionalauthBaseUri?:string
Defined in: transport.ts:73
Base URI of the authentication API.
autoRefreshToken?
optionalautoRefreshToken?:boolean
Defined in: transport.ts:81
Whether cached tokens are refreshed before expiry; defaults to true.
clientId
clientId:
string
Defined in: transport.ts:67
OAuth client identifier.
clientSecret
clientSecret:
string
Defined in: transport.ts:69
OAuth client secret; keep confidential and use only in trusted environments.
coreBaseUri?
optionalcoreBaseUri?:string
Defined in: transport.ts:75
Base URI of the core API.
fetch?
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: transport.ts:89
Optional Fetch API implementation used for HTTP requests.
Parameters
input
URL | RequestInfo
init?
RequestInit
Returns
Promise<Response>
grantType?
optionalgrantType?:string
Defined in: transport.ts:71
OAuth grant type; defaults to client_credentials.
maxRetries?
optionalmaxRetries?:number
Defined in: transport.ts:79
Maximum authentication-request retries; defaults to 3 and must be between 0 and 10.
refreshBeforeExpiry?
optionalrefreshBeforeExpiry?:number
Defined in: transport.ts:85
Token refresh lead time in milliseconds; defaults to 60000 and is capped by token lifetime.
region
region:
string
Defined in: transport.ts:65
ParallelModel region identifier sent with API requests.
retryOnUnauthorized?
optionalretryOnUnauthorized?:boolean
Defined in: transport.ts:83
Whether to refresh the token and retry once after HTTP 401; defaults to true.
scope?
optionalscope?:string
Defined in: transport.ts:87
Space-separated OAuth scopes requested during token exchange.
timeout?
optionaltimeout?:number
Defined in: transport.ts:77
Default HTTP request timeout in milliseconds; defaults to 30000.