Install
parmana on npm (typescript/package.json), not @parmana/sdk or similar — it publishes dist/index.js with dist/index.d.ts types, ESM-only ("type": "module"). It requires Node.js 20+.
Create a client
The SDK does not construct an HTTP transport for you implicitly —ParmanaClient’s constructor throws ConfigurationError if configuration.transport is missing, so you must construct HttpTransport yourself and pass it in:
ParmanaClient’s constructor (typescript/src/client/ParmanaClient.ts) validates exactly two things: configuration.endpoint and configuration.transport must both be truthy, or it throws ConfigurationError. Everything else on Configuration — credentials, timeout, retryPolicy, userAgent — is optional and unvalidated.Configuration
Configuration (typescript/src/config/Configuration.ts):
| Field | Type | Description |
|---|---|---|
endpoint | string | Required. Base URL of the Parmana Runtime, e.g. https://runtime.example.com. |
credentials | Credentials | Optional. See below. |
timeout | number | Request timeout in milliseconds. Default 30000, enforced by HttpTransport via AbortController. |
retryPolicy | RetryPolicy | Optional retry configuration (see below). |
transport | Transport | Required in practice — no default is constructed for you. |
userAgent | string | Optional SDK user agent string. |
Credentials
Retry policy
Related
ParmanaClient
The client class this configuration constructs.
Errors
What actually gets thrown when a request fails.
Authentication
The server-side half of this same gap.
APIs
The sub-APIs
ParmanaClient composes.