Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@instructure/athena-api-client

Package Overview
Dependencies
Maintainers
50
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/athena-api-client

OpenAPI client for the Athena API

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
50
Created
Source

athena-api-client@1.0.0

A TypeScript SDK client for the localhost API.

Usage

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);

Documentation

API Endpoints

All URIs are relative to http://localhost:3000

ClassMethodHTTP requestDescription
AccountsApicreateAccountPOST /api/v1/accountsCreate a new account
AccountsApilistAccountsGET /api/v1/accountsList all accounts
ChatsApicreateChatPOST /api/v1/chatsCreate a chat
ChatsApideleteChatDELETE /api/v1/chats/{chatId}Delete a chat
ChatsApigetChatGET /api/v1/chats/{chatId}Get a chat
ChatsApilistChatsGET /api/v1/chatsList chats
ChatsApisendChatMessagePOST /api/v1/chatSend a message to a chat
ChatsApiupdateChatPATCH /api/v1/chats/{chatId}Update a chat
HealthApihealthCheckGET /healthHealth check endpoint
MessagesApigetChatMessagesGET /api/v1/chats/{chatId}/messagesList chat messages
ServiceTokensApicreateServiceTokenPOST /api/v1/tokensCreate a new service token
ServiceTokensApideleteServiceTokenDELETE /api/v1/tokens/{id}Delete service token
ServiceTokensApigetServiceTokenGET /api/v1/tokens/{id}Get service token by ID
ServiceTokensApilistServiceTokensGET /api/v1/tokensList all service tokens
ServiceTokensApiupdateServiceTokenPATCH /api/v1/tokens/{id}Update service token status
TagsApilistTagsGET /api/v1/tagsList all tags

Models

Authorization

Authentication schemes defined for the API:

AuthToken

  • Type: API key
  • API key parameter name: X-Auth-Token
  • Location: HTTP header

About

This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.19.0
  • Build package: org.openapitools.codegen.languages.TypeScriptFetchClientCodegen

The generated npm module supports the following:

  • Environments
    • Node.js
    • Webpack
    • Browserify
  • Language levels
    • ES5 - you must have a Promises/A+ library installed
    • ES6
  • Module systems
    • CommonJS
    • ES6 module system

Development

Building

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

Publishing

Once you've built the package, you can publish it to npm:

npm publish

License

FAQs

Package last updated on 13 Feb 2026

Did you know?

Socket

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.

Install

Related posts