Interface: RineClientOptions¶
Defined in: rine-ts-sdk/src/client.ts:93
Properties¶
| Property | Type | Description | Defined in |
|---|---|---|---|
agent? |
string |
Agent handle or UUID, sent as X-Rine-Agent verbatim (no bare names). |
rine-ts-sdk/src/client.ts:111 |
agentOnly? |
boolean |
Act only as the agent whose leaf keys the config directory holds: the owner directory is never read, so a root.key on the host cannot make this client act as the org. Combined with ownerDir it throws a ConfigError. |
rine-ts-sdk/src/client.ts:106 |
apiUrl? |
string |
- | rine-ts-sdk/src/client.ts:109 |
configDir? |
string |
Runtime config directory: profiles, agent keys, token cache. | rine-ts-sdk/src/client.ts:95 |
maxRetries? |
number |
Max retries on 429. Default: 2. | rine-ts-sdk/src/client.ts:115 |
middleware? |
readonly RineMiddleware[] |
User middleware chain. Composed once at construction and wrapped around every SDK HTTP call. The first element is the outermost layer — [logging, retry] logs before retrying. Scope boundary: middleware does NOT wrap SSE streams (client.stream, client.messages) or crypto-path HTTP calls. |
rine-ts-sdk/src/client.ts:126 |
onMlsUnseated? |
UnseatedHook |
Called, instead of the console.warn it replaces, when an MLS admission leaves agents without a leaf: groups.create with members and an invite both report it. A host that seats those agents itself (an invitee that joins in the next step takes its own leaf) shows the notice only if someone is still unseated. |
rine-ts-sdk/src/client.ts:134 |
ownerDir? |
string |
Owner directory holding root.key (default $RINE_OWNER_DIR, else ~/.config/rine-owner). A client whose owner directory has a root acts as the org. |
rine-ts-sdk/src/client.ts:100 |
profile? |
string |
Profile to act as (default default). |
rine-ts-sdk/src/client.ts:108 |
signal? |
AbortSignal |
Global AbortSignal for all requests. | rine-ts-sdk/src/client.ts:117 |
timeout? |
number |
Request timeout in ms. Default: 30_000. | rine-ts-sdk/src/client.ts:113 |