@crestal/nation-sdk 0.7.28 → 0.7.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.7.28
1
+ ## @crestal/nation-sdk@0.7.30
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.28 --save
39
+ npm install @crestal/nation-sdk@0.7.30 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
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.28
7
+ * The version of the OpenAPI document: 0.7.30
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1405,7 +1405,8 @@ export const AgentSortOption = {
1405
1405
  CreatedAtAsc: 'created_at_asc',
1406
1406
  UpdatedAtDesc: 'updated_at_desc',
1407
1407
  AssetsDesc: 'assets_desc',
1408
- RevenueDesc: 'revenue_desc'
1408
+ RevenueDesc: 'revenue_desc',
1409
+ RecentRevenueDesc: 'recent_revenue_desc'
1409
1410
  } as const;
1410
1411
 
1411
1412
  export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
@@ -3953,17 +3954,17 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3953
3954
  };
3954
3955
  },
3955
3956
  /**
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
3957
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3957
3958
  * @summary Get Agents
3958
3959
  * @param {AgentSortOption} [sort] Sort order for agents list
3959
3960
  * @param {string | null} [cursor] Cursor for pagination
3960
3961
  * @param {number} [limit] Maximum number of agents to return
3961
3962
  * @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
3963
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
3963
3964
  * @param {*} [options] Override http request option.
3964
3965
  * @throws {RequiredError}
3965
3966
  */
3966
- getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3967
+ getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3967
3968
  const localVarPath = `/agents`;
3968
3969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3969
3970
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3992,7 +3993,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3992
3993
  localVarQueryParameter['state'] = state;
3993
3994
  }
3994
3995
 
3995
- if (tag !== undefined) {
3996
+ if (tag) {
3996
3997
  localVarQueryParameter['tag'] = tag;
3997
3998
  }
3998
3999
 
@@ -4471,17 +4472,17 @@ export const AgentApiFp = function(configuration?: Configuration) {
4471
4472
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4472
4473
  },
4473
4474
  /**
4474
- * 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
4475
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4475
4476
  * @summary Get Agents
4476
4477
  * @param {AgentSortOption} [sort] Sort order for agents list
4477
4478
  * @param {string | null} [cursor] Cursor for pagination
4478
4479
  * @param {number} [limit] Maximum number of agents to return
4479
4480
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4480
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4481
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
4481
4482
  * @param {*} [options] Override http request option.
4482
4483
  * @throws {RequiredError}
4483
4484
  */
4484
- async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
4485
+ async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
4485
4486
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, options);
4486
4487
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4487
4488
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
@@ -4681,17 +4682,17 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
4681
4682
  return localVarFp.getAgentStatistics(aid, options).then((request) => request(axios, basePath));
4682
4683
  },
4683
4684
  /**
4684
- * 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
4685
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4685
4686
  * @summary Get Agents
4686
4687
  * @param {AgentSortOption} [sort] Sort order for agents list
4687
4688
  * @param {string | null} [cursor] Cursor for pagination
4688
4689
  * @param {number} [limit] Maximum number of agents to return
4689
4690
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4690
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4691
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
4691
4692
  * @param {*} [options] Override http request option.
4692
4693
  * @throws {RequiredError}
4693
4694
  */
4694
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
4695
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
4695
4696
  return localVarFp.getAgents(sort, cursor, limit, state, tag, options).then((request) => request(axios, basePath));
4696
4697
  },
4697
4698
  /**
@@ -4873,18 +4874,18 @@ export class AgentApi extends BaseAPI {
4873
4874
  }
4874
4875
 
4875
4876
  /**
4876
- * 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
4877
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4877
4878
  * @summary Get Agents
4878
4879
  * @param {AgentSortOption} [sort] Sort order for agents list
4879
4880
  * @param {string | null} [cursor] Cursor for pagination
4880
4881
  * @param {number} [limit] Maximum number of agents to return
4881
4882
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4882
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4883
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
4883
4884
  * @param {*} [options] Override http request option.
4884
4885
  * @throws {RequiredError}
4885
4886
  * @memberof AgentApi
4886
4887
  */
4887
- public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig) {
4888
+ public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig) {
4888
4889
  return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, tag, options).then((request) => request(this.axios, this.basePath));
4889
4890
  }
4890
4891
 
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.28
7
+ * The version of the OpenAPI document: 0.7.30
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.28
7
+ * The version of the OpenAPI document: 0.7.30
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.28
7
+ * The version of the OpenAPI document: 0.7.30
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.28
5
+ * The version of the OpenAPI document: 0.7.30
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1377,6 +1377,7 @@ export declare const AgentSortOption: {
1377
1377
  readonly UpdatedAtDesc: "updated_at_desc";
1378
1378
  readonly AssetsDesc: "assets_desc";
1379
1379
  readonly RevenueDesc: "revenue_desc";
1380
+ readonly RecentRevenueDesc: "recent_revenue_desc";
1380
1381
  };
1381
1382
  export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
1382
1383
  /**
@@ -3671,17 +3672,17 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
3671
3672
  */
3672
3673
  getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3673
3674
  /**
3674
- * 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
3675
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3675
3676
  * @summary Get Agents
3676
3677
  * @param {AgentSortOption} [sort] Sort order for agents list
3677
3678
  * @param {string | null} [cursor] Cursor for pagination
3678
3679
  * @param {number} [limit] Maximum number of agents to return
3679
3680
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3680
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3681
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
3681
3682
  * @param {*} [options] Override http request option.
3682
3683
  * @throws {RequiredError}
3683
3684
  */
3684
- getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3685
+ getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3685
3686
  /**
3686
3687
  * 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
3687
3688
  * @summary Skill History
@@ -3815,17 +3816,17 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
3815
3816
  */
3816
3817
  getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatistics>>;
3817
3818
  /**
3818
- * 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
3819
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3819
3820
  * @summary Get Agents
3820
3821
  * @param {AgentSortOption} [sort] Sort order for agents list
3821
3822
  * @param {string | null} [cursor] Cursor for pagination
3822
3823
  * @param {number} [limit] Maximum number of agents to return
3823
3824
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3824
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3825
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
3825
3826
  * @param {*} [options] Override http request option.
3826
3827
  * @throws {RequiredError}
3827
3828
  */
3828
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
3829
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
3829
3830
  /**
3830
3831
  * 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
3831
3832
  * @summary Skill History
@@ -3959,17 +3960,17 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
3959
3960
  */
3960
3961
  getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatistics>;
3961
3962
  /**
3962
- * 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
3963
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
3963
3964
  * @summary Get Agents
3964
3965
  * @param {AgentSortOption} [sort] Sort order for agents list
3965
3966
  * @param {string | null} [cursor] Cursor for pagination
3966
3967
  * @param {number} [limit] Maximum number of agents to return
3967
3968
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
3968
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
3969
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
3969
3970
  * @param {*} [options] Override http request option.
3970
3971
  * @throws {RequiredError}
3971
3972
  */
3972
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
3973
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
3973
3974
  /**
3974
3975
  * 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
3975
3976
  * @summary Skill History
@@ -4111,18 +4112,18 @@ export declare class AgentApi extends BaseAPI {
4111
4112
  */
4112
4113
  getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatistics, any, {}>>;
4113
4114
  /**
4114
- * 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
4115
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
4115
4116
  * @summary Get Agents
4116
4117
  * @param {AgentSortOption} [sort] Sort order for agents list
4117
4118
  * @param {string | null} [cursor] Cursor for pagination
4118
4119
  * @param {number} [limit] Maximum number of agents to return
4119
4120
  * @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
4120
- * @param {number | null} [tag] Filter agents by tag ID in public_extra.tags
4121
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
4121
4122
  * @param {*} [options] Override http request option.
4122
4123
  * @throws {RequiredError}
4123
4124
  * @memberof AgentApi
4124
4125
  */
4125
- getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
4126
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
4126
4127
  /**
4127
4128
  * 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
4128
4129
  * @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.28
8
+ * The version of the OpenAPI document: 0.7.30
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -186,7 +186,8 @@ exports.AgentSortOption = {
186
186
  CreatedAtAsc: 'created_at_asc',
187
187
  UpdatedAtDesc: 'updated_at_desc',
188
188
  AssetsDesc: 'assets_desc',
189
- RevenueDesc: 'revenue_desc'
189
+ RevenueDesc: 'revenue_desc',
190
+ RecentRevenueDesc: 'recent_revenue_desc'
190
191
  };
191
192
  /**
192
193
  * Agent state.
@@ -666,13 +667,13 @@ var AgentApiAxiosParamCreator = function (configuration) {
666
667
  });
667
668
  },
668
669
  /**
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
670
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
670
671
  * @summary Get Agents
671
672
  * @param {AgentSortOption} [sort] Sort order for agents list
672
673
  * @param {string | null} [cursor] Cursor for pagination
673
674
  * @param {number} [limit] Maximum number of agents to return
674
675
  * @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
676
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
676
677
  * @param {*} [options] Override http request option.
677
678
  * @throws {RequiredError}
678
679
  */
@@ -705,7 +706,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
705
706
  if (state !== undefined) {
706
707
  localVarQueryParameter['state'] = state;
707
708
  }
708
- if (tag !== undefined) {
709
+ if (tag) {
709
710
  localVarQueryParameter['tag'] = tag;
710
711
  }
711
712
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -1315,13 +1316,13 @@ var AgentApiFp = function (configuration) {
1315
1316
  });
1316
1317
  },
1317
1318
  /**
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
1319
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1319
1320
  * @summary Get Agents
1320
1321
  * @param {AgentSortOption} [sort] Sort order for agents list
1321
1322
  * @param {string | null} [cursor] Cursor for pagination
1322
1323
  * @param {number} [limit] Maximum number of agents to return
1323
1324
  * @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
1325
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
1325
1326
  * @param {*} [options] Override http request option.
1326
1327
  * @throws {RequiredError}
1327
1328
  */
@@ -1625,13 +1626,13 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1625
1626
  return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
1626
1627
  },
1627
1628
  /**
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
1629
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1629
1630
  * @summary Get Agents
1630
1631
  * @param {AgentSortOption} [sort] Sort order for agents list
1631
1632
  * @param {string | null} [cursor] Cursor for pagination
1632
1633
  * @param {number} [limit] Maximum number of agents to return
1633
1634
  * @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
1635
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
1635
1636
  * @param {*} [options] Override http request option.
1636
1637
  * @throws {RequiredError}
1637
1638
  */
@@ -1821,13 +1822,13 @@ var AgentApi = /** @class */ (function (_super) {
1821
1822
  return (0, exports.AgentApiFp)(this.configuration).getAgentStatistics(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
1822
1823
  };
1823
1824
  /**
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
1825
+ * 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 IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1825
1826
  * @summary Get Agents
1826
1827
  * @param {AgentSortOption} [sort] Sort order for agents list
1827
1828
  * @param {string | null} [cursor] Cursor for pagination
1828
1829
  * @param {number} [limit] Maximum number of agents to return
1829
1830
  * @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
1831
+ * @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
1831
1832
  * @param {*} [options] Override http request option.
1832
1833
  * @throws {RequiredError}
1833
1834
  * @memberof AgentApi
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.28
5
+ * The version of the OpenAPI document: 0.7.30
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.28
8
+ * The version of the OpenAPI document: 0.7.30
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.28
5
+ * The version of the OpenAPI document: 0.7.30
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.28
8
+ * The version of the OpenAPI document: 0.7.30
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.28
5
+ * The version of the OpenAPI document: 0.7.30
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.28
8
+ * The version of the OpenAPI document: 0.7.30
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.28
5
+ * The version of the OpenAPI document: 0.7.30
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.28
8
+ * The version of the OpenAPI document: 0.7.30
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -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 * `tag` - Filter agents by tag ID in public_extra.tags **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 IDs 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,7 +360,7 @@ 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
+ let tag: Array<number>; //Filter agents by tag IDs in public_extra.tags (optional) (default to undefined)
364
364
 
365
365
  const { status, data } = await apiInstance.getAgents(
366
366
  sort,
@@ -379,7 +379,7 @@ const { status, data } = await apiInstance.getAgents(
379
379
  | **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
380
380
  | **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
381
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|
382
+ | **tag** | **Array&lt;number&gt;** | Filter agents by tag IDs in public_extra.tags | (optional) defaults to undefined|
383
383
 
384
384
 
385
385
  ### Return type
@@ -14,4 +14,6 @@ Sort options for agents list.
14
14
 
15
15
  * `RevenueDesc` (value: `'revenue_desc'`)
16
16
 
17
+ * `RecentRevenueDesc` (value: `'recent_revenue_desc'`)
18
+
17
19
  [[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-10-08T17:51:11.502+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-08T17:51:11.502+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-09T07:35:06.054+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-09T07:35:06.054+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.28
7
+ * The version of the OpenAPI document: 0.7.30
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.28",
3
+ "version": "0.7.30",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {