@crestal/nation-sdk 0.2.32 → 0.2.34

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.
@@ -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
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.2.32
1
+ ## @crestal/nation-sdk@0.2.34
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.32 --save
39
+ npm install @crestal/nation-sdk@0.2.34 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -55,6 +55,7 @@ Class | Method | HTTP request | Description
55
55
  *AgentApi* | [**exportAgent**](docs/AgentApi.md#exportagent) | **GET** /agents/{agent_id}/export | Export Agent
56
56
  *AgentApi* | [**getAgent**](docs/AgentApi.md#getagent) | **GET** /agents/{agent_id} | Get Agent
57
57
  *AgentApi* | [**getAgentApiKey**](docs/AgentApi.md#getagentapikey) | **GET** /agents/{agent_id}/api-key | Get Agent API Key
58
+ *AgentApi* | [**getAgentAssets**](docs/AgentApi.md#getagentassets) | **GET** /agents/{agent_id}/assets | Get agent assets
58
59
  *AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
59
60
  *AgentApi* | [**getAgents**](docs/AgentApi.md#getagents) | **GET** /agents | Get Agents
60
61
  *AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
@@ -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.32
7
+ * The version of the OpenAPI document: 0.2.34
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 endpoints.
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}
@@ -2935,6 +3063,44 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2935
3063
 
2936
3064
 
2937
3065
 
3066
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3068
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3069
+
3070
+ return {
3071
+ url: toPathString(localVarUrlObj),
3072
+ options: localVarRequestOptions,
3073
+ };
3074
+ },
3075
+ /**
3076
+ * Get the assets and balances for an agent\'s wallet
3077
+ * @summary Get agent assets
3078
+ * @param {string} agentId ID of the agent
3079
+ * @param {*} [options] Override http request option.
3080
+ * @throws {RequiredError}
3081
+ */
3082
+ getAgentAssets: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3083
+ // verify required parameter 'agentId' is not null or undefined
3084
+ assertParamExists('getAgentAssets', 'agentId', agentId)
3085
+ const localVarPath = `/agents/{agent_id}/assets`
3086
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
3087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3089
+ let baseOptions;
3090
+ if (configuration) {
3091
+ baseOptions = configuration.baseOptions;
3092
+ }
3093
+
3094
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3095
+ const localVarHeaderParameter = {} as any;
3096
+ const localVarQueryParameter = {} as any;
3097
+
3098
+ // authentication HTTPBearer required
3099
+ // http bearer authentication required
3100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3101
+
3102
+
3103
+
2938
3104
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2939
3105
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2940
3106
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3384,6 +3550,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
3384
3550
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentApiKey']?.[localVarOperationServerIndex]?.url;
3385
3551
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3386
3552
  },
3553
+ /**
3554
+ * Get the assets and balances for an agent\'s wallet
3555
+ * @summary Get agent assets
3556
+ * @param {string} agentId ID of the agent
3557
+ * @param {*} [options] Override http request option.
3558
+ * @throws {RequiredError}
3559
+ */
3560
+ async getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>> {
3561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentAssets(agentId, options);
3562
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3563
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentAssets']?.[localVarOperationServerIndex]?.url;
3564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3565
+ },
3387
3566
  /**
3388
3567
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3389
3568
  * @summary Get Agent Statistics
@@ -3559,6 +3738,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3559
3738
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse> {
3560
3739
  return localVarFp.getAgentApiKey(agentId, options).then((request) => request(axios, basePath));
3561
3740
  },
3741
+ /**
3742
+ * Get the assets and balances for an agent\'s wallet
3743
+ * @summary Get agent assets
3744
+ * @param {string} agentId ID of the agent
3745
+ * @param {*} [options] Override http request option.
3746
+ * @throws {RequiredError}
3747
+ */
3748
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse> {
3749
+ return localVarFp.getAgentAssets(agentId, options).then((request) => request(axios, basePath));
3750
+ },
3562
3751
  /**
3563
3752
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3564
3753
  * @summary Get Agent Statistics
@@ -3715,6 +3904,18 @@ export class AgentApi extends BaseAPI {
3715
3904
  return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
3716
3905
  }
3717
3906
 
3907
+ /**
3908
+ * Get the assets and balances for an agent\'s wallet
3909
+ * @summary Get agent assets
3910
+ * @param {string} agentId ID of the agent
3911
+ * @param {*} [options] Override http request option.
3912
+ * @throws {RequiredError}
3913
+ * @memberof AgentApi
3914
+ */
3915
+ public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
3916
+ return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
3917
+ }
3918
+
3718
3919
  /**
3719
3920
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3720
3921
  * @summary Get Agent Statistics
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.2.32
7
+ * The version of the OpenAPI document: 0.2.34
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.2.32
7
+ * The version of the OpenAPI document: 0.2.34
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.2.32
7
+ * The version of the OpenAPI document: 0.2.34
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.2.32
5
+ * The version of the OpenAPI document: 0.2.34
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 endpoints.
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}
@@ -2738,6 +2866,14 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
2738
2866
  * @throws {RequiredError}
2739
2867
  */
2740
2868
  getAgentApiKey: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2869
+ /**
2870
+ * Get the assets and balances for an agent\'s wallet
2871
+ * @summary Get agent assets
2872
+ * @param {string} agentId ID of the agent
2873
+ * @param {*} [options] Override http request option.
2874
+ * @throws {RequiredError}
2875
+ */
2876
+ getAgentAssets: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2741
2877
  /**
2742
2878
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2743
2879
  * @summary Get Agent Statistics
@@ -2856,6 +2992,14 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2856
2992
  * @throws {RequiredError}
2857
2993
  */
2858
2994
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentApiKeyResponse>>;
2995
+ /**
2996
+ * Get the assets and balances for an agent\'s wallet
2997
+ * @summary Get agent assets
2998
+ * @param {string} agentId ID of the agent
2999
+ * @param {*} [options] Override http request option.
3000
+ * @throws {RequiredError}
3001
+ */
3002
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>>;
2859
3003
  /**
2860
3004
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2861
3005
  * @summary Get Agent Statistics
@@ -2974,6 +3118,14 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
2974
3118
  * @throws {RequiredError}
2975
3119
  */
2976
3120
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse>;
3121
+ /**
3122
+ * Get the assets and balances for an agent\'s wallet
3123
+ * @summary Get agent assets
3124
+ * @param {string} agentId ID of the agent
3125
+ * @param {*} [options] Override http request option.
3126
+ * @throws {RequiredError}
3127
+ */
3128
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse>;
2977
3129
  /**
2978
3130
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2979
3131
  * @summary Get Agent Statistics
@@ -3098,6 +3250,15 @@ export declare class AgentApi extends BaseAPI {
3098
3250
  * @memberof AgentApi
3099
3251
  */
3100
3252
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
3253
+ /**
3254
+ * Get the assets and balances for an agent\'s wallet
3255
+ * @summary Get agent assets
3256
+ * @param {string} agentId ID of the agent
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ * @memberof AgentApi
3260
+ */
3261
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
3101
3262
  /**
3102
3263
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3103
3264
  * @summary Get Agent Statistics
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.32
8
+ * The version of the OpenAPI document: 0.2.34
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -512,6 +512,53 @@ var AgentApiAxiosParamCreator = function (configuration) {
512
512
  });
513
513
  });
514
514
  },
515
+ /**
516
+ * Get the assets and balances for an agent\'s wallet
517
+ * @summary Get agent assets
518
+ * @param {string} agentId ID of the agent
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ getAgentAssets: function (agentId_1) {
523
+ var args_1 = [];
524
+ for (var _i = 1; _i < arguments.length; _i++) {
525
+ args_1[_i - 1] = arguments[_i];
526
+ }
527
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
528
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
529
+ if (options === void 0) { options = {}; }
530
+ return __generator(this, function (_a) {
531
+ switch (_a.label) {
532
+ case 0:
533
+ // verify required parameter 'agentId' is not null or undefined
534
+ (0, common_1.assertParamExists)('getAgentAssets', 'agentId', agentId);
535
+ localVarPath = "/agents/{agent_id}/assets"
536
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
537
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
538
+ if (configuration) {
539
+ baseOptions = configuration.baseOptions;
540
+ }
541
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
542
+ localVarHeaderParameter = {};
543
+ localVarQueryParameter = {};
544
+ // authentication HTTPBearer required
545
+ // http bearer authentication required
546
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
547
+ case 1:
548
+ // authentication HTTPBearer required
549
+ // http bearer authentication required
550
+ _a.sent();
551
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
552
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
553
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
554
+ return [2 /*return*/, {
555
+ url: (0, common_1.toPathString)(localVarUrlObj),
556
+ options: localVarRequestOptions,
557
+ }];
558
+ }
559
+ });
560
+ });
561
+ },
515
562
  /**
516
563
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
517
564
  * @summary Get Agent Statistics
@@ -1050,6 +1097,29 @@ var AgentApiFp = function (configuration) {
1050
1097
  });
1051
1098
  });
1052
1099
  },
1100
+ /**
1101
+ * Get the assets and balances for an agent\'s wallet
1102
+ * @summary Get agent assets
1103
+ * @param {string} agentId ID of the agent
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ getAgentAssets: function (agentId, options) {
1108
+ return __awaiter(this, void 0, void 0, function () {
1109
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1110
+ var _a, _b, _c;
1111
+ return __generator(this, function (_d) {
1112
+ switch (_d.label) {
1113
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentAssets(agentId, options)];
1114
+ case 1:
1115
+ localVarAxiosArgs = _d.sent();
1116
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1117
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentAssets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1118
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1119
+ }
1120
+ });
1121
+ });
1122
+ },
1053
1123
  /**
1054
1124
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1055
1125
  * @summary Get Agent Statistics
@@ -1315,6 +1385,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1315
1385
  getAgentApiKey: function (agentId, options) {
1316
1386
  return localVarFp.getAgentApiKey(agentId, options).then(function (request) { return request(axios, basePath); });
1317
1387
  },
1388
+ /**
1389
+ * Get the assets and balances for an agent\'s wallet
1390
+ * @summary Get agent assets
1391
+ * @param {string} agentId ID of the agent
1392
+ * @param {*} [options] Override http request option.
1393
+ * @throws {RequiredError}
1394
+ */
1395
+ getAgentAssets: function (agentId, options) {
1396
+ return localVarFp.getAgentAssets(agentId, options).then(function (request) { return request(axios, basePath); });
1397
+ },
1318
1398
  /**
1319
1399
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1320
1400
  * @summary Get Agent Statistics
@@ -1475,6 +1555,18 @@ var AgentApi = /** @class */ (function (_super) {
1475
1555
  var _this = this;
1476
1556
  return (0, exports.AgentApiFp)(this.configuration).getAgentApiKey(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1477
1557
  };
1558
+ /**
1559
+ * Get the assets and balances for an agent\'s wallet
1560
+ * @summary Get agent assets
1561
+ * @param {string} agentId ID of the agent
1562
+ * @param {*} [options] Override http request option.
1563
+ * @throws {RequiredError}
1564
+ * @memberof AgentApi
1565
+ */
1566
+ AgentApi.prototype.getAgentAssets = function (agentId, options) {
1567
+ var _this = this;
1568
+ return (0, exports.AgentApiFp)(this.configuration).getAgentAssets(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1569
+ };
1478
1570
  /**
1479
1571
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1480
1572
  * @summary Get Agent Statistics
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.2.32
5
+ * The version of the OpenAPI document: 0.2.34
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.2.32
8
+ * The version of the OpenAPI document: 0.2.34
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.2.32
5
+ * The version of the OpenAPI document: 0.2.34
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.2.32
8
+ * The version of the OpenAPI document: 0.2.34
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.2.32
5
+ * The version of the OpenAPI document: 0.2.34
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.2.32
8
+ * The version of the OpenAPI document: 0.2.34
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.2.32
5
+ * The version of the OpenAPI document: 0.2.34
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.2.32
8
+ * The version of the OpenAPI document: 0.2.34
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**exportAgent**](#exportagent) | **GET** /agents/{agent_id}/export | Export Agent|
9
9
  |[**getAgent**](#getagent) | **GET** /agents/{agent_id} | Get Agent|
10
10
  |[**getAgentApiKey**](#getagentapikey) | **GET** /agents/{agent_id}/api-key | Get Agent API Key|
11
+ |[**getAgentAssets**](#getagentassets) | **GET** /agents/{agent_id}/assets | Get agent assets|
11
12
  |[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
12
13
  |[**getAgents**](#getagents) | **GET** /agents | Get Agents|
13
14
  |[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
@@ -233,6 +234,58 @@ const { status, data } = await apiInstance.getAgentApiKey(
233
234
 
234
235
  [[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)
235
236
 
237
+ # **getAgentAssets**
238
+ > AgentAssetsResponse getAgentAssets()
239
+
240
+ Get the assets and balances for an agent\'s wallet
241
+
242
+ ### Example
243
+
244
+ ```typescript
245
+ import {
246
+ AgentApi,
247
+ Configuration
248
+ } from '@crestal/nation-sdk';
249
+
250
+ const configuration = new Configuration();
251
+ const apiInstance = new AgentApi(configuration);
252
+
253
+ let agentId: string; //ID of the agent (default to undefined)
254
+
255
+ const { status, data } = await apiInstance.getAgentAssets(
256
+ agentId
257
+ );
258
+ ```
259
+
260
+ ### Parameters
261
+
262
+ |Name | Type | Description | Notes|
263
+ |------------- | ------------- | ------------- | -------------|
264
+ | **agentId** | [**string**] | ID of the agent | defaults to undefined|
265
+
266
+
267
+ ### Return type
268
+
269
+ **AgentAssetsResponse**
270
+
271
+ ### Authorization
272
+
273
+ [HTTPBearer](../README.md#HTTPBearer)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: Not defined
278
+ - **Accept**: application/json
279
+
280
+
281
+ ### HTTP response details
282
+ | Status code | Description | Response headers |
283
+ |-------------|-------------|------------------|
284
+ |**200** | Successful Response | - |
285
+ |**422** | Validation Error | - |
286
+
287
+ [[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)
288
+
236
289
  # **getAgentStatistics**
237
290
  > AgentStatisticsResponse getAgentStatistics()
238
291
 
@@ -1,6 +1,6 @@
1
1
  # AgentApiKeyResponse
2
2
 
3
- Response model for agent API key endpoints.
3
+ Response model for agent API key generation.
4
4
 
5
5
  ## Properties
6
6
 
@@ -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&lt;Asset&gt;**](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)
@@ -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,
@@ -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-22T07:10:29.789+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-22T07:10:29.789+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-08-28T10:16:52.373+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-28T10:16:52.373+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
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.2.32
7
+ * The version of the OpenAPI document: 0.2.34
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.2.32",
3
+ "version": "0.2.34",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {