@crestal/nation-sdk 0.1.31 → 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.31
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.31 --save
39
+ npm install @crestal/nation-sdk@0.2.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
56
56
  *AgentApi* | [**getAgent**](docs/AgentApi.md#getagent) | **GET** /agents/{agent_id} | Get Agent
57
57
  *AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
58
58
  *AgentApi* | [**getAgents**](docs/AgentApi.md#getagents) | **GET** /agents | Get Agents
59
+ *AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
59
60
  *AgentApi* | [**importAgent**](docs/AgentApi.md#importagent) | **PUT** /agents/{agent_id}/import | Import Agent
60
61
  *AgentApi* | [**overrideAgent**](docs/AgentApi.md#overrideagent) | **PUT** /agents/{agent_id} | Override Agent
61
62
  *AgentApi* | [**updateAgent**](docs/AgentApi.md#updateagent) | **PATCH** /agents/{agent_id} | Update Agent
@@ -65,6 +66,7 @@ Class | Method | HTTP request | Description
65
66
  *ChatApi* | [**deleteChatThread**](docs/ChatApi.md#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread
66
67
  *ChatApi* | [**getChatThreadById**](docs/ChatApi.md#getchatthreadbyid) | **GET** /agents/{aid}/chats/{chat_id} | Get chat thread by ID
67
68
  *ChatApi* | [**getMessageById**](docs/ChatApi.md#getmessagebyid) | **GET** /messages/{message_id} | Get message by ID
69
+ *ChatApi* | [**getSkillHistory**](docs/ChatApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
68
70
  *ChatApi* | [**listChatsForAgent**](docs/ChatApi.md#listchatsforagent) | **GET** /agents/{aid}/chats | List chat threads for an agent
69
71
  *ChatApi* | [**listMessagesInChat**](docs/ChatApi.md#listmessagesinchat) | **GET** /agents/{aid}/chats/{chat_id}/messages | List messages in a chat thread
70
72
  *ChatApi* | [**retryMessageInChat**](docs/ChatApi.md#retrymessageinchat) | **POST** /agents/{aid}/chats/{chat_id}/messages/retry | Retry a message in a chat thread
@@ -78,12 +80,12 @@ Class | Method | HTTP request | Description
78
80
  *GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
79
81
  *GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
80
82
  *GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
81
- *HealthApi* | [**healthCheckHealthGet**](docs/HealthApi.md#healthcheckhealthget) | **GET** /health | Health check endpoint
83
+ *HealthApi* | [**healthCheck**](docs/HealthApi.md#healthcheck) | **GET** /health | Health check endpoint
82
84
  *MetadataApi* | [**getAgentSchema**](docs/MetadataApi.md#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema
83
- *MetadataApi* | [**getLlmsMetadataLlmsGet**](docs/MetadataApi.md#getllmsmetadatallmsget) | **GET** /metadata/llms | Get all LLM models
85
+ *MetadataApi* | [**getLlms**](docs/MetadataApi.md#getllms) | **GET** /metadata/llms | Get all LLM models
84
86
  *MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
85
87
  *MetadataApi* | [**getSkillSchema**](docs/MetadataApi.md#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema
86
- *MetadataApi* | [**getSkillsMetadataSkillsGet**](docs/MetadataApi.md#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills
88
+ *MetadataApi* | [**getSkills**](docs/MetadataApi.md#getskills) | **GET** /metadata/skills | Get all skills
87
89
  *OAuthApi* | [**getTwitterAuthUrl**](docs/OAuthApi.md#gettwitterauthurl) | **GET** /oauth/twitter | Get Twitter Auth Url
88
90
  *OAuthApi* | [**twitterOauthCallback**](docs/OAuthApi.md#twitteroauthcallback) | **GET** /oauth/twitter/callback | Twitter Oauth Callback
89
91
  *OAuthApi* | [**unlinkTwitter**](docs/OAuthApi.md#unlinktwitter) | **PUT** /oauth/twitter/unlink | Unlink Twitter Endpoint
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.31
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).
@@ -2904,6 +2904,54 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2904
2904
 
2905
2905
 
2906
2906
 
2907
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2908
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2909
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2910
+
2911
+ return {
2912
+ url: toPathString(localVarUrlObj),
2913
+ options: localVarRequestOptions,
2914
+ };
2915
+ },
2916
+ /**
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
+ * @summary Skill History
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
2922
+ * @param {*} [options] Override http request option.
2923
+ * @throws {RequiredError}
2924
+ */
2925
+ getSkillHistory: async (aid: string, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2926
+ // verify required parameter 'aid' is not null or undefined
2927
+ assertParamExists('getSkillHistory', 'aid', aid)
2928
+ const localVarPath = `/agents/{aid}/skill/history`
2929
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
2930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2931
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2932
+ let baseOptions;
2933
+ if (configuration) {
2934
+ baseOptions = configuration.baseOptions;
2935
+ }
2936
+
2937
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2938
+ const localVarHeaderParameter = {} as any;
2939
+ const localVarQueryParameter = {} as any;
2940
+
2941
+ // authentication HTTPBearer required
2942
+ // http bearer authentication required
2943
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2944
+
2945
+ if (cursor !== undefined) {
2946
+ localVarQueryParameter['cursor'] = cursor;
2947
+ }
2948
+
2949
+ if (limit !== undefined) {
2950
+ localVarQueryParameter['limit'] = limit;
2951
+ }
2952
+
2953
+
2954
+
2907
2955
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2908
2956
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2909
2957
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3203,6 +3251,21 @@ export const AgentApiFp = function(configuration?: Configuration) {
3203
3251
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
3204
3252
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3205
3253
  },
3254
+ /**
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
3256
+ * @summary Skill History
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
3260
+ * @param {*} [options] Override http request option.
3261
+ * @throws {RequiredError}
3262
+ */
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);
3265
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3266
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
3267
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3268
+ },
3206
3269
  /**
3207
3270
  * 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
3208
3271
  * @summary Import Agent
@@ -3334,6 +3397,18 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3334
3397
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
3335
3398
  return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
3336
3399
  },
3400
+ /**
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
3402
+ * @summary Skill History
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
3406
+ * @param {*} [options] Override http request option.
3407
+ * @throws {RequiredError}
3408
+ */
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));
3411
+ },
3337
3412
  /**
3338
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
3339
3414
  * @summary Import Agent
@@ -3460,6 +3535,20 @@ export class AgentApi extends BaseAPI {
3460
3535
  return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
3461
3536
  }
3462
3537
 
3538
+ /**
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
3540
+ * @summary Skill History
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
3544
+ * @param {*} [options] Override http request option.
3545
+ * @throws {RequiredError}
3546
+ * @memberof AgentApi
3547
+ */
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));
3550
+ }
3551
+
3463
3552
  /**
3464
3553
  * 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
3465
3554
  * @summary Import Agent
@@ -3684,6 +3773,54 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
3684
3773
 
3685
3774
 
3686
3775
 
3776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3778
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3779
+
3780
+ return {
3781
+ url: toPathString(localVarUrlObj),
3782
+ options: localVarRequestOptions,
3783
+ };
3784
+ },
3785
+ /**
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
3787
+ * @summary Skill History
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
3791
+ * @param {*} [options] Override http request option.
3792
+ * @throws {RequiredError}
3793
+ */
3794
+ getSkillHistory: async (aid: string, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3795
+ // verify required parameter 'aid' is not null or undefined
3796
+ assertParamExists('getSkillHistory', 'aid', aid)
3797
+ const localVarPath = `/agents/{aid}/skill/history`
3798
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
3799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3801
+ let baseOptions;
3802
+ if (configuration) {
3803
+ baseOptions = configuration.baseOptions;
3804
+ }
3805
+
3806
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3807
+ const localVarHeaderParameter = {} as any;
3808
+ const localVarQueryParameter = {} as any;
3809
+
3810
+ // authentication HTTPBearer required
3811
+ // http bearer authentication required
3812
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3813
+
3814
+ if (cursor !== undefined) {
3815
+ localVarQueryParameter['cursor'] = cursor;
3816
+ }
3817
+
3818
+ if (limit !== undefined) {
3819
+ localVarQueryParameter['limit'] = limit;
3820
+ }
3821
+
3822
+
3823
+
3687
3824
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3688
3825
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3689
3826
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3826,7 +3963,7 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
3826
3963
  };
3827
3964
  },
3828
3965
  /**
3829
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
3966
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
3830
3967
  * @summary Send a message to a chat thread
3831
3968
  * @param {string} aid Agent ID
3832
3969
  * @param {string} chatId Chat ID
@@ -3985,6 +4122,21 @@ export const ChatApiFp = function(configuration?: Configuration) {
3985
4122
  const localVarOperationServerBasePath = operationServerMap['ChatApi.getMessageById']?.[localVarOperationServerIndex]?.url;
3986
4123
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3987
4124
  },
4125
+ /**
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
4127
+ * @summary Skill History
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
4131
+ * @param {*} [options] Override http request option.
4132
+ * @throws {RequiredError}
4133
+ */
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);
4136
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4137
+ const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
4138
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4139
+ },
3988
4140
  /**
3989
4141
  * Retrieve all chat threads associated with a specific agent for the current user.
3990
4142
  * @summary List chat threads for an agent
@@ -4029,7 +4181,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4029
4181
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4030
4182
  },
4031
4183
  /**
4032
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
4184
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
4033
4185
  * @summary Send a message to a chat thread
4034
4186
  * @param {string} aid Agent ID
4035
4187
  * @param {string} chatId Chat ID
@@ -4110,6 +4262,18 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4110
4262
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage> {
4111
4263
  return localVarFp.getMessageById(messageId, options).then((request) => request(axios, basePath));
4112
4264
  },
4265
+ /**
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
4267
+ * @summary Skill History
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
4271
+ * @param {*} [options] Override http request option.
4272
+ * @throws {RequiredError}
4273
+ */
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));
4276
+ },
4113
4277
  /**
4114
4278
  * Retrieve all chat threads associated with a specific agent for the current user.
4115
4279
  * @summary List chat threads for an agent
@@ -4145,7 +4309,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4145
4309
  return localVarFp.retryMessageInChat(aid, chatId, options).then((request) => request(axios, basePath));
4146
4310
  },
4147
4311
  /**
4148
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
4312
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
4149
4313
  * @summary Send a message to a chat thread
4150
4314
  * @param {string} aid Agent ID
4151
4315
  * @param {string} chatId Chat ID
@@ -4228,6 +4392,20 @@ export class ChatApi extends BaseAPI {
4228
4392
  return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
4229
4393
  }
4230
4394
 
4395
+ /**
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
4397
+ * @summary Skill History
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
4401
+ * @param {*} [options] Override http request option.
4402
+ * @throws {RequiredError}
4403
+ * @memberof ChatApi
4404
+ */
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));
4407
+ }
4408
+
4231
4409
  /**
4232
4410
  * Retrieve all chat threads associated with a specific agent for the current user.
4233
4411
  * @summary List chat threads for an agent
@@ -4269,7 +4447,7 @@ export class ChatApi extends BaseAPI {
4269
4447
  }
4270
4448
 
4271
4449
  /**
4272
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
4450
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
4273
4451
  * @summary Send a message to a chat thread
4274
4452
  * @param {string} aid Agent ID
4275
4453
  * @param {string} chatId Chat ID
@@ -5035,7 +5213,7 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
5035
5213
  * @param {*} [options] Override http request option.
5036
5214
  * @throws {RequiredError}
5037
5215
  */
5038
- healthCheckHealthGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5216
+ healthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5039
5217
  const localVarPath = `/health`;
5040
5218
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5041
5219
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5075,10 +5253,10 @@ export const HealthApiFp = function(configuration?: Configuration) {
5075
5253
  * @param {*} [options] Override http request option.
5076
5254
  * @throws {RequiredError}
5077
5255
  */
5078
- async healthCheckHealthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5079
- const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheckHealthGet(options);
5256
+ async healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5257
+ const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheck(options);
5080
5258
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5081
- const localVarOperationServerBasePath = operationServerMap['HealthApi.healthCheckHealthGet']?.[localVarOperationServerIndex]?.url;
5259
+ const localVarOperationServerBasePath = operationServerMap['HealthApi.healthCheck']?.[localVarOperationServerIndex]?.url;
5082
5260
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5083
5261
  },
5084
5262
  }
@@ -5097,8 +5275,8 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
5097
5275
  * @param {*} [options] Override http request option.
5098
5276
  * @throws {RequiredError}
5099
5277
  */
5100
- healthCheckHealthGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
5101
- return localVarFp.healthCheckHealthGet(options).then((request) => request(axios, basePath));
5278
+ healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<any> {
5279
+ return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
5102
5280
  },
5103
5281
  };
5104
5282
  };
@@ -5117,8 +5295,8 @@ export class HealthApi extends BaseAPI {
5117
5295
  * @throws {RequiredError}
5118
5296
  * @memberof HealthApi
5119
5297
  */
5120
- public healthCheckHealthGet(options?: RawAxiosRequestConfig) {
5121
- return HealthApiFp(this.configuration).healthCheckHealthGet(options).then((request) => request(this.axios, this.basePath));
5298
+ public healthCheck(options?: RawAxiosRequestConfig) {
5299
+ return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
5122
5300
  }
5123
5301
  }
5124
5302
 
@@ -5166,7 +5344,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
5166
5344
  * @param {*} [options] Override http request option.
5167
5345
  * @throws {RequiredError}
5168
5346
  */
5169
- getLlmsMetadataLlmsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5347
+ getLlms: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5170
5348
  const localVarPath = `/metadata/llms`;
5171
5349
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5172
5350
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5272,7 +5450,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
5272
5450
  * @param {*} [options] Override http request option.
5273
5451
  * @throws {RequiredError}
5274
5452
  */
5275
- getSkillsMetadataSkillsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5453
+ getSkills: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5276
5454
  const localVarPath = `/metadata/skills`;
5277
5455
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5278
5456
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5324,10 +5502,10 @@ export const MetadataApiFp = function(configuration?: Configuration) {
5324
5502
  * @param {*} [options] Override http request option.
5325
5503
  * @throws {RequiredError}
5326
5504
  */
5327
- async getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>> {
5328
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLlmsMetadataLlmsGet(options);
5505
+ async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>> {
5506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLlms(options);
5329
5507
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5330
- const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlmsMetadataLlmsGet']?.[localVarOperationServerIndex]?.url;
5508
+ const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlms']?.[localVarOperationServerIndex]?.url;
5331
5509
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5332
5510
  },
5333
5511
  /**
@@ -5364,10 +5542,10 @@ export const MetadataApiFp = function(configuration?: Configuration) {
5364
5542
  * @param {*} [options] Override http request option.
5365
5543
  * @throws {RequiredError}
5366
5544
  */
5367
- async getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>> {
5368
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillsMetadataSkillsGet(options);
5545
+ async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>> {
5546
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSkills(options);
5369
5547
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5370
- const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkillsMetadataSkillsGet']?.[localVarOperationServerIndex]?.url;
5548
+ const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkills']?.[localVarOperationServerIndex]?.url;
5371
5549
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5372
5550
  },
5373
5551
  }
@@ -5395,8 +5573,8 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
5395
5573
  * @param {*} [options] Override http request option.
5396
5574
  * @throws {RequiredError}
5397
5575
  */
5398
- getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>> {
5399
- return localVarFp.getLlmsMetadataLlmsGet(options).then((request) => request(axios, basePath));
5576
+ getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>> {
5577
+ return localVarFp.getLlms(options).then((request) => request(axios, basePath));
5400
5578
  },
5401
5579
  /**
5402
5580
  * Get the icon for a specific skill
@@ -5426,8 +5604,8 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
5426
5604
  * @param {*} [options] Override http request option.
5427
5605
  * @throws {RequiredError}
5428
5606
  */
5429
- getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>> {
5430
- return localVarFp.getSkillsMetadataSkillsGet(options).then((request) => request(axios, basePath));
5607
+ getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>> {
5608
+ return localVarFp.getSkills(options).then((request) => request(axios, basePath));
5431
5609
  },
5432
5610
  };
5433
5611
  };
@@ -5457,8 +5635,8 @@ export class MetadataApi extends BaseAPI {
5457
5635
  * @throws {RequiredError}
5458
5636
  * @memberof MetadataApi
5459
5637
  */
5460
- public getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig) {
5461
- return MetadataApiFp(this.configuration).getLlmsMetadataLlmsGet(options).then((request) => request(this.axios, this.basePath));
5638
+ public getLlms(options?: RawAxiosRequestConfig) {
5639
+ return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
5462
5640
  }
5463
5641
 
5464
5642
  /**
@@ -5494,8 +5672,8 @@ export class MetadataApi extends BaseAPI {
5494
5672
  * @throws {RequiredError}
5495
5673
  * @memberof MetadataApi
5496
5674
  */
5497
- public getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig) {
5498
- return MetadataApiFp(this.configuration).getSkillsMetadataSkillsGet(options).then((request) => request(this.axios, this.basePath));
5675
+ public getSkills(options?: RawAxiosRequestConfig) {
5676
+ return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
5499
5677
  }
5500
5678
  }
5501
5679
 
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.31
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.31
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.31
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).