@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/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -529,6 +529,61 @@ var AgentApiAxiosParamCreator = function (configuration) {
529
529
  });
530
530
  });
531
531
  },
532
+ /**
533
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
534
+ * @summary Skill History
535
+ * @param {string} aid Agent ID
536
+ * @param {string | null} [cursor] Cursor for pagination (message id)
537
+ * @param {number} [limit] Maximum number of messages to return
538
+ * @param {*} [options] Override http request option.
539
+ * @throws {RequiredError}
540
+ */
541
+ getSkillHistory: function (aid_1, cursor_1, limit_1) {
542
+ var args_1 = [];
543
+ for (var _i = 3; _i < arguments.length; _i++) {
544
+ args_1[_i - 3] = arguments[_i];
545
+ }
546
+ return __awaiter(_this, __spreadArray([aid_1, cursor_1, limit_1], args_1, true), void 0, function (aid, cursor, limit, options) {
547
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
548
+ if (options === void 0) { options = {}; }
549
+ return __generator(this, function (_a) {
550
+ switch (_a.label) {
551
+ case 0:
552
+ // verify required parameter 'aid' is not null or undefined
553
+ (0, common_1.assertParamExists)('getSkillHistory', 'aid', aid);
554
+ localVarPath = "/agents/{aid}/skill/history"
555
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
556
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
557
+ if (configuration) {
558
+ baseOptions = configuration.baseOptions;
559
+ }
560
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
561
+ localVarHeaderParameter = {};
562
+ localVarQueryParameter = {};
563
+ // authentication HTTPBearer required
564
+ // http bearer authentication required
565
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
566
+ case 1:
567
+ // authentication HTTPBearer required
568
+ // http bearer authentication required
569
+ _a.sent();
570
+ if (cursor !== undefined) {
571
+ localVarQueryParameter['cursor'] = cursor;
572
+ }
573
+ if (limit !== undefined) {
574
+ localVarQueryParameter['limit'] = limit;
575
+ }
576
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
577
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
578
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
579
+ return [2 /*return*/, {
580
+ url: (0, common_1.toPathString)(localVarUrlObj),
581
+ options: localVarRequestOptions,
582
+ }];
583
+ }
584
+ });
585
+ });
586
+ },
532
587
  /**
533
588
  * 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
534
589
  * @summary Import Agent
@@ -908,6 +963,31 @@ var AgentApiFp = function (configuration) {
908
963
  });
909
964
  });
910
965
  },
966
+ /**
967
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
968
+ * @summary Skill History
969
+ * @param {string} aid Agent ID
970
+ * @param {string | null} [cursor] Cursor for pagination (message id)
971
+ * @param {number} [limit] Maximum number of messages to return
972
+ * @param {*} [options] Override http request option.
973
+ * @throws {RequiredError}
974
+ */
975
+ getSkillHistory: function (aid, cursor, limit, options) {
976
+ return __awaiter(this, void 0, void 0, function () {
977
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
978
+ var _a, _b, _c;
979
+ return __generator(this, function (_d) {
980
+ switch (_d.label) {
981
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options)];
982
+ case 1:
983
+ localVarAxiosArgs = _d.sent();
984
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
985
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getSkillHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
986
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
987
+ }
988
+ });
989
+ });
990
+ },
911
991
  /**
912
992
  * 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
913
993
  * @summary Import Agent
@@ -1089,6 +1169,18 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1089
1169
  getAgents: function (sort, cursor, limit, options) {
1090
1170
  return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1091
1171
  },
1172
+ /**
1173
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
1174
+ * @summary Skill History
1175
+ * @param {string} aid Agent ID
1176
+ * @param {string | null} [cursor] Cursor for pagination (message id)
1177
+ * @param {number} [limit] Maximum number of messages to return
1178
+ * @param {*} [options] Override http request option.
1179
+ * @throws {RequiredError}
1180
+ */
1181
+ getSkillHistory: function (aid, cursor, limit, options) {
1182
+ return localVarFp.getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1183
+ },
1092
1184
  /**
1093
1185
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
1094
1186
  * @summary Import Agent
@@ -1219,6 +1311,20 @@ var AgentApi = /** @class */ (function (_super) {
1219
1311
  var _this = this;
1220
1312
  return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1221
1313
  };
1314
+ /**
1315
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
1316
+ * @summary Skill History
1317
+ * @param {string} aid Agent ID
1318
+ * @param {string | null} [cursor] Cursor for pagination (message id)
1319
+ * @param {number} [limit] Maximum number of messages to return
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ * @memberof AgentApi
1323
+ */
1324
+ AgentApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
1325
+ var _this = this;
1326
+ return (0, exports.AgentApiFp)(this.configuration).getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1327
+ };
1222
1328
  /**
1223
1329
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
1224
1330
  * @summary Import Agent
@@ -1489,6 +1595,61 @@ var ChatApiAxiosParamCreator = function (configuration) {
1489
1595
  });
1490
1596
  });
1491
1597
  },
1598
+ /**
1599
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
1600
+ * @summary Skill History
1601
+ * @param {string} aid Agent ID
1602
+ * @param {string | null} [cursor] Cursor for pagination (message id)
1603
+ * @param {number} [limit] Maximum number of messages to return
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ */
1607
+ getSkillHistory: function (aid_1, cursor_1, limit_1) {
1608
+ var args_1 = [];
1609
+ for (var _i = 3; _i < arguments.length; _i++) {
1610
+ args_1[_i - 3] = arguments[_i];
1611
+ }
1612
+ return __awaiter(_this, __spreadArray([aid_1, cursor_1, limit_1], args_1, true), void 0, function (aid, cursor, limit, options) {
1613
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1614
+ if (options === void 0) { options = {}; }
1615
+ return __generator(this, function (_a) {
1616
+ switch (_a.label) {
1617
+ case 0:
1618
+ // verify required parameter 'aid' is not null or undefined
1619
+ (0, common_1.assertParamExists)('getSkillHistory', 'aid', aid);
1620
+ localVarPath = "/agents/{aid}/skill/history"
1621
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
1622
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1623
+ if (configuration) {
1624
+ baseOptions = configuration.baseOptions;
1625
+ }
1626
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1627
+ localVarHeaderParameter = {};
1628
+ localVarQueryParameter = {};
1629
+ // authentication HTTPBearer required
1630
+ // http bearer authentication required
1631
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1632
+ case 1:
1633
+ // authentication HTTPBearer required
1634
+ // http bearer authentication required
1635
+ _a.sent();
1636
+ if (cursor !== undefined) {
1637
+ localVarQueryParameter['cursor'] = cursor;
1638
+ }
1639
+ if (limit !== undefined) {
1640
+ localVarQueryParameter['limit'] = limit;
1641
+ }
1642
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1643
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1644
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1645
+ return [2 /*return*/, {
1646
+ url: (0, common_1.toPathString)(localVarUrlObj),
1647
+ options: localVarRequestOptions,
1648
+ }];
1649
+ }
1650
+ });
1651
+ });
1652
+ },
1492
1653
  /**
1493
1654
  * Retrieve all chat threads associated with a specific agent for the current user.
1494
1655
  * @summary List chat threads for an agent
@@ -1647,7 +1808,7 @@ var ChatApiAxiosParamCreator = function (configuration) {
1647
1808
  });
1648
1809
  },
1649
1810
  /**
1650
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
1811
+ * 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.
1651
1812
  * @summary Send a message to a chat thread
1652
1813
  * @param {string} aid Agent ID
1653
1814
  * @param {string} chatId Chat ID
@@ -1862,6 +2023,31 @@ var ChatApiFp = function (configuration) {
1862
2023
  });
1863
2024
  });
1864
2025
  },
2026
+ /**
2027
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
2028
+ * @summary Skill History
2029
+ * @param {string} aid Agent ID
2030
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2031
+ * @param {number} [limit] Maximum number of messages to return
2032
+ * @param {*} [options] Override http request option.
2033
+ * @throws {RequiredError}
2034
+ */
2035
+ getSkillHistory: function (aid, cursor, limit, options) {
2036
+ return __awaiter(this, void 0, void 0, function () {
2037
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2038
+ var _a, _b, _c;
2039
+ return __generator(this, function (_d) {
2040
+ switch (_d.label) {
2041
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options)];
2042
+ case 1:
2043
+ localVarAxiosArgs = _d.sent();
2044
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2045
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.getSkillHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2046
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2047
+ }
2048
+ });
2049
+ });
2050
+ },
1865
2051
  /**
1866
2052
  * Retrieve all chat threads associated with a specific agent for the current user.
1867
2053
  * @summary List chat threads for an agent
@@ -1936,7 +2122,7 @@ var ChatApiFp = function (configuration) {
1936
2122
  });
1937
2123
  },
1938
2124
  /**
1939
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
2125
+ * 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.
1940
2126
  * @summary Send a message to a chat thread
1941
2127
  * @param {string} aid Agent ID
1942
2128
  * @param {string} chatId Chat ID
@@ -2037,6 +2223,18 @@ var ChatApiFactory = function (configuration, basePath, axios) {
2037
2223
  getMessageById: function (messageId, options) {
2038
2224
  return localVarFp.getMessageById(messageId, options).then(function (request) { return request(axios, basePath); });
2039
2225
  },
2226
+ /**
2227
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
2228
+ * @summary Skill History
2229
+ * @param {string} aid Agent ID
2230
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2231
+ * @param {number} [limit] Maximum number of messages to return
2232
+ * @param {*} [options] Override http request option.
2233
+ * @throws {RequiredError}
2234
+ */
2235
+ getSkillHistory: function (aid, cursor, limit, options) {
2236
+ return localVarFp.getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(axios, basePath); });
2237
+ },
2040
2238
  /**
2041
2239
  * Retrieve all chat threads associated with a specific agent for the current user.
2042
2240
  * @summary List chat threads for an agent
@@ -2072,7 +2270,7 @@ var ChatApiFactory = function (configuration, basePath, axios) {
2072
2270
  return localVarFp.retryMessageInChat(aid, chatId, options).then(function (request) { return request(axios, basePath); });
2073
2271
  },
2074
2272
  /**
2075
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
2273
+ * 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.
2076
2274
  * @summary Send a message to a chat thread
2077
2275
  * @param {string} aid Agent ID
2078
2276
  * @param {string} chatId Chat ID
@@ -2159,6 +2357,20 @@ var ChatApi = /** @class */ (function (_super) {
2159
2357
  var _this = this;
2160
2358
  return (0, exports.ChatApiFp)(this.configuration).getMessageById(messageId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2161
2359
  };
2360
+ /**
2361
+ * Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
2362
+ * @summary Skill History
2363
+ * @param {string} aid Agent ID
2364
+ * @param {string | null} [cursor] Cursor for pagination (message id)
2365
+ * @param {number} [limit] Maximum number of messages to return
2366
+ * @param {*} [options] Override http request option.
2367
+ * @throws {RequiredError}
2368
+ * @memberof ChatApi
2369
+ */
2370
+ ChatApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
2371
+ var _this = this;
2372
+ return (0, exports.ChatApiFp)(this.configuration).getSkillHistory(aid, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
2373
+ };
2162
2374
  /**
2163
2375
  * Retrieve all chat threads associated with a specific agent for the current user.
2164
2376
  * @summary List chat threads for an agent
@@ -2200,7 +2412,7 @@ var ChatApi = /** @class */ (function (_super) {
2200
2412
  return (0, exports.ChatApiFp)(this.configuration).retryMessageInChat(aid, chatId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2201
2413
  };
2202
2414
  /**
2203
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
2415
+ * 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.
2204
2416
  * @summary Send a message to a chat thread
2205
2417
  * @param {string} aid Agent ID
2206
2418
  * @param {string} chatId Chat ID
@@ -3117,7 +3329,7 @@ var HealthApiAxiosParamCreator = function (configuration) {
3117
3329
  * @param {*} [options] Override http request option.
3118
3330
  * @throws {RequiredError}
3119
3331
  */
3120
- healthCheckHealthGet: function () {
3332
+ healthCheck: function () {
3121
3333
  var args_1 = [];
3122
3334
  for (var _i = 0; _i < arguments.length; _i++) {
3123
3335
  args_1[_i] = arguments[_i];
@@ -3160,17 +3372,17 @@ var HealthApiFp = function (configuration) {
3160
3372
  * @param {*} [options] Override http request option.
3161
3373
  * @throws {RequiredError}
3162
3374
  */
3163
- healthCheckHealthGet: function (options) {
3375
+ healthCheck: function (options) {
3164
3376
  return __awaiter(this, void 0, void 0, function () {
3165
3377
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3166
3378
  var _a, _b, _c;
3167
3379
  return __generator(this, function (_d) {
3168
3380
  switch (_d.label) {
3169
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.healthCheckHealthGet(options)];
3381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.healthCheck(options)];
3170
3382
  case 1:
3171
3383
  localVarAxiosArgs = _d.sent();
3172
3384
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3173
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthCheckHealthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3385
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3174
3386
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3175
3387
  }
3176
3388
  });
@@ -3192,8 +3404,8 @@ var HealthApiFactory = function (configuration, basePath, axios) {
3192
3404
  * @param {*} [options] Override http request option.
3193
3405
  * @throws {RequiredError}
3194
3406
  */
3195
- healthCheckHealthGet: function (options) {
3196
- return localVarFp.healthCheckHealthGet(options).then(function (request) { return request(axios, basePath); });
3407
+ healthCheck: function (options) {
3408
+ return localVarFp.healthCheck(options).then(function (request) { return request(axios, basePath); });
3197
3409
  },
3198
3410
  };
3199
3411
  };
@@ -3216,9 +3428,9 @@ var HealthApi = /** @class */ (function (_super) {
3216
3428
  * @throws {RequiredError}
3217
3429
  * @memberof HealthApi
3218
3430
  */
3219
- HealthApi.prototype.healthCheckHealthGet = function (options) {
3431
+ HealthApi.prototype.healthCheck = function (options) {
3220
3432
  var _this = this;
3221
- return (0, exports.HealthApiFp)(this.configuration).healthCheckHealthGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
3433
+ return (0, exports.HealthApiFp)(this.configuration).healthCheck(options).then(function (request) { return request(_this.axios, _this.basePath); });
3222
3434
  };
3223
3435
  return HealthApi;
3224
3436
  }(base_1.BaseAPI));
@@ -3269,7 +3481,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
3269
3481
  * @param {*} [options] Override http request option.
3270
3482
  * @throws {RequiredError}
3271
3483
  */
3272
- getLlmsMetadataLlmsGet: function () {
3484
+ getLlms: function () {
3273
3485
  var args_1 = [];
3274
3486
  for (var _i = 0; _i < arguments.length; _i++) {
3275
3487
  args_1[_i] = arguments[_i];
@@ -3384,7 +3596,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
3384
3596
  * @param {*} [options] Override http request option.
3385
3597
  * @throws {RequiredError}
3386
3598
  */
3387
- getSkillsMetadataSkillsGet: function () {
3599
+ getSkills: function () {
3388
3600
  var args_1 = [];
3389
3601
  for (var _i = 0; _i < arguments.length; _i++) {
3390
3602
  args_1[_i] = arguments[_i];
@@ -3449,17 +3661,17 @@ var MetadataApiFp = function (configuration) {
3449
3661
  * @param {*} [options] Override http request option.
3450
3662
  * @throws {RequiredError}
3451
3663
  */
3452
- getLlmsMetadataLlmsGet: function (options) {
3664
+ getLlms: function (options) {
3453
3665
  return __awaiter(this, void 0, void 0, function () {
3454
3666
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3455
3667
  var _a, _b, _c;
3456
3668
  return __generator(this, function (_d) {
3457
3669
  switch (_d.label) {
3458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmsMetadataLlmsGet(options)];
3670
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlms(options)];
3459
3671
  case 1:
3460
3672
  localVarAxiosArgs = _d.sent();
3461
3673
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3462
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getLlmsMetadataLlmsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3674
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getLlms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3463
3675
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3464
3676
  }
3465
3677
  });
@@ -3519,17 +3731,17 @@ var MetadataApiFp = function (configuration) {
3519
3731
  * @param {*} [options] Override http request option.
3520
3732
  * @throws {RequiredError}
3521
3733
  */
3522
- getSkillsMetadataSkillsGet: function (options) {
3734
+ getSkills: function (options) {
3523
3735
  return __awaiter(this, void 0, void 0, function () {
3524
3736
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3525
3737
  var _a, _b, _c;
3526
3738
  return __generator(this, function (_d) {
3527
3739
  switch (_d.label) {
3528
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillsMetadataSkillsGet(options)];
3740
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkills(options)];
3529
3741
  case 1:
3530
3742
  localVarAxiosArgs = _d.sent();
3531
3743
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3532
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getSkillsMetadataSkillsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3744
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getSkills']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3533
3745
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3534
3746
  }
3535
3747
  });
@@ -3560,8 +3772,8 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
3560
3772
  * @param {*} [options] Override http request option.
3561
3773
  * @throws {RequiredError}
3562
3774
  */
3563
- getLlmsMetadataLlmsGet: function (options) {
3564
- return localVarFp.getLlmsMetadataLlmsGet(options).then(function (request) { return request(axios, basePath); });
3775
+ getLlms: function (options) {
3776
+ return localVarFp.getLlms(options).then(function (request) { return request(axios, basePath); });
3565
3777
  },
3566
3778
  /**
3567
3779
  * Get the icon for a specific skill
@@ -3591,8 +3803,8 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
3591
3803
  * @param {*} [options] Override http request option.
3592
3804
  * @throws {RequiredError}
3593
3805
  */
3594
- getSkillsMetadataSkillsGet: function (options) {
3595
- return localVarFp.getSkillsMetadataSkillsGet(options).then(function (request) { return request(axios, basePath); });
3806
+ getSkills: function (options) {
3807
+ return localVarFp.getSkills(options).then(function (request) { return request(axios, basePath); });
3596
3808
  },
3597
3809
  };
3598
3810
  };
@@ -3626,9 +3838,9 @@ var MetadataApi = /** @class */ (function (_super) {
3626
3838
  * @throws {RequiredError}
3627
3839
  * @memberof MetadataApi
3628
3840
  */
3629
- MetadataApi.prototype.getLlmsMetadataLlmsGet = function (options) {
3841
+ MetadataApi.prototype.getLlms = function (options) {
3630
3842
  var _this = this;
3631
- return (0, exports.MetadataApiFp)(this.configuration).getLlmsMetadataLlmsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
3843
+ return (0, exports.MetadataApiFp)(this.configuration).getLlms(options).then(function (request) { return request(_this.axios, _this.basePath); });
3632
3844
  };
3633
3845
  /**
3634
3846
  * Get the icon for a specific skill
@@ -3663,9 +3875,9 @@ var MetadataApi = /** @class */ (function (_super) {
3663
3875
  * @throws {RequiredError}
3664
3876
  * @memberof MetadataApi
3665
3877
  */
3666
- MetadataApi.prototype.getSkillsMetadataSkillsGet = function (options) {
3878
+ MetadataApi.prototype.getSkills = function (options) {
3667
3879
  var _this = this;
3668
- return (0, exports.MetadataApiFp)(this.configuration).getSkillsMetadataSkillsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
3880
+ return (0, exports.MetadataApiFp)(this.configuration).getSkills(options).then(function (request) { return request(_this.axios, _this.basePath); });
3669
3881
  };
3670
3882
  return MetadataApi;
3671
3883
  }(base_1.BaseAPI));
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
9
9
  |[**getAgent**](#getagent) | **GET** /agents/{agent_id} | Get Agent|
10
10
  |[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
11
11
  |[**getAgents**](#getagents) | **GET** /agents | Get Agents|
12
+ |[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
12
13
  |[**importAgent**](#importagent) | **PUT** /agents/{agent_id}/import | Import Agent|
13
14
  |[**overrideAgent**](#overrideagent) | **PUT** /agents/{agent_id} | Override Agent|
14
15
  |[**updateAgent**](#updateagent) | **PATCH** /agents/{agent_id} | Update Agent|
@@ -277,6 +278,64 @@ No authorization required
277
278
  - **Accept**: application/json
278
279
 
279
280
 
281
+ ### HTTP response details
282
+ | Status code | Description | Response headers |
283
+ |-------------|-------------|------------------|
284
+ |**200** | Successful Response | - |
285
+ |**422** | Validation Error | - |
286
+
287
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
288
+
289
+ # **getSkillHistory**
290
+ > ChatMessagesResponse getSkillHistory()
291
+
292
+ Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
293
+
294
+ ### Example
295
+
296
+ ```typescript
297
+ import {
298
+ AgentApi,
299
+ Configuration
300
+ } from '@crestal/nation-sdk';
301
+
302
+ const configuration = new Configuration();
303
+ const apiInstance = new AgentApi(configuration);
304
+
305
+ let aid: string; //Agent ID (default to undefined)
306
+ let cursor: string; //Cursor for pagination (message id) (optional) (default to undefined)
307
+ let limit: number; //Maximum number of messages to return (optional) (default to 20)
308
+
309
+ const { status, data } = await apiInstance.getSkillHistory(
310
+ aid,
311
+ cursor,
312
+ limit
313
+ );
314
+ ```
315
+
316
+ ### Parameters
317
+
318
+ |Name | Type | Description | Notes|
319
+ |------------- | ------------- | ------------- | -------------|
320
+ | **aid** | [**string**] | Agent ID | defaults to undefined|
321
+ | **cursor** | [**string**] | Cursor for pagination (message id) | (optional) defaults to undefined|
322
+ | **limit** | [**number**] | Maximum number of messages to return | (optional) defaults to 20|
323
+
324
+
325
+ ### Return type
326
+
327
+ **ChatMessagesResponse**
328
+
329
+ ### Authorization
330
+
331
+ [HTTPBearer](../README.md#HTTPBearer)
332
+
333
+ ### HTTP request headers
334
+
335
+ - **Content-Type**: Not defined
336
+ - **Accept**: application/json
337
+
338
+
280
339
  ### HTTP response details
281
340
  | Status code | Description | Response headers |
282
341
  |-------------|-------------|------------------|