@crestal/nation-sdk 0.1.21 → 0.1.23
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 -0
- package/README.md +5 -2
- package/api.ts +490 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +385 -1
- package/dist/api.js +273 -2
- 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/Agent.md +99 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +116 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.23
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,294 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
* Agent model.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Agent
|
|
20
|
+
*/
|
|
21
|
+
export interface Agent {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Agent
|
|
26
|
+
*/
|
|
27
|
+
'name': string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Agent
|
|
32
|
+
*/
|
|
33
|
+
'slug'?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Agent
|
|
38
|
+
*/
|
|
39
|
+
'description'?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Agent
|
|
44
|
+
*/
|
|
45
|
+
'external_website'?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Agent
|
|
50
|
+
*/
|
|
51
|
+
'picture'?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Agent
|
|
56
|
+
*/
|
|
57
|
+
'ticker'?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Agent
|
|
62
|
+
*/
|
|
63
|
+
'token_address'?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Agent
|
|
68
|
+
*/
|
|
69
|
+
'token_pool'?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Agent
|
|
74
|
+
*/
|
|
75
|
+
'mode'?: AgentModeEnum | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Agent
|
|
80
|
+
*/
|
|
81
|
+
'fee_percentage'?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Agent
|
|
86
|
+
*/
|
|
87
|
+
'purpose': string | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Agent
|
|
92
|
+
*/
|
|
93
|
+
'personality': string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Agent
|
|
98
|
+
*/
|
|
99
|
+
'principles': string | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof Agent
|
|
104
|
+
*/
|
|
105
|
+
'owner'?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof Agent
|
|
110
|
+
*/
|
|
111
|
+
'upstream_id'?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {object}
|
|
115
|
+
* @memberof Agent
|
|
116
|
+
*/
|
|
117
|
+
'upstream_extra'?: object | null;
|
|
118
|
+
/**
|
|
119
|
+
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent, venice-uncensored
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof Agent
|
|
122
|
+
*/
|
|
123
|
+
'model'?: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof Agent
|
|
128
|
+
*/
|
|
129
|
+
'prompt'?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof Agent
|
|
134
|
+
*/
|
|
135
|
+
'prompt_append'?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof Agent
|
|
140
|
+
*/
|
|
141
|
+
'temperature'?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof Agent
|
|
146
|
+
*/
|
|
147
|
+
'frequency_penalty'?: number | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @memberof Agent
|
|
152
|
+
*/
|
|
153
|
+
'presence_penalty'?: number | null;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof Agent
|
|
158
|
+
*/
|
|
159
|
+
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {Array<AgentAutonomous>}
|
|
163
|
+
* @memberof Agent
|
|
164
|
+
*/
|
|
165
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof Agent
|
|
170
|
+
*/
|
|
171
|
+
'example_intro'?: string | null;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {Array<AgentExample>}
|
|
175
|
+
* @memberof Agent
|
|
176
|
+
*/
|
|
177
|
+
'examples'?: Array<AgentExample> | null;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {object}
|
|
181
|
+
* @memberof Agent
|
|
182
|
+
*/
|
|
183
|
+
'skills'?: object | null;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof Agent
|
|
188
|
+
*/
|
|
189
|
+
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {string}
|
|
193
|
+
* @memberof Agent
|
|
194
|
+
*/
|
|
195
|
+
'network_id'?: AgentNetworkIdEnum | null;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof Agent
|
|
200
|
+
*/
|
|
201
|
+
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {boolean}
|
|
205
|
+
* @memberof Agent
|
|
206
|
+
*/
|
|
207
|
+
'twitter_entrypoint_enabled'?: boolean | null;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof Agent
|
|
212
|
+
*/
|
|
213
|
+
'twitter_entrypoint_prompt'?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {object}
|
|
217
|
+
* @memberof Agent
|
|
218
|
+
*/
|
|
219
|
+
'twitter_config'?: object | null;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {boolean}
|
|
223
|
+
* @memberof Agent
|
|
224
|
+
*/
|
|
225
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof Agent
|
|
230
|
+
*/
|
|
231
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {object}
|
|
235
|
+
* @memberof Agent
|
|
236
|
+
*/
|
|
237
|
+
'telegram_config'?: object | null;
|
|
238
|
+
/**
|
|
239
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof Agent
|
|
242
|
+
*/
|
|
243
|
+
'id'?: string;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {number}
|
|
247
|
+
* @memberof Agent
|
|
248
|
+
*/
|
|
249
|
+
'number'?: number | null;
|
|
250
|
+
/**
|
|
251
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof Agent
|
|
254
|
+
*/
|
|
255
|
+
'created_at'?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof Agent
|
|
260
|
+
*/
|
|
261
|
+
'updated_at'?: string;
|
|
262
|
+
}
|
|
263
|
+
export declare const AgentModeEnum: {
|
|
264
|
+
readonly Public: "public";
|
|
265
|
+
readonly Private: "private";
|
|
266
|
+
};
|
|
267
|
+
export type AgentModeEnum = typeof AgentModeEnum[keyof typeof AgentModeEnum];
|
|
268
|
+
export declare const AgentShortTermMemoryStrategyEnum: {
|
|
269
|
+
readonly Trim: "trim";
|
|
270
|
+
readonly Summarize: "summarize";
|
|
271
|
+
};
|
|
272
|
+
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
273
|
+
export declare const AgentWalletProviderEnum: {
|
|
274
|
+
readonly Cdp: "cdp";
|
|
275
|
+
};
|
|
276
|
+
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
277
|
+
export declare const AgentNetworkIdEnum: {
|
|
278
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
279
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
280
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
281
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
282
|
+
readonly BaseMainnet: "base-mainnet";
|
|
283
|
+
readonly BaseSepolia: "base-sepolia";
|
|
284
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
285
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
286
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
287
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
288
|
+
readonly Solana: "solana";
|
|
289
|
+
};
|
|
290
|
+
export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
|
|
291
|
+
export declare const AgentCdpNetworkIdEnum: {
|
|
292
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
293
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
294
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
295
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
296
|
+
readonly BaseMainnet: "base-mainnet";
|
|
297
|
+
readonly BaseSepolia: "base-sepolia";
|
|
298
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
299
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
300
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
301
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
302
|
+
};
|
|
303
|
+
export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
|
|
16
304
|
/**
|
|
17
305
|
* Autonomous agent configuration.
|
|
18
306
|
* @export
|
|
@@ -3404,3 +3692,99 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
3404
3692
|
*/
|
|
3405
3693
|
getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
3406
3694
|
}
|
|
3695
|
+
/**
|
|
3696
|
+
* UserApi - axios parameter creator
|
|
3697
|
+
* @export
|
|
3698
|
+
*/
|
|
3699
|
+
export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3700
|
+
/**
|
|
3701
|
+
* 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
|
|
3702
|
+
* @summary Get User Agent By Id
|
|
3703
|
+
* @param {string} agentId Agent ID
|
|
3704
|
+
* @param {*} [options] Override http request option.
|
|
3705
|
+
* @throws {RequiredError}
|
|
3706
|
+
*/
|
|
3707
|
+
getUserAgentById: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3708
|
+
/**
|
|
3709
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
3710
|
+
* @summary Get User Agents
|
|
3711
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
3712
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
3713
|
+
* @param {*} [options] Override http request option.
|
|
3714
|
+
* @throws {RequiredError}
|
|
3715
|
+
*/
|
|
3716
|
+
getUserAgents: (cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3717
|
+
};
|
|
3718
|
+
/**
|
|
3719
|
+
* UserApi - functional programming interface
|
|
3720
|
+
* @export
|
|
3721
|
+
*/
|
|
3722
|
+
export declare const UserApiFp: (configuration?: Configuration) => {
|
|
3723
|
+
/**
|
|
3724
|
+
* 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
|
|
3725
|
+
* @summary Get User Agent By Id
|
|
3726
|
+
* @param {string} agentId Agent ID
|
|
3727
|
+
* @param {*} [options] Override http request option.
|
|
3728
|
+
* @throws {RequiredError}
|
|
3729
|
+
*/
|
|
3730
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3731
|
+
/**
|
|
3732
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
3733
|
+
* @summary Get User Agents
|
|
3734
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
3735
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
3736
|
+
* @param {*} [options] Override http request option.
|
|
3737
|
+
* @throws {RequiredError}
|
|
3738
|
+
*/
|
|
3739
|
+
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
3740
|
+
};
|
|
3741
|
+
/**
|
|
3742
|
+
* UserApi - factory interface
|
|
3743
|
+
* @export
|
|
3744
|
+
*/
|
|
3745
|
+
export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3746
|
+
/**
|
|
3747
|
+
* 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
|
|
3748
|
+
* @summary Get User Agent By Id
|
|
3749
|
+
* @param {string} agentId Agent ID
|
|
3750
|
+
* @param {*} [options] Override http request option.
|
|
3751
|
+
* @throws {RequiredError}
|
|
3752
|
+
*/
|
|
3753
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3754
|
+
/**
|
|
3755
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
3756
|
+
* @summary Get User Agents
|
|
3757
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
3758
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
*/
|
|
3762
|
+
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
3763
|
+
};
|
|
3764
|
+
/**
|
|
3765
|
+
* UserApi - object-oriented interface
|
|
3766
|
+
* @export
|
|
3767
|
+
* @class UserApi
|
|
3768
|
+
* @extends {BaseAPI}
|
|
3769
|
+
*/
|
|
3770
|
+
export declare class UserApi extends BaseAPI {
|
|
3771
|
+
/**
|
|
3772
|
+
* 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
|
|
3773
|
+
* @summary Get User Agent By Id
|
|
3774
|
+
* @param {string} agentId Agent ID
|
|
3775
|
+
* @param {*} [options] Override http request option.
|
|
3776
|
+
* @throws {RequiredError}
|
|
3777
|
+
* @memberof UserApi
|
|
3778
|
+
*/
|
|
3779
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any>>;
|
|
3780
|
+
/**
|
|
3781
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
3782
|
+
* @summary Get User Agents
|
|
3783
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
3784
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
3785
|
+
* @param {*} [options] Override http request option.
|
|
3786
|
+
* @throws {RequiredError}
|
|
3787
|
+
* @memberof UserApi
|
|
3788
|
+
*/
|
|
3789
|
+
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
3790
|
+
}
|