
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
@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 | markChatAsViewed | PATCH /api/v1/chats/{chatId}/viewed | Mark chat as viewed |
| 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 |
| LearningDaysApi | getLearningDays | GET /api/v1/learning-days | Get learning days in range |
| LearningMomentsApi | listLearningMoments | GET /api/v1/learning-moments | List learning moments |
| MessagesApi | deleteMessages | DELETE /api/v1/chats/{chatId}/messages | Delete messages from timestamp |
| MessagesApi | getChatMessage | GET /api/v1/chats/{chatId}/messages/{messageId} | Get a chat message |
| MessagesApi | getChatMessages | GET /api/v1/chats/{chatId}/messages | List chat messages |
| MessagesApi | getMessageCount | GET /api/v1/messages/count | Count user 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
The npm package @instructure/athena-api-client receives a total of 93 weekly downloads. As such, @instructure/athena-api-client popularity was classified as not popular.
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.

Security News
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.