Skip to main content

DefaultParallelModelAuthenticationOptions

ParallelModel TypeScript SDK


Interface: DefaultParallelModelAuthenticationOptions

Defined in: transport.ts:63

Connection, credential, timeout and token-refresh settings for the SDK.

Properties​

authBaseUri?​

optional authBaseUri?: string

Defined in: transport.ts:73

Base URI of the authentication API.


autoRefreshToken?​

optional autoRefreshToken?: 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?​

optional coreBaseUri?: string

Defined in: transport.ts:75

Base URI of the core API.


fetch?​

optional fetch?: (input, init?) => Promise<Response>

Defined in: transport.ts:89

Optional Fetch API implementation used for HTTP requests.

MDN Reference

Parameters​

input​

URL | RequestInfo

init?​

RequestInit

Returns​

Promise<Response>


grantType?​

optional grantType?: string

Defined in: transport.ts:71

OAuth grant type; defaults to client_credentials.


maxRetries?​

optional maxRetries?: number

Defined in: transport.ts:79

Maximum authentication-request retries; defaults to 3 and must be between 0 and 10.


refreshBeforeExpiry?​

optional refreshBeforeExpiry?: 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?​

optional retryOnUnauthorized?: boolean

Defined in: transport.ts:83

Whether to refresh the token and retry once after HTTP 401; defaults to true.


scope?​

optional scope?: string

Defined in: transport.ts:87

Space-separated OAuth scopes requested during token exchange.


timeout?​

optional timeout?: number

Defined in: transport.ts:77

Default HTTP request timeout in milliseconds; defaults to 30000.