@crestal/nation-sdk 0.6.29 → 0.6.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -2
- package/README.md +4 -4
- package/api.ts +423 -435
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +416 -428
- package/dist/api.js +12 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/{AgentOutput.md → Agent.md} +3 -3
- package/docs/{AgentInput.md → AgentCreate.md} +4 -8
- package/docs/AgentGenerateRequest.md +1 -1
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.6.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = exports.
|
|
87
|
+
exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = exports.AgentCreateCdpNetworkIdEnum = exports.AgentCreateNetworkIdEnum = exports.AgentCreateWalletProviderEnum = exports.AgentCreateShortTermMemoryStrategyEnum = exports.AgentCreateModeEnum = exports.AgentCdpNetworkIdEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentModeEnum = void 0;
|
|
88
88
|
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
@@ -92,19 +92,19 @@ var axios_1 = require("axios");
|
|
|
92
92
|
var common_1 = require("./common");
|
|
93
93
|
// @ts-ignore
|
|
94
94
|
var base_1 = require("./base");
|
|
95
|
-
exports.
|
|
95
|
+
exports.AgentModeEnum = {
|
|
96
96
|
Public: 'public',
|
|
97
97
|
Private: 'private'
|
|
98
98
|
};
|
|
99
|
-
exports.
|
|
99
|
+
exports.AgentShortTermMemoryStrategyEnum = {
|
|
100
100
|
Trim: 'trim',
|
|
101
101
|
Summarize: 'summarize'
|
|
102
102
|
};
|
|
103
|
-
exports.
|
|
103
|
+
exports.AgentWalletProviderEnum = {
|
|
104
104
|
Cdp: 'cdp',
|
|
105
105
|
Readonly: 'readonly'
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
107
|
+
exports.AgentNetworkIdEnum = {
|
|
108
108
|
EthereumMainnet: 'ethereum-mainnet',
|
|
109
109
|
EthereumSepolia: 'ethereum-sepolia',
|
|
110
110
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -117,7 +117,7 @@ exports.AgentInputNetworkIdEnum = {
|
|
|
117
117
|
OptimismSepolia: 'optimism-sepolia',
|
|
118
118
|
Solana: 'solana'
|
|
119
119
|
};
|
|
120
|
-
exports.
|
|
120
|
+
exports.AgentCdpNetworkIdEnum = {
|
|
121
121
|
EthereumMainnet: 'ethereum-mainnet',
|
|
122
122
|
EthereumSepolia: 'ethereum-sepolia',
|
|
123
123
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -129,19 +129,19 @@ exports.AgentInputCdpNetworkIdEnum = {
|
|
|
129
129
|
OptimismMainnet: 'optimism-mainnet',
|
|
130
130
|
OptimismSepolia: 'optimism-sepolia'
|
|
131
131
|
};
|
|
132
|
-
exports.
|
|
132
|
+
exports.AgentCreateModeEnum = {
|
|
133
133
|
Public: 'public',
|
|
134
134
|
Private: 'private'
|
|
135
135
|
};
|
|
136
|
-
exports.
|
|
136
|
+
exports.AgentCreateShortTermMemoryStrategyEnum = {
|
|
137
137
|
Trim: 'trim',
|
|
138
138
|
Summarize: 'summarize'
|
|
139
139
|
};
|
|
140
|
-
exports.
|
|
140
|
+
exports.AgentCreateWalletProviderEnum = {
|
|
141
141
|
Cdp: 'cdp',
|
|
142
142
|
Readonly: 'readonly'
|
|
143
143
|
};
|
|
144
|
-
exports.
|
|
144
|
+
exports.AgentCreateNetworkIdEnum = {
|
|
145
145
|
EthereumMainnet: 'ethereum-mainnet',
|
|
146
146
|
EthereumSepolia: 'ethereum-sepolia',
|
|
147
147
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -154,7 +154,7 @@ exports.AgentOutputNetworkIdEnum = {
|
|
|
154
154
|
OptimismSepolia: 'optimism-sepolia',
|
|
155
155
|
Solana: 'solana'
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
157
|
+
exports.AgentCreateCdpNetworkIdEnum = {
|
|
158
158
|
EthereumMainnet: 'ethereum-mainnet',
|
|
159
159
|
EthereumSepolia: 'ethereum-sepolia',
|
|
160
160
|
PolygonMainnet: 'polygon-mainnet',
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.6.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.6.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.6.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.6.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agent
|
|
2
2
|
|
|
3
3
|
Agent model.
|
|
4
4
|
|
|
@@ -48,9 +48,9 @@ Name | Type | Description | Notes
|
|
|
48
48
|
## Example
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
|
-
import {
|
|
51
|
+
import { Agent } from '@crestal/nation-sdk';
|
|
52
52
|
|
|
53
|
-
const instance:
|
|
53
|
+
const instance: Agent = {
|
|
54
54
|
name,
|
|
55
55
|
slug,
|
|
56
56
|
description,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgentCreate
|
|
2
2
|
|
|
3
|
-
Agent model.
|
|
3
|
+
Agent create model.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -42,15 +42,13 @@ Name | Type | Description | Notes
|
|
|
42
42
|
**telegram_config** | **object** | | [optional] [default to undefined]
|
|
43
43
|
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
44
44
|
**id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
|
|
45
|
-
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
|
|
46
|
-
**updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
|
|
47
45
|
|
|
48
46
|
## Example
|
|
49
47
|
|
|
50
48
|
```typescript
|
|
51
|
-
import {
|
|
49
|
+
import { AgentCreate } from '@crestal/nation-sdk';
|
|
52
50
|
|
|
53
|
-
const instance:
|
|
51
|
+
const instance: AgentCreate = {
|
|
54
52
|
name,
|
|
55
53
|
slug,
|
|
56
54
|
description,
|
|
@@ -87,8 +85,6 @@ const instance: AgentInput = {
|
|
|
87
85
|
telegram_config,
|
|
88
86
|
xmtp_entrypoint_prompt,
|
|
89
87
|
id,
|
|
90
|
-
created_at,
|
|
91
|
-
updated_at,
|
|
92
88
|
};
|
|
93
89
|
```
|
|
94
90
|
|
|
@@ -7,7 +7,7 @@ Request model for agent generation.
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**prompt** | **string** | Natural language description of the agent\'s desired capabilities | [default to undefined]
|
|
10
|
-
**existing_agent** | [**
|
|
10
|
+
**existing_agent** | [**AgentCreate**](AgentCreate.md) | | [optional] [default to undefined]
|
|
11
11
|
**project_id** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**deploy** | **boolean** | | [optional] [default to undefined]
|
|
13
13
|
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-11T07:04:12.906+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-11T07:04:12.906+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/docs/UserApi.md
CHANGED
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**getUserAgents**](#getuseragents) | **GET** /user/agents | Get User Agents|
|
|
9
9
|
|
|
10
10
|
# **getUserAgentById**
|
|
11
|
-
>
|
|
11
|
+
> Agent getUserAgentById()
|
|
12
12
|
|
|
13
13
|
Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
|
|
14
14
|
|
|
@@ -39,7 +39,7 @@ const { status, data } = await apiInstance.getUserAgentById(
|
|
|
39
39
|
|
|
40
40
|
### Return type
|
|
41
41
|
|
|
42
|
-
**
|
|
42
|
+
**Agent**
|
|
43
43
|
|
|
44
44
|
### Authorization
|
|
45
45
|
|
package/index.ts
CHANGED