TypeScript
Install the Rails TypeScript client from npm and wire it to your environment.
Install
Section titled “Install”From the SDK README:
npm install @railsinfra/rails-typescriptThe client is published on npm as @railsinfra/rails-typescript (see the SDK README for the current version and import path).
Configure and call the API
Section titled “Configure and call the API”You typically construct a client with apiKey (defaults from RAILS_API_KEY) and environment, then call typed resources—for example client.users.create(...) as shown in the README. Request and response types are exported from the same module.
For every path, header, and body field, use the API Reference tab in this site; examples there stay aligned with the generated client.
Try a runnable sample first
Section titled “Try a runnable sample first”If you want a small HTTP server with Swagger UI before you embed the library, follow Path A on the Quick start overview and use rails-sdk-samples/typescript/.