
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
aitriage-sdk-dev
Advanced tools
A JavaScript SDK for seamless integration with the Aitriage API. Provides methods for authentication, assessment management, patient data retrieval, and more.
The Aitriage SDK is a JavaScript library designed to simplify integration with the Aitriage API. It provides convenient methods for authentication, retrieval, and management of data related to medical assessments and patient information.
Install the Aitriage SDK using npm or yarn:
npm install aitriage-sdk
# or
yarn add aitriage-sdk
Follow these steps to integrate and use the Aitriage SDK in your JavaScript project:
Import and Initialize:
import { AitriageSdk, MODE } from 'aitriage-sdk'
const apiKey = 'YOUR_API_KEY'
const accountNo = 'YOUR_ACCOUNT_NO'
const aitriageSdk = new AitriageSdk(apiKey, accountNo, MODE.DEVELOPMENT) // Or MODE.PRODUCTION for production environment
Authenticate:
const loginResponse = await aitriageSdk.loginByApiKey()
Interact with the API:
try {
const assessmentQuery = { limit: 10, page: 1 }
const assessments = await aitriageSdk.getListAssessment(assessmentQuery)
console.log('Assessments:', assessments)
const patientDetails = await aitriageSdk.getDetailPatient('CUSTOMER_ID')
console.log('Patient details:', patientDetails)
// ... Use other SDK methods as needed (see API Reference)
} catch (error) {
console.error('API Error:', error)
// Handle API errors appropriately
}
loginByApiKey() before using other SDK methods. This ensures proper authentication and authorization for your API requests.getListAssessment, getDetailPatient) are asynchronous. Use await within async functions or .then() to handle their results and potential errors.types.ts file for details on available types.FAQs
A JavaScript SDK for seamless integration with the Aitriage API. Provides methods for authentication, assessment management, patient data retrieval, and more.
The npm package aitriage-sdk-dev receives a total of 5 weekly downloads. As such, aitriage-sdk-dev popularity was classified as not popular.
We found that aitriage-sdk-dev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.