@crestal/nation-sdk 0.2.32 → 0.2.33
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 +3 -0
- package/README.md +5 -2
- package/api.ts +242 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +189 -2
- package/dist/api.js +139 -3
- 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/AgentApiKeyResponse.md +1 -1
- package/docs/AgentAssetsResponse.md +35 -0
- package/docs/Asset.md +23 -0
- package/docs/CreditEvent.md +6 -0
- package/docs/CreditEventWithAgent.md +6 -0
- package/docs/CreditTransactionResp.md +6 -0
- package/docs/DefaultApi.md +60 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ configuration.ts
|
|
|
9
9
|
docs/Agent.md
|
|
10
10
|
docs/AgentApi.md
|
|
11
11
|
docs/AgentApiKeyResponse.md
|
|
12
|
+
docs/AgentAssetsResponse.md
|
|
12
13
|
docs/AgentAutonomous.md
|
|
13
14
|
docs/AgentExample.md
|
|
14
15
|
docs/AgentGenerateRequest.md
|
|
@@ -18,6 +19,7 @@ docs/AgentResponse.md
|
|
|
18
19
|
docs/AgentSortOption.md
|
|
19
20
|
docs/AgentStatisticsResponse.md
|
|
20
21
|
docs/AgentUpdate.md
|
|
22
|
+
docs/Asset.md
|
|
21
23
|
docs/AuthorType.md
|
|
22
24
|
docs/Chat.md
|
|
23
25
|
docs/ChatApi.md
|
|
@@ -37,6 +39,7 @@ docs/CreditEventsResponse.md
|
|
|
37
39
|
docs/CreditTransactionResp.md
|
|
38
40
|
docs/CreditTransactionsResponse.md
|
|
39
41
|
docs/CreditType.md
|
|
42
|
+
docs/DefaultApi.md
|
|
40
43
|
docs/Direction.md
|
|
41
44
|
docs/EventType.md
|
|
42
45
|
docs/FeePercentage.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.2.
|
|
1
|
+
## @crestal/nation-sdk@0.2.33
|
|
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.2.
|
|
39
|
+
npm install @crestal/nation-sdk@0.2.33 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -79,6 +79,7 @@ Class | Method | HTTP request | Description
|
|
|
79
79
|
*CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
|
|
80
80
|
*CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
|
|
81
81
|
*CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
|
|
82
|
+
*DefaultApi* | [**getAgentAssetsAgentsAgentIdAssetsGet**](docs/DefaultApi.md#getagentassetsagentsagentidassetsget) | **GET** /agents/{agent_id}/assets | Get agent assets
|
|
82
83
|
*GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
|
|
83
84
|
*GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
|
|
84
85
|
*GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
|
|
@@ -99,6 +100,7 @@ Class | Method | HTTP request | Description
|
|
|
99
100
|
|
|
100
101
|
- [Agent](docs/Agent.md)
|
|
101
102
|
- [AgentApiKeyResponse](docs/AgentApiKeyResponse.md)
|
|
103
|
+
- [AgentAssetsResponse](docs/AgentAssetsResponse.md)
|
|
102
104
|
- [AgentAutonomous](docs/AgentAutonomous.md)
|
|
103
105
|
- [AgentExample](docs/AgentExample.md)
|
|
104
106
|
- [AgentGenerateRequest](docs/AgentGenerateRequest.md)
|
|
@@ -108,6 +110,7 @@ Class | Method | HTTP request | Description
|
|
|
108
110
|
- [AgentSortOption](docs/AgentSortOption.md)
|
|
109
111
|
- [AgentStatisticsResponse](docs/AgentStatisticsResponse.md)
|
|
110
112
|
- [AgentUpdate](docs/AgentUpdate.md)
|
|
113
|
+
- [Asset](docs/Asset.md)
|
|
111
114
|
- [AuthorType](docs/AuthorType.md)
|
|
112
115
|
- [Chat](docs/Chat.md)
|
|
113
116
|
- [ChatMessage](docs/ChatMessage.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.2.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.33
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -308,7 +308,7 @@ export const AgentCdpNetworkIdEnum = {
|
|
|
308
308
|
export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
|
-
* Response model for agent API key
|
|
311
|
+
* Response model for agent API key generation.
|
|
312
312
|
* @export
|
|
313
313
|
* @interface AgentApiKeyResponse
|
|
314
314
|
*/
|
|
@@ -344,6 +344,61 @@ export interface AgentApiKeyResponse {
|
|
|
344
344
|
*/
|
|
345
345
|
'doc_for_ai': string;
|
|
346
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Response model for agent assets.
|
|
349
|
+
* @export
|
|
350
|
+
* @interface AgentAssetsResponse
|
|
351
|
+
*/
|
|
352
|
+
export interface AgentAssetsResponse {
|
|
353
|
+
/**
|
|
354
|
+
* ID of the agent
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @memberof AgentAssetsResponse
|
|
357
|
+
*/
|
|
358
|
+
'agent_id': string;
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @type {string}
|
|
362
|
+
* @memberof AgentAssetsResponse
|
|
363
|
+
*/
|
|
364
|
+
'network_id': string | null;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {string}
|
|
368
|
+
* @memberof AgentAssetsResponse
|
|
369
|
+
*/
|
|
370
|
+
'wallet_address': string | null;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof AgentAssetsResponse
|
|
375
|
+
*/
|
|
376
|
+
'ticker': string | null;
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @memberof AgentAssetsResponse
|
|
381
|
+
*/
|
|
382
|
+
'token_address': string | null;
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof AgentAssetsResponse
|
|
387
|
+
*/
|
|
388
|
+
'token_pool': string | null;
|
|
389
|
+
/**
|
|
390
|
+
* Total value locked, set to 0 for this version
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof AgentAssetsResponse
|
|
393
|
+
*/
|
|
394
|
+
'tvl'?: string;
|
|
395
|
+
/**
|
|
396
|
+
* List of assets with symbol and balance
|
|
397
|
+
* @type {Array<Asset>}
|
|
398
|
+
* @memberof AgentAssetsResponse
|
|
399
|
+
*/
|
|
400
|
+
'assets': Array<Asset>;
|
|
401
|
+
}
|
|
347
402
|
/**
|
|
348
403
|
* Autonomous agent configuration.
|
|
349
404
|
* @export
|
|
@@ -1132,6 +1187,25 @@ export const AgentUpdateCdpNetworkIdEnum = {
|
|
|
1132
1187
|
|
|
1133
1188
|
export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[keyof typeof AgentUpdateCdpNetworkIdEnum];
|
|
1134
1189
|
|
|
1190
|
+
/**
|
|
1191
|
+
* Model for individual asset with symbol and balance.
|
|
1192
|
+
* @export
|
|
1193
|
+
* @interface Asset
|
|
1194
|
+
*/
|
|
1195
|
+
export interface Asset {
|
|
1196
|
+
/**
|
|
1197
|
+
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1198
|
+
* @type {string}
|
|
1199
|
+
* @memberof Asset
|
|
1200
|
+
*/
|
|
1201
|
+
'symbol': string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Asset balance as decimal
|
|
1204
|
+
* @type {string}
|
|
1205
|
+
* @memberof Asset
|
|
1206
|
+
*/
|
|
1207
|
+
'balance': string;
|
|
1208
|
+
}
|
|
1135
1209
|
/**
|
|
1136
1210
|
* Type of message author.
|
|
1137
1211
|
* @export
|
|
@@ -1773,6 +1847,24 @@ export interface CreditEvent {
|
|
|
1773
1847
|
* @memberof CreditEvent
|
|
1774
1848
|
*/
|
|
1775
1849
|
'base_skill_amount'?: string | null;
|
|
1850
|
+
/**
|
|
1851
|
+
*
|
|
1852
|
+
* @type {string}
|
|
1853
|
+
* @memberof CreditEvent
|
|
1854
|
+
*/
|
|
1855
|
+
'base_free_amount'?: string | null;
|
|
1856
|
+
/**
|
|
1857
|
+
*
|
|
1858
|
+
* @type {string}
|
|
1859
|
+
* @memberof CreditEvent
|
|
1860
|
+
*/
|
|
1861
|
+
'base_reward_amount'?: string | null;
|
|
1862
|
+
/**
|
|
1863
|
+
*
|
|
1864
|
+
* @type {string}
|
|
1865
|
+
* @memberof CreditEvent
|
|
1866
|
+
*/
|
|
1867
|
+
'base_permanent_amount'?: string | null;
|
|
1776
1868
|
/**
|
|
1777
1869
|
*
|
|
1778
1870
|
* @type {string}
|
|
@@ -2034,6 +2126,24 @@ export interface CreditEventWithAgent {
|
|
|
2034
2126
|
* @memberof CreditEventWithAgent
|
|
2035
2127
|
*/
|
|
2036
2128
|
'base_skill_amount'?: string | null;
|
|
2129
|
+
/**
|
|
2130
|
+
*
|
|
2131
|
+
* @type {string}
|
|
2132
|
+
* @memberof CreditEventWithAgent
|
|
2133
|
+
*/
|
|
2134
|
+
'base_free_amount'?: string | null;
|
|
2135
|
+
/**
|
|
2136
|
+
*
|
|
2137
|
+
* @type {string}
|
|
2138
|
+
* @memberof CreditEventWithAgent
|
|
2139
|
+
*/
|
|
2140
|
+
'base_reward_amount'?: string | null;
|
|
2141
|
+
/**
|
|
2142
|
+
*
|
|
2143
|
+
* @type {string}
|
|
2144
|
+
* @memberof CreditEventWithAgent
|
|
2145
|
+
*/
|
|
2146
|
+
'base_permanent_amount'?: string | null;
|
|
2037
2147
|
/**
|
|
2038
2148
|
*
|
|
2039
2149
|
* @type {string}
|
|
@@ -2224,6 +2334,24 @@ export interface CreditTransactionResp {
|
|
|
2224
2334
|
* @memberof CreditTransactionResp
|
|
2225
2335
|
*/
|
|
2226
2336
|
'change_amount'?: string;
|
|
2337
|
+
/**
|
|
2338
|
+
* Amount of free credits changed
|
|
2339
|
+
* @type {string}
|
|
2340
|
+
* @memberof CreditTransactionResp
|
|
2341
|
+
*/
|
|
2342
|
+
'free_amount'?: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* Amount of reward credits changed
|
|
2345
|
+
* @type {string}
|
|
2346
|
+
* @memberof CreditTransactionResp
|
|
2347
|
+
*/
|
|
2348
|
+
'reward_amount'?: string;
|
|
2349
|
+
/**
|
|
2350
|
+
* Amount of permanent credits changed
|
|
2351
|
+
* @type {string}
|
|
2352
|
+
* @memberof CreditTransactionResp
|
|
2353
|
+
*/
|
|
2354
|
+
'permanent_amount'?: string;
|
|
2227
2355
|
/**
|
|
2228
2356
|
* Type of credits involved
|
|
2229
2357
|
* @type {CreditType}
|
|
@@ -5158,6 +5286,118 @@ export class CreditApi extends BaseAPI {
|
|
|
5158
5286
|
|
|
5159
5287
|
|
|
5160
5288
|
|
|
5289
|
+
/**
|
|
5290
|
+
* DefaultApi - axios parameter creator
|
|
5291
|
+
* @export
|
|
5292
|
+
*/
|
|
5293
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5294
|
+
return {
|
|
5295
|
+
/**
|
|
5296
|
+
* Get the assets and balances for an agent\'s wallet
|
|
5297
|
+
* @summary Get agent assets
|
|
5298
|
+
* @param {string} agentId ID of the agent
|
|
5299
|
+
* @param {*} [options] Override http request option.
|
|
5300
|
+
* @throws {RequiredError}
|
|
5301
|
+
*/
|
|
5302
|
+
getAgentAssetsAgentsAgentIdAssetsGet: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5303
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
5304
|
+
assertParamExists('getAgentAssetsAgentsAgentIdAssetsGet', 'agentId', agentId)
|
|
5305
|
+
const localVarPath = `/agents/{agent_id}/assets`
|
|
5306
|
+
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
5307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5309
|
+
let baseOptions;
|
|
5310
|
+
if (configuration) {
|
|
5311
|
+
baseOptions = configuration.baseOptions;
|
|
5312
|
+
}
|
|
5313
|
+
|
|
5314
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5315
|
+
const localVarHeaderParameter = {} as any;
|
|
5316
|
+
const localVarQueryParameter = {} as any;
|
|
5317
|
+
|
|
5318
|
+
// authentication HTTPBearer required
|
|
5319
|
+
// http bearer authentication required
|
|
5320
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5321
|
+
|
|
5322
|
+
|
|
5323
|
+
|
|
5324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5326
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5327
|
+
|
|
5328
|
+
return {
|
|
5329
|
+
url: toPathString(localVarUrlObj),
|
|
5330
|
+
options: localVarRequestOptions,
|
|
5331
|
+
};
|
|
5332
|
+
},
|
|
5333
|
+
}
|
|
5334
|
+
};
|
|
5335
|
+
|
|
5336
|
+
/**
|
|
5337
|
+
* DefaultApi - functional programming interface
|
|
5338
|
+
* @export
|
|
5339
|
+
*/
|
|
5340
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
5341
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
5342
|
+
return {
|
|
5343
|
+
/**
|
|
5344
|
+
* Get the assets and balances for an agent\'s wallet
|
|
5345
|
+
* @summary Get agent assets
|
|
5346
|
+
* @param {string} agentId ID of the agent
|
|
5347
|
+
* @param {*} [options] Override http request option.
|
|
5348
|
+
* @throws {RequiredError}
|
|
5349
|
+
*/
|
|
5350
|
+
async getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>> {
|
|
5351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options);
|
|
5352
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5353
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.getAgentAssetsAgentsAgentIdAssetsGet']?.[localVarOperationServerIndex]?.url;
|
|
5354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5355
|
+
},
|
|
5356
|
+
}
|
|
5357
|
+
};
|
|
5358
|
+
|
|
5359
|
+
/**
|
|
5360
|
+
* DefaultApi - factory interface
|
|
5361
|
+
* @export
|
|
5362
|
+
*/
|
|
5363
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5364
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
5365
|
+
return {
|
|
5366
|
+
/**
|
|
5367
|
+
* Get the assets and balances for an agent\'s wallet
|
|
5368
|
+
* @summary Get agent assets
|
|
5369
|
+
* @param {string} agentId ID of the agent
|
|
5370
|
+
* @param {*} [options] Override http request option.
|
|
5371
|
+
* @throws {RequiredError}
|
|
5372
|
+
*/
|
|
5373
|
+
getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse> {
|
|
5374
|
+
return localVarFp.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then((request) => request(axios, basePath));
|
|
5375
|
+
},
|
|
5376
|
+
};
|
|
5377
|
+
};
|
|
5378
|
+
|
|
5379
|
+
/**
|
|
5380
|
+
* DefaultApi - object-oriented interface
|
|
5381
|
+
* @export
|
|
5382
|
+
* @class DefaultApi
|
|
5383
|
+
* @extends {BaseAPI}
|
|
5384
|
+
*/
|
|
5385
|
+
export class DefaultApi extends BaseAPI {
|
|
5386
|
+
/**
|
|
5387
|
+
* Get the assets and balances for an agent\'s wallet
|
|
5388
|
+
* @summary Get agent assets
|
|
5389
|
+
* @param {string} agentId ID of the agent
|
|
5390
|
+
* @param {*} [options] Override http request option.
|
|
5391
|
+
* @throws {RequiredError}
|
|
5392
|
+
* @memberof DefaultApi
|
|
5393
|
+
*/
|
|
5394
|
+
public getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5395
|
+
return DefaultApiFp(this.configuration).getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
5396
|
+
}
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
|
|
5400
|
+
|
|
5161
5401
|
/**
|
|
5162
5402
|
* GeneratorApi - axios parameter creator
|
|
5163
5403
|
* @export
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.2.
|
|
5
|
+
* The version of the OpenAPI document: 0.2.33
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -291,7 +291,7 @@ export declare const AgentCdpNetworkIdEnum: {
|
|
|
291
291
|
};
|
|
292
292
|
export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
|
|
293
293
|
/**
|
|
294
|
-
* Response model for agent API key
|
|
294
|
+
* Response model for agent API key generation.
|
|
295
295
|
* @export
|
|
296
296
|
* @interface AgentApiKeyResponse
|
|
297
297
|
*/
|
|
@@ -327,6 +327,61 @@ export interface AgentApiKeyResponse {
|
|
|
327
327
|
*/
|
|
328
328
|
'doc_for_ai': string;
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Response model for agent assets.
|
|
332
|
+
* @export
|
|
333
|
+
* @interface AgentAssetsResponse
|
|
334
|
+
*/
|
|
335
|
+
export interface AgentAssetsResponse {
|
|
336
|
+
/**
|
|
337
|
+
* ID of the agent
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof AgentAssetsResponse
|
|
340
|
+
*/
|
|
341
|
+
'agent_id': string;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof AgentAssetsResponse
|
|
346
|
+
*/
|
|
347
|
+
'network_id': string | null;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @type {string}
|
|
351
|
+
* @memberof AgentAssetsResponse
|
|
352
|
+
*/
|
|
353
|
+
'wallet_address': string | null;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {string}
|
|
357
|
+
* @memberof AgentAssetsResponse
|
|
358
|
+
*/
|
|
359
|
+
'ticker': string | null;
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof AgentAssetsResponse
|
|
364
|
+
*/
|
|
365
|
+
'token_address': string | null;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof AgentAssetsResponse
|
|
370
|
+
*/
|
|
371
|
+
'token_pool': string | null;
|
|
372
|
+
/**
|
|
373
|
+
* Total value locked, set to 0 for this version
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof AgentAssetsResponse
|
|
376
|
+
*/
|
|
377
|
+
'tvl'?: string;
|
|
378
|
+
/**
|
|
379
|
+
* List of assets with symbol and balance
|
|
380
|
+
* @type {Array<Asset>}
|
|
381
|
+
* @memberof AgentAssetsResponse
|
|
382
|
+
*/
|
|
383
|
+
'assets': Array<Asset>;
|
|
384
|
+
}
|
|
330
385
|
/**
|
|
331
386
|
* Autonomous agent configuration.
|
|
332
387
|
* @export
|
|
@@ -1102,6 +1157,25 @@ export declare const AgentUpdateCdpNetworkIdEnum: {
|
|
|
1102
1157
|
readonly OptimismSepolia: "optimism-sepolia";
|
|
1103
1158
|
};
|
|
1104
1159
|
export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[keyof typeof AgentUpdateCdpNetworkIdEnum];
|
|
1160
|
+
/**
|
|
1161
|
+
* Model for individual asset with symbol and balance.
|
|
1162
|
+
* @export
|
|
1163
|
+
* @interface Asset
|
|
1164
|
+
*/
|
|
1165
|
+
export interface Asset {
|
|
1166
|
+
/**
|
|
1167
|
+
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1168
|
+
* @type {string}
|
|
1169
|
+
* @memberof Asset
|
|
1170
|
+
*/
|
|
1171
|
+
'symbol': string;
|
|
1172
|
+
/**
|
|
1173
|
+
* Asset balance as decimal
|
|
1174
|
+
* @type {string}
|
|
1175
|
+
* @memberof Asset
|
|
1176
|
+
*/
|
|
1177
|
+
'balance': string;
|
|
1178
|
+
}
|
|
1105
1179
|
/**
|
|
1106
1180
|
* Type of message author.
|
|
1107
1181
|
* @export
|
|
@@ -1725,6 +1799,24 @@ export interface CreditEvent {
|
|
|
1725
1799
|
* @memberof CreditEvent
|
|
1726
1800
|
*/
|
|
1727
1801
|
'base_skill_amount'?: string | null;
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @type {string}
|
|
1805
|
+
* @memberof CreditEvent
|
|
1806
|
+
*/
|
|
1807
|
+
'base_free_amount'?: string | null;
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @type {string}
|
|
1811
|
+
* @memberof CreditEvent
|
|
1812
|
+
*/
|
|
1813
|
+
'base_reward_amount'?: string | null;
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @type {string}
|
|
1817
|
+
* @memberof CreditEvent
|
|
1818
|
+
*/
|
|
1819
|
+
'base_permanent_amount'?: string | null;
|
|
1728
1820
|
/**
|
|
1729
1821
|
*
|
|
1730
1822
|
* @type {string}
|
|
@@ -1984,6 +2076,24 @@ export interface CreditEventWithAgent {
|
|
|
1984
2076
|
* @memberof CreditEventWithAgent
|
|
1985
2077
|
*/
|
|
1986
2078
|
'base_skill_amount'?: string | null;
|
|
2079
|
+
/**
|
|
2080
|
+
*
|
|
2081
|
+
* @type {string}
|
|
2082
|
+
* @memberof CreditEventWithAgent
|
|
2083
|
+
*/
|
|
2084
|
+
'base_free_amount'?: string | null;
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @type {string}
|
|
2088
|
+
* @memberof CreditEventWithAgent
|
|
2089
|
+
*/
|
|
2090
|
+
'base_reward_amount'?: string | null;
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @type {string}
|
|
2094
|
+
* @memberof CreditEventWithAgent
|
|
2095
|
+
*/
|
|
2096
|
+
'base_permanent_amount'?: string | null;
|
|
1987
2097
|
/**
|
|
1988
2098
|
*
|
|
1989
2099
|
* @type {string}
|
|
@@ -2172,6 +2282,24 @@ export interface CreditTransactionResp {
|
|
|
2172
2282
|
* @memberof CreditTransactionResp
|
|
2173
2283
|
*/
|
|
2174
2284
|
'change_amount'?: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* Amount of free credits changed
|
|
2287
|
+
* @type {string}
|
|
2288
|
+
* @memberof CreditTransactionResp
|
|
2289
|
+
*/
|
|
2290
|
+
'free_amount'?: string;
|
|
2291
|
+
/**
|
|
2292
|
+
* Amount of reward credits changed
|
|
2293
|
+
* @type {string}
|
|
2294
|
+
* @memberof CreditTransactionResp
|
|
2295
|
+
*/
|
|
2296
|
+
'reward_amount'?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Amount of permanent credits changed
|
|
2299
|
+
* @type {string}
|
|
2300
|
+
* @memberof CreditTransactionResp
|
|
2301
|
+
*/
|
|
2302
|
+
'permanent_amount'?: string;
|
|
2175
2303
|
/**
|
|
2176
2304
|
* Type of credits involved
|
|
2177
2305
|
* @type {CreditType}
|
|
@@ -3811,6 +3939,65 @@ export declare class CreditApi extends BaseAPI {
|
|
|
3811
3939
|
*/
|
|
3812
3940
|
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
|
|
3813
3941
|
}
|
|
3942
|
+
/**
|
|
3943
|
+
* DefaultApi - axios parameter creator
|
|
3944
|
+
* @export
|
|
3945
|
+
*/
|
|
3946
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3947
|
+
/**
|
|
3948
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3949
|
+
* @summary Get agent assets
|
|
3950
|
+
* @param {string} agentId ID of the agent
|
|
3951
|
+
* @param {*} [options] Override http request option.
|
|
3952
|
+
* @throws {RequiredError}
|
|
3953
|
+
*/
|
|
3954
|
+
getAgentAssetsAgentsAgentIdAssetsGet: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3955
|
+
};
|
|
3956
|
+
/**
|
|
3957
|
+
* DefaultApi - functional programming interface
|
|
3958
|
+
* @export
|
|
3959
|
+
*/
|
|
3960
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
3961
|
+
/**
|
|
3962
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3963
|
+
* @summary Get agent assets
|
|
3964
|
+
* @param {string} agentId ID of the agent
|
|
3965
|
+
* @param {*} [options] Override http request option.
|
|
3966
|
+
* @throws {RequiredError}
|
|
3967
|
+
*/
|
|
3968
|
+
getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>>;
|
|
3969
|
+
};
|
|
3970
|
+
/**
|
|
3971
|
+
* DefaultApi - factory interface
|
|
3972
|
+
* @export
|
|
3973
|
+
*/
|
|
3974
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3975
|
+
/**
|
|
3976
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3977
|
+
* @summary Get agent assets
|
|
3978
|
+
* @param {string} agentId ID of the agent
|
|
3979
|
+
* @param {*} [options] Override http request option.
|
|
3980
|
+
* @throws {RequiredError}
|
|
3981
|
+
*/
|
|
3982
|
+
getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse>;
|
|
3983
|
+
};
|
|
3984
|
+
/**
|
|
3985
|
+
* DefaultApi - object-oriented interface
|
|
3986
|
+
* @export
|
|
3987
|
+
* @class DefaultApi
|
|
3988
|
+
* @extends {BaseAPI}
|
|
3989
|
+
*/
|
|
3990
|
+
export declare class DefaultApi extends BaseAPI {
|
|
3991
|
+
/**
|
|
3992
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3993
|
+
* @summary Get agent assets
|
|
3994
|
+
* @param {string} agentId ID of the agent
|
|
3995
|
+
* @param {*} [options] Override http request option.
|
|
3996
|
+
* @throws {RequiredError}
|
|
3997
|
+
* @memberof DefaultApi
|
|
3998
|
+
*/
|
|
3999
|
+
getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
|
|
4000
|
+
}
|
|
3814
4001
|
/**
|
|
3815
4002
|
* GeneratorApi - axios parameter creator
|
|
3816
4003
|
* @export
|
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.33
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -84,8 +84,8 @@ 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.
|
|
88
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = void 0;
|
|
87
|
+
exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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.AgentCdpNetworkIdEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentModeEnum = void 0;
|
|
88
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
91
91
|
// @ts-ignore
|
|
@@ -3197,6 +3197,142 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3197
3197
|
return CreditApi;
|
|
3198
3198
|
}(base_1.BaseAPI));
|
|
3199
3199
|
exports.CreditApi = CreditApi;
|
|
3200
|
+
/**
|
|
3201
|
+
* DefaultApi - axios parameter creator
|
|
3202
|
+
* @export
|
|
3203
|
+
*/
|
|
3204
|
+
var DefaultApiAxiosParamCreator = function (configuration) {
|
|
3205
|
+
var _this = this;
|
|
3206
|
+
return {
|
|
3207
|
+
/**
|
|
3208
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3209
|
+
* @summary Get agent assets
|
|
3210
|
+
* @param {string} agentId ID of the agent
|
|
3211
|
+
* @param {*} [options] Override http request option.
|
|
3212
|
+
* @throws {RequiredError}
|
|
3213
|
+
*/
|
|
3214
|
+
getAgentAssetsAgentsAgentIdAssetsGet: function (agentId_1) {
|
|
3215
|
+
var args_1 = [];
|
|
3216
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3217
|
+
args_1[_i - 1] = arguments[_i];
|
|
3218
|
+
}
|
|
3219
|
+
return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
|
|
3220
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3221
|
+
if (options === void 0) { options = {}; }
|
|
3222
|
+
return __generator(this, function (_a) {
|
|
3223
|
+
switch (_a.label) {
|
|
3224
|
+
case 0:
|
|
3225
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
3226
|
+
(0, common_1.assertParamExists)('getAgentAssetsAgentsAgentIdAssetsGet', 'agentId', agentId);
|
|
3227
|
+
localVarPath = "/agents/{agent_id}/assets"
|
|
3228
|
+
.replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
|
|
3229
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3230
|
+
if (configuration) {
|
|
3231
|
+
baseOptions = configuration.baseOptions;
|
|
3232
|
+
}
|
|
3233
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3234
|
+
localVarHeaderParameter = {};
|
|
3235
|
+
localVarQueryParameter = {};
|
|
3236
|
+
// authentication HTTPBearer required
|
|
3237
|
+
// http bearer authentication required
|
|
3238
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
3239
|
+
case 1:
|
|
3240
|
+
// authentication HTTPBearer required
|
|
3241
|
+
// http bearer authentication required
|
|
3242
|
+
_a.sent();
|
|
3243
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3244
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3245
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3246
|
+
return [2 /*return*/, {
|
|
3247
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3248
|
+
options: localVarRequestOptions,
|
|
3249
|
+
}];
|
|
3250
|
+
}
|
|
3251
|
+
});
|
|
3252
|
+
});
|
|
3253
|
+
},
|
|
3254
|
+
};
|
|
3255
|
+
};
|
|
3256
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
3257
|
+
/**
|
|
3258
|
+
* DefaultApi - functional programming interface
|
|
3259
|
+
* @export
|
|
3260
|
+
*/
|
|
3261
|
+
var DefaultApiFp = function (configuration) {
|
|
3262
|
+
var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
3263
|
+
return {
|
|
3264
|
+
/**
|
|
3265
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3266
|
+
* @summary Get agent assets
|
|
3267
|
+
* @param {string} agentId ID of the agent
|
|
3268
|
+
* @param {*} [options] Override http request option.
|
|
3269
|
+
* @throws {RequiredError}
|
|
3270
|
+
*/
|
|
3271
|
+
getAgentAssetsAgentsAgentIdAssetsGet: function (agentId, options) {
|
|
3272
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3273
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3274
|
+
var _a, _b, _c;
|
|
3275
|
+
return __generator(this, function (_d) {
|
|
3276
|
+
switch (_d.label) {
|
|
3277
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options)];
|
|
3278
|
+
case 1:
|
|
3279
|
+
localVarAxiosArgs = _d.sent();
|
|
3280
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3281
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getAgentAssetsAgentsAgentIdAssetsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3282
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3283
|
+
}
|
|
3284
|
+
});
|
|
3285
|
+
});
|
|
3286
|
+
},
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
3290
|
+
/**
|
|
3291
|
+
* DefaultApi - factory interface
|
|
3292
|
+
* @export
|
|
3293
|
+
*/
|
|
3294
|
+
var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
3295
|
+
var localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
3296
|
+
return {
|
|
3297
|
+
/**
|
|
3298
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3299
|
+
* @summary Get agent assets
|
|
3300
|
+
* @param {string} agentId ID of the agent
|
|
3301
|
+
* @param {*} [options] Override http request option.
|
|
3302
|
+
* @throws {RequiredError}
|
|
3303
|
+
*/
|
|
3304
|
+
getAgentAssetsAgentsAgentIdAssetsGet: function (agentId, options) {
|
|
3305
|
+
return localVarFp.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then(function (request) { return request(axios, basePath); });
|
|
3306
|
+
},
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3309
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
3310
|
+
/**
|
|
3311
|
+
* DefaultApi - object-oriented interface
|
|
3312
|
+
* @export
|
|
3313
|
+
* @class DefaultApi
|
|
3314
|
+
* @extends {BaseAPI}
|
|
3315
|
+
*/
|
|
3316
|
+
var DefaultApi = /** @class */ (function (_super) {
|
|
3317
|
+
__extends(DefaultApi, _super);
|
|
3318
|
+
function DefaultApi() {
|
|
3319
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3320
|
+
}
|
|
3321
|
+
/**
|
|
3322
|
+
* Get the assets and balances for an agent\'s wallet
|
|
3323
|
+
* @summary Get agent assets
|
|
3324
|
+
* @param {string} agentId ID of the agent
|
|
3325
|
+
* @param {*} [options] Override http request option.
|
|
3326
|
+
* @throws {RequiredError}
|
|
3327
|
+
* @memberof DefaultApi
|
|
3328
|
+
*/
|
|
3329
|
+
DefaultApi.prototype.getAgentAssetsAgentsAgentIdAssetsGet = function (agentId, options) {
|
|
3330
|
+
var _this = this;
|
|
3331
|
+
return (0, exports.DefaultApiFp)(this.configuration).getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3332
|
+
};
|
|
3333
|
+
return DefaultApi;
|
|
3334
|
+
}(base_1.BaseAPI));
|
|
3335
|
+
exports.DefaultApi = DefaultApi;
|
|
3200
3336
|
/**
|
|
3201
3337
|
* GeneratorApi - axios parameter creator
|
|
3202
3338
|
* @export
|
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.33
|
|
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.33
|
|
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.33
|
|
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.33
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# AgentAssetsResponse
|
|
2
|
+
|
|
3
|
+
Response model for agent assets.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**agent_id** | **string** | ID of the agent | [default to undefined]
|
|
10
|
+
**network_id** | **string** | | [default to undefined]
|
|
11
|
+
**wallet_address** | **string** | | [default to undefined]
|
|
12
|
+
**ticker** | **string** | | [default to undefined]
|
|
13
|
+
**token_address** | **string** | | [default to undefined]
|
|
14
|
+
**token_pool** | **string** | | [default to undefined]
|
|
15
|
+
**tvl** | **string** | Total value locked, set to 0 for this version | [optional] [default to '0']
|
|
16
|
+
**assets** | [**Array<Asset>**](Asset.md) | List of assets with symbol and balance | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { AgentAssetsResponse } from '@crestal/nation-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: AgentAssetsResponse = {
|
|
24
|
+
agent_id,
|
|
25
|
+
network_id,
|
|
26
|
+
wallet_address,
|
|
27
|
+
ticker,
|
|
28
|
+
token_address,
|
|
29
|
+
token_pool,
|
|
30
|
+
tvl,
|
|
31
|
+
assets,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Asset.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Asset
|
|
2
|
+
|
|
3
|
+
Model for individual asset with symbol and balance.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**symbol** | **string** | Asset symbol (e.g., ETH, USDC, NATION) | [default to undefined]
|
|
10
|
+
**balance** | **string** | Asset balance as decimal | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Asset } from '@crestal/nation-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: Asset = {
|
|
18
|
+
symbol,
|
|
19
|
+
balance,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/CreditEvent.md
CHANGED
|
@@ -29,6 +29,9 @@ Name | Type | Description | Notes
|
|
|
29
29
|
**base_original_amount** | **string** | | [optional] [default to undefined]
|
|
30
30
|
**base_llm_amount** | **string** | | [optional] [default to undefined]
|
|
31
31
|
**base_skill_amount** | **string** | | [optional] [default to undefined]
|
|
32
|
+
**base_free_amount** | **string** | | [optional] [default to undefined]
|
|
33
|
+
**base_reward_amount** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**base_permanent_amount** | **string** | | [optional] [default to undefined]
|
|
32
35
|
**fee_platform_amount** | **string** | | [optional] [default to undefined]
|
|
33
36
|
**fee_platform_free_amount** | **string** | | [optional] [default to undefined]
|
|
34
37
|
**fee_platform_reward_amount** | **string** | | [optional] [default to undefined]
|
|
@@ -78,6 +81,9 @@ const instance: CreditEvent = {
|
|
|
78
81
|
base_original_amount,
|
|
79
82
|
base_llm_amount,
|
|
80
83
|
base_skill_amount,
|
|
84
|
+
base_free_amount,
|
|
85
|
+
base_reward_amount,
|
|
86
|
+
base_permanent_amount,
|
|
81
87
|
fee_platform_amount,
|
|
82
88
|
fee_platform_free_amount,
|
|
83
89
|
fee_platform_reward_amount,
|
|
@@ -29,6 +29,9 @@ Name | Type | Description | Notes
|
|
|
29
29
|
**base_original_amount** | **string** | | [optional] [default to undefined]
|
|
30
30
|
**base_llm_amount** | **string** | | [optional] [default to undefined]
|
|
31
31
|
**base_skill_amount** | **string** | | [optional] [default to undefined]
|
|
32
|
+
**base_free_amount** | **string** | | [optional] [default to undefined]
|
|
33
|
+
**base_reward_amount** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**base_permanent_amount** | **string** | | [optional] [default to undefined]
|
|
32
35
|
**fee_platform_amount** | **string** | | [optional] [default to undefined]
|
|
33
36
|
**fee_platform_free_amount** | **string** | | [optional] [default to undefined]
|
|
34
37
|
**fee_platform_reward_amount** | **string** | | [optional] [default to undefined]
|
|
@@ -79,6 +82,9 @@ const instance: CreditEventWithAgent = {
|
|
|
79
82
|
base_original_amount,
|
|
80
83
|
base_llm_amount,
|
|
81
84
|
base_skill_amount,
|
|
85
|
+
base_free_amount,
|
|
86
|
+
base_reward_amount,
|
|
87
|
+
base_permanent_amount,
|
|
82
88
|
fee_platform_amount,
|
|
83
89
|
fee_platform_free_amount,
|
|
84
90
|
fee_platform_reward_amount,
|
|
@@ -12,6 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**tx_type** | [**TransactionType**](TransactionType.md) | Type of the transaction | [default to undefined]
|
|
13
13
|
**credit_debit** | [**CreditDebit**](CreditDebit.md) | Whether this is a credit or debit transaction | [default to undefined]
|
|
14
14
|
**change_amount** | **string** | Amount of credits changed | [optional] [default to '0']
|
|
15
|
+
**free_amount** | **string** | Amount of free credits changed | [optional] [default to '0']
|
|
16
|
+
**reward_amount** | **string** | Amount of reward credits changed | [optional] [default to '0']
|
|
17
|
+
**permanent_amount** | **string** | Amount of permanent credits changed | [optional] [default to '0']
|
|
15
18
|
**credit_type** | [**CreditType**](CreditType.md) | Type of credits involved | [default to undefined]
|
|
16
19
|
**created_at** | **string** | Timestamp when this transaction was created | [default to undefined]
|
|
17
20
|
**event** | [**CreditEvent**](CreditEvent.md) | | [optional] [default to undefined]
|
|
@@ -28,6 +31,9 @@ const instance: CreditTransactionResp = {
|
|
|
28
31
|
tx_type,
|
|
29
32
|
credit_debit,
|
|
30
33
|
change_amount,
|
|
34
|
+
free_amount,
|
|
35
|
+
reward_amount,
|
|
36
|
+
permanent_amount,
|
|
31
37
|
credit_type,
|
|
32
38
|
created_at,
|
|
33
39
|
event,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAgentAssetsAgentsAgentIdAssetsGet**](#getagentassetsagentsagentidassetsget) | **GET** /agents/{agent_id}/assets | Get agent assets|
|
|
8
|
+
|
|
9
|
+
# **getAgentAssetsAgentsAgentIdAssetsGet**
|
|
10
|
+
> AgentAssetsResponse getAgentAssetsAgentsAgentIdAssetsGet()
|
|
11
|
+
|
|
12
|
+
Get the assets and balances for an agent\'s wallet
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
DefaultApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@crestal/nation-sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new DefaultApi(configuration);
|
|
24
|
+
|
|
25
|
+
let agentId: string; //ID of the agent (default to undefined)
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getAgentAssetsAgentsAgentIdAssetsGet(
|
|
28
|
+
agentId
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **agentId** | [**string**] | ID of the agent | defaults to undefined|
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**AgentAssetsResponse**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: Not defined
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | Successful Response | - |
|
|
57
|
+
|**422** | Validation Error | - |
|
|
58
|
+
|
|
59
|
+
[[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)
|
|
60
|
+
|
|
@@ -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-08-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-08-28T10:10:22.919+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-28T10:10:22.919+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED