@crestal/nation-sdk 0.1.22 → 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.
@@ -6,6 +6,7 @@ api.ts
6
6
  base.ts
7
7
  common.ts
8
8
  configuration.ts
9
+ docs/Agent.md
9
10
  docs/AgentApi.md
10
11
  docs/AgentAutonomous.md
11
12
  docs/AgentExample.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.1.22
1
+ ## @crestal/nation-sdk@0.1.23
2
2
 
3
3
  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:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.1.22 --save
39
+ npm install @crestal/nation-sdk@0.1.23 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -81,11 +81,13 @@ Class | Method | HTTP request | Description
81
81
  *MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
82
82
  *MetadataApi* | [**getSkillSchema**](docs/MetadataApi.md#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema
83
83
  *MetadataApi* | [**getSkillsMetadataSkillsGet**](docs/MetadataApi.md#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills
84
+ *UserApi* | [**getUserAgentById**](docs/UserApi.md#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id
84
85
  *UserApi* | [**getUserAgents**](docs/UserApi.md#getuseragents) | **GET** /user/agents | Get User Agents
85
86
 
86
87
 
87
88
  ### Documentation For Models
88
89
 
90
+ - [Agent](docs/Agent.md)
89
91
  - [AgentAutonomous](docs/AgentAutonomous.md)
90
92
  - [AgentExample](docs/AgentExample.md)
91
93
  - [AgentListResponse](docs/AgentListResponse.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.22
7
+ * The version of the OpenAPI document: 0.1.23
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,301 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ * Agent model.
28
+ * @export
29
+ * @interface Agent
30
+ */
31
+ export interface Agent {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof Agent
36
+ */
37
+ 'name': string | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof Agent
42
+ */
43
+ 'slug'?: string | null;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof Agent
48
+ */
49
+ 'description'?: string | null;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Agent
54
+ */
55
+ 'external_website'?: string | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof Agent
60
+ */
61
+ 'picture'?: string | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof Agent
66
+ */
67
+ 'ticker'?: string | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof Agent
72
+ */
73
+ 'token_address'?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof Agent
78
+ */
79
+ 'token_pool'?: string | null;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof Agent
84
+ */
85
+ 'mode'?: AgentModeEnum | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof Agent
90
+ */
91
+ 'fee_percentage'?: string | null;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof Agent
96
+ */
97
+ 'purpose': string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof Agent
102
+ */
103
+ 'personality': string | null;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof Agent
108
+ */
109
+ 'principles': string | null;
110
+ /**
111
+ *
112
+ * @type {string}
113
+ * @memberof Agent
114
+ */
115
+ 'owner'?: string | null;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof Agent
120
+ */
121
+ 'upstream_id'?: string | null;
122
+ /**
123
+ *
124
+ * @type {object}
125
+ * @memberof Agent
126
+ */
127
+ 'upstream_extra'?: object | null;
128
+ /**
129
+ * 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
130
+ * @type {string}
131
+ * @memberof Agent
132
+ */
133
+ 'model'?: string;
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof Agent
138
+ */
139
+ 'prompt'?: string | null;
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof Agent
144
+ */
145
+ 'prompt_append'?: string | null;
146
+ /**
147
+ *
148
+ * @type {number}
149
+ * @memberof Agent
150
+ */
151
+ 'temperature'?: number | null;
152
+ /**
153
+ *
154
+ * @type {number}
155
+ * @memberof Agent
156
+ */
157
+ 'frequency_penalty'?: number | null;
158
+ /**
159
+ *
160
+ * @type {number}
161
+ * @memberof Agent
162
+ */
163
+ 'presence_penalty'?: number | null;
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof Agent
168
+ */
169
+ 'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
170
+ /**
171
+ *
172
+ * @type {Array<AgentAutonomous>}
173
+ * @memberof Agent
174
+ */
175
+ 'autonomous'?: Array<AgentAutonomous> | null;
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof Agent
180
+ */
181
+ 'example_intro'?: string | null;
182
+ /**
183
+ *
184
+ * @type {Array<AgentExample>}
185
+ * @memberof Agent
186
+ */
187
+ 'examples'?: Array<AgentExample> | null;
188
+ /**
189
+ *
190
+ * @type {object}
191
+ * @memberof Agent
192
+ */
193
+ 'skills'?: object | null;
194
+ /**
195
+ *
196
+ * @type {string}
197
+ * @memberof Agent
198
+ */
199
+ 'wallet_provider'?: AgentWalletProviderEnum | null;
200
+ /**
201
+ *
202
+ * @type {string}
203
+ * @memberof Agent
204
+ */
205
+ 'network_id'?: AgentNetworkIdEnum | null;
206
+ /**
207
+ *
208
+ * @type {string}
209
+ * @memberof Agent
210
+ */
211
+ 'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
212
+ /**
213
+ *
214
+ * @type {boolean}
215
+ * @memberof Agent
216
+ */
217
+ 'twitter_entrypoint_enabled'?: boolean | null;
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof Agent
222
+ */
223
+ 'twitter_entrypoint_prompt'?: string | null;
224
+ /**
225
+ *
226
+ * @type {object}
227
+ * @memberof Agent
228
+ */
229
+ 'twitter_config'?: object | null;
230
+ /**
231
+ *
232
+ * @type {boolean}
233
+ * @memberof Agent
234
+ */
235
+ 'telegram_entrypoint_enabled'?: boolean | null;
236
+ /**
237
+ *
238
+ * @type {string}
239
+ * @memberof Agent
240
+ */
241
+ 'telegram_entrypoint_prompt'?: string | null;
242
+ /**
243
+ *
244
+ * @type {object}
245
+ * @memberof Agent
246
+ */
247
+ 'telegram_config'?: object | null;
248
+ /**
249
+ * Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
250
+ * @type {string}
251
+ * @memberof Agent
252
+ */
253
+ 'id'?: string;
254
+ /**
255
+ *
256
+ * @type {number}
257
+ * @memberof Agent
258
+ */
259
+ 'number'?: number | null;
260
+ /**
261
+ * Timestamp when the agent was created, will ignore when importing
262
+ * @type {string}
263
+ * @memberof Agent
264
+ */
265
+ 'created_at'?: string;
266
+ /**
267
+ * Timestamp when the agent was last updated, will ignore when importing
268
+ * @type {string}
269
+ * @memberof Agent
270
+ */
271
+ 'updated_at'?: string;
272
+ }
273
+
274
+ export const AgentModeEnum = {
275
+ Public: 'public',
276
+ Private: 'private'
277
+ } as const;
278
+
279
+ export type AgentModeEnum = typeof AgentModeEnum[keyof typeof AgentModeEnum];
280
+ export const AgentShortTermMemoryStrategyEnum = {
281
+ Trim: 'trim',
282
+ Summarize: 'summarize'
283
+ } as const;
284
+
285
+ export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
286
+ export const AgentWalletProviderEnum = {
287
+ Cdp: 'cdp'
288
+ } as const;
289
+
290
+ export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
291
+ export const AgentNetworkIdEnum = {
292
+ EthereumMainnet: 'ethereum-mainnet',
293
+ EthereumSepolia: 'ethereum-sepolia',
294
+ PolygonMainnet: 'polygon-mainnet',
295
+ PolygonMumbai: 'polygon-mumbai',
296
+ BaseMainnet: 'base-mainnet',
297
+ BaseSepolia: 'base-sepolia',
298
+ ArbitrumMainnet: 'arbitrum-mainnet',
299
+ ArbitrumSepolia: 'arbitrum-sepolia',
300
+ OptimismMainnet: 'optimism-mainnet',
301
+ OptimismSepolia: 'optimism-sepolia',
302
+ Solana: 'solana'
303
+ } as const;
304
+
305
+ export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
306
+ export const AgentCdpNetworkIdEnum = {
307
+ EthereumMainnet: 'ethereum-mainnet',
308
+ EthereumSepolia: 'ethereum-sepolia',
309
+ PolygonMainnet: 'polygon-mainnet',
310
+ PolygonMumbai: 'polygon-mumbai',
311
+ BaseMainnet: 'base-mainnet',
312
+ BaseSepolia: 'base-sepolia',
313
+ ArbitrumMainnet: 'arbitrum-mainnet',
314
+ ArbitrumSepolia: 'arbitrum-sepolia',
315
+ OptimismMainnet: 'optimism-mainnet',
316
+ OptimismSepolia: 'optimism-sepolia'
317
+ } as const;
318
+
319
+ export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
320
+
26
321
  /**
27
322
  * Autonomous agent configuration.
28
323
  * @export
@@ -4808,6 +5103,44 @@ export class MetadataApi extends BaseAPI {
4808
5103
  */
4809
5104
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
4810
5105
  return {
5106
+ /**
5107
+ * 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
5108
+ * @summary Get User Agent By Id
5109
+ * @param {string} agentId Agent ID
5110
+ * @param {*} [options] Override http request option.
5111
+ * @throws {RequiredError}
5112
+ */
5113
+ getUserAgentById: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5114
+ // verify required parameter 'agentId' is not null or undefined
5115
+ assertParamExists('getUserAgentById', 'agentId', agentId)
5116
+ const localVarPath = `/user/agents/{agent_id}`
5117
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
5118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5119
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5120
+ let baseOptions;
5121
+ if (configuration) {
5122
+ baseOptions = configuration.baseOptions;
5123
+ }
5124
+
5125
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5126
+ const localVarHeaderParameter = {} as any;
5127
+ const localVarQueryParameter = {} as any;
5128
+
5129
+ // authentication HTTPBearer required
5130
+ // http bearer authentication required
5131
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5132
+
5133
+
5134
+
5135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5137
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5138
+
5139
+ return {
5140
+ url: toPathString(localVarUrlObj),
5141
+ options: localVarRequestOptions,
5142
+ };
5143
+ },
4811
5144
  /**
4812
5145
  * 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
4813
5146
  * @summary Get User Agents
@@ -4862,6 +5195,19 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
4862
5195
  export const UserApiFp = function(configuration?: Configuration) {
4863
5196
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
4864
5197
  return {
5198
+ /**
5199
+ * 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
5200
+ * @summary Get User Agent By Id
5201
+ * @param {string} agentId Agent ID
5202
+ * @param {*} [options] Override http request option.
5203
+ * @throws {RequiredError}
5204
+ */
5205
+ async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
5206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgentById(agentId, options);
5207
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5208
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgentById']?.[localVarOperationServerIndex]?.url;
5209
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5210
+ },
4865
5211
  /**
4866
5212
  * 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
4867
5213
  * @summary Get User Agents
@@ -4886,6 +5232,16 @@ export const UserApiFp = function(configuration?: Configuration) {
4886
5232
  export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4887
5233
  const localVarFp = UserApiFp(configuration)
4888
5234
  return {
5235
+ /**
5236
+ * 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
5237
+ * @summary Get User Agent By Id
5238
+ * @param {string} agentId Agent ID
5239
+ * @param {*} [options] Override http request option.
5240
+ * @throws {RequiredError}
5241
+ */
5242
+ getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
5243
+ return localVarFp.getUserAgentById(agentId, options).then((request) => request(axios, basePath));
5244
+ },
4889
5245
  /**
4890
5246
  * 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
4891
5247
  * @summary Get User Agents
@@ -4907,6 +5263,18 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
4907
5263
  * @extends {BaseAPI}
4908
5264
  */
4909
5265
  export class UserApi extends BaseAPI {
5266
+ /**
5267
+ * 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
5268
+ * @summary Get User Agent By Id
5269
+ * @param {string} agentId Agent ID
5270
+ * @param {*} [options] Override http request option.
5271
+ * @throws {RequiredError}
5272
+ * @memberof UserApi
5273
+ */
5274
+ public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
5275
+ return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
5276
+ }
5277
+
4910
5278
  /**
4911
5279
  * 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
4912
5280
  * @summary Get User Agents
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.22
7
+ * The version of the OpenAPI document: 0.1.23
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.22
7
+ * The version of the OpenAPI document: 0.1.23
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.22
7
+ * The version of the OpenAPI document: 0.1.23
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.22
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
@@ -3409,6 +3697,14 @@ export declare class MetadataApi extends BaseAPI {
3409
3697
  * @export
3410
3698
  */
3411
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>;
3412
3708
  /**
3413
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
3414
3710
  * @summary Get User Agents
@@ -3424,6 +3720,14 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
3424
3720
  * @export
3425
3721
  */
3426
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>>;
3427
3731
  /**
3428
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
3429
3733
  * @summary Get User Agents
@@ -3439,6 +3743,14 @@ export declare const UserApiFp: (configuration?: Configuration) => {
3439
3743
  * @export
3440
3744
  */
3441
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>;
3442
3754
  /**
3443
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
3444
3756
  * @summary Get User Agents
@@ -3456,6 +3768,15 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
3456
3768
  * @extends {BaseAPI}
3457
3769
  */
3458
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>>;
3459
3780
  /**
3460
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
3461
3782
  * @summary Get User Agents
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.1.22
8
+ * The version of the OpenAPI document: 0.1.23
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -84,13 +84,49 @@ 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.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = 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.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 = void 0;
87
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = 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.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.AgentCdpNetworkIdEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentModeEnum = void 0;
88
88
  var axios_1 = require("axios");
89
89
  // Some imports not used depending on template conditions
90
90
  // @ts-ignore
91
91
  var common_1 = require("./common");
92
92
  // @ts-ignore
93
93
  var base_1 = require("./base");
94
+ exports.AgentModeEnum = {
95
+ Public: 'public',
96
+ Private: 'private'
97
+ };
98
+ exports.AgentShortTermMemoryStrategyEnum = {
99
+ Trim: 'trim',
100
+ Summarize: 'summarize'
101
+ };
102
+ exports.AgentWalletProviderEnum = {
103
+ Cdp: 'cdp'
104
+ };
105
+ exports.AgentNetworkIdEnum = {
106
+ EthereumMainnet: 'ethereum-mainnet',
107
+ EthereumSepolia: 'ethereum-sepolia',
108
+ PolygonMainnet: 'polygon-mainnet',
109
+ PolygonMumbai: 'polygon-mumbai',
110
+ BaseMainnet: 'base-mainnet',
111
+ BaseSepolia: 'base-sepolia',
112
+ ArbitrumMainnet: 'arbitrum-mainnet',
113
+ ArbitrumSepolia: 'arbitrum-sepolia',
114
+ OptimismMainnet: 'optimism-mainnet',
115
+ OptimismSepolia: 'optimism-sepolia',
116
+ Solana: 'solana'
117
+ };
118
+ exports.AgentCdpNetworkIdEnum = {
119
+ EthereumMainnet: 'ethereum-mainnet',
120
+ EthereumSepolia: 'ethereum-sepolia',
121
+ PolygonMainnet: 'polygon-mainnet',
122
+ PolygonMumbai: 'polygon-mumbai',
123
+ BaseMainnet: 'base-mainnet',
124
+ BaseSepolia: 'base-sepolia',
125
+ ArbitrumMainnet: 'arbitrum-mainnet',
126
+ ArbitrumSepolia: 'arbitrum-sepolia',
127
+ OptimismMainnet: 'optimism-mainnet',
128
+ OptimismSepolia: 'optimism-sepolia'
129
+ };
94
130
  exports.AgentResponseModeEnum = {
95
131
  Public: 'public',
96
132
  Private: 'private'
@@ -3319,6 +3355,53 @@ exports.MetadataApi = MetadataApi;
3319
3355
  var UserApiAxiosParamCreator = function (configuration) {
3320
3356
  var _this = this;
3321
3357
  return {
3358
+ /**
3359
+ * 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
3360
+ * @summary Get User Agent By Id
3361
+ * @param {string} agentId Agent ID
3362
+ * @param {*} [options] Override http request option.
3363
+ * @throws {RequiredError}
3364
+ */
3365
+ getUserAgentById: function (agentId_1) {
3366
+ var args_1 = [];
3367
+ for (var _i = 1; _i < arguments.length; _i++) {
3368
+ args_1[_i - 1] = arguments[_i];
3369
+ }
3370
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
3371
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3372
+ if (options === void 0) { options = {}; }
3373
+ return __generator(this, function (_a) {
3374
+ switch (_a.label) {
3375
+ case 0:
3376
+ // verify required parameter 'agentId' is not null or undefined
3377
+ (0, common_1.assertParamExists)('getUserAgentById', 'agentId', agentId);
3378
+ localVarPath = "/user/agents/{agent_id}"
3379
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
3380
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3381
+ if (configuration) {
3382
+ baseOptions = configuration.baseOptions;
3383
+ }
3384
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3385
+ localVarHeaderParameter = {};
3386
+ localVarQueryParameter = {};
3387
+ // authentication HTTPBearer required
3388
+ // http bearer authentication required
3389
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3390
+ case 1:
3391
+ // authentication HTTPBearer required
3392
+ // http bearer authentication required
3393
+ _a.sent();
3394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3395
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3396
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3397
+ return [2 /*return*/, {
3398
+ url: (0, common_1.toPathString)(localVarUrlObj),
3399
+ options: localVarRequestOptions,
3400
+ }];
3401
+ }
3402
+ });
3403
+ });
3404
+ },
3322
3405
  /**
3323
3406
  * 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
3324
3407
  * @summary Get User Agents
@@ -3380,6 +3463,29 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
3380
3463
  var UserApiFp = function (configuration) {
3381
3464
  var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
3382
3465
  return {
3466
+ /**
3467
+ * 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
3468
+ * @summary Get User Agent By Id
3469
+ * @param {string} agentId Agent ID
3470
+ * @param {*} [options] Override http request option.
3471
+ * @throws {RequiredError}
3472
+ */
3473
+ getUserAgentById: function (agentId, options) {
3474
+ return __awaiter(this, void 0, void 0, function () {
3475
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3476
+ var _a, _b, _c;
3477
+ return __generator(this, function (_d) {
3478
+ switch (_d.label) {
3479
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserAgentById(agentId, options)];
3480
+ case 1:
3481
+ localVarAxiosArgs = _d.sent();
3482
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3483
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getUserAgentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3484
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3485
+ }
3486
+ });
3487
+ });
3488
+ },
3383
3489
  /**
3384
3490
  * 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
3385
3491
  * @summary Get User Agents
@@ -3414,6 +3520,16 @@ exports.UserApiFp = UserApiFp;
3414
3520
  var UserApiFactory = function (configuration, basePath, axios) {
3415
3521
  var localVarFp = (0, exports.UserApiFp)(configuration);
3416
3522
  return {
3523
+ /**
3524
+ * 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
3525
+ * @summary Get User Agent By Id
3526
+ * @param {string} agentId Agent ID
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ */
3530
+ getUserAgentById: function (agentId, options) {
3531
+ return localVarFp.getUserAgentById(agentId, options).then(function (request) { return request(axios, basePath); });
3532
+ },
3417
3533
  /**
3418
3534
  * 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
3419
3535
  * @summary Get User Agents
@@ -3439,6 +3555,18 @@ var UserApi = /** @class */ (function (_super) {
3439
3555
  function UserApi() {
3440
3556
  return _super !== null && _super.apply(this, arguments) || this;
3441
3557
  }
3558
+ /**
3559
+ * 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
3560
+ * @summary Get User Agent By Id
3561
+ * @param {string} agentId Agent ID
3562
+ * @param {*} [options] Override http request option.
3563
+ * @throws {RequiredError}
3564
+ * @memberof UserApi
3565
+ */
3566
+ UserApi.prototype.getUserAgentById = function (agentId, options) {
3567
+ var _this = this;
3568
+ return (0, exports.UserApiFp)(this.configuration).getUserAgentById(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3569
+ };
3442
3570
  /**
3443
3571
  * 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
3444
3572
  * @summary Get User Agents
package/dist/base.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.22
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).
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.1.22
8
+ * The version of the OpenAPI document: 0.1.23
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
@@ -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.22
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).
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.1.22
8
+ * The version of the OpenAPI document: 0.1.23
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.22
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).
@@ -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.1.22
8
+ * The version of the OpenAPI document: 0.1.23
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
@@ -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.22
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).
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.1.22
8
+ * The version of the OpenAPI document: 0.1.23
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Agent.md ADDED
@@ -0,0 +1,99 @@
1
+ # Agent
2
+
3
+ Agent model.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **slug** | **string** | | [optional] [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **external_website** | **string** | | [optional] [default to undefined]
13
+ **picture** | **string** | | [optional] [default to undefined]
14
+ **ticker** | **string** | | [optional] [default to undefined]
15
+ **token_address** | **string** | | [optional] [default to undefined]
16
+ **token_pool** | **string** | | [optional] [default to undefined]
17
+ **mode** | **string** | | [optional] [default to undefined]
18
+ **fee_percentage** | **string** | | [optional] [default to undefined]
19
+ **purpose** | **string** | | [default to undefined]
20
+ **personality** | **string** | | [default to undefined]
21
+ **principles** | **string** | | [default to undefined]
22
+ **owner** | **string** | | [optional] [default to undefined]
23
+ **upstream_id** | **string** | | [optional] [default to undefined]
24
+ **upstream_extra** | **object** | | [optional] [default to undefined]
25
+ **model** | **string** | 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 | [optional] [default to 'gpt-4.1-mini']
26
+ **prompt** | **string** | | [optional] [default to undefined]
27
+ **prompt_append** | **string** | | [optional] [default to undefined]
28
+ **temperature** | **number** | | [optional] [default to undefined]
29
+ **frequency_penalty** | **number** | | [optional] [default to undefined]
30
+ **presence_penalty** | **number** | | [optional] [default to undefined]
31
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
32
+ **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
33
+ **example_intro** | **string** | | [optional] [default to undefined]
34
+ **examples** | [**Array&lt;AgentExample&gt;**](AgentExample.md) | | [optional] [default to undefined]
35
+ **skills** | **object** | | [optional] [default to undefined]
36
+ **wallet_provider** | **string** | | [optional] [default to undefined]
37
+ **network_id** | **string** | | [optional] [default to undefined]
38
+ **cdp_network_id** | **string** | | [optional] [default to undefined]
39
+ **twitter_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
40
+ **twitter_entrypoint_prompt** | **string** | | [optional] [default to undefined]
41
+ **twitter_config** | **object** | | [optional] [default to undefined]
42
+ **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
43
+ **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
44
+ **telegram_config** | **object** | | [optional] [default to undefined]
45
+ **id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
46
+ **number** | **number** | | [optional] [default to undefined]
47
+ **created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
48
+ **updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
49
+
50
+ ## Example
51
+
52
+ ```typescript
53
+ import { Agent } from '@crestal/nation-sdk';
54
+
55
+ const instance: Agent = {
56
+ name,
57
+ slug,
58
+ description,
59
+ external_website,
60
+ picture,
61
+ ticker,
62
+ token_address,
63
+ token_pool,
64
+ mode,
65
+ fee_percentage,
66
+ purpose,
67
+ personality,
68
+ principles,
69
+ owner,
70
+ upstream_id,
71
+ upstream_extra,
72
+ model,
73
+ prompt,
74
+ prompt_append,
75
+ temperature,
76
+ frequency_penalty,
77
+ presence_penalty,
78
+ short_term_memory_strategy,
79
+ autonomous,
80
+ example_intro,
81
+ examples,
82
+ skills,
83
+ wallet_provider,
84
+ network_id,
85
+ cdp_network_id,
86
+ twitter_entrypoint_enabled,
87
+ twitter_entrypoint_prompt,
88
+ twitter_config,
89
+ telegram_entrypoint_enabled,
90
+ telegram_entrypoint_prompt,
91
+ telegram_config,
92
+ id,
93
+ number,
94
+ created_at,
95
+ updated_at,
96
+ };
97
+ ```
98
+
99
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -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-07-17T10:28:57.561+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-17T10:28:57.561+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-18T11:19:37.384+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-18T11:19:37.384+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/docs/UserApi.md CHANGED
@@ -4,8 +4,61 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getUserAgentById**](#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id|
7
8
  |[**getUserAgents**](#getuseragents) | **GET** /user/agents | Get User Agents|
8
9
 
10
+ # **getUserAgentById**
11
+ > Agent getUserAgentById()
12
+
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
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ UserApi,
20
+ Configuration
21
+ } from '@crestal/nation-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new UserApi(configuration);
25
+
26
+ let agentId: string; //Agent ID (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getUserAgentById(
29
+ agentId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **Agent**
43
+
44
+ ### Authorization
45
+
46
+ [HTTPBearer](../README.md#HTTPBearer)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Successful Response | - |
58
+ |**422** | Validation Error | - |
59
+
60
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
61
+
9
62
  # **getUserAgents**
10
63
  > AgentListResponse getUserAgents()
11
64
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.22
7
+ * The version of the OpenAPI document: 0.1.23
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {