This repository contains the TypeScript SDK for the EAASI platform, auto-generated from the EAASI API specification.
Add this package as a dependency to your project:
$ npm install --save "github:eaasi/sdk-ts#<version>"
It is highly recommended to enable the following TypeScript compiler option in your tsconfig.json
(refer to the upstream docs for more details):
{
"compilerOptions": {
"noUncheckedIndexedAccess": true
}
}
This SDK uses the type-safe openapi-fetch
client that is configured to pull in the OpenAPI schema for the EAASI API.
More information about how that works can be found in the upstream documentation.
import { createClientV1alpha } from "@eaasi/sdk-ts";
const client = createClientV1alpha({ baseUrl: "http://localhost:8080/api/v1alpha" });
const {
data, // only present if 2XX response
error, // only present if 4XX or 5XX response
} = await client.GET("/admin/build-info");
if (!error) {
console.log("Build version: " + data.version);
}
This SDK is distributed under the terms of the Apache-2.0 license.
Copyright (c) 2025 Yale University (unless otherwise noted).