
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@instructure/athena-api-client
Advanced tools
A TypeScript SDK client for the localhost API.
First, install the SDK from npm.
npm install athena-api-client --save
Next, try it out.
import {
Configuration,
AccountsApi,
} from 'athena-api-client';
import type { CreateAccountOperationRequest } from 'athena-api-client';
async function example() {
console.log("🚀 Testing athena-api-client SDK...");
const config = new Configuration({
// To configure API key authorization: AuthToken
apiKey: "YOUR API KEY",
});
const api = new AccountsApi(config);
const body = {
// CreateAccountRequest
createAccountRequest: ...,
} satisfies CreateAccountOperationRequest;
try {
const data = await api.createAccount(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);
All URIs are relative to http://localhost:3000
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountsApi | createAccount | POST /api/v1/accounts | Create a new account |
| AccountsApi | listAccounts | GET /api/v1/accounts | List all accounts |
| ChatsApi | createChat | POST /api/v1/chats | Create a chat |
| ChatsApi | deleteChat | DELETE /api/v1/chats/{chatId} | Delete a chat |
| ChatsApi | getChat | GET /api/v1/chats/{chatId} | Get a chat |
| ChatsApi | listChats | GET /api/v1/chats | List chats |
| ChatsApi | sendChatMessage | POST /api/v1/chat | Send a message to a chat |
| ChatsApi | updateChat | PATCH /api/v1/chats/{chatId} | Update a chat |
| HealthApi | healthCheck | GET /health | Health check endpoint |
| MessagesApi | getChatMessages | GET /api/v1/chats/{chatId}/messages | List chat messages |
| ServiceTokensApi | createServiceToken | POST /api/v1/tokens | Create a new service token |
| ServiceTokensApi | deleteServiceToken | DELETE /api/v1/tokens/{id} | Delete service token |
| ServiceTokensApi | getServiceToken | GET /api/v1/tokens/{id} | Get service token by ID |
| ServiceTokensApi | listServiceTokens | GET /api/v1/tokens | List all service tokens |
| ServiceTokensApi | updateServiceToken | PATCH /api/v1/tokens/{id} | Update service token status |
| TagsApi | listTags | GET /api/v1/tags | List all tags |
Authentication schemes defined for the API:
X-Auth-TokenThis TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:
1.0.01.0.07.19.0org.openapitools.codegen.languages.TypeScriptFetchClientCodegenThe generated npm module supports the following:
To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:
npm install
npm run build
Once you've built the package, you can publish it to npm:
npm publish
FAQs
OpenAPI client for the Athena API
We found that @instructure/athena-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 50 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.