Skip to content
Seismic Orchestration

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

NameKindPurpose
SeismicOrchestrationClientclassThe typed API client. See SeismicOrchestrationClient.
ApiErrorclassThrown for every non-2xx response.
localStorageTokenStore()factoryBrowser-backed token store.
memoryTokenStore()factoryIn-memory token store: Node, SSR, workers.
TokenStoreinterfaceShape you implement for bespoke storage.
getDeviceFingerprint()functionBrowser device fingerprint for a verification submit. See getDeviceFingerprint.
*Schema (Zod)valueThe 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_ENV

For persistence across browser reloads, opt in. The SDK does not touch localStorage otherwise:

import {  } from "seismic-orchestration";
 
const  = .({ : "localStorage" });

Next