Skip to main content

CyberPodConfig

Defined in: packages/core/src/types/index.ts:18

SDK Configuration options

Properties

accessToken?

optional accessToken: string

Defined in: packages/core/src/types/index.ts:24

Optional access token for user authentication


apiKey?

optional apiKey: string

Defined in: packages/core/src/types/index.ts:22

Optional API key for service-to-service authentication


baseUrl

baseUrl: string

Defined in: packages/core/src/types/index.ts:20

Base URL of the CyberPod API


customPathMappings?

optional customPathMappings: PathMapping[]

Defined in: packages/core/src/types/index.ts:41

Custom path mappings (optional) Overrides default mappings


enablePathAdapter?

optional enablePathAdapter: boolean

Defined in: packages/core/src/types/index.ts:36

Enable automatic path standardization When true, SDK paths starting with /v1 are transformed to actual backend paths

Default

true

httpsOnly?

optional httpsOnly: boolean

Defined in: packages/core/src/types/index.ts:30

Require HTTPS in production (default: true in production)


retry?

optional retry: false | RetryOptions

Defined in: packages/core/src/types/index.ts:28

Retry configuration. Set to false to disable retries.


timeout?

optional timeout: number

Defined in: packages/core/src/types/index.ts:26

Request timeout in milliseconds (default: 30000)