@crestal/nation-sdk 0.7.15 → 0.7.16

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.16
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.16 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -66,6 +66,7 @@ Class | Method | HTTP request | Description
66
66
  *AgentApi* | [**resetAgentApiKey**](docs/AgentApi.md#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key
67
67
  *AgentApi* | [**validateAgentCreate**](docs/AgentApi.md#validateagentcreate) | **POST** /agent/validate | Validate Agent Create
68
68
  *AgentApi* | [**validateAgentUpdate**](docs/AgentApi.md#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update
69
+ *ChatApi* | [**clearChatThreadMemory**](docs/ChatApi.md#clearchatthreadmemory) | **POST** /agents/{aid}/chats/{chat_id}/clear | Clear chat thread short-term memory
69
70
  *ChatApi* | [**createChatThread**](docs/ChatApi.md#createchatthread) | **POST** /agents/{aid}/chats | Create a new chat thread
70
71
  *ChatApi* | [**deleteChatThread**](docs/ChatApi.md#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread
71
72
  *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.16
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4876,6 +4876,48 @@ export class AgentApi extends BaseAPI {
4876
4876
  */
4877
4877
  export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
4878
4878
  return {
4879
+ /**
4880
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4881
+ * @summary Clear chat thread short-term memory
4882
+ * @param {string} aid Agent ID
4883
+ * @param {string} chatId Chat ID
4884
+ * @param {*} [options] Override http request option.
4885
+ * @throws {RequiredError}
4886
+ */
4887
+ clearChatThreadMemory: async (aid: string, chatId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4888
+ // verify required parameter 'aid' is not null or undefined
4889
+ assertParamExists('clearChatThreadMemory', 'aid', aid)
4890
+ // verify required parameter 'chatId' is not null or undefined
4891
+ assertParamExists('clearChatThreadMemory', 'chatId', chatId)
4892
+ const localVarPath = `/agents/{aid}/chats/{chat_id}/clear`
4893
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)))
4894
+ .replace(`{${"chat_id"}}`, encodeURIComponent(String(chatId)));
4895
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4896
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4897
+ let baseOptions;
4898
+ if (configuration) {
4899
+ baseOptions = configuration.baseOptions;
4900
+ }
4901
+
4902
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4903
+ const localVarHeaderParameter = {} as any;
4904
+ const localVarQueryParameter = {} as any;
4905
+
4906
+ // authentication HTTPBearer required
4907
+ // http bearer authentication required
4908
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4909
+
4910
+
4911
+
4912
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4913
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4914
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4915
+
4916
+ return {
4917
+ url: toPathString(localVarUrlObj),
4918
+ options: localVarRequestOptions,
4919
+ };
4920
+ },
4879
4921
  /**
4880
4922
  * Create a new chat thread for a specific agent and user.
4881
4923
  * @summary Create a new chat thread
@@ -5322,6 +5364,20 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
5322
5364
  export const ChatApiFp = function(configuration?: Configuration) {
5323
5365
  const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
5324
5366
  return {
5367
+ /**
5368
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
5369
+ * @summary Clear chat thread short-term memory
5370
+ * @param {string} aid Agent ID
5371
+ * @param {string} chatId Chat ID
5372
+ * @param {*} [options] Override http request option.
5373
+ * @throws {RequiredError}
5374
+ */
5375
+ async clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clearChatThreadMemory(aid, chatId, options);
5377
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5378
+ const localVarOperationServerBasePath = operationServerMap['ChatApi.clearChatThreadMemory']?.[localVarOperationServerIndex]?.url;
5379
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5380
+ },
5325
5381
  /**
5326
5382
  * Create a new chat thread for a specific agent and user.
5327
5383
  * @summary Create a new chat thread
@@ -5474,6 +5530,17 @@ export const ChatApiFp = function(configuration?: Configuration) {
5474
5530
  export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5475
5531
  const localVarFp = ChatApiFp(configuration)
5476
5532
  return {
5533
+ /**
5534
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
5535
+ * @summary Clear chat thread short-term memory
5536
+ * @param {string} aid Agent ID
5537
+ * @param {string} chatId Chat ID
5538
+ * @param {*} [options] Override http request option.
5539
+ * @throws {RequiredError}
5540
+ */
5541
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5542
+ return localVarFp.clearChatThreadMemory(aid, chatId, options).then((request) => request(axios, basePath));
5543
+ },
5477
5544
  /**
5478
5545
  * Create a new chat thread for a specific agent and user.
5479
5546
  * @summary Create a new chat thread
@@ -5596,6 +5663,19 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
5596
5663
  * @extends {BaseAPI}
5597
5664
  */
5598
5665
  export class ChatApi extends BaseAPI {
5666
+ /**
5667
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
5668
+ * @summary Clear chat thread short-term memory
5669
+ * @param {string} aid Agent ID
5670
+ * @param {string} chatId Chat ID
5671
+ * @param {*} [options] Override http request option.
5672
+ * @throws {RequiredError}
5673
+ * @memberof ChatApi
5674
+ */
5675
+ public clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
5676
+ return ChatApiFp(this.configuration).clearChatThreadMemory(aid, chatId, options).then((request) => request(this.axios, this.basePath));
5677
+ }
5678
+
5599
5679
  /**
5600
5680
  * Create a new chat thread for a specific agent and user.
5601
5681
  * @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.16
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.16
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.16
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.16
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4133,6 +4133,15 @@ export declare class AgentApi extends BaseAPI {
4133
4133
  * @export
4134
4134
  */
4135
4135
  export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) => {
4136
+ /**
4137
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4138
+ * @summary Clear chat thread short-term memory
4139
+ * @param {string} aid Agent ID
4140
+ * @param {string} chatId Chat ID
4141
+ * @param {*} [options] Override http request option.
4142
+ * @throws {RequiredError}
4143
+ */
4144
+ clearChatThreadMemory: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4136
4145
  /**
4137
4146
  * Create a new chat thread for a specific agent and user.
4138
4147
  * @summary Create a new chat thread
@@ -4231,6 +4240,15 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
4231
4240
  * @export
4232
4241
  */
4233
4242
  export declare const ChatApiFp: (configuration?: Configuration) => {
4243
+ /**
4244
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4245
+ * @summary Clear chat thread short-term memory
4246
+ * @param {string} aid Agent ID
4247
+ * @param {string} chatId Chat ID
4248
+ * @param {*} [options] Override http request option.
4249
+ * @throws {RequiredError}
4250
+ */
4251
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4234
4252
  /**
4235
4253
  * Create a new chat thread for a specific agent and user.
4236
4254
  * @summary Create a new chat thread
@@ -4329,6 +4347,15 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
4329
4347
  * @export
4330
4348
  */
4331
4349
  export declare const ChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4350
+ /**
4351
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4352
+ * @summary Clear chat thread short-term memory
4353
+ * @param {string} aid Agent ID
4354
+ * @param {string} chatId Chat ID
4355
+ * @param {*} [options] Override http request option.
4356
+ * @throws {RequiredError}
4357
+ */
4358
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
4332
4359
  /**
4333
4360
  * Create a new chat thread for a specific agent and user.
4334
4361
  * @summary Create a new chat thread
@@ -4429,6 +4456,16 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
4429
4456
  * @extends {BaseAPI}
4430
4457
  */
4431
4458
  export declare class ChatApi extends BaseAPI {
4459
+ /**
4460
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
4461
+ * @summary Clear chat thread short-term memory
4462
+ * @param {string} aid Agent ID
4463
+ * @param {string} chatId Chat ID
4464
+ * @param {*} [options] Override http request option.
4465
+ * @throws {RequiredError}
4466
+ * @memberof ChatApi
4467
+ */
4468
+ clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4432
4469
  /**
4433
4470
  * Create a new chat thread for a specific agent and user.
4434
4471
  * @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.16
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1838,6 +1838,57 @@ exports.AgentApi = AgentApi;
1838
1838
  var ChatApiAxiosParamCreator = function (configuration) {
1839
1839
  var _this = this;
1840
1840
  return {
1841
+ /**
1842
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
1843
+ * @summary Clear chat thread short-term memory
1844
+ * @param {string} aid Agent ID
1845
+ * @param {string} chatId Chat ID
1846
+ * @param {*} [options] Override http request option.
1847
+ * @throws {RequiredError}
1848
+ */
1849
+ clearChatThreadMemory: function (aid_1, chatId_1) {
1850
+ var args_1 = [];
1851
+ for (var _i = 2; _i < arguments.length; _i++) {
1852
+ args_1[_i - 2] = arguments[_i];
1853
+ }
1854
+ return __awaiter(_this, __spreadArray([aid_1, chatId_1], args_1, true), void 0, function (aid, chatId, options) {
1855
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1856
+ if (options === void 0) { options = {}; }
1857
+ return __generator(this, function (_a) {
1858
+ switch (_a.label) {
1859
+ case 0:
1860
+ // verify required parameter 'aid' is not null or undefined
1861
+ (0, common_1.assertParamExists)('clearChatThreadMemory', 'aid', aid);
1862
+ // verify required parameter 'chatId' is not null or undefined
1863
+ (0, common_1.assertParamExists)('clearChatThreadMemory', 'chatId', chatId);
1864
+ localVarPath = "/agents/{aid}/chats/{chat_id}/clear"
1865
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)))
1866
+ .replace("{".concat("chat_id", "}"), encodeURIComponent(String(chatId)));
1867
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1868
+ if (configuration) {
1869
+ baseOptions = configuration.baseOptions;
1870
+ }
1871
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1872
+ localVarHeaderParameter = {};
1873
+ localVarQueryParameter = {};
1874
+ // authentication HTTPBearer required
1875
+ // http bearer authentication required
1876
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1877
+ case 1:
1878
+ // authentication HTTPBearer required
1879
+ // http bearer authentication required
1880
+ _a.sent();
1881
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1882
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1883
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1884
+ return [2 /*return*/, {
1885
+ url: (0, common_1.toPathString)(localVarUrlObj),
1886
+ options: localVarRequestOptions,
1887
+ }];
1888
+ }
1889
+ });
1890
+ });
1891
+ },
1841
1892
  /**
1842
1893
  * Create a new chat thread for a specific agent and user.
1843
1894
  * @summary Create a new chat thread
@@ -2368,6 +2419,30 @@ exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
2368
2419
  var ChatApiFp = function (configuration) {
2369
2420
  var localVarAxiosParamCreator = (0, exports.ChatApiAxiosParamCreator)(configuration);
2370
2421
  return {
2422
+ /**
2423
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
2424
+ * @summary Clear chat thread short-term memory
2425
+ * @param {string} aid Agent ID
2426
+ * @param {string} chatId Chat ID
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ clearChatThreadMemory: function (aid, chatId, options) {
2431
+ return __awaiter(this, void 0, void 0, function () {
2432
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2433
+ var _a, _b, _c;
2434
+ return __generator(this, function (_d) {
2435
+ switch (_d.label) {
2436
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clearChatThreadMemory(aid, chatId, options)];
2437
+ case 1:
2438
+ localVarAxiosArgs = _d.sent();
2439
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2440
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.clearChatThreadMemory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2441
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2442
+ }
2443
+ });
2444
+ });
2445
+ },
2371
2446
  /**
2372
2447
  * Create a new chat thread for a specific agent and user.
2373
2448
  * @summary Create a new chat thread
@@ -2620,6 +2695,17 @@ exports.ChatApiFp = ChatApiFp;
2620
2695
  var ChatApiFactory = function (configuration, basePath, axios) {
2621
2696
  var localVarFp = (0, exports.ChatApiFp)(configuration);
2622
2697
  return {
2698
+ /**
2699
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
2700
+ * @summary Clear chat thread short-term memory
2701
+ * @param {string} aid Agent ID
2702
+ * @param {string} chatId Chat ID
2703
+ * @param {*} [options] Override http request option.
2704
+ * @throws {RequiredError}
2705
+ */
2706
+ clearChatThreadMemory: function (aid, chatId, options) {
2707
+ return localVarFp.clearChatThreadMemory(aid, chatId, options).then(function (request) { return request(axios, basePath); });
2708
+ },
2623
2709
  /**
2624
2710
  * Create a new chat thread for a specific agent and user.
2625
2711
  * @summary Create a new chat thread
@@ -2746,6 +2832,19 @@ var ChatApi = /** @class */ (function (_super) {
2746
2832
  function ChatApi() {
2747
2833
  return _super !== null && _super.apply(this, arguments) || this;
2748
2834
  }
2835
+ /**
2836
+ * Clear the short-term memory for a chat thread. This endpoint removes any cached context while keeping the persisted chat messages intact.
2837
+ * @summary Clear chat thread short-term memory
2838
+ * @param {string} aid Agent ID
2839
+ * @param {string} chatId Chat ID
2840
+ * @param {*} [options] Override http request option.
2841
+ * @throws {RequiredError}
2842
+ * @memberof ChatApi
2843
+ */
2844
+ ChatApi.prototype.clearChatThreadMemory = function (aid, chatId, options) {
2845
+ var _this = this;
2846
+ return (0, exports.ChatApiFp)(this.configuration).clearChatThreadMemory(aid, chatId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2847
+ };
2749
2848
  /**
2750
2849
  * Create a new chat thread for a specific agent and user.
2751
2850
  * @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.16
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.16
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.16
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.16
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.16
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.16
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.16
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.16
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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-25T18:28:53.403+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-25T18:28:53.403+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.16
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.16",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {