@crestal/nation-sdk 0.1.32 → 0.2.0

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.1.32
1
+ ## @crestal/nation-sdk@0.2.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.1.32 --save
39
+ npm install @crestal/nation-sdk@0.2.0 --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.1.32
7
+ * The version of the OpenAPI document: 0.2.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2914,13 +2914,15 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2914
2914
  };
2915
2915
  },
2916
2916
  /**
2917
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2917
+ * 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
2918
2918
  * @summary Skill History
2919
2919
  * @param {string} aid Agent ID
2920
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2921
+ * @param {number} [limit] Maximum number of messages to return
2920
2922
  * @param {*} [options] Override http request option.
2921
2923
  * @throws {RequiredError}
2922
2924
  */
2923
- getSkillHistory: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2925
+ getSkillHistory: async (aid: string, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2924
2926
  // verify required parameter 'aid' is not null or undefined
2925
2927
  assertParamExists('getSkillHistory', 'aid', aid)
2926
2928
  const localVarPath = `/agents/{aid}/skill/history`
@@ -2940,6 +2942,14 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2940
2942
  // http bearer authentication required
2941
2943
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
2942
2944
 
2945
+ if (cursor !== undefined) {
2946
+ localVarQueryParameter['cursor'] = cursor;
2947
+ }
2948
+
2949
+ if (limit !== undefined) {
2950
+ localVarQueryParameter['limit'] = limit;
2951
+ }
2952
+
2943
2953
 
2944
2954
 
2945
2955
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3242,14 +3252,16 @@ export const AgentApiFp = function(configuration?: Configuration) {
3242
3252
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3243
3253
  },
3244
3254
  /**
3245
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3255
+ * 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
3246
3256
  * @summary Skill History
3247
3257
  * @param {string} aid Agent ID
3258
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3259
+ * @param {number} [limit] Maximum number of messages to return
3248
3260
  * @param {*} [options] Override http request option.
3249
3261
  * @throws {RequiredError}
3250
3262
  */
3251
- async getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>> {
3252
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, options);
3263
+ async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>> {
3264
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
3253
3265
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3254
3266
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
3255
3267
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3386,14 +3398,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3386
3398
  return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
3387
3399
  },
3388
3400
  /**
3389
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3401
+ * 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
3390
3402
  * @summary Skill History
3391
3403
  * @param {string} aid Agent ID
3404
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3405
+ * @param {number} [limit] Maximum number of messages to return
3392
3406
  * @param {*} [options] Override http request option.
3393
3407
  * @throws {RequiredError}
3394
3408
  */
3395
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>> {
3396
- return localVarFp.getSkillHistory(aid, options).then((request) => request(axios, basePath));
3409
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse> {
3410
+ return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
3397
3411
  },
3398
3412
  /**
3399
3413
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
@@ -3522,15 +3536,17 @@ export class AgentApi extends BaseAPI {
3522
3536
  }
3523
3537
 
3524
3538
  /**
3525
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3539
+ * 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
3526
3540
  * @summary Skill History
3527
3541
  * @param {string} aid Agent ID
3542
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3543
+ * @param {number} [limit] Maximum number of messages to return
3528
3544
  * @param {*} [options] Override http request option.
3529
3545
  * @throws {RequiredError}
3530
3546
  * @memberof AgentApi
3531
3547
  */
3532
- public getSkillHistory(aid: string, options?: RawAxiosRequestConfig) {
3533
- return AgentApiFp(this.configuration).getSkillHistory(aid, options).then((request) => request(this.axios, this.basePath));
3548
+ public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
3549
+ return AgentApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
3534
3550
  }
3535
3551
 
3536
3552
  /**
@@ -3767,13 +3783,15 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
3767
3783
  };
3768
3784
  },
3769
3785
  /**
3770
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3786
+ * 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
3771
3787
  * @summary Skill History
3772
3788
  * @param {string} aid Agent ID
3789
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3790
+ * @param {number} [limit] Maximum number of messages to return
3773
3791
  * @param {*} [options] Override http request option.
3774
3792
  * @throws {RequiredError}
3775
3793
  */
3776
- getSkillHistory: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3794
+ getSkillHistory: async (aid: string, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3777
3795
  // verify required parameter 'aid' is not null or undefined
3778
3796
  assertParamExists('getSkillHistory', 'aid', aid)
3779
3797
  const localVarPath = `/agents/{aid}/skill/history`
@@ -3793,6 +3811,14 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
3793
3811
  // http bearer authentication required
3794
3812
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
3795
3813
 
3814
+ if (cursor !== undefined) {
3815
+ localVarQueryParameter['cursor'] = cursor;
3816
+ }
3817
+
3818
+ if (limit !== undefined) {
3819
+ localVarQueryParameter['limit'] = limit;
3820
+ }
3821
+
3796
3822
 
3797
3823
 
3798
3824
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -4097,14 +4123,16 @@ export const ChatApiFp = function(configuration?: Configuration) {
4097
4123
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4098
4124
  },
4099
4125
  /**
4100
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
4126
+ * 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
4101
4127
  * @summary Skill History
4102
4128
  * @param {string} aid Agent ID
4129
+ * @param {string | null} [cursor] Cursor for pagination (message id)
4130
+ * @param {number} [limit] Maximum number of messages to return
4103
4131
  * @param {*} [options] Override http request option.
4104
4132
  * @throws {RequiredError}
4105
4133
  */
4106
- async getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>> {
4107
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, options);
4134
+ async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>> {
4135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
4108
4136
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4109
4137
  const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
4110
4138
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4235,14 +4263,16 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4235
4263
  return localVarFp.getMessageById(messageId, options).then((request) => request(axios, basePath));
4236
4264
  },
4237
4265
  /**
4238
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
4266
+ * 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
4239
4267
  * @summary Skill History
4240
4268
  * @param {string} aid Agent ID
4269
+ * @param {string | null} [cursor] Cursor for pagination (message id)
4270
+ * @param {number} [limit] Maximum number of messages to return
4241
4271
  * @param {*} [options] Override http request option.
4242
4272
  * @throws {RequiredError}
4243
4273
  */
4244
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>> {
4245
- return localVarFp.getSkillHistory(aid, options).then((request) => request(axios, basePath));
4274
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse> {
4275
+ return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
4246
4276
  },
4247
4277
  /**
4248
4278
  * Retrieve all chat threads associated with a specific agent for the current user.
@@ -4363,15 +4393,17 @@ export class ChatApi extends BaseAPI {
4363
4393
  }
4364
4394
 
4365
4395
  /**
4366
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
4396
+ * 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
4367
4397
  * @summary Skill History
4368
4398
  * @param {string} aid Agent ID
4399
+ * @param {string | null} [cursor] Cursor for pagination (message id)
4400
+ * @param {number} [limit] Maximum number of messages to return
4369
4401
  * @param {*} [options] Override http request option.
4370
4402
  * @throws {RequiredError}
4371
4403
  * @memberof ChatApi
4372
4404
  */
4373
- public getSkillHistory(aid: string, options?: RawAxiosRequestConfig) {
4374
- return ChatApiFp(this.configuration).getSkillHistory(aid, options).then((request) => request(this.axios, this.basePath));
4405
+ public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
4406
+ return ChatApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
4375
4407
  }
4376
4408
 
4377
4409
  /**
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.32
7
+ * The version of the OpenAPI document: 0.2.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.32
7
+ * The version of the OpenAPI document: 0.2.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.32
7
+ * The version of the OpenAPI document: 0.2.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.32
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2681,13 +2681,15 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
2681
2681
  */
2682
2682
  getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2683
2683
  /**
2684
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2684
+ * 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
2685
2685
  * @summary Skill History
2686
2686
  * @param {string} aid Agent ID
2687
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2688
+ * @param {number} [limit] Maximum number of messages to return
2687
2689
  * @param {*} [options] Override http request option.
2688
2690
  * @throws {RequiredError}
2689
2691
  */
2690
- getSkillHistory: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2692
+ getSkillHistory: (aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2691
2693
  /**
2692
2694
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2693
2695
  * @summary Import Agent
@@ -2781,13 +2783,15 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2781
2783
  */
2782
2784
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
2783
2785
  /**
2784
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2786
+ * 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
2785
2787
  * @summary Skill History
2786
2788
  * @param {string} aid Agent ID
2789
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2790
+ * @param {number} [limit] Maximum number of messages to return
2787
2791
  * @param {*} [options] Override http request option.
2788
2792
  * @throws {RequiredError}
2789
2793
  */
2790
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>>;
2794
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
2791
2795
  /**
2792
2796
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2793
2797
  * @summary Import Agent
@@ -2881,13 +2885,15 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
2881
2885
  */
2882
2886
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
2883
2887
  /**
2884
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2888
+ * 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
2885
2889
  * @summary Skill History
2886
2890
  * @param {string} aid Agent ID
2891
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2892
+ * @param {number} [limit] Maximum number of messages to return
2887
2893
  * @param {*} [options] Override http request option.
2888
2894
  * @throws {RequiredError}
2889
2895
  */
2890
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>>;
2896
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
2891
2897
  /**
2892
2898
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2893
2899
  * @summary Import Agent
@@ -2988,14 +2994,16 @@ export declare class AgentApi extends BaseAPI {
2988
2994
  */
2989
2995
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
2990
2996
  /**
2991
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2997
+ * 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
2992
2998
  * @summary Skill History
2993
2999
  * @param {string} aid Agent ID
3000
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3001
+ * @param {number} [limit] Maximum number of messages to return
2994
3002
  * @param {*} [options] Override http request option.
2995
3003
  * @throws {RequiredError}
2996
3004
  * @memberof AgentApi
2997
3005
  */
2998
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessageSkillCall[], any>>;
3006
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
2999
3007
  /**
3000
3008
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
3001
3009
  * @summary Import Agent
@@ -3086,13 +3094,15 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
3086
3094
  */
3087
3095
  getMessageById: (messageId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3088
3096
  /**
3089
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3097
+ * 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
3090
3098
  * @summary Skill History
3091
3099
  * @param {string} aid Agent ID
3100
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3101
+ * @param {number} [limit] Maximum number of messages to return
3092
3102
  * @param {*} [options] Override http request option.
3093
3103
  * @throws {RequiredError}
3094
3104
  */
3095
- getSkillHistory: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3105
+ getSkillHistory: (aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3096
3106
  /**
3097
3107
  * Retrieve all chat threads associated with a specific agent for the current user.
3098
3108
  * @summary List chat threads for an agent
@@ -3182,13 +3192,15 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
3182
3192
  */
3183
3193
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessage>>;
3184
3194
  /**
3185
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3195
+ * 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
3186
3196
  * @summary Skill History
3187
3197
  * @param {string} aid Agent ID
3198
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3199
+ * @param {number} [limit] Maximum number of messages to return
3188
3200
  * @param {*} [options] Override http request option.
3189
3201
  * @throws {RequiredError}
3190
3202
  */
3191
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>>;
3203
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
3192
3204
  /**
3193
3205
  * Retrieve all chat threads associated with a specific agent for the current user.
3194
3206
  * @summary List chat threads for an agent
@@ -3278,13 +3290,15 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3278
3290
  */
3279
3291
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage>;
3280
3292
  /**
3281
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3293
+ * 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
3282
3294
  * @summary Skill History
3283
3295
  * @param {string} aid Agent ID
3296
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3297
+ * @param {number} [limit] Maximum number of messages to return
3284
3298
  * @param {*} [options] Override http request option.
3285
3299
  * @throws {RequiredError}
3286
3300
  */
3287
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>>;
3301
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
3288
3302
  /**
3289
3303
  * Retrieve all chat threads associated with a specific agent for the current user.
3290
3304
  * @summary List chat threads for an agent
@@ -3380,14 +3394,16 @@ export declare class ChatApi extends BaseAPI {
3380
3394
  */
3381
3395
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
3382
3396
  /**
3383
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3397
+ * 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
3384
3398
  * @summary Skill History
3385
3399
  * @param {string} aid Agent ID
3400
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3401
+ * @param {number} [limit] Maximum number of messages to return
3386
3402
  * @param {*} [options] Override http request option.
3387
3403
  * @throws {RequiredError}
3388
3404
  * @memberof ChatApi
3389
3405
  */
3390
- getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessageSkillCall[], any>>;
3406
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
3391
3407
  /**
3392
3408
  * Retrieve all chat threads associated with a specific agent for the current user.
3393
3409
  * @summary List chat threads for an agent
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.32
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -530,18 +530,20 @@ var AgentApiAxiosParamCreator = function (configuration) {
530
530
  });
531
531
  },
532
532
  /**
533
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
533
+ * 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
534
534
  * @summary Skill History
535
535
  * @param {string} aid Agent ID
536
+ * @param {string | null} [cursor] Cursor for pagination (message id)
537
+ * @param {number} [limit] Maximum number of messages to return
536
538
  * @param {*} [options] Override http request option.
537
539
  * @throws {RequiredError}
538
540
  */
539
- getSkillHistory: function (aid_1) {
541
+ getSkillHistory: function (aid_1, cursor_1, limit_1) {
540
542
  var args_1 = [];
541
- for (var _i = 1; _i < arguments.length; _i++) {
542
- args_1[_i - 1] = arguments[_i];
543
+ for (var _i = 3; _i < arguments.length; _i++) {
544
+ args_1[_i - 3] = arguments[_i];
543
545
  }
544
- return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
546
+ return __awaiter(_this, __spreadArray([aid_1, cursor_1, limit_1], args_1, true), void 0, function (aid, cursor, limit, options) {
545
547
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
546
548
  if (options === void 0) { options = {}; }
547
549
  return __generator(this, function (_a) {
@@ -565,6 +567,12 @@ var AgentApiAxiosParamCreator = function (configuration) {
565
567
  // authentication HTTPBearer required
566
568
  // http bearer authentication required
567
569
  _a.sent();
570
+ if (cursor !== undefined) {
571
+ localVarQueryParameter['cursor'] = cursor;
572
+ }
573
+ if (limit !== undefined) {
574
+ localVarQueryParameter['limit'] = limit;
575
+ }
568
576
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
569
577
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
578
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -956,19 +964,21 @@ var AgentApiFp = function (configuration) {
956
964
  });
957
965
  },
958
966
  /**
959
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
967
+ * 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
960
968
  * @summary Skill History
961
969
  * @param {string} aid Agent ID
970
+ * @param {string | null} [cursor] Cursor for pagination (message id)
971
+ * @param {number} [limit] Maximum number of messages to return
962
972
  * @param {*} [options] Override http request option.
963
973
  * @throws {RequiredError}
964
974
  */
965
- getSkillHistory: function (aid, options) {
975
+ getSkillHistory: function (aid, cursor, limit, options) {
966
976
  return __awaiter(this, void 0, void 0, function () {
967
977
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
968
978
  var _a, _b, _c;
969
979
  return __generator(this, function (_d) {
970
980
  switch (_d.label) {
971
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, options)];
981
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options)];
972
982
  case 1:
973
983
  localVarAxiosArgs = _d.sent();
974
984
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -1160,14 +1170,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1160
1170
  return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1161
1171
  },
1162
1172
  /**
1163
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
1173
+ * 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
1164
1174
  * @summary Skill History
1165
1175
  * @param {string} aid Agent ID
1176
+ * @param {string | null} [cursor] Cursor for pagination (message id)
1177
+ * @param {number} [limit] Maximum number of messages to return
1166
1178
  * @param {*} [options] Override http request option.
1167
1179
  * @throws {RequiredError}
1168
1180
  */
1169
- getSkillHistory: function (aid, options) {
1170
- return localVarFp.getSkillHistory(aid, options).then(function (request) { return request(axios, basePath); });
1181
+ getSkillHistory: function (aid, cursor, limit, options) {
1182
+ return localVarFp.getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1171
1183
  },
1172
1184
  /**
1173
1185
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
@@ -1300,16 +1312,18 @@ var AgentApi = /** @class */ (function (_super) {
1300
1312
  return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1301
1313
  };
1302
1314
  /**
1303
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
1315
+ * 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
1304
1316
  * @summary Skill History
1305
1317
  * @param {string} aid Agent ID
1318
+ * @param {string | null} [cursor] Cursor for pagination (message id)
1319
+ * @param {number} [limit] Maximum number of messages to return
1306
1320
  * @param {*} [options] Override http request option.
1307
1321
  * @throws {RequiredError}
1308
1322
  * @memberof AgentApi
1309
1323
  */
1310
- AgentApi.prototype.getSkillHistory = function (aid, options) {
1324
+ AgentApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
1311
1325
  var _this = this;
1312
- return (0, exports.AgentApiFp)(this.configuration).getSkillHistory(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
1326
+ return (0, exports.AgentApiFp)(this.configuration).getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1313
1327
  };
1314
1328
  /**
1315
1329
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
@@ -1582,18 +1596,20 @@ var ChatApiAxiosParamCreator = function (configuration) {
1582
1596
  });
1583
1597
  },
1584
1598
  /**
1585
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
1599
+ * 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
1586
1600
  * @summary Skill History
1587
1601
  * @param {string} aid Agent ID
1602
+ * @param {string | null} [cursor] Cursor for pagination (message id)
1603
+ * @param {number} [limit] Maximum number of messages to return
1588
1604
  * @param {*} [options] Override http request option.
1589
1605
  * @throws {RequiredError}
1590
1606
  */
1591
- getSkillHistory: function (aid_1) {
1607
+ getSkillHistory: function (aid_1, cursor_1, limit_1) {
1592
1608
  var args_1 = [];
1593
- for (var _i = 1; _i < arguments.length; _i++) {
1594
- args_1[_i - 1] = arguments[_i];
1609
+ for (var _i = 3; _i < arguments.length; _i++) {
1610
+ args_1[_i - 3] = arguments[_i];
1595
1611
  }
1596
- return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
1612
+ return __awaiter(_this, __spreadArray([aid_1, cursor_1, limit_1], args_1, true), void 0, function (aid, cursor, limit, options) {
1597
1613
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1598
1614
  if (options === void 0) { options = {}; }
1599
1615
  return __generator(this, function (_a) {
@@ -1617,6 +1633,12 @@ var ChatApiAxiosParamCreator = function (configuration) {
1617
1633
  // authentication HTTPBearer required
1618
1634
  // http bearer authentication required
1619
1635
  _a.sent();
1636
+ if (cursor !== undefined) {
1637
+ localVarQueryParameter['cursor'] = cursor;
1638
+ }
1639
+ if (limit !== undefined) {
1640
+ localVarQueryParameter['limit'] = limit;
1641
+ }
1620
1642
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1621
1643
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1622
1644
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2002,19 +2024,21 @@ var ChatApiFp = function (configuration) {
2002
2024
  });
2003
2025
  },
2004
2026
  /**
2005
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2027
+ * 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
2006
2028
  * @summary Skill History
2007
2029
  * @param {string} aid Agent ID
2030
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2031
+ * @param {number} [limit] Maximum number of messages to return
2008
2032
  * @param {*} [options] Override http request option.
2009
2033
  * @throws {RequiredError}
2010
2034
  */
2011
- getSkillHistory: function (aid, options) {
2035
+ getSkillHistory: function (aid, cursor, limit, options) {
2012
2036
  return __awaiter(this, void 0, void 0, function () {
2013
2037
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2014
2038
  var _a, _b, _c;
2015
2039
  return __generator(this, function (_d) {
2016
2040
  switch (_d.label) {
2017
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, options)];
2041
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options)];
2018
2042
  case 1:
2019
2043
  localVarAxiosArgs = _d.sent();
2020
2044
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -2200,14 +2224,16 @@ var ChatApiFactory = function (configuration, basePath, axios) {
2200
2224
  return localVarFp.getMessageById(messageId, options).then(function (request) { return request(axios, basePath); });
2201
2225
  },
2202
2226
  /**
2203
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2227
+ * 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
2204
2228
  * @summary Skill History
2205
2229
  * @param {string} aid Agent ID
2230
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2231
+ * @param {number} [limit] Maximum number of messages to return
2206
2232
  * @param {*} [options] Override http request option.
2207
2233
  * @throws {RequiredError}
2208
2234
  */
2209
- getSkillHistory: function (aid, options) {
2210
- return localVarFp.getSkillHistory(aid, options).then(function (request) { return request(axios, basePath); });
2235
+ getSkillHistory: function (aid, cursor, limit, options) {
2236
+ return localVarFp.getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(axios, basePath); });
2211
2237
  },
2212
2238
  /**
2213
2239
  * Retrieve all chat threads associated with a specific agent for the current user.
@@ -2332,16 +2358,18 @@ var ChatApi = /** @class */ (function (_super) {
2332
2358
  return (0, exports.ChatApiFp)(this.configuration).getMessageById(messageId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2333
2359
  };
2334
2360
  /**
2335
- * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2361
+ * 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
2336
2362
  * @summary Skill History
2337
2363
  * @param {string} aid Agent ID
2364
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2365
+ * @param {number} [limit] Maximum number of messages to return
2338
2366
  * @param {*} [options] Override http request option.
2339
2367
  * @throws {RequiredError}
2340
2368
  * @memberof ChatApi
2341
2369
  */
2342
- ChatApi.prototype.getSkillHistory = function (aid, options) {
2370
+ ChatApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
2343
2371
  var _this = this;
2344
- return (0, exports.ChatApiFp)(this.configuration).getSkillHistory(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
2372
+ return (0, exports.ChatApiFp)(this.configuration).getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
2345
2373
  };
2346
2374
  /**
2347
2375
  * Retrieve all chat threads associated with a specific agent for the current user.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.32
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.32
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.32
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.32
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.32
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.32
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.32
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.32
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -287,9 +287,9 @@ No authorization required
287
287
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
288
288
 
289
289
  # **getSkillHistory**
290
- > Array<ChatMessageSkillCall> getSkillHistory()
290
+ > ChatMessagesResponse getSkillHistory()
291
291
 
292
- Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
292
+ 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
293
293
 
294
294
  ### Example
295
295
 
@@ -303,9 +303,13 @@ const configuration = new Configuration();
303
303
  const apiInstance = new AgentApi(configuration);
304
304
 
305
305
  let aid: string; //Agent ID (default to undefined)
306
+ let cursor: string; //Cursor for pagination (message id) (optional) (default to undefined)
307
+ let limit: number; //Maximum number of messages to return (optional) (default to 20)
306
308
 
307
309
  const { status, data } = await apiInstance.getSkillHistory(
308
- aid
310
+ aid,
311
+ cursor,
312
+ limit
309
313
  );
310
314
  ```
311
315
 
@@ -314,11 +318,13 @@ const { status, data } = await apiInstance.getSkillHistory(
314
318
  |Name | Type | Description | Notes|
315
319
  |------------- | ------------- | ------------- | -------------|
316
320
  | **aid** | [**string**] | Agent ID | defaults to undefined|
321
+ | **cursor** | [**string**] | Cursor for pagination (message id) | (optional) defaults to undefined|
322
+ | **limit** | [**number**] | Maximum number of messages to return | (optional) defaults to 20|
317
323
 
318
324
 
319
325
  ### Return type
320
326
 
321
- **Array<ChatMessageSkillCall>**
327
+ **ChatMessagesResponse**
322
328
 
323
329
  ### Authorization
324
330
 
package/docs/ChatApi.md CHANGED
@@ -230,9 +230,9 @@ const { status, data } = await apiInstance.getMessageById(
230
230
  [[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)
231
231
 
232
232
  # **getSkillHistory**
233
- > Array<ChatMessageSkillCall> getSkillHistory()
233
+ > ChatMessagesResponse getSkillHistory()
234
234
 
235
- Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
235
+ 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
236
236
 
237
237
  ### Example
238
238
 
@@ -246,9 +246,13 @@ const configuration = new Configuration();
246
246
  const apiInstance = new ChatApi(configuration);
247
247
 
248
248
  let aid: string; //Agent ID (default to undefined)
249
+ let cursor: string; //Cursor for pagination (message id) (optional) (default to undefined)
250
+ let limit: number; //Maximum number of messages to return (optional) (default to 20)
249
251
 
250
252
  const { status, data } = await apiInstance.getSkillHistory(
251
- aid
253
+ aid,
254
+ cursor,
255
+ limit
252
256
  );
253
257
  ```
254
258
 
@@ -257,11 +261,13 @@ const { status, data } = await apiInstance.getSkillHistory(
257
261
  |Name | Type | Description | Notes|
258
262
  |------------- | ------------- | ------------- | -------------|
259
263
  | **aid** | [**string**] | Agent ID | defaults to undefined|
264
+ | **cursor** | [**string**] | Cursor for pagination (message id) | (optional) defaults to undefined|
265
+ | **limit** | [**number**] | Maximum number of messages to return | (optional) defaults to 20|
260
266
 
261
267
 
262
268
  ### Return type
263
269
 
264
- **Array<ChatMessageSkillCall>**
270
+ **ChatMessagesResponse**
265
271
 
266
272
  ### Authorization
267
273
 
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
27
27
  **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
28
  **api_base** | **string** | | [optional] [default to undefined]
29
29
  **timeout** | **number** | | [optional] [default to 180]
30
- **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-22T06:42:43.145+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-22T06:42:43.145+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-22T08:00:22.703+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-22T08:00:22.703+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.1.32
7
+ * The version of the OpenAPI document: 0.2.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.1.32",
3
+ "version": "0.2.0",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {