@crestal/nation-sdk 0.7.15 → 0.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.7.15
1
+ ## @crestal/nation-sdk@0.7.17
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.7.15 --save
39
+ npm install @crestal/nation-sdk@0.7.17 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -64,8 +64,10 @@ Class | Method | HTTP request | Description
64
64
  *AgentApi* | [**overrideAgentPublicInfo**](docs/AgentApi.md#overrideagentpublicinfo) | **PUT** /agents/{agent_id}/public-info | Override Agent Public Information
65
65
  *AgentApi* | [**publishAgent**](docs/AgentApi.md#publishagent) | **POST** /agents/{agent_id}/publish | Publish Agent
66
66
  *AgentApi* | [**resetAgentApiKey**](docs/AgentApi.md#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key
67
+ *AgentApi* | [**unpublishAgent**](docs/AgentApi.md#unpublishagent) | **POST** /agents/{agent_id}/unpublish | Unpublish Agent
67
68
  *AgentApi* | [**validateAgentCreate**](docs/AgentApi.md#validateagentcreate) | **POST** /agent/validate | Validate Agent Create
68
69
  *AgentApi* | [**validateAgentUpdate**](docs/AgentApi.md#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update
70
+ *ChatApi* | [**clearChatThreadMemory**](docs/ChatApi.md#clearchatthreadmemory) | **POST** /agents/{aid}/chats/{chat_id}/clear | Clear chat thread short-term memory
69
71
  *ChatApi* | [**createChatThread**](docs/ChatApi.md#createchatthread) | **POST** /agents/{aid}/chats | Create a new chat thread
70
72
  *ChatApi* | [**deleteChatThread**](docs/ChatApi.md#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread
71
73
  *ChatApi* | [**getChatThreadById**](docs/ChatApi.md#getchatthreadbyid) | **GET** /agents/{aid}/chats/{chat_id} | Get chat thread by ID
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.15
7
+ * The version of the OpenAPI document: 0.7.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4196,6 +4196,44 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
4196
4196
 
4197
4197
 
4198
4198
 
4199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4202
+
4203
+ return {
4204
+ url: toPathString(localVarUrlObj),
4205
+ options: localVarRequestOptions,
4206
+ };
4207
+ },
4208
+ /**
4209
+ * Unpublish an agent by setting its state back to private.
4210
+ * @summary Unpublish Agent
4211
+ * @param {string} agentId ID of the agent to unpublish
4212
+ * @param {*} [options] Override http request option.
4213
+ * @throws {RequiredError}
4214
+ */
4215
+ unpublishAgent: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4216
+ // verify required parameter 'agentId' is not null or undefined
4217
+ assertParamExists('unpublishAgent', 'agentId', agentId)
4218
+ const localVarPath = `/agents/{agent_id}/unpublish`
4219
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
4220
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4221
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4222
+ let baseOptions;
4223
+ if (configuration) {
4224
+ baseOptions = configuration.baseOptions;
4225
+ }
4226
+
4227
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4228
+ const localVarHeaderParameter = {} as any;
4229
+ const localVarQueryParameter = {} as any;
4230
+
4231
+ // authentication HTTPBearer required
4232
+ // http bearer authentication required
4233
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4234
+
4235
+
4236
+
4199
4237
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4200
4238
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4201
4239
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4472,6 +4510,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
4472
4510
  const localVarOperationServerBasePath = operationServerMap['AgentApi.resetAgentApiKey']?.[localVarOperationServerIndex]?.url;
4473
4511
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4474
4512
  },
4513
+ /**
4514
+ * Unpublish an agent by setting its state back to private.
4515
+ * @summary Unpublish Agent
4516
+ * @param {string} agentId ID of the agent to unpublish
4517
+ * @param {*} [options] Override http request option.
4518
+ * @throws {RequiredError}
4519
+ */
4520
+ async unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
4521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishAgent(agentId, options);
4522
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4523
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.unpublishAgent']?.[localVarOperationServerIndex]?.url;
4524
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4525
+ },
4475
4526
  /**
4476
4527
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4477
4528
  * @summary Validate Agent Create
@@ -4647,6 +4698,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
4647
4698
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse> {
4648
4699
  return localVarFp.resetAgentApiKey(agentId, options).then((request) => request(axios, basePath));
4649
4700
  },
4701
+ /**
4702
+ * Unpublish an agent by setting its state back to private.
4703
+ * @summary Unpublish Agent
4704
+ * @param {string} agentId ID of the agent to unpublish
4705
+ * @param {*} [options] Override http request option.
4706
+ * @throws {RequiredError}
4707
+ */
4708
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
4709
+ return localVarFp.unpublishAgent(agentId, options).then((request) => request(axios, basePath));
4710
+ },
4650
4711
  /**
4651
4712
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4652
4713
  * @summary Validate Agent Create
@@ -4842,6 +4903,18 @@ export class AgentApi extends BaseAPI {
4842
4903
  return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
4843
4904
  }
4844
4905
 
4906
+ /**
4907
+ * Unpublish an agent by setting its state back to private.
4908
+ * @summary Unpublish Agent
4909
+ * @param {string} agentId ID of the agent to unpublish
4910
+ * @param {*} [options] Override http request option.
4911
+ * @throws {RequiredError}
4912
+ * @memberof AgentApi
4913
+ */
4914
+ public unpublishAgent(agentId: string, options?: RawAxiosRequestConfig) {
4915
+ return AgentApiFp(this.configuration).unpublishAgent(agentId, options).then((request) => request(this.axios, this.basePath));
4916
+ }
4917
+
4845
4918
  /**
4846
4919
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4847
4920
  * @summary Validate Agent Create
@@ -4876,6 +4949,48 @@ export class AgentApi extends BaseAPI {
4876
4949
  */
4877
4950
  export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
4878
4951
  return {
4952
+ /**
4953
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4954
+ * @summary Clear chat thread short-term memory
4955
+ * @param {string} aid Agent ID
4956
+ * @param {string} chatId Chat ID
4957
+ * @param {*} [options] Override http request option.
4958
+ * @throws {RequiredError}
4959
+ */
4960
+ clearChatThreadMemory: async (aid: string, chatId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4961
+ // verify required parameter 'aid' is not null or undefined
4962
+ assertParamExists('clearChatThreadMemory', 'aid', aid)
4963
+ // verify required parameter 'chatId' is not null or undefined
4964
+ assertParamExists('clearChatThreadMemory', 'chatId', chatId)
4965
+ const localVarPath = `/agents/{aid}/chats/{chat_id}/clear`
4966
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)))
4967
+ .replace(`{${"chat_id"}}`, encodeURIComponent(String(chatId)));
4968
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4969
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4970
+ let baseOptions;
4971
+ if (configuration) {
4972
+ baseOptions = configuration.baseOptions;
4973
+ }
4974
+
4975
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4976
+ const localVarHeaderParameter = {} as any;
4977
+ const localVarQueryParameter = {} as any;
4978
+
4979
+ // authentication HTTPBearer required
4980
+ // http bearer authentication required
4981
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4982
+
4983
+
4984
+
4985
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4986
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4987
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4988
+
4989
+ return {
4990
+ url: toPathString(localVarUrlObj),
4991
+ options: localVarRequestOptions,
4992
+ };
4993
+ },
4879
4994
  /**
4880
4995
  * Create a new chat thread for a specific agent and user.
4881
4996
  * @summary Create a new chat thread
@@ -5322,6 +5437,20 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
5322
5437
  export const ChatApiFp = function(configuration?: Configuration) {
5323
5438
  const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
5324
5439
  return {
5440
+ /**
5441
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
5442
+ * @summary Clear chat thread short-term memory
5443
+ * @param {string} aid Agent ID
5444
+ * @param {string} chatId Chat ID
5445
+ * @param {*} [options] Override http request option.
5446
+ * @throws {RequiredError}
5447
+ */
5448
+ async clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clearChatThreadMemory(aid, chatId, options);
5450
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5451
+ const localVarOperationServerBasePath = operationServerMap['ChatApi.clearChatThreadMemory']?.[localVarOperationServerIndex]?.url;
5452
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5453
+ },
5325
5454
  /**
5326
5455
  * Create a new chat thread for a specific agent and user.
5327
5456
  * @summary Create a new chat thread
@@ -5474,6 +5603,17 @@ export const ChatApiFp = function(configuration?: Configuration) {
5474
5603
  export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5475
5604
  const localVarFp = ChatApiFp(configuration)
5476
5605
  return {
5606
+ /**
5607
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
5608
+ * @summary Clear chat thread short-term memory
5609
+ * @param {string} aid Agent ID
5610
+ * @param {string} chatId Chat ID
5611
+ * @param {*} [options] Override http request option.
5612
+ * @throws {RequiredError}
5613
+ */
5614
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5615
+ return localVarFp.clearChatThreadMemory(aid, chatId, options).then((request) => request(axios, basePath));
5616
+ },
5477
5617
  /**
5478
5618
  * Create a new chat thread for a specific agent and user.
5479
5619
  * @summary Create a new chat thread
@@ -5596,6 +5736,19 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
5596
5736
  * @extends {BaseAPI}
5597
5737
  */
5598
5738
  export class ChatApi extends BaseAPI {
5739
+ /**
5740
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
5741
+ * @summary Clear chat thread short-term memory
5742
+ * @param {string} aid Agent ID
5743
+ * @param {string} chatId Chat ID
5744
+ * @param {*} [options] Override http request option.
5745
+ * @throws {RequiredError}
5746
+ * @memberof ChatApi
5747
+ */
5748
+ public clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
5749
+ return ChatApiFp(this.configuration).clearChatThreadMemory(aid, chatId, options).then((request) => request(this.axios, this.basePath));
5750
+ }
5751
+
5599
5752
  /**
5600
5753
  * Create a new chat thread for a specific agent and user.
5601
5754
  * @summary Create a new chat thread
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.15
7
+ * The version of the OpenAPI document: 0.7.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.15
7
+ * The version of the OpenAPI document: 0.7.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.15
7
+ * The version of the OpenAPI document: 0.7.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.15
5
+ * The version of the OpenAPI document: 0.7.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3688,6 +3688,14 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
3688
3688
  * @throws {RequiredError}
3689
3689
  */
3690
3690
  resetAgentApiKey: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3691
+ /**
3692
+ * Unpublish an agent by setting its state back to private.
3693
+ * @summary Unpublish Agent
3694
+ * @param {string} agentId ID of the agent to unpublish
3695
+ * @param {*} [options] Override http request option.
3696
+ * @throws {RequiredError}
3697
+ */
3698
+ unpublishAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3691
3699
  /**
3692
3700
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
3693
3701
  * @summary Validate Agent Create
@@ -3823,6 +3831,14 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
3823
3831
  * @throws {RequiredError}
3824
3832
  */
3825
3833
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentApiKeyResponse>>;
3834
+ /**
3835
+ * Unpublish an agent by setting its state back to private.
3836
+ * @summary Unpublish Agent
3837
+ * @param {string} agentId ID of the agent to unpublish
3838
+ * @param {*} [options] Override http request option.
3839
+ * @throws {RequiredError}
3840
+ */
3841
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
3826
3842
  /**
3827
3843
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
3828
3844
  * @summary Validate Agent Create
@@ -3958,6 +3974,14 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
3958
3974
  * @throws {RequiredError}
3959
3975
  */
3960
3976
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse>;
3977
+ /**
3978
+ * Unpublish an agent by setting its state back to private.
3979
+ * @summary Unpublish Agent
3980
+ * @param {string} agentId ID of the agent to unpublish
3981
+ * @param {*} [options] Override http request option.
3982
+ * @throws {RequiredError}
3983
+ */
3984
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
3961
3985
  /**
3962
3986
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
3963
3987
  * @summary Validate Agent Create
@@ -4108,6 +4132,15 @@ export declare class AgentApi extends BaseAPI {
4108
4132
  * @memberof AgentApi
4109
4133
  */
4110
4134
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any, {}>>;
4135
+ /**
4136
+ * Unpublish an agent by setting its state back to private.
4137
+ * @summary Unpublish Agent
4138
+ * @param {string} agentId ID of the agent to unpublish
4139
+ * @param {*} [options] Override http request option.
4140
+ * @throws {RequiredError}
4141
+ * @memberof AgentApi
4142
+ */
4143
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
4111
4144
  /**
4112
4145
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4113
4146
  * @summary Validate Agent Create
@@ -4133,6 +4166,15 @@ export declare class AgentApi extends BaseAPI {
4133
4166
  * @export
4134
4167
  */
4135
4168
  export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) => {
4169
+ /**
4170
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4171
+ * @summary Clear chat thread short-term memory
4172
+ * @param {string} aid Agent ID
4173
+ * @param {string} chatId Chat ID
4174
+ * @param {*} [options] Override http request option.
4175
+ * @throws {RequiredError}
4176
+ */
4177
+ clearChatThreadMemory: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4136
4178
  /**
4137
4179
  * Create a new chat thread for a specific agent and user.
4138
4180
  * @summary Create a new chat thread
@@ -4231,6 +4273,15 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
4231
4273
  * @export
4232
4274
  */
4233
4275
  export declare const ChatApiFp: (configuration?: Configuration) => {
4276
+ /**
4277
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4278
+ * @summary Clear chat thread short-term memory
4279
+ * @param {string} aid Agent ID
4280
+ * @param {string} chatId Chat ID
4281
+ * @param {*} [options] Override http request option.
4282
+ * @throws {RequiredError}
4283
+ */
4284
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4234
4285
  /**
4235
4286
  * Create a new chat thread for a specific agent and user.
4236
4287
  * @summary Create a new chat thread
@@ -4329,6 +4380,15 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
4329
4380
  * @export
4330
4381
  */
4331
4382
  export declare const ChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4383
+ /**
4384
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4385
+ * @summary Clear chat thread short-term memory
4386
+ * @param {string} aid Agent ID
4387
+ * @param {string} chatId Chat ID
4388
+ * @param {*} [options] Override http request option.
4389
+ * @throws {RequiredError}
4390
+ */
4391
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
4332
4392
  /**
4333
4393
  * Create a new chat thread for a specific agent and user.
4334
4394
  * @summary Create a new chat thread
@@ -4429,6 +4489,16 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
4429
4489
  * @extends {BaseAPI}
4430
4490
  */
4431
4491
  export declare class ChatApi extends BaseAPI {
4492
+ /**
4493
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4494
+ * @summary Clear chat thread short-term memory
4495
+ * @param {string} aid Agent ID
4496
+ * @param {string} chatId Chat ID
4497
+ * @param {*} [options] Override http request option.
4498
+ * @throws {RequiredError}
4499
+ * @memberof ChatApi
4500
+ */
4501
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4432
4502
  /**
4433
4503
  * Create a new chat thread for a specific agent and user.
4434
4504
  * @summary Create a new chat thread
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.15
8
+ * The version of the OpenAPI document: 0.7.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -996,6 +996,53 @@ var AgentApiAxiosParamCreator = function (configuration) {
996
996
  });
997
997
  });
998
998
  },
999
+ /**
1000
+ * Unpublish an agent by setting its state back to private.
1001
+ * @summary Unpublish Agent
1002
+ * @param {string} agentId ID of the agent to unpublish
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ unpublishAgent: function (agentId_1) {
1007
+ var args_1 = [];
1008
+ for (var _i = 1; _i < arguments.length; _i++) {
1009
+ args_1[_i - 1] = arguments[_i];
1010
+ }
1011
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
1012
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1013
+ if (options === void 0) { options = {}; }
1014
+ return __generator(this, function (_a) {
1015
+ switch (_a.label) {
1016
+ case 0:
1017
+ // verify required parameter 'agentId' is not null or undefined
1018
+ (0, common_1.assertParamExists)('unpublishAgent', 'agentId', agentId);
1019
+ localVarPath = "/agents/{agent_id}/unpublish"
1020
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
1021
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1022
+ if (configuration) {
1023
+ baseOptions = configuration.baseOptions;
1024
+ }
1025
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1026
+ localVarHeaderParameter = {};
1027
+ localVarQueryParameter = {};
1028
+ // authentication HTTPBearer required
1029
+ // http bearer authentication required
1030
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1031
+ case 1:
1032
+ // authentication HTTPBearer required
1033
+ // http bearer authentication required
1034
+ _a.sent();
1035
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1036
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1037
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1038
+ return [2 /*return*/, {
1039
+ url: (0, common_1.toPathString)(localVarUrlObj),
1040
+ options: localVarRequestOptions,
1041
+ }];
1042
+ }
1043
+ });
1044
+ });
1045
+ },
999
1046
  /**
1000
1047
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1001
1048
  * @summary Validate Agent Create
@@ -1409,6 +1456,29 @@ var AgentApiFp = function (configuration) {
1409
1456
  });
1410
1457
  });
1411
1458
  },
1459
+ /**
1460
+ * Unpublish an agent by setting its state back to private.
1461
+ * @summary Unpublish Agent
1462
+ * @param {string} agentId ID of the agent to unpublish
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ unpublishAgent: function (agentId, options) {
1467
+ return __awaiter(this, void 0, void 0, function () {
1468
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1469
+ var _a, _b, _c;
1470
+ return __generator(this, function (_d) {
1471
+ switch (_d.label) {
1472
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unpublishAgent(agentId, options)];
1473
+ case 1:
1474
+ localVarAxiosArgs = _d.sent();
1475
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1476
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.unpublishAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1477
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1478
+ }
1479
+ });
1480
+ });
1481
+ },
1412
1482
  /**
1413
1483
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1414
1484
  * @summary Validate Agent Create
@@ -1604,6 +1674,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1604
1674
  resetAgentApiKey: function (agentId, options) {
1605
1675
  return localVarFp.resetAgentApiKey(agentId, options).then(function (request) { return request(axios, basePath); });
1606
1676
  },
1677
+ /**
1678
+ * Unpublish an agent by setting its state back to private.
1679
+ * @summary Unpublish Agent
1680
+ * @param {string} agentId ID of the agent to unpublish
1681
+ * @param {*} [options] Override http request option.
1682
+ * @throws {RequiredError}
1683
+ */
1684
+ unpublishAgent: function (agentId, options) {
1685
+ return localVarFp.unpublishAgent(agentId, options).then(function (request) { return request(axios, basePath); });
1686
+ },
1607
1687
  /**
1608
1688
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1609
1689
  * @summary Validate Agent Create
@@ -1803,6 +1883,18 @@ var AgentApi = /** @class */ (function (_super) {
1803
1883
  var _this = this;
1804
1884
  return (0, exports.AgentApiFp)(this.configuration).resetAgentApiKey(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1805
1885
  };
1886
+ /**
1887
+ * Unpublish an agent by setting its state back to private.
1888
+ * @summary Unpublish Agent
1889
+ * @param {string} agentId ID of the agent to unpublish
1890
+ * @param {*} [options] Override http request option.
1891
+ * @throws {RequiredError}
1892
+ * @memberof AgentApi
1893
+ */
1894
+ AgentApi.prototype.unpublishAgent = function (agentId, options) {
1895
+ var _this = this;
1896
+ return (0, exports.AgentApiFp)(this.configuration).unpublishAgent(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1897
+ };
1806
1898
  /**
1807
1899
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1808
1900
  * @summary Validate Agent Create
@@ -1838,6 +1930,57 @@ exports.AgentApi = AgentApi;
1838
1930
  var ChatApiAxiosParamCreator = function (configuration) {
1839
1931
  var _this = this;
1840
1932
  return {
1933
+ /**
1934
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
1935
+ * @summary Clear chat thread short-term memory
1936
+ * @param {string} aid Agent ID
1937
+ * @param {string} chatId Chat ID
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ */
1941
+ clearChatThreadMemory: function (aid_1, chatId_1) {
1942
+ var args_1 = [];
1943
+ for (var _i = 2; _i < arguments.length; _i++) {
1944
+ args_1[_i - 2] = arguments[_i];
1945
+ }
1946
+ return __awaiter(_this, __spreadArray([aid_1, chatId_1], args_1, true), void 0, function (aid, chatId, options) {
1947
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1948
+ if (options === void 0) { options = {}; }
1949
+ return __generator(this, function (_a) {
1950
+ switch (_a.label) {
1951
+ case 0:
1952
+ // verify required parameter 'aid' is not null or undefined
1953
+ (0, common_1.assertParamExists)('clearChatThreadMemory', 'aid', aid);
1954
+ // verify required parameter 'chatId' is not null or undefined
1955
+ (0, common_1.assertParamExists)('clearChatThreadMemory', 'chatId', chatId);
1956
+ localVarPath = "/agents/{aid}/chats/{chat_id}/clear"
1957
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)))
1958
+ .replace("{".concat("chat_id", "}"), encodeURIComponent(String(chatId)));
1959
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1960
+ if (configuration) {
1961
+ baseOptions = configuration.baseOptions;
1962
+ }
1963
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1964
+ localVarHeaderParameter = {};
1965
+ localVarQueryParameter = {};
1966
+ // authentication HTTPBearer required
1967
+ // http bearer authentication required
1968
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1969
+ case 1:
1970
+ // authentication HTTPBearer required
1971
+ // http bearer authentication required
1972
+ _a.sent();
1973
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1974
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1975
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1976
+ return [2 /*return*/, {
1977
+ url: (0, common_1.toPathString)(localVarUrlObj),
1978
+ options: localVarRequestOptions,
1979
+ }];
1980
+ }
1981
+ });
1982
+ });
1983
+ },
1841
1984
  /**
1842
1985
  * Create a new chat thread for a specific agent and user.
1843
1986
  * @summary Create a new chat thread
@@ -2368,6 +2511,30 @@ exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
2368
2511
  var ChatApiFp = function (configuration) {
2369
2512
  var localVarAxiosParamCreator = (0, exports.ChatApiAxiosParamCreator)(configuration);
2370
2513
  return {
2514
+ /**
2515
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
2516
+ * @summary Clear chat thread short-term memory
2517
+ * @param {string} aid Agent ID
2518
+ * @param {string} chatId Chat ID
2519
+ * @param {*} [options] Override http request option.
2520
+ * @throws {RequiredError}
2521
+ */
2522
+ clearChatThreadMemory: function (aid, chatId, options) {
2523
+ return __awaiter(this, void 0, void 0, function () {
2524
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2525
+ var _a, _b, _c;
2526
+ return __generator(this, function (_d) {
2527
+ switch (_d.label) {
2528
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clearChatThreadMemory(aid, chatId, options)];
2529
+ case 1:
2530
+ localVarAxiosArgs = _d.sent();
2531
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2532
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.clearChatThreadMemory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2533
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2534
+ }
2535
+ });
2536
+ });
2537
+ },
2371
2538
  /**
2372
2539
  * Create a new chat thread for a specific agent and user.
2373
2540
  * @summary Create a new chat thread
@@ -2620,6 +2787,17 @@ exports.ChatApiFp = ChatApiFp;
2620
2787
  var ChatApiFactory = function (configuration, basePath, axios) {
2621
2788
  var localVarFp = (0, exports.ChatApiFp)(configuration);
2622
2789
  return {
2790
+ /**
2791
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
2792
+ * @summary Clear chat thread short-term memory
2793
+ * @param {string} aid Agent ID
2794
+ * @param {string} chatId Chat ID
2795
+ * @param {*} [options] Override http request option.
2796
+ * @throws {RequiredError}
2797
+ */
2798
+ clearChatThreadMemory: function (aid, chatId, options) {
2799
+ return localVarFp.clearChatThreadMemory(aid, chatId, options).then(function (request) { return request(axios, basePath); });
2800
+ },
2623
2801
  /**
2624
2802
  * Create a new chat thread for a specific agent and user.
2625
2803
  * @summary Create a new chat thread
@@ -2746,6 +2924,19 @@ var ChatApi = /** @class */ (function (_super) {
2746
2924
  function ChatApi() {
2747
2925
  return _super !== null && _super.apply(this, arguments) || this;
2748
2926
  }
2927
+ /**
2928
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
2929
+ * @summary Clear chat thread short-term memory
2930
+ * @param {string} aid Agent ID
2931
+ * @param {string} chatId Chat ID
2932
+ * @param {*} [options] Override http request option.
2933
+ * @throws {RequiredError}
2934
+ * @memberof ChatApi
2935
+ */
2936
+ ChatApi.prototype.clearChatThreadMemory = function (aid, chatId, options) {
2937
+ var _this = this;
2938
+ return (0, exports.ChatApiFp)(this.configuration).clearChatThreadMemory(aid, chatId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2939
+ };
2749
2940
  /**
2750
2941
  * Create a new chat thread for a specific agent and user.
2751
2942
  * @summary Create a new chat thread
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.15
5
+ * The version of the OpenAPI document: 0.7.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.15
8
+ * The version of the OpenAPI document: 0.7.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.15
5
+ * The version of the OpenAPI document: 0.7.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.15
8
+ * The version of the OpenAPI document: 0.7.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.15
5
+ * The version of the OpenAPI document: 0.7.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.15
8
+ * The version of the OpenAPI document: 0.7.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.7.15
5
+ * The version of the OpenAPI document: 0.7.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.7.15
8
+ * The version of the OpenAPI document: 0.7.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -17,6 +17,7 @@ All URIs are relative to *http://localhost*
17
17
  |[**overrideAgentPublicInfo**](#overrideagentpublicinfo) | **PUT** /agents/{agent_id}/public-info | Override Agent Public Information|
18
18
  |[**publishAgent**](#publishagent) | **POST** /agents/{agent_id}/publish | Publish Agent|
19
19
  |[**resetAgentApiKey**](#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key|
20
+ |[**unpublishAgent**](#unpublishagent) | **POST** /agents/{agent_id}/unpublish | Unpublish Agent|
20
21
  |[**validateAgentCreate**](#validateagentcreate) | **POST** /agent/validate | Validate Agent Create|
21
22
  |[**validateAgentUpdate**](#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update|
22
23
 
@@ -732,6 +733,58 @@ const { status, data } = await apiInstance.resetAgentApiKey(
732
733
 
733
734
  [[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)
734
735
 
736
+ # **unpublishAgent**
737
+ > Agent unpublishAgent()
738
+
739
+ Unpublish an agent by setting its state back to private.
740
+
741
+ ### Example
742
+
743
+ ```typescript
744
+ import {
745
+ AgentApi,
746
+ Configuration
747
+ } from '@crestal/nation-sdk';
748
+
749
+ const configuration = new Configuration();
750
+ const apiInstance = new AgentApi(configuration);
751
+
752
+ let agentId: string; //ID of the agent to unpublish (default to undefined)
753
+
754
+ const { status, data } = await apiInstance.unpublishAgent(
755
+ agentId
756
+ );
757
+ ```
758
+
759
+ ### Parameters
760
+
761
+ |Name | Type | Description | Notes|
762
+ |------------- | ------------- | ------------- | -------------|
763
+ | **agentId** | [**string**] | ID of the agent to unpublish | defaults to undefined|
764
+
765
+
766
+ ### Return type
767
+
768
+ **Agent**
769
+
770
+ ### Authorization
771
+
772
+ [HTTPBearer](../README.md#HTTPBearer)
773
+
774
+ ### HTTP request headers
775
+
776
+ - **Content-Type**: Not defined
777
+ - **Accept**: application/json
778
+
779
+
780
+ ### HTTP response details
781
+ | Status code | Description | Response headers |
782
+ |-------------|-------------|------------------|
783
+ |**200** | Successful Response | - |
784
+ |**422** | Validation Error | - |
785
+
786
+ [[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)
787
+
735
788
  # **validateAgentCreate**
736
789
  > validateAgentCreate()
737
790
 
package/docs/ChatApi.md CHANGED
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**clearChatThreadMemory**](#clearchatthreadmemory) | **POST** /agents/{aid}/chats/{chat_id}/clear | Clear chat thread short-term memory|
7
8
  |[**createChatThread**](#createchatthread) | **POST** /agents/{aid}/chats | Create a new chat thread|
8
9
  |[**deleteChatThread**](#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread|
9
10
  |[**getChatThreadById**](#getchatthreadbyid) | **GET** /agents/{aid}/chats/{chat_id} | Get chat thread by ID|
@@ -15,6 +16,61 @@ All URIs are relative to *http://localhost*
15
16
  |[**sendMessageToChat**](#sendmessagetochat) | **POST** /agents/{aid}/chats/{chat_id}/messages | Send a message to a chat thread|
16
17
  |[**updateChatThread**](#updatechatthread) | **PATCH** /agents/{aid}/chats/{chat_id} | Update a chat thread|
17
18
 
19
+ # **clearChatThreadMemory**
20
+ > clearChatThreadMemory()
21
+
22
+ Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ ChatApi,
29
+ Configuration
30
+ } from '@crestal/nation-sdk';
31
+
32
+ const configuration = new Configuration();
33
+ const apiInstance = new ChatApi(configuration);
34
+
35
+ let aid: string; //Agent ID (default to undefined)
36
+ let chatId: string; //Chat ID (default to undefined)
37
+
38
+ const { status, data } = await apiInstance.clearChatThreadMemory(
39
+ aid,
40
+ chatId
41
+ );
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ |Name | Type | Description | Notes|
47
+ |------------- | ------------- | ------------- | -------------|
48
+ | **aid** | [**string**] | Agent ID | defaults to undefined|
49
+ | **chatId** | [**string**] | Chat ID | defaults to undefined|
50
+
51
+
52
+ ### Return type
53
+
54
+ void (empty response body)
55
+
56
+ ### Authorization
57
+
58
+ [HTTPBearer](../README.md#HTTPBearer)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: Not defined
63
+ - **Accept**: application/json
64
+
65
+
66
+ ### HTTP response details
67
+ | Status code | Description | Response headers |
68
+ |-------------|-------------|------------------|
69
+ |**204** | Successful Response | - |
70
+ |**422** | Validation Error | - |
71
+
72
+ [[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)
73
+
18
74
  # **createChatThread**
19
75
  > Chat createChatThread()
20
76
 
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
27
27
  **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
28
  **api_base** | **string** | | [optional] [default to undefined]
29
29
  **timeout** | **number** | | [optional] [default to 180]
30
- **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-25T07:55:16.795+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-25T07:55:16.795+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-26T05:14:33.854+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-26T05:14:33.854+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.15
7
+ * The version of the OpenAPI document: 0.7.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.7.15",
3
+ "version": "0.7.17",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {