TypeScript SDK
seismic-orchestration is the TypeScript client for the Seismic Orchestration REST API.
Install
Single runtime dependency (zod). Runs on Node ≥ 18, Bun, Deno, browsers, and service workers. Ships dual ESM + CJS. TS consumers get types for both import and require.
Exports
| Name | Kind | Purpose |
|---|---|---|
SeismicOrchestrationClient | class | The typed API client. See SeismicOrchestrationClient. |
ApiError | class | Thrown for every non-2xx response. |
localStorageTokenStore() | factory | Browser-backed token store. |
memoryTokenStore() | factory | In-memory token store: Node, SSR, workers. |
TokenStore | interface | Shape you implement for bespoke storage. |
getDeviceFingerprint() | function | Browser device fingerprint for a verification submit. See getDeviceFingerprint. |
*Schema (Zod) | value | The Zod schemas used internally. Re-use if you want. |
Response types (LoginResponse, TokenPair, AsyncQuoteSnapshot, Customer, …) are also exported.
Quick-start
import { } from "seismic-orchestration";
const = .();
const = await ..("alice@example.com", "hunter22!hunter22");
// Tokens are already persisted to the configured store.Three environment factories cover the common shapes:
import { } from "seismic-orchestration";
.(); // hits https://orchestration.seismictest.net/api
.(); // hits https://orchestration.seismic.systems/api
.(); // reads SEISMIC_ORCHESTRATION_ENVFor persistence across browser reloads, opt in. The SDK does not touch localStorage otherwise:
import { } from "seismic-orchestration";
const = .({ : "localStorage" });Next
SeismicOrchestrationClient: every method, typed.- Token stores: the built-ins + how to roll your own.
- SDKs overview: the language-agnostic view.
