@crestal/nation-sdk 0.7.23 → 0.7.25

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.
@@ -22,7 +22,7 @@ docs/AgentPublicInfo.md
22
22
  docs/AgentResponse.md
23
23
  docs/AgentSortOption.md
24
24
  docs/AgentState.md
25
- docs/AgentStatisticsResponse.md
25
+ docs/AgentStatistics.md
26
26
  docs/AgentUpdate.md
27
27
  docs/AgentUserInput.md
28
28
  docs/Asset.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.7.23
1
+ ## @crestal/nation-sdk@0.7.25
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.7.23 --save
39
+ npm install @crestal/nation-sdk@0.7.25 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -130,7 +130,7 @@ Class | Method | HTTP request | Description
130
130
  - [AgentResponse](docs/AgentResponse.md)
131
131
  - [AgentSortOption](docs/AgentSortOption.md)
132
132
  - [AgentState](docs/AgentState.md)
133
- - [AgentStatisticsResponse](docs/AgentStatisticsResponse.md)
133
+ - [AgentStatistics](docs/AgentStatistics.md)
134
134
  - [AgentUpdate](docs/AgentUpdate.md)
135
135
  - [AgentUserInput](docs/AgentUserInput.md)
136
136
  - [Asset](docs/Asset.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.7.23
7
+ * The version of the OpenAPI document: 0.7.25
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1395,9 +1395,11 @@ export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShort
1395
1395
  */
1396
1396
 
1397
1397
  export const AgentSortOption = {
1398
- CreatedAtDesc: 'created_at desc',
1399
- CreatedAtAsc: 'created_at asc',
1400
- UpdatedAtDesc: 'updated_at desc'
1398
+ CreatedAtDesc: 'created_at_desc',
1399
+ CreatedAtAsc: 'created_at_asc',
1400
+ UpdatedAtDesc: 'updated_at_desc',
1401
+ AssetsDesc: 'assets_desc',
1402
+ RevenueDesc: 'revenue_desc'
1401
1403
  } as const;
1402
1404
 
1403
1405
  export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
@@ -1419,99 +1421,99 @@ export type AgentState = typeof AgentState[keyof typeof AgentState];
1419
1421
 
1420
1422
 
1421
1423
  /**
1422
- * Response model for agent statistics.
1424
+ * Aggregated statistics for an agent credit account.
1423
1425
  * @export
1424
- * @interface AgentStatisticsResponse
1426
+ * @interface AgentStatistics
1425
1427
  */
1426
- export interface AgentStatisticsResponse {
1428
+ export interface AgentStatistics {
1427
1429
  /**
1428
1430
  * ID of the agent
1429
1431
  * @type {string}
1430
- * @memberof AgentStatisticsResponse
1432
+ * @memberof AgentStatistics
1431
1433
  */
1432
1434
  'agent_id': string;
1433
1435
  /**
1434
- * ID of the agent\'s credit account
1436
+ * ID of the associated credit account
1435
1437
  * @type {string}
1436
- * @memberof AgentStatisticsResponse
1438
+ * @memberof AgentStatistics
1437
1439
  */
1438
1440
  'account_id': string;
1439
1441
  /**
1440
- * Total balance of the agent\'s account
1442
+ * Current credit account balance
1441
1443
  * @type {string}
1442
- * @memberof AgentStatisticsResponse
1444
+ * @memberof AgentStatistics
1443
1445
  */
1444
1446
  'balance': string;
1445
1447
  /**
1446
- * Total income from all credit events
1448
+ * Total income across all events
1447
1449
  * @type {string}
1448
- * @memberof AgentStatisticsResponse
1450
+ * @memberof AgentStatistics
1449
1451
  */
1450
1452
  'total_income': string;
1451
1453
  /**
1452
- * Net income from all credit events
1454
+ * Net income from fee allocations
1453
1455
  * @type {string}
1454
- * @memberof AgentStatisticsResponse
1456
+ * @memberof AgentStatistics
1455
1457
  */
1456
1458
  'net_income': string;
1457
1459
  /**
1458
- * Permanent income from all credit events
1460
+ * Total permanent income across all events
1459
1461
  * @type {string}
1460
- * @memberof AgentStatisticsResponse
1462
+ * @memberof AgentStatistics
1461
1463
  */
1462
1464
  'permanent_income': string;
1463
1465
  /**
1464
- * Permanent profit from all credit events
1466
+ * Permanent profit allocated to the agent
1465
1467
  * @type {string}
1466
- * @memberof AgentStatisticsResponse
1468
+ * @memberof AgentStatistics
1467
1469
  */
1468
1470
  'permanent_profit': string;
1469
1471
  /**
1470
- * Income from last 24 hours
1472
+ * Income generated during the last 24 hours
1471
1473
  * @type {string}
1472
- * @memberof AgentStatisticsResponse
1474
+ * @memberof AgentStatistics
1473
1475
  */
1474
1476
  'last_24h_income': string;
1475
1477
  /**
1476
- * Permanent income from last 24 hours
1478
+ * Permanent income generated during the last 24 hours
1477
1479
  * @type {string}
1478
- * @memberof AgentStatisticsResponse
1480
+ * @memberof AgentStatistics
1479
1481
  */
1480
1482
  'last_24h_permanent_income': string;
1481
1483
  /**
1482
1484
  * Average action cost
1483
1485
  * @type {string}
1484
- * @memberof AgentStatisticsResponse
1486
+ * @memberof AgentStatistics
1485
1487
  */
1486
1488
  'avg_action_cost': string;
1487
1489
  /**
1488
1490
  * Minimum action cost
1489
1491
  * @type {string}
1490
- * @memberof AgentStatisticsResponse
1492
+ * @memberof AgentStatistics
1491
1493
  */
1492
1494
  'min_action_cost': string;
1493
1495
  /**
1494
1496
  * Maximum action cost
1495
1497
  * @type {string}
1496
- * @memberof AgentStatisticsResponse
1498
+ * @memberof AgentStatistics
1497
1499
  */
1498
1500
  'max_action_cost': string;
1499
1501
  /**
1500
- * Low action cost
1502
+ * 20th percentile action cost
1501
1503
  * @type {string}
1502
- * @memberof AgentStatisticsResponse
1504
+ * @memberof AgentStatistics
1503
1505
  */
1504
1506
  'low_action_cost': string;
1505
1507
  /**
1506
- * Medium action cost
1508
+ * 60th percentile action cost
1507
1509
  * @type {string}
1508
- * @memberof AgentStatisticsResponse
1510
+ * @memberof AgentStatistics
1509
1511
  */
1510
1512
  'medium_action_cost': string;
1511
1513
  /**
1512
- * High action cost
1514
+ * 80th percentile action cost
1513
1515
  * @type {string}
1514
- * @memberof AgentStatisticsResponse
1516
+ * @memberof AgentStatistics
1515
1517
  */
1516
1518
  'high_action_cost': string;
1517
1519
  }
@@ -3945,16 +3947,17 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3945
3947
  };
3946
3948
  },
3947
3949
  /**
3948
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3950
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3949
3951
  * @summary Get Agents
3950
3952
  * @param {AgentSortOption} [sort] Sort order for agents list
3951
3953
  * @param {string | null} [cursor] Cursor for pagination
3952
3954
  * @param {number} [limit] Maximum number of agents to return
3953
3955
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3956
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3954
3957
  * @param {*} [options] Override http request option.
3955
3958
  * @throws {RequiredError}
3956
3959
  */
3957
- getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3960
+ getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3958
3961
  const localVarPath = `/agents`;
3959
3962
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3960
3963
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3983,6 +3986,10 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3983
3986
  localVarQueryParameter['state'] = state;
3984
3987
  }
3985
3988
 
3989
+ if (tag !== undefined) {
3990
+ localVarQueryParameter['tag'] = tag;
3991
+ }
3992
+
3986
3993
 
3987
3994
 
3988
3995
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -4451,24 +4458,25 @@ export const AgentApiFp = function(configuration?: Configuration) {
4451
4458
  * @param {*} [options] Override http request option.
4452
4459
  * @throws {RequiredError}
4453
4460
  */
4454
- async getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatisticsResponse>> {
4461
+ async getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatistics>> {
4455
4462
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentStatistics(aid, options);
4456
4463
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4457
4464
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentStatistics']?.[localVarOperationServerIndex]?.url;
4458
4465
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4459
4466
  },
4460
4467
  /**
4461
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4468
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4462
4469
  * @summary Get Agents
4463
4470
  * @param {AgentSortOption} [sort] Sort order for agents list
4464
4471
  * @param {string | null} [cursor] Cursor for pagination
4465
4472
  * @param {number} [limit] Maximum number of agents to return
4466
4473
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4474
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4467
4475
  * @param {*} [options] Override http request option.
4468
4476
  * @throws {RequiredError}
4469
4477
  */
4470
- async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
4471
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, options);
4478
+ async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
4479
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, options);
4472
4480
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4473
4481
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
4474
4482
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4663,21 +4671,22 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
4663
4671
  * @param {*} [options] Override http request option.
4664
4672
  * @throws {RequiredError}
4665
4673
  */
4666
- getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse> {
4674
+ getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatistics> {
4667
4675
  return localVarFp.getAgentStatistics(aid, options).then((request) => request(axios, basePath));
4668
4676
  },
4669
4677
  /**
4670
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4678
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4671
4679
  * @summary Get Agents
4672
4680
  * @param {AgentSortOption} [sort] Sort order for agents list
4673
4681
  * @param {string | null} [cursor] Cursor for pagination
4674
4682
  * @param {number} [limit] Maximum number of agents to return
4675
4683
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4684
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4676
4685
  * @param {*} [options] Override http request option.
4677
4686
  * @throws {RequiredError}
4678
4687
  */
4679
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
4680
- return localVarFp.getAgents(sort, cursor, limit, state, options).then((request) => request(axios, basePath));
4688
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
4689
+ return localVarFp.getAgents(sort, cursor, limit, state, tag, options).then((request) => request(axios, basePath));
4681
4690
  },
4682
4691
  /**
4683
4692
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
@@ -4858,18 +4867,19 @@ export class AgentApi extends BaseAPI {
4858
4867
  }
4859
4868
 
4860
4869
  /**
4861
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4870
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4862
4871
  * @summary Get Agents
4863
4872
  * @param {AgentSortOption} [sort] Sort order for agents list
4864
4873
  * @param {string | null} [cursor] Cursor for pagination
4865
4874
  * @param {number} [limit] Maximum number of agents to return
4866
4875
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4876
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4867
4877
  * @param {*} [options] Override http request option.
4868
4878
  * @throws {RequiredError}
4869
4879
  * @memberof AgentApi
4870
4880
  */
4871
- public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) {
4872
- return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, options).then((request) => request(this.axios, this.basePath));
4881
+ public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig) {
4882
+ return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, tag, options).then((request) => request(this.axios, this.basePath));
4873
4883
  }
4874
4884
 
4875
4885
  /**
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.7.23
7
+ * The version of the OpenAPI document: 0.7.25
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.7.23
7
+ * The version of the OpenAPI document: 0.7.25
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.7.23
7
+ * The version of the OpenAPI document: 0.7.25
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.7.23
5
+ * The version of the OpenAPI document: 0.7.25
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1366,9 +1366,11 @@ export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShort
1366
1366
  * @enum {string}
1367
1367
  */
1368
1368
  export declare const AgentSortOption: {
1369
- readonly CreatedAtDesc: "created_at desc";
1370
- readonly CreatedAtAsc: "created_at asc";
1371
- readonly UpdatedAtDesc: "updated_at desc";
1369
+ readonly CreatedAtDesc: "created_at_desc";
1370
+ readonly CreatedAtAsc: "created_at_asc";
1371
+ readonly UpdatedAtDesc: "updated_at_desc";
1372
+ readonly AssetsDesc: "assets_desc";
1373
+ readonly RevenueDesc: "revenue_desc";
1372
1374
  };
1373
1375
  export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
1374
1376
  /**
@@ -1383,99 +1385,99 @@ export declare const AgentState: {
1383
1385
  };
1384
1386
  export type AgentState = typeof AgentState[keyof typeof AgentState];
1385
1387
  /**
1386
- * Response model for agent statistics.
1388
+ * Aggregated statistics for an agent credit account.
1387
1389
  * @export
1388
- * @interface AgentStatisticsResponse
1390
+ * @interface AgentStatistics
1389
1391
  */
1390
- export interface AgentStatisticsResponse {
1392
+ export interface AgentStatistics {
1391
1393
  /**
1392
1394
  * ID of the agent
1393
1395
  * @type {string}
1394
- * @memberof AgentStatisticsResponse
1396
+ * @memberof AgentStatistics
1395
1397
  */
1396
1398
  'agent_id': string;
1397
1399
  /**
1398
- * ID of the agent\'s credit account
1400
+ * ID of the associated credit account
1399
1401
  * @type {string}
1400
- * @memberof AgentStatisticsResponse
1402
+ * @memberof AgentStatistics
1401
1403
  */
1402
1404
  'account_id': string;
1403
1405
  /**
1404
- * Total balance of the agent\'s account
1406
+ * Current credit account balance
1405
1407
  * @type {string}
1406
- * @memberof AgentStatisticsResponse
1408
+ * @memberof AgentStatistics
1407
1409
  */
1408
1410
  'balance': string;
1409
1411
  /**
1410
- * Total income from all credit events
1412
+ * Total income across all events
1411
1413
  * @type {string}
1412
- * @memberof AgentStatisticsResponse
1414
+ * @memberof AgentStatistics
1413
1415
  */
1414
1416
  'total_income': string;
1415
1417
  /**
1416
- * Net income from all credit events
1418
+ * Net income from fee allocations
1417
1419
  * @type {string}
1418
- * @memberof AgentStatisticsResponse
1420
+ * @memberof AgentStatistics
1419
1421
  */
1420
1422
  'net_income': string;
1421
1423
  /**
1422
- * Permanent income from all credit events
1424
+ * Total permanent income across all events
1423
1425
  * @type {string}
1424
- * @memberof AgentStatisticsResponse
1426
+ * @memberof AgentStatistics
1425
1427
  */
1426
1428
  'permanent_income': string;
1427
1429
  /**
1428
- * Permanent profit from all credit events
1430
+ * Permanent profit allocated to the agent
1429
1431
  * @type {string}
1430
- * @memberof AgentStatisticsResponse
1432
+ * @memberof AgentStatistics
1431
1433
  */
1432
1434
  'permanent_profit': string;
1433
1435
  /**
1434
- * Income from last 24 hours
1436
+ * Income generated during the last 24 hours
1435
1437
  * @type {string}
1436
- * @memberof AgentStatisticsResponse
1438
+ * @memberof AgentStatistics
1437
1439
  */
1438
1440
  'last_24h_income': string;
1439
1441
  /**
1440
- * Permanent income from last 24 hours
1442
+ * Permanent income generated during the last 24 hours
1441
1443
  * @type {string}
1442
- * @memberof AgentStatisticsResponse
1444
+ * @memberof AgentStatistics
1443
1445
  */
1444
1446
  'last_24h_permanent_income': string;
1445
1447
  /**
1446
1448
  * Average action cost
1447
1449
  * @type {string}
1448
- * @memberof AgentStatisticsResponse
1450
+ * @memberof AgentStatistics
1449
1451
  */
1450
1452
  'avg_action_cost': string;
1451
1453
  /**
1452
1454
  * Minimum action cost
1453
1455
  * @type {string}
1454
- * @memberof AgentStatisticsResponse
1456
+ * @memberof AgentStatistics
1455
1457
  */
1456
1458
  'min_action_cost': string;
1457
1459
  /**
1458
1460
  * Maximum action cost
1459
1461
  * @type {string}
1460
- * @memberof AgentStatisticsResponse
1462
+ * @memberof AgentStatistics
1461
1463
  */
1462
1464
  'max_action_cost': string;
1463
1465
  /**
1464
- * Low action cost
1466
+ * 20th percentile action cost
1465
1467
  * @type {string}
1466
- * @memberof AgentStatisticsResponse
1468
+ * @memberof AgentStatistics
1467
1469
  */
1468
1470
  'low_action_cost': string;
1469
1471
  /**
1470
- * Medium action cost
1472
+ * 60th percentile action cost
1471
1473
  * @type {string}
1472
- * @memberof AgentStatisticsResponse
1474
+ * @memberof AgentStatistics
1473
1475
  */
1474
1476
  'medium_action_cost': string;
1475
1477
  /**
1476
- * High action cost
1478
+ * 80th percentile action cost
1477
1479
  * @type {string}
1478
- * @memberof AgentStatisticsResponse
1480
+ * @memberof AgentStatistics
1479
1481
  */
1480
1482
  'high_action_cost': string;
1481
1483
  }
@@ -3663,16 +3665,17 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
3663
3665
  */
3664
3666
  getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3665
3667
  /**
3666
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3668
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3667
3669
  * @summary Get Agents
3668
3670
  * @param {AgentSortOption} [sort] Sort order for agents list
3669
3671
  * @param {string | null} [cursor] Cursor for pagination
3670
3672
  * @param {number} [limit] Maximum number of agents to return
3671
3673
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3674
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3672
3675
  * @param {*} [options] Override http request option.
3673
3676
  * @throws {RequiredError}
3674
3677
  */
3675
- getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3678
+ getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3676
3679
  /**
3677
3680
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
3678
3681
  * @summary Skill History
@@ -3804,18 +3807,19 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
3804
3807
  * @param {*} [options] Override http request option.
3805
3808
  * @throws {RequiredError}
3806
3809
  */
3807
- getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatisticsResponse>>;
3810
+ getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatistics>>;
3808
3811
  /**
3809
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3812
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3810
3813
  * @summary Get Agents
3811
3814
  * @param {AgentSortOption} [sort] Sort order for agents list
3812
3815
  * @param {string | null} [cursor] Cursor for pagination
3813
3816
  * @param {number} [limit] Maximum number of agents to return
3814
3817
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3818
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3815
3819
  * @param {*} [options] Override http request option.
3816
3820
  * @throws {RequiredError}
3817
3821
  */
3818
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
3822
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
3819
3823
  /**
3820
3824
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
3821
3825
  * @summary Skill History
@@ -3947,18 +3951,19 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
3947
3951
  * @param {*} [options] Override http request option.
3948
3952
  * @throws {RequiredError}
3949
3953
  */
3950
- getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse>;
3954
+ getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatistics>;
3951
3955
  /**
3952
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3956
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3953
3957
  * @summary Get Agents
3954
3958
  * @param {AgentSortOption} [sort] Sort order for agents list
3955
3959
  * @param {string | null} [cursor] Cursor for pagination
3956
3960
  * @param {number} [limit] Maximum number of agents to return
3957
3961
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3962
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3958
3963
  * @param {*} [options] Override http request option.
3959
3964
  * @throws {RequiredError}
3960
3965
  */
3961
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
3966
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
3962
3967
  /**
3963
3968
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
3964
3969
  * @summary Skill History
@@ -4098,19 +4103,20 @@ export declare class AgentApi extends BaseAPI {
4098
4103
  * @throws {RequiredError}
4099
4104
  * @memberof AgentApi
4100
4105
  */
4101
- getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any, {}>>;
4106
+ getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatistics, any, {}>>;
4102
4107
  /**
4103
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4108
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4104
4109
  * @summary Get Agents
4105
4110
  * @param {AgentSortOption} [sort] Sort order for agents list
4106
4111
  * @param {string | null} [cursor] Cursor for pagination
4107
4112
  * @param {number} [limit] Maximum number of agents to return
4108
4113
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4114
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4109
4115
  * @param {*} [options] Override http request option.
4110
4116
  * @throws {RequiredError}
4111
4117
  * @memberof AgentApi
4112
4118
  */
4113
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
4119
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
4114
4120
  /**
4115
4121
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
4116
4122
  * @summary Skill History
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.7.23
8
+ * The version of the OpenAPI document: 0.7.25
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -182,9 +182,11 @@ exports.AgentResponseShortTermMemoryStrategyEnum = {
182
182
  * @enum {string}
183
183
  */
184
184
  exports.AgentSortOption = {
185
- CreatedAtDesc: 'created_at desc',
186
- CreatedAtAsc: 'created_at asc',
187
- UpdatedAtDesc: 'updated_at desc'
185
+ CreatedAtDesc: 'created_at_desc',
186
+ CreatedAtAsc: 'created_at_asc',
187
+ UpdatedAtDesc: 'updated_at_desc',
188
+ AssetsDesc: 'assets_desc',
189
+ RevenueDesc: 'revenue_desc'
188
190
  };
189
191
  /**
190
192
  * Agent state.
@@ -664,21 +666,22 @@ var AgentApiAxiosParamCreator = function (configuration) {
664
666
  });
665
667
  },
666
668
  /**
667
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
669
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
668
670
  * @summary Get Agents
669
671
  * @param {AgentSortOption} [sort] Sort order for agents list
670
672
  * @param {string | null} [cursor] Cursor for pagination
671
673
  * @param {number} [limit] Maximum number of agents to return
672
674
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
675
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
673
676
  * @param {*} [options] Override http request option.
674
677
  * @throws {RequiredError}
675
678
  */
676
- getAgents: function (sort_1, cursor_1, limit_1, state_1) {
679
+ getAgents: function (sort_1, cursor_1, limit_1, state_1, tag_1) {
677
680
  var args_1 = [];
678
- for (var _i = 4; _i < arguments.length; _i++) {
679
- args_1[_i - 4] = arguments[_i];
681
+ for (var _i = 5; _i < arguments.length; _i++) {
682
+ args_1[_i - 5] = arguments[_i];
680
683
  }
681
- return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1, state_1], args_1, true), void 0, function (sort, cursor, limit, state, options) {
684
+ return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1, state_1, tag_1], args_1, true), void 0, function (sort, cursor, limit, state, tag, options) {
682
685
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
683
686
  if (options === void 0) { options = {}; }
684
687
  return __generator(this, function (_a) {
@@ -702,6 +705,9 @@ var AgentApiAxiosParamCreator = function (configuration) {
702
705
  if (state !== undefined) {
703
706
  localVarQueryParameter['state'] = state;
704
707
  }
708
+ if (tag !== undefined) {
709
+ localVarQueryParameter['tag'] = tag;
710
+ }
705
711
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
706
712
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
707
713
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1309,22 +1315,23 @@ var AgentApiFp = function (configuration) {
1309
1315
  });
1310
1316
  },
1311
1317
  /**
1312
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1318
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1313
1319
  * @summary Get Agents
1314
1320
  * @param {AgentSortOption} [sort] Sort order for agents list
1315
1321
  * @param {string | null} [cursor] Cursor for pagination
1316
1322
  * @param {number} [limit] Maximum number of agents to return
1317
1323
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
1324
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
1318
1325
  * @param {*} [options] Override http request option.
1319
1326
  * @throws {RequiredError}
1320
1327
  */
1321
- getAgents: function (sort, cursor, limit, state, options) {
1328
+ getAgents: function (sort, cursor, limit, state, tag, options) {
1322
1329
  return __awaiter(this, void 0, void 0, function () {
1323
1330
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1324
1331
  var _a, _b, _c;
1325
1332
  return __generator(this, function (_d) {
1326
1333
  switch (_d.label) {
1327
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, options)];
1334
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, options)];
1328
1335
  case 1:
1329
1336
  localVarAxiosArgs = _d.sent();
1330
1337
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -1618,17 +1625,18 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1618
1625
  return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
1619
1626
  },
1620
1627
  /**
1621
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1628
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1622
1629
  * @summary Get Agents
1623
1630
  * @param {AgentSortOption} [sort] Sort order for agents list
1624
1631
  * @param {string | null} [cursor] Cursor for pagination
1625
1632
  * @param {number} [limit] Maximum number of agents to return
1626
1633
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
1634
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
1627
1635
  * @param {*} [options] Override http request option.
1628
1636
  * @throws {RequiredError}
1629
1637
  */
1630
- getAgents: function (sort, cursor, limit, state, options) {
1631
- return localVarFp.getAgents(sort, cursor, limit, state, options).then(function (request) { return request(axios, basePath); });
1638
+ getAgents: function (sort, cursor, limit, state, tag, options) {
1639
+ return localVarFp.getAgents(sort, cursor, limit, state, tag, options).then(function (request) { return request(axios, basePath); });
1632
1640
  },
1633
1641
  /**
1634
1642
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
@@ -1813,19 +1821,20 @@ var AgentApi = /** @class */ (function (_super) {
1813
1821
  return (0, exports.AgentApiFp)(this.configuration).getAgentStatistics(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
1814
1822
  };
1815
1823
  /**
1816
- * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1824
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1817
1825
  * @summary Get Agents
1818
1826
  * @param {AgentSortOption} [sort] Sort order for agents list
1819
1827
  * @param {string | null} [cursor] Cursor for pagination
1820
1828
  * @param {number} [limit] Maximum number of agents to return
1821
1829
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
1830
+ * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
1822
1831
  * @param {*} [options] Override http request option.
1823
1832
  * @throws {RequiredError}
1824
1833
  * @memberof AgentApi
1825
1834
  */
1826
- AgentApi.prototype.getAgents = function (sort, cursor, limit, state, options) {
1835
+ AgentApi.prototype.getAgents = function (sort, cursor, limit, state, tag, options) {
1827
1836
  var _this = this;
1828
- return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
1837
+ return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, state, tag, options).then(function (request) { return request(_this.axios, _this.basePath); });
1829
1838
  };
1830
1839
  /**
1831
1840
  * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
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.7.23
5
+ * The version of the OpenAPI document: 0.7.25
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.7.23
8
+ * The version of the OpenAPI document: 0.7.25
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.7.23
5
+ * The version of the OpenAPI document: 0.7.25
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.7.23
8
+ * The version of the OpenAPI document: 0.7.25
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.7.23
5
+ * The version of the OpenAPI document: 0.7.25
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.7.23
8
+ * The version of the OpenAPI document: 0.7.25
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.7.23
5
+ * The version of the OpenAPI document: 0.7.25
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.7.23
8
+ * The version of the OpenAPI document: 0.7.25
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -289,7 +289,7 @@ const { status, data } = await apiInstance.getAgentAssets(
289
289
  [[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)
290
290
 
291
291
  # **getAgentStatistics**
292
- > AgentStatisticsResponse getAgentStatistics()
292
+ > AgentStatistics getAgentStatistics()
293
293
 
294
294
  Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
295
295
 
@@ -320,7 +320,7 @@ const { status, data } = await apiInstance.getAgentStatistics(
320
320
 
321
321
  ### Return type
322
322
 
323
- **AgentStatisticsResponse**
323
+ **AgentStatistics**
324
324
 
325
325
  ### Authorization
326
326
 
@@ -343,7 +343,7 @@ No authorization required
343
343
  # **getAgents**
344
344
  > AgentListResponse getAgents()
345
345
 
346
- Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
346
+ Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field * `tag` - Filter agents by tag ID in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
347
347
 
348
348
  ### Example
349
349
 
@@ -360,12 +360,14 @@ let sort: AgentSortOption; //Sort order for agents list (optional) (default to u
360
360
  let cursor: string; //Cursor for pagination (optional) (default to undefined)
361
361
  let limit: number; //Maximum number of agents to return (optional) (default to 20)
362
362
  let state: AgentState; //Filter agents by state in upstream_extra JSON field (optional) (default to undefined)
363
+ let tag: number; //Filter agents by tag ID in public_extra.tags (optional) (default to undefined)
363
364
 
364
365
  const { status, data } = await apiInstance.getAgents(
365
366
  sort,
366
367
  cursor,
367
368
  limit,
368
- state
369
+ state,
370
+ tag
369
371
  );
370
372
  ```
371
373
 
@@ -377,6 +379,7 @@ const { status, data } = await apiInstance.getAgents(
377
379
  | **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
378
380
  | **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
379
381
  | **state** | **AgentState** | Filter agents by state in upstream_extra JSON field | (optional) defaults to undefined|
382
+ | **tag** | [**number**] | Filter agents by tag ID in public_extra.tags | (optional) defaults to undefined|
380
383
 
381
384
 
382
385
  ### Return type
@@ -4,10 +4,14 @@ Sort options for agents list.
4
4
 
5
5
  ## Enum
6
6
 
7
- * `CreatedAtDesc` (value: `'created_at desc'`)
7
+ * `CreatedAtDesc` (value: `'created_at_desc'`)
8
8
 
9
- * `CreatedAtAsc` (value: `'created_at asc'`)
9
+ * `CreatedAtAsc` (value: `'created_at_asc'`)
10
10
 
11
- * `UpdatedAtDesc` (value: `'updated_at desc'`)
11
+ * `UpdatedAtDesc` (value: `'updated_at_desc'`)
12
+
13
+ * `AssetsDesc` (value: `'assets_desc'`)
14
+
15
+ * `RevenueDesc` (value: `'revenue_desc'`)
12
16
 
13
17
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,49 @@
1
+ # AgentStatistics
2
+
3
+ Aggregated statistics for an agent credit account.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **agent_id** | **string** | ID of the agent | [default to undefined]
10
+ **account_id** | **string** | ID of the associated credit account | [default to undefined]
11
+ **balance** | **string** | Current credit account balance | [default to undefined]
12
+ **total_income** | **string** | Total income across all events | [default to undefined]
13
+ **net_income** | **string** | Net income from fee allocations | [default to undefined]
14
+ **permanent_income** | **string** | Total permanent income across all events | [default to undefined]
15
+ **permanent_profit** | **string** | Permanent profit allocated to the agent | [default to undefined]
16
+ **last_24h_income** | **string** | Income generated during the last 24 hours | [default to undefined]
17
+ **last_24h_permanent_income** | **string** | Permanent income generated during the last 24 hours | [default to undefined]
18
+ **avg_action_cost** | **string** | Average action cost | [default to undefined]
19
+ **min_action_cost** | **string** | Minimum action cost | [default to undefined]
20
+ **max_action_cost** | **string** | Maximum action cost | [default to undefined]
21
+ **low_action_cost** | **string** | 20th percentile action cost | [default to undefined]
22
+ **medium_action_cost** | **string** | 60th percentile action cost | [default to undefined]
23
+ **high_action_cost** | **string** | 80th percentile action cost | [default to undefined]
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import { AgentStatistics } from '@crestal/nation-sdk';
29
+
30
+ const instance: AgentStatistics = {
31
+ agent_id,
32
+ account_id,
33
+ balance,
34
+ total_income,
35
+ net_income,
36
+ permanent_income,
37
+ permanent_profit,
38
+ last_24h_income,
39
+ last_24h_permanent_income,
40
+ avg_action_cost,
41
+ min_action_cost,
42
+ max_action_cost,
43
+ low_action_cost,
44
+ medium_action_cost,
45
+ high_action_cost,
46
+ };
47
+ ```
48
+
49
+ [[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-09-30T10:36:48.530+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-30T10:36:48.531+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-03T16:03:41.640+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-03T16:03:41.640+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.7.23
7
+ * The version of the OpenAPI document: 0.7.25
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.7.23",
3
+ "version": "0.7.25",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,49 +0,0 @@
1
- # AgentStatisticsResponse
2
-
3
- Response model for agent statistics.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **agent_id** | **string** | ID of the agent | [default to undefined]
10
- **account_id** | **string** | ID of the agent\&#39;s credit account | [default to undefined]
11
- **balance** | **string** | Total balance of the agent\&#39;s account | [default to undefined]
12
- **total_income** | **string** | Total income from all credit events | [default to undefined]
13
- **net_income** | **string** | Net income from all credit events | [default to undefined]
14
- **permanent_income** | **string** | Permanent income from all credit events | [default to undefined]
15
- **permanent_profit** | **string** | Permanent profit from all credit events | [default to undefined]
16
- **last_24h_income** | **string** | Income from last 24 hours | [default to undefined]
17
- **last_24h_permanent_income** | **string** | Permanent income from last 24 hours | [default to undefined]
18
- **avg_action_cost** | **string** | Average action cost | [default to undefined]
19
- **min_action_cost** | **string** | Minimum action cost | [default to undefined]
20
- **max_action_cost** | **string** | Maximum action cost | [default to undefined]
21
- **low_action_cost** | **string** | Low action cost | [default to undefined]
22
- **medium_action_cost** | **string** | Medium action cost | [default to undefined]
23
- **high_action_cost** | **string** | High action cost | [default to undefined]
24
-
25
- ## Example
26
-
27
- ```typescript
28
- import { AgentStatisticsResponse } from '@crestal/nation-sdk';
29
-
30
- const instance: AgentStatisticsResponse = {
31
- agent_id,
32
- account_id,
33
- balance,
34
- total_income,
35
- net_income,
36
- permanent_income,
37
- permanent_profit,
38
- last_24h_income,
39
- last_24h_permanent_income,
40
- avg_action_cost,
41
- min_action_cost,
42
- max_action_cost,
43
- low_action_cost,
44
- medium_action_cost,
45
- high_action_cost,
46
- };
47
- ```
48
-
49
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)