npm package: @intentkit/nation-sdk
Description: OpenAPI client for @intentkit/nation-sdk
Author: OpenAPI-Generator Contributors
Latest version: 0.1.16

## @intentkit/nation-sdk@0.1.16

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @intentkit/nation-sdk@0.1.16 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AgentApi* | [**createAgent**](docs/AgentApi.md#createagent) | **POST** /agents | Create a new agent
*AgentApi* | [**getAgentById**](docs/AgentApi.md#getagentbyid) | **GET** /agents/{aid} | Get agent by ID
*AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
*ChatApi* | [**createChatThread**](docs/ChatApi.md#createchatthread) | **POST** /agents/{aid}/chats | Create a new chat thread
*ChatApi* | [**deleteChatThread**](docs/ChatApi.md#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread
*ChatApi* | [**getChatThreadById**](docs/ChatApi.md#getchatthreadbyid) | **GET** /agents/{aid}/chats/{chat_id} | Get chat thread by ID
*ChatApi* | [**getMessageById**](docs/ChatApi.md#getmessagebyid) | **GET** /messages/{message_id} | Get message by ID
*ChatApi* | [**listChatsForAgent**](docs/ChatApi.md#listchatsforagent) | **GET** /agents/{aid}/chats | List chat threads for an agent
*ChatApi* | [**listMessagesInChat**](docs/ChatApi.md#listmessagesinchat) | **GET** /agents/{aid}/chats/{chat_id}/messages | List messages in a chat thread
*ChatApi* | [**retryMessageInChat**](docs/ChatApi.md#retrymessageinchat) | **POST** /agents/{aid}/chats/{chat_id}/messages/retry | Retry a message in a chat thread
*ChatApi* | [**sendMessageToChat**](docs/ChatApi.md#sendmessagetochat) | **POST** /agents/{aid}/chats/{chat_id}/messages | Send a message to a chat thread
*ChatApi* | [**updateChatThread**](docs/ChatApi.md#updatechatthread) | **PATCH** /agents/{aid}/chats/{chat_id} | Update a chat thread
*CreditApi* | [**fetchCreditEvent**](docs/CreditApi.md#fetchcreditevent) | **GET** /credit/events/{event_id} | Credit Event
*CreditApi* | [**getUserAccount**](docs/CreditApi.md#getuseraccount) | **GET** /credit/user/account | Get User Account
*CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
*CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
*CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
*HealthApi* | [**healthCheckHealthGet**](docs/HealthApi.md#healthcheckhealthget) | **GET** /health | Health check endpoint
*MetadataApi* | [**getLlmsMetadataLlmsGet**](docs/MetadataApi.md#getllmsmetadatallmsget) | **GET** /metadata/llms | Get all LLM models
*MetadataApi* | [**getSkillsMetadataSkillsGet**](docs/MetadataApi.md#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills


### Documentation For Models

 - [AgentAutonomous](docs/AgentAutonomous.md)
 - [AgentExample](docs/AgentExample.md)
 - [AgentResponse](docs/AgentResponse.md)
 - [AgentStatisticsResponse](docs/AgentStatisticsResponse.md)
 - [AgentUpdate](docs/AgentUpdate.md)
 - [AuthorType](docs/AuthorType.md)
 - [Chat](docs/Chat.md)
 - [ChatMessage](docs/ChatMessage.md)
 - [ChatMessageAttachment](docs/ChatMessageAttachment.md)
 - [ChatMessageAttachmentType](docs/ChatMessageAttachmentType.md)
 - [ChatMessageRequest](docs/ChatMessageRequest.md)
 - [ChatMessageSkillCall](docs/ChatMessageSkillCall.md)
 - [ChatMessagesResponse](docs/ChatMessagesResponse.md)
 - [ChatUpdateRequest](docs/ChatUpdateRequest.md)
 - [CreditAccount](docs/CreditAccount.md)
 - [CreditDebit](docs/CreditDebit.md)
 - [CreditEvent](docs/CreditEvent.md)
 - [CreditEventWithAgent](docs/CreditEventWithAgent.md)
 - [CreditEventsResponse](docs/CreditEventsResponse.md)
 - [CreditTransactionResp](docs/CreditTransactionResp.md)
 - [CreditTransactionsResponse](docs/CreditTransactionsResponse.md)
 - [CreditType](docs/CreditType.md)
 - [Direction](docs/Direction.md)
 - [EventType](docs/EventType.md)
 - [FeePercentage](docs/FeePercentage.md)
 - [HTTPValidationError](docs/HTTPValidationError.md)
 - [LLMModelInfoWithProviderName](docs/LLMModelInfoWithProviderName.md)
 - [LLMProvider](docs/LLMProvider.md)
 - [OwnerType](docs/OwnerType.md)
 - [Skill](docs/Skill.md)
 - [TransactionType](docs/TransactionType.md)
 - [UpstreamType](docs/UpstreamType.md)
 - [ValidationError](docs/ValidationError.md)
 - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization


Authentication schemes defined for the API:
<a id="HTTPBearer"></a>
### HTTPBearer

- **Type**: Bearer authentication