@crestal/nation-sdk 0.1.30 → 0.1.32
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 +13 -10
- package/api.ts +308 -86
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +148 -49
- package/dist/api.js +364 -86
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +56 -3
- package/docs/ChatApi.md +54 -1
- package/docs/GeneratorApi.md +12 -12
- package/docs/HealthApi.md +4 -4
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/MetadataApi.md +8 -8
- package/docs/OAuthApi.md +61 -8
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -318,7 +318,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
318
318
|
var _this = this;
|
|
319
319
|
return {
|
|
320
320
|
/**
|
|
321
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
321
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
322
322
|
* @summary Create Agent
|
|
323
323
|
* @param {AgentUpdate} [agentUpdate]
|
|
324
324
|
* @param {*} [options] Override http request option.
|
|
@@ -529,6 +529,53 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
529
529
|
});
|
|
530
530
|
});
|
|
531
531
|
},
|
|
532
|
+
/**
|
|
533
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
534
|
+
* @summary Skill History
|
|
535
|
+
* @param {string} aid Agent ID
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
getSkillHistory: function (aid_1) {
|
|
540
|
+
var args_1 = [];
|
|
541
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
542
|
+
args_1[_i - 1] = arguments[_i];
|
|
543
|
+
}
|
|
544
|
+
return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
|
|
545
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
546
|
+
if (options === void 0) { options = {}; }
|
|
547
|
+
return __generator(this, function (_a) {
|
|
548
|
+
switch (_a.label) {
|
|
549
|
+
case 0:
|
|
550
|
+
// verify required parameter 'aid' is not null or undefined
|
|
551
|
+
(0, common_1.assertParamExists)('getSkillHistory', 'aid', aid);
|
|
552
|
+
localVarPath = "/agents/{aid}/skill/history"
|
|
553
|
+
.replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
|
|
554
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
555
|
+
if (configuration) {
|
|
556
|
+
baseOptions = configuration.baseOptions;
|
|
557
|
+
}
|
|
558
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
559
|
+
localVarHeaderParameter = {};
|
|
560
|
+
localVarQueryParameter = {};
|
|
561
|
+
// authentication HTTPBearer required
|
|
562
|
+
// http bearer authentication required
|
|
563
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
564
|
+
case 1:
|
|
565
|
+
// authentication HTTPBearer required
|
|
566
|
+
// http bearer authentication required
|
|
567
|
+
_a.sent();
|
|
568
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
569
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
570
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
571
|
+
return [2 /*return*/, {
|
|
572
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
573
|
+
options: localVarRequestOptions,
|
|
574
|
+
}];
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
},
|
|
532
579
|
/**
|
|
533
580
|
* 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
581
|
* @summary Import Agent
|
|
@@ -586,7 +633,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
586
633
|
});
|
|
587
634
|
},
|
|
588
635
|
/**
|
|
589
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
636
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
590
637
|
* @summary Override Agent
|
|
591
638
|
* @param {string} agentId ID of the agent to update
|
|
592
639
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -686,7 +733,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
686
733
|
});
|
|
687
734
|
},
|
|
688
735
|
/**
|
|
689
|
-
* 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 - 500: Server error
|
|
736
|
+
* 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
|
|
690
737
|
* @summary Validate Agent Create
|
|
691
738
|
* @param {AgentUpdate} [agentUpdate]
|
|
692
739
|
* @param {*} [options] Override http request option.
|
|
@@ -792,7 +839,7 @@ var AgentApiFp = function (configuration) {
|
|
|
792
839
|
var localVarAxiosParamCreator = (0, exports.AgentApiAxiosParamCreator)(configuration);
|
|
793
840
|
return {
|
|
794
841
|
/**
|
|
795
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
842
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
796
843
|
* @summary Create Agent
|
|
797
844
|
* @param {AgentUpdate} [agentUpdate]
|
|
798
845
|
* @param {*} [options] Override http request option.
|
|
@@ -908,6 +955,29 @@ var AgentApiFp = function (configuration) {
|
|
|
908
955
|
});
|
|
909
956
|
});
|
|
910
957
|
},
|
|
958
|
+
/**
|
|
959
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
960
|
+
* @summary Skill History
|
|
961
|
+
* @param {string} aid Agent ID
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
getSkillHistory: function (aid, options) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
967
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
968
|
+
var _a, _b, _c;
|
|
969
|
+
return __generator(this, function (_d) {
|
|
970
|
+
switch (_d.label) {
|
|
971
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, options)];
|
|
972
|
+
case 1:
|
|
973
|
+
localVarAxiosArgs = _d.sent();
|
|
974
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
975
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getSkillHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
976
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
},
|
|
911
981
|
/**
|
|
912
982
|
* 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
983
|
* @summary Import Agent
|
|
@@ -933,7 +1003,7 @@ var AgentApiFp = function (configuration) {
|
|
|
933
1003
|
});
|
|
934
1004
|
},
|
|
935
1005
|
/**
|
|
936
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
1006
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
937
1007
|
* @summary Override Agent
|
|
938
1008
|
* @param {string} agentId ID of the agent to update
|
|
939
1009
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -981,7 +1051,7 @@ var AgentApiFp = function (configuration) {
|
|
|
981
1051
|
});
|
|
982
1052
|
},
|
|
983
1053
|
/**
|
|
984
|
-
* 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 - 500: Server error
|
|
1054
|
+
* 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
|
|
985
1055
|
* @summary Validate Agent Create
|
|
986
1056
|
* @param {AgentUpdate} [agentUpdate]
|
|
987
1057
|
* @param {*} [options] Override http request option.
|
|
@@ -1038,7 +1108,7 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1038
1108
|
var localVarFp = (0, exports.AgentApiFp)(configuration);
|
|
1039
1109
|
return {
|
|
1040
1110
|
/**
|
|
1041
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
1111
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
1042
1112
|
* @summary Create Agent
|
|
1043
1113
|
* @param {AgentUpdate} [agentUpdate]
|
|
1044
1114
|
* @param {*} [options] Override http request option.
|
|
@@ -1089,6 +1159,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1089
1159
|
getAgents: function (sort, cursor, limit, options) {
|
|
1090
1160
|
return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
1091
1161
|
},
|
|
1162
|
+
/**
|
|
1163
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
1164
|
+
* @summary Skill History
|
|
1165
|
+
* @param {string} aid Agent ID
|
|
1166
|
+
* @param {*} [options] Override http request option.
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
getSkillHistory: function (aid, options) {
|
|
1170
|
+
return localVarFp.getSkillHistory(aid, options).then(function (request) { return request(axios, basePath); });
|
|
1171
|
+
},
|
|
1092
1172
|
/**
|
|
1093
1173
|
* 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
1174
|
* @summary Import Agent
|
|
@@ -1101,7 +1181,7 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1101
1181
|
return localVarFp.importAgent(agentId, file, options).then(function (request) { return request(axios, basePath); });
|
|
1102
1182
|
},
|
|
1103
1183
|
/**
|
|
1104
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
1184
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
1105
1185
|
* @summary Override Agent
|
|
1106
1186
|
* @param {string} agentId ID of the agent to update
|
|
1107
1187
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -1123,7 +1203,7 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1123
1203
|
return localVarFp.updateAgent(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
|
|
1124
1204
|
},
|
|
1125
1205
|
/**
|
|
1126
|
-
* 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 - 500: Server error
|
|
1206
|
+
* 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
|
|
1127
1207
|
* @summary Validate Agent Create
|
|
1128
1208
|
* @param {AgentUpdate} [agentUpdate]
|
|
1129
1209
|
* @param {*} [options] Override http request option.
|
|
@@ -1158,7 +1238,7 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1158
1238
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1159
1239
|
}
|
|
1160
1240
|
/**
|
|
1161
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
1241
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
1162
1242
|
* @summary Create Agent
|
|
1163
1243
|
* @param {AgentUpdate} [agentUpdate]
|
|
1164
1244
|
* @param {*} [options] Override http request option.
|
|
@@ -1219,6 +1299,18 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1219
1299
|
var _this = this;
|
|
1220
1300
|
return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1221
1301
|
};
|
|
1302
|
+
/**
|
|
1303
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
1304
|
+
* @summary Skill History
|
|
1305
|
+
* @param {string} aid Agent ID
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
* @memberof AgentApi
|
|
1309
|
+
*/
|
|
1310
|
+
AgentApi.prototype.getSkillHistory = function (aid, options) {
|
|
1311
|
+
var _this = this;
|
|
1312
|
+
return (0, exports.AgentApiFp)(this.configuration).getSkillHistory(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1313
|
+
};
|
|
1222
1314
|
/**
|
|
1223
1315
|
* 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
1316
|
* @summary Import Agent
|
|
@@ -1233,7 +1325,7 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1233
1325
|
return (0, exports.AgentApiFp)(this.configuration).importAgent(agentId, file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1234
1326
|
};
|
|
1235
1327
|
/**
|
|
1236
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
1328
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
1237
1329
|
* @summary Override Agent
|
|
1238
1330
|
* @param {string} agentId ID of the agent to update
|
|
1239
1331
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -1259,7 +1351,7 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1259
1351
|
return (0, exports.AgentApiFp)(this.configuration).updateAgent(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1260
1352
|
};
|
|
1261
1353
|
/**
|
|
1262
|
-
* 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 - 500: Server error
|
|
1354
|
+
* 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
|
|
1263
1355
|
* @summary Validate Agent Create
|
|
1264
1356
|
* @param {AgentUpdate} [agentUpdate]
|
|
1265
1357
|
* @param {*} [options] Override http request option.
|
|
@@ -1489,6 +1581,53 @@ var ChatApiAxiosParamCreator = function (configuration) {
|
|
|
1489
1581
|
});
|
|
1490
1582
|
});
|
|
1491
1583
|
},
|
|
1584
|
+
/**
|
|
1585
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
1586
|
+
* @summary Skill History
|
|
1587
|
+
* @param {string} aid Agent ID
|
|
1588
|
+
* @param {*} [options] Override http request option.
|
|
1589
|
+
* @throws {RequiredError}
|
|
1590
|
+
*/
|
|
1591
|
+
getSkillHistory: function (aid_1) {
|
|
1592
|
+
var args_1 = [];
|
|
1593
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1594
|
+
args_1[_i - 1] = arguments[_i];
|
|
1595
|
+
}
|
|
1596
|
+
return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
|
|
1597
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1598
|
+
if (options === void 0) { options = {}; }
|
|
1599
|
+
return __generator(this, function (_a) {
|
|
1600
|
+
switch (_a.label) {
|
|
1601
|
+
case 0:
|
|
1602
|
+
// verify required parameter 'aid' is not null or undefined
|
|
1603
|
+
(0, common_1.assertParamExists)('getSkillHistory', 'aid', aid);
|
|
1604
|
+
localVarPath = "/agents/{aid}/skill/history"
|
|
1605
|
+
.replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
|
|
1606
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1607
|
+
if (configuration) {
|
|
1608
|
+
baseOptions = configuration.baseOptions;
|
|
1609
|
+
}
|
|
1610
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1611
|
+
localVarHeaderParameter = {};
|
|
1612
|
+
localVarQueryParameter = {};
|
|
1613
|
+
// authentication HTTPBearer required
|
|
1614
|
+
// http bearer authentication required
|
|
1615
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1616
|
+
case 1:
|
|
1617
|
+
// authentication HTTPBearer required
|
|
1618
|
+
// http bearer authentication required
|
|
1619
|
+
_a.sent();
|
|
1620
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1621
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1622
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1623
|
+
return [2 /*return*/, {
|
|
1624
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1625
|
+
options: localVarRequestOptions,
|
|
1626
|
+
}];
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
});
|
|
1630
|
+
},
|
|
1492
1631
|
/**
|
|
1493
1632
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
1494
1633
|
* @summary List chat threads for an agent
|
|
@@ -1647,7 +1786,7 @@ var ChatApiAxiosParamCreator = function (configuration) {
|
|
|
1647
1786
|
});
|
|
1648
1787
|
},
|
|
1649
1788
|
/**
|
|
1650
|
-
* Send a new message to a specific chat thread.
|
|
1789
|
+
* 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
1790
|
* @summary Send a message to a chat thread
|
|
1652
1791
|
* @param {string} aid Agent ID
|
|
1653
1792
|
* @param {string} chatId Chat ID
|
|
@@ -1862,6 +2001,29 @@ var ChatApiFp = function (configuration) {
|
|
|
1862
2001
|
});
|
|
1863
2002
|
});
|
|
1864
2003
|
},
|
|
2004
|
+
/**
|
|
2005
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
2006
|
+
* @summary Skill History
|
|
2007
|
+
* @param {string} aid Agent ID
|
|
2008
|
+
* @param {*} [options] Override http request option.
|
|
2009
|
+
* @throws {RequiredError}
|
|
2010
|
+
*/
|
|
2011
|
+
getSkillHistory: function (aid, options) {
|
|
2012
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2013
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2014
|
+
var _a, _b, _c;
|
|
2015
|
+
return __generator(this, function (_d) {
|
|
2016
|
+
switch (_d.label) {
|
|
2017
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, options)];
|
|
2018
|
+
case 1:
|
|
2019
|
+
localVarAxiosArgs = _d.sent();
|
|
2020
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2021
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.getSkillHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2022
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2023
|
+
}
|
|
2024
|
+
});
|
|
2025
|
+
});
|
|
2026
|
+
},
|
|
1865
2027
|
/**
|
|
1866
2028
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
1867
2029
|
* @summary List chat threads for an agent
|
|
@@ -1936,7 +2098,7 @@ var ChatApiFp = function (configuration) {
|
|
|
1936
2098
|
});
|
|
1937
2099
|
},
|
|
1938
2100
|
/**
|
|
1939
|
-
* Send a new message to a specific chat thread.
|
|
2101
|
+
* 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
2102
|
* @summary Send a message to a chat thread
|
|
1941
2103
|
* @param {string} aid Agent ID
|
|
1942
2104
|
* @param {string} chatId Chat ID
|
|
@@ -2037,6 +2199,16 @@ var ChatApiFactory = function (configuration, basePath, axios) {
|
|
|
2037
2199
|
getMessageById: function (messageId, options) {
|
|
2038
2200
|
return localVarFp.getMessageById(messageId, options).then(function (request) { return request(axios, basePath); });
|
|
2039
2201
|
},
|
|
2202
|
+
/**
|
|
2203
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
2204
|
+
* @summary Skill History
|
|
2205
|
+
* @param {string} aid Agent ID
|
|
2206
|
+
* @param {*} [options] Override http request option.
|
|
2207
|
+
* @throws {RequiredError}
|
|
2208
|
+
*/
|
|
2209
|
+
getSkillHistory: function (aid, options) {
|
|
2210
|
+
return localVarFp.getSkillHistory(aid, options).then(function (request) { return request(axios, basePath); });
|
|
2211
|
+
},
|
|
2040
2212
|
/**
|
|
2041
2213
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2042
2214
|
* @summary List chat threads for an agent
|
|
@@ -2072,7 +2244,7 @@ var ChatApiFactory = function (configuration, basePath, axios) {
|
|
|
2072
2244
|
return localVarFp.retryMessageInChat(aid, chatId, options).then(function (request) { return request(axios, basePath); });
|
|
2073
2245
|
},
|
|
2074
2246
|
/**
|
|
2075
|
-
* Send a new message to a specific chat thread.
|
|
2247
|
+
* 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
2248
|
* @summary Send a message to a chat thread
|
|
2077
2249
|
* @param {string} aid Agent ID
|
|
2078
2250
|
* @param {string} chatId Chat ID
|
|
@@ -2159,6 +2331,18 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2159
2331
|
var _this = this;
|
|
2160
2332
|
return (0, exports.ChatApiFp)(this.configuration).getMessageById(messageId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2161
2333
|
};
|
|
2334
|
+
/**
|
|
2335
|
+
* Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
|
|
2336
|
+
* @summary Skill History
|
|
2337
|
+
* @param {string} aid Agent ID
|
|
2338
|
+
* @param {*} [options] Override http request option.
|
|
2339
|
+
* @throws {RequiredError}
|
|
2340
|
+
* @memberof ChatApi
|
|
2341
|
+
*/
|
|
2342
|
+
ChatApi.prototype.getSkillHistory = function (aid, options) {
|
|
2343
|
+
var _this = this;
|
|
2344
|
+
return (0, exports.ChatApiFp)(this.configuration).getSkillHistory(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2345
|
+
};
|
|
2162
2346
|
/**
|
|
2163
2347
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2164
2348
|
* @summary List chat threads for an agent
|
|
@@ -2200,7 +2384,7 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2200
2384
|
return (0, exports.ChatApiFp)(this.configuration).retryMessageInChat(aid, chatId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2201
2385
|
};
|
|
2202
2386
|
/**
|
|
2203
|
-
* Send a new message to a specific chat thread.
|
|
2387
|
+
* 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
2388
|
* @summary Send a message to a chat thread
|
|
2205
2389
|
* @param {string} aid Agent ID
|
|
2206
2390
|
* @param {string} chatId Chat ID
|
|
@@ -2797,7 +2981,7 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
2797
2981
|
* @param {*} [options] Override http request option.
|
|
2798
2982
|
* @throws {RequiredError}
|
|
2799
2983
|
*/
|
|
2800
|
-
|
|
2984
|
+
generateAgent: function (agentGenerateRequest_1) {
|
|
2801
2985
|
var args_1 = [];
|
|
2802
2986
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2803
2987
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -2809,7 +2993,7 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
2809
2993
|
switch (_a.label) {
|
|
2810
2994
|
case 0:
|
|
2811
2995
|
// verify required parameter 'agentGenerateRequest' is not null or undefined
|
|
2812
|
-
(0, common_1.assertParamExists)('
|
|
2996
|
+
(0, common_1.assertParamExists)('generateAgent', 'agentGenerateRequest', agentGenerateRequest);
|
|
2813
2997
|
localVarPath = "/generator/agent/generate";
|
|
2814
2998
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2815
2999
|
if (configuration) {
|
|
@@ -2845,7 +3029,7 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
2845
3029
|
* @param {*} [options] Override http request option.
|
|
2846
3030
|
* @throws {RequiredError}
|
|
2847
3031
|
*/
|
|
2848
|
-
|
|
3032
|
+
getGenerationHistory: function (projectId_1) {
|
|
2849
3033
|
var args_1 = [];
|
|
2850
3034
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2851
3035
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -2857,7 +3041,7 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
2857
3041
|
switch (_a.label) {
|
|
2858
3042
|
case 0:
|
|
2859
3043
|
// verify required parameter 'projectId' is not null or undefined
|
|
2860
|
-
(0, common_1.assertParamExists)('
|
|
3044
|
+
(0, common_1.assertParamExists)('getGenerationHistory', 'projectId', projectId);
|
|
2861
3045
|
localVarPath = "/generator/agent/generations/{project_id}"
|
|
2862
3046
|
.replace("{".concat("project_id", "}"), encodeURIComponent(String(projectId)));
|
|
2863
3047
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2892,7 +3076,7 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
2892
3076
|
* @param {*} [options] Override http request option.
|
|
2893
3077
|
* @throws {RequiredError}
|
|
2894
3078
|
*/
|
|
2895
|
-
|
|
3079
|
+
getGenerations: function (limit_1) {
|
|
2896
3080
|
var args_1 = [];
|
|
2897
3081
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2898
3082
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -2949,17 +3133,17 @@ var GeneratorApiFp = function (configuration) {
|
|
|
2949
3133
|
* @param {*} [options] Override http request option.
|
|
2950
3134
|
* @throws {RequiredError}
|
|
2951
3135
|
*/
|
|
2952
|
-
|
|
3136
|
+
generateAgent: function (agentGenerateRequest, options) {
|
|
2953
3137
|
return __awaiter(this, void 0, void 0, function () {
|
|
2954
3138
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2955
3139
|
var _a, _b, _c;
|
|
2956
3140
|
return __generator(this, function (_d) {
|
|
2957
3141
|
switch (_d.label) {
|
|
2958
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3142
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.generateAgent(agentGenerateRequest, options)];
|
|
2959
3143
|
case 1:
|
|
2960
3144
|
localVarAxiosArgs = _d.sent();
|
|
2961
3145
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2962
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GeneratorApi.
|
|
3146
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GeneratorApi.generateAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2963
3147
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2964
3148
|
}
|
|
2965
3149
|
});
|
|
@@ -2972,17 +3156,17 @@ var GeneratorApiFp = function (configuration) {
|
|
|
2972
3156
|
* @param {*} [options] Override http request option.
|
|
2973
3157
|
* @throws {RequiredError}
|
|
2974
3158
|
*/
|
|
2975
|
-
|
|
3159
|
+
getGenerationHistory: function (projectId, options) {
|
|
2976
3160
|
return __awaiter(this, void 0, void 0, function () {
|
|
2977
3161
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2978
3162
|
var _a, _b, _c;
|
|
2979
3163
|
return __generator(this, function (_d) {
|
|
2980
3164
|
switch (_d.label) {
|
|
2981
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3165
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGenerationHistory(projectId, options)];
|
|
2982
3166
|
case 1:
|
|
2983
3167
|
localVarAxiosArgs = _d.sent();
|
|
2984
3168
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2985
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GeneratorApi.
|
|
3169
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GeneratorApi.getGenerationHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2986
3170
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2987
3171
|
}
|
|
2988
3172
|
});
|
|
@@ -2995,17 +3179,17 @@ var GeneratorApiFp = function (configuration) {
|
|
|
2995
3179
|
* @param {*} [options] Override http request option.
|
|
2996
3180
|
* @throws {RequiredError}
|
|
2997
3181
|
*/
|
|
2998
|
-
|
|
3182
|
+
getGenerations: function (limit, options) {
|
|
2999
3183
|
return __awaiter(this, void 0, void 0, function () {
|
|
3000
3184
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3001
3185
|
var _a, _b, _c;
|
|
3002
3186
|
return __generator(this, function (_d) {
|
|
3003
3187
|
switch (_d.label) {
|
|
3004
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3188
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGenerations(limit, options)];
|
|
3005
3189
|
case 1:
|
|
3006
3190
|
localVarAxiosArgs = _d.sent();
|
|
3007
3191
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3008
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GeneratorApi.
|
|
3192
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GeneratorApi.getGenerations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3009
3193
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3010
3194
|
}
|
|
3011
3195
|
});
|
|
@@ -3028,8 +3212,8 @@ var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
|
3028
3212
|
* @param {*} [options] Override http request option.
|
|
3029
3213
|
* @throws {RequiredError}
|
|
3030
3214
|
*/
|
|
3031
|
-
|
|
3032
|
-
return localVarFp.
|
|
3215
|
+
generateAgent: function (agentGenerateRequest, options) {
|
|
3216
|
+
return localVarFp.generateAgent(agentGenerateRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3033
3217
|
},
|
|
3034
3218
|
/**
|
|
3035
3219
|
* Get specific project conversation history. **Path Parameters:** * `project_id` - Project ID to get conversation history for **Query Parameters:** * `user_id` - Optional user ID for access validation **Returns:** * `GenerationDetailResponse` - Contains full conversation history for the project **Raises:** * `HTTPException`: - 404: Project not found or access denied - 500: Failed to retrieve generation detail
|
|
@@ -3038,8 +3222,8 @@ var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
|
3038
3222
|
* @param {*} [options] Override http request option.
|
|
3039
3223
|
* @throws {RequiredError}
|
|
3040
3224
|
*/
|
|
3041
|
-
|
|
3042
|
-
return localVarFp.
|
|
3225
|
+
getGenerationHistory: function (projectId, options) {
|
|
3226
|
+
return localVarFp.getGenerationHistory(projectId, options).then(function (request) { return request(axios, basePath); });
|
|
3043
3227
|
},
|
|
3044
3228
|
/**
|
|
3045
3229
|
* Get all projects/generations for a user. **Query Parameters:** * `user_id` - Optional user ID to filter projects * `limit` - Maximum number of recent projects to return (default: 50, max: 100) **Returns:** * `GenerationsListResponse` - Contains list of projects with their conversation history **Raises:** * `HTTPException`: - 400: Invalid parameters - 500: Failed to retrieve generations
|
|
@@ -3048,8 +3232,8 @@ var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
|
3048
3232
|
* @param {*} [options] Override http request option.
|
|
3049
3233
|
* @throws {RequiredError}
|
|
3050
3234
|
*/
|
|
3051
|
-
|
|
3052
|
-
return localVarFp.
|
|
3235
|
+
getGenerations: function (limit, options) {
|
|
3236
|
+
return localVarFp.getGenerations(limit, options).then(function (request) { return request(axios, basePath); });
|
|
3053
3237
|
},
|
|
3054
3238
|
};
|
|
3055
3239
|
};
|
|
@@ -3073,9 +3257,9 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
3073
3257
|
* @throws {RequiredError}
|
|
3074
3258
|
* @memberof GeneratorApi
|
|
3075
3259
|
*/
|
|
3076
|
-
GeneratorApi.prototype.
|
|
3260
|
+
GeneratorApi.prototype.generateAgent = function (agentGenerateRequest, options) {
|
|
3077
3261
|
var _this = this;
|
|
3078
|
-
return (0, exports.GeneratorApiFp)(this.configuration).
|
|
3262
|
+
return (0, exports.GeneratorApiFp)(this.configuration).generateAgent(agentGenerateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3079
3263
|
};
|
|
3080
3264
|
/**
|
|
3081
3265
|
* Get specific project conversation history. **Path Parameters:** * `project_id` - Project ID to get conversation history for **Query Parameters:** * `user_id` - Optional user ID for access validation **Returns:** * `GenerationDetailResponse` - Contains full conversation history for the project **Raises:** * `HTTPException`: - 404: Project not found or access denied - 500: Failed to retrieve generation detail
|
|
@@ -3085,9 +3269,9 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
3085
3269
|
* @throws {RequiredError}
|
|
3086
3270
|
* @memberof GeneratorApi
|
|
3087
3271
|
*/
|
|
3088
|
-
GeneratorApi.prototype.
|
|
3272
|
+
GeneratorApi.prototype.getGenerationHistory = function (projectId, options) {
|
|
3089
3273
|
var _this = this;
|
|
3090
|
-
return (0, exports.GeneratorApiFp)(this.configuration).
|
|
3274
|
+
return (0, exports.GeneratorApiFp)(this.configuration).getGenerationHistory(projectId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3091
3275
|
};
|
|
3092
3276
|
/**
|
|
3093
3277
|
* Get all projects/generations for a user. **Query Parameters:** * `user_id` - Optional user ID to filter projects * `limit` - Maximum number of recent projects to return (default: 50, max: 100) **Returns:** * `GenerationsListResponse` - Contains list of projects with their conversation history **Raises:** * `HTTPException`: - 400: Invalid parameters - 500: Failed to retrieve generations
|
|
@@ -3097,9 +3281,9 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
3097
3281
|
* @throws {RequiredError}
|
|
3098
3282
|
* @memberof GeneratorApi
|
|
3099
3283
|
*/
|
|
3100
|
-
GeneratorApi.prototype.
|
|
3284
|
+
GeneratorApi.prototype.getGenerations = function (limit, options) {
|
|
3101
3285
|
var _this = this;
|
|
3102
|
-
return (0, exports.GeneratorApiFp)(this.configuration).
|
|
3286
|
+
return (0, exports.GeneratorApiFp)(this.configuration).getGenerations(limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3103
3287
|
};
|
|
3104
3288
|
return GeneratorApi;
|
|
3105
3289
|
}(base_1.BaseAPI));
|
|
@@ -3117,7 +3301,7 @@ var HealthApiAxiosParamCreator = function (configuration) {
|
|
|
3117
3301
|
* @param {*} [options] Override http request option.
|
|
3118
3302
|
* @throws {RequiredError}
|
|
3119
3303
|
*/
|
|
3120
|
-
|
|
3304
|
+
healthCheck: function () {
|
|
3121
3305
|
var args_1 = [];
|
|
3122
3306
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3123
3307
|
args_1[_i] = arguments[_i];
|
|
@@ -3160,17 +3344,17 @@ var HealthApiFp = function (configuration) {
|
|
|
3160
3344
|
* @param {*} [options] Override http request option.
|
|
3161
3345
|
* @throws {RequiredError}
|
|
3162
3346
|
*/
|
|
3163
|
-
|
|
3347
|
+
healthCheck: function (options) {
|
|
3164
3348
|
return __awaiter(this, void 0, void 0, function () {
|
|
3165
3349
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3166
3350
|
var _a, _b, _c;
|
|
3167
3351
|
return __generator(this, function (_d) {
|
|
3168
3352
|
switch (_d.label) {
|
|
3169
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3353
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.healthCheck(options)];
|
|
3170
3354
|
case 1:
|
|
3171
3355
|
localVarAxiosArgs = _d.sent();
|
|
3172
3356
|
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.
|
|
3357
|
+
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
3358
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3175
3359
|
}
|
|
3176
3360
|
});
|
|
@@ -3192,8 +3376,8 @@ var HealthApiFactory = function (configuration, basePath, axios) {
|
|
|
3192
3376
|
* @param {*} [options] Override http request option.
|
|
3193
3377
|
* @throws {RequiredError}
|
|
3194
3378
|
*/
|
|
3195
|
-
|
|
3196
|
-
return localVarFp.
|
|
3379
|
+
healthCheck: function (options) {
|
|
3380
|
+
return localVarFp.healthCheck(options).then(function (request) { return request(axios, basePath); });
|
|
3197
3381
|
},
|
|
3198
3382
|
};
|
|
3199
3383
|
};
|
|
@@ -3216,9 +3400,9 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
3216
3400
|
* @throws {RequiredError}
|
|
3217
3401
|
* @memberof HealthApi
|
|
3218
3402
|
*/
|
|
3219
|
-
HealthApi.prototype.
|
|
3403
|
+
HealthApi.prototype.healthCheck = function (options) {
|
|
3220
3404
|
var _this = this;
|
|
3221
|
-
return (0, exports.HealthApiFp)(this.configuration).
|
|
3405
|
+
return (0, exports.HealthApiFp)(this.configuration).healthCheck(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3222
3406
|
};
|
|
3223
3407
|
return HealthApi;
|
|
3224
3408
|
}(base_1.BaseAPI));
|
|
@@ -3269,7 +3453,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
3269
3453
|
* @param {*} [options] Override http request option.
|
|
3270
3454
|
* @throws {RequiredError}
|
|
3271
3455
|
*/
|
|
3272
|
-
|
|
3456
|
+
getLlms: function () {
|
|
3273
3457
|
var args_1 = [];
|
|
3274
3458
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3275
3459
|
args_1[_i] = arguments[_i];
|
|
@@ -3384,7 +3568,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
3384
3568
|
* @param {*} [options] Override http request option.
|
|
3385
3569
|
* @throws {RequiredError}
|
|
3386
3570
|
*/
|
|
3387
|
-
|
|
3571
|
+
getSkills: function () {
|
|
3388
3572
|
var args_1 = [];
|
|
3389
3573
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3390
3574
|
args_1[_i] = arguments[_i];
|
|
@@ -3449,17 +3633,17 @@ var MetadataApiFp = function (configuration) {
|
|
|
3449
3633
|
* @param {*} [options] Override http request option.
|
|
3450
3634
|
* @throws {RequiredError}
|
|
3451
3635
|
*/
|
|
3452
|
-
|
|
3636
|
+
getLlms: function (options) {
|
|
3453
3637
|
return __awaiter(this, void 0, void 0, function () {
|
|
3454
3638
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3455
3639
|
var _a, _b, _c;
|
|
3456
3640
|
return __generator(this, function (_d) {
|
|
3457
3641
|
switch (_d.label) {
|
|
3458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3642
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlms(options)];
|
|
3459
3643
|
case 1:
|
|
3460
3644
|
localVarAxiosArgs = _d.sent();
|
|
3461
3645
|
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.
|
|
3646
|
+
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
3647
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3464
3648
|
}
|
|
3465
3649
|
});
|
|
@@ -3519,17 +3703,17 @@ var MetadataApiFp = function (configuration) {
|
|
|
3519
3703
|
* @param {*} [options] Override http request option.
|
|
3520
3704
|
* @throws {RequiredError}
|
|
3521
3705
|
*/
|
|
3522
|
-
|
|
3706
|
+
getSkills: function (options) {
|
|
3523
3707
|
return __awaiter(this, void 0, void 0, function () {
|
|
3524
3708
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3525
3709
|
var _a, _b, _c;
|
|
3526
3710
|
return __generator(this, function (_d) {
|
|
3527
3711
|
switch (_d.label) {
|
|
3528
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3712
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkills(options)];
|
|
3529
3713
|
case 1:
|
|
3530
3714
|
localVarAxiosArgs = _d.sent();
|
|
3531
3715
|
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.
|
|
3716
|
+
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
3717
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3534
3718
|
}
|
|
3535
3719
|
});
|
|
@@ -3560,8 +3744,8 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
3560
3744
|
* @param {*} [options] Override http request option.
|
|
3561
3745
|
* @throws {RequiredError}
|
|
3562
3746
|
*/
|
|
3563
|
-
|
|
3564
|
-
return localVarFp.
|
|
3747
|
+
getLlms: function (options) {
|
|
3748
|
+
return localVarFp.getLlms(options).then(function (request) { return request(axios, basePath); });
|
|
3565
3749
|
},
|
|
3566
3750
|
/**
|
|
3567
3751
|
* Get the icon for a specific skill
|
|
@@ -3591,8 +3775,8 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
3591
3775
|
* @param {*} [options] Override http request option.
|
|
3592
3776
|
* @throws {RequiredError}
|
|
3593
3777
|
*/
|
|
3594
|
-
|
|
3595
|
-
return localVarFp.
|
|
3778
|
+
getSkills: function (options) {
|
|
3779
|
+
return localVarFp.getSkills(options).then(function (request) { return request(axios, basePath); });
|
|
3596
3780
|
},
|
|
3597
3781
|
};
|
|
3598
3782
|
};
|
|
@@ -3626,9 +3810,9 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
3626
3810
|
* @throws {RequiredError}
|
|
3627
3811
|
* @memberof MetadataApi
|
|
3628
3812
|
*/
|
|
3629
|
-
MetadataApi.prototype.
|
|
3813
|
+
MetadataApi.prototype.getLlms = function (options) {
|
|
3630
3814
|
var _this = this;
|
|
3631
|
-
return (0, exports.MetadataApiFp)(this.configuration).
|
|
3815
|
+
return (0, exports.MetadataApiFp)(this.configuration).getLlms(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3632
3816
|
};
|
|
3633
3817
|
/**
|
|
3634
3818
|
* Get the icon for a specific skill
|
|
@@ -3663,9 +3847,9 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
3663
3847
|
* @throws {RequiredError}
|
|
3664
3848
|
* @memberof MetadataApi
|
|
3665
3849
|
*/
|
|
3666
|
-
MetadataApi.prototype.
|
|
3850
|
+
MetadataApi.prototype.getSkills = function (options) {
|
|
3667
3851
|
var _this = this;
|
|
3668
|
-
return (0, exports.MetadataApiFp)(this.configuration).
|
|
3852
|
+
return (0, exports.MetadataApiFp)(this.configuration).getSkills(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3669
3853
|
};
|
|
3670
3854
|
return MetadataApi;
|
|
3671
3855
|
}(base_1.BaseAPI));
|
|
@@ -3685,7 +3869,7 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3685
3869
|
* @param {*} [options] Override http request option.
|
|
3686
3870
|
* @throws {RequiredError}
|
|
3687
3871
|
*/
|
|
3688
|
-
|
|
3872
|
+
getTwitterAuthUrl: function (agentId_1, redirectUri_1) {
|
|
3689
3873
|
var args_1 = [];
|
|
3690
3874
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
3691
3875
|
args_1[_i - 2] = arguments[_i];
|
|
@@ -3697,9 +3881,9 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3697
3881
|
switch (_a.label) {
|
|
3698
3882
|
case 0:
|
|
3699
3883
|
// verify required parameter 'agentId' is not null or undefined
|
|
3700
|
-
(0, common_1.assertParamExists)('
|
|
3884
|
+
(0, common_1.assertParamExists)('getTwitterAuthUrl', 'agentId', agentId);
|
|
3701
3885
|
// verify required parameter 'redirectUri' is not null or undefined
|
|
3702
|
-
(0, common_1.assertParamExists)('
|
|
3886
|
+
(0, common_1.assertParamExists)('getTwitterAuthUrl', 'redirectUri', redirectUri);
|
|
3703
3887
|
localVarPath = "/oauth/twitter";
|
|
3704
3888
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3705
3889
|
if (configuration) {
|
|
@@ -3741,7 +3925,7 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3741
3925
|
* @param {*} [options] Override http request option.
|
|
3742
3926
|
* @throws {RequiredError}
|
|
3743
3927
|
*/
|
|
3744
|
-
|
|
3928
|
+
twitterOauthCallback: function (state_1, code_1, error_1) {
|
|
3745
3929
|
var args_1 = [];
|
|
3746
3930
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
3747
3931
|
args_1[_i - 3] = arguments[_i];
|
|
@@ -3751,7 +3935,7 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3751
3935
|
if (options === void 0) { options = {}; }
|
|
3752
3936
|
return __generator(this, function (_a) {
|
|
3753
3937
|
// verify required parameter 'state' is not null or undefined
|
|
3754
|
-
(0, common_1.assertParamExists)('
|
|
3938
|
+
(0, common_1.assertParamExists)('twitterOauthCallback', 'state', state);
|
|
3755
3939
|
localVarPath = "/oauth/twitter/callback";
|
|
3756
3940
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3757
3941
|
if (configuration) {
|
|
@@ -3779,6 +3963,55 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3779
3963
|
});
|
|
3780
3964
|
});
|
|
3781
3965
|
},
|
|
3966
|
+
/**
|
|
3967
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3968
|
+
* @summary Unlink Twitter Endpoint
|
|
3969
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
3970
|
+
* @param {*} [options] Override http request option.
|
|
3971
|
+
* @throws {RequiredError}
|
|
3972
|
+
*/
|
|
3973
|
+
unlinkTwitter: function (agentId_1) {
|
|
3974
|
+
var args_1 = [];
|
|
3975
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3976
|
+
args_1[_i - 1] = arguments[_i];
|
|
3977
|
+
}
|
|
3978
|
+
return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
|
|
3979
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3980
|
+
if (options === void 0) { options = {}; }
|
|
3981
|
+
return __generator(this, function (_a) {
|
|
3982
|
+
switch (_a.label) {
|
|
3983
|
+
case 0:
|
|
3984
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
3985
|
+
(0, common_1.assertParamExists)('unlinkTwitter', 'agentId', agentId);
|
|
3986
|
+
localVarPath = "/oauth/twitter/unlink";
|
|
3987
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3988
|
+
if (configuration) {
|
|
3989
|
+
baseOptions = configuration.baseOptions;
|
|
3990
|
+
}
|
|
3991
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
3992
|
+
localVarHeaderParameter = {};
|
|
3993
|
+
localVarQueryParameter = {};
|
|
3994
|
+
// authentication HTTPBearer required
|
|
3995
|
+
// http bearer authentication required
|
|
3996
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
3997
|
+
case 1:
|
|
3998
|
+
// authentication HTTPBearer required
|
|
3999
|
+
// http bearer authentication required
|
|
4000
|
+
_a.sent();
|
|
4001
|
+
if (agentId !== undefined) {
|
|
4002
|
+
localVarQueryParameter['agent_id'] = agentId;
|
|
4003
|
+
}
|
|
4004
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4005
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4006
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4007
|
+
return [2 /*return*/, {
|
|
4008
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4009
|
+
options: localVarRequestOptions,
|
|
4010
|
+
}];
|
|
4011
|
+
}
|
|
4012
|
+
});
|
|
4013
|
+
});
|
|
4014
|
+
},
|
|
3782
4015
|
};
|
|
3783
4016
|
};
|
|
3784
4017
|
exports.OAuthApiAxiosParamCreator = OAuthApiAxiosParamCreator;
|
|
@@ -3797,17 +4030,17 @@ var OAuthApiFp = function (configuration) {
|
|
|
3797
4030
|
* @param {*} [options] Override http request option.
|
|
3798
4031
|
* @throws {RequiredError}
|
|
3799
4032
|
*/
|
|
3800
|
-
|
|
4033
|
+
getTwitterAuthUrl: function (agentId, redirectUri, options) {
|
|
3801
4034
|
return __awaiter(this, void 0, void 0, function () {
|
|
3802
4035
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3803
4036
|
var _a, _b, _c;
|
|
3804
4037
|
return __generator(this, function (_d) {
|
|
3805
4038
|
switch (_d.label) {
|
|
3806
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
4039
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTwitterAuthUrl(agentId, redirectUri, options)];
|
|
3807
4040
|
case 1:
|
|
3808
4041
|
localVarAxiosArgs = _d.sent();
|
|
3809
4042
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3810
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.
|
|
4043
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.getTwitterAuthUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3811
4044
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3812
4045
|
}
|
|
3813
4046
|
});
|
|
@@ -3822,17 +4055,40 @@ var OAuthApiFp = function (configuration) {
|
|
|
3822
4055
|
* @param {*} [options] Override http request option.
|
|
3823
4056
|
* @throws {RequiredError}
|
|
3824
4057
|
*/
|
|
3825
|
-
|
|
4058
|
+
twitterOauthCallback: function (state, code, error, options) {
|
|
4059
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4060
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4061
|
+
var _a, _b, _c;
|
|
4062
|
+
return __generator(this, function (_d) {
|
|
4063
|
+
switch (_d.label) {
|
|
4064
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.twitterOauthCallback(state, code, error, options)];
|
|
4065
|
+
case 1:
|
|
4066
|
+
localVarAxiosArgs = _d.sent();
|
|
4067
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4068
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.twitterOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4069
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4070
|
+
}
|
|
4071
|
+
});
|
|
4072
|
+
});
|
|
4073
|
+
},
|
|
4074
|
+
/**
|
|
4075
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4076
|
+
* @summary Unlink Twitter Endpoint
|
|
4077
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
4078
|
+
* @param {*} [options] Override http request option.
|
|
4079
|
+
* @throws {RequiredError}
|
|
4080
|
+
*/
|
|
4081
|
+
unlinkTwitter: function (agentId, options) {
|
|
3826
4082
|
return __awaiter(this, void 0, void 0, function () {
|
|
3827
4083
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3828
4084
|
var _a, _b, _c;
|
|
3829
4085
|
return __generator(this, function (_d) {
|
|
3830
4086
|
switch (_d.label) {
|
|
3831
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
4087
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkTwitter(agentId, options)];
|
|
3832
4088
|
case 1:
|
|
3833
4089
|
localVarAxiosArgs = _d.sent();
|
|
3834
4090
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3835
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.
|
|
4091
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.unlinkTwitter']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3836
4092
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3837
4093
|
}
|
|
3838
4094
|
});
|
|
@@ -3856,8 +4112,8 @@ var OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
3856
4112
|
* @param {*} [options] Override http request option.
|
|
3857
4113
|
* @throws {RequiredError}
|
|
3858
4114
|
*/
|
|
3859
|
-
|
|
3860
|
-
return localVarFp.
|
|
4115
|
+
getTwitterAuthUrl: function (agentId, redirectUri, options) {
|
|
4116
|
+
return localVarFp.getTwitterAuthUrl(agentId, redirectUri, options).then(function (request) { return request(axios, basePath); });
|
|
3861
4117
|
},
|
|
3862
4118
|
/**
|
|
3863
4119
|
* Handle Twitter OAuth2 callback. This endpoint is called by Twitter after the user authorizes the application. It exchanges the authorization code for access and refresh tokens, then stores them in the database. **Query Parameters:** * `state` - URL-encoded state containing agent_id and redirect_uri * `code` - Authorization code from Twitter * `error` - Error message from Twitter (optional) **Returns:** * JSONResponse or RedirectResponse depending on redirect_uri
|
|
@@ -3868,8 +4124,18 @@ var OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
3868
4124
|
* @param {*} [options] Override http request option.
|
|
3869
4125
|
* @throws {RequiredError}
|
|
3870
4126
|
*/
|
|
3871
|
-
|
|
3872
|
-
return localVarFp.
|
|
4127
|
+
twitterOauthCallback: function (state, code, error, options) {
|
|
4128
|
+
return localVarFp.twitterOauthCallback(state, code, error, options).then(function (request) { return request(axios, basePath); });
|
|
4129
|
+
},
|
|
4130
|
+
/**
|
|
4131
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4132
|
+
* @summary Unlink Twitter Endpoint
|
|
4133
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
4134
|
+
* @param {*} [options] Override http request option.
|
|
4135
|
+
* @throws {RequiredError}
|
|
4136
|
+
*/
|
|
4137
|
+
unlinkTwitter: function (agentId, options) {
|
|
4138
|
+
return localVarFp.unlinkTwitter(agentId, options).then(function (request) { return request(axios, basePath); });
|
|
3873
4139
|
},
|
|
3874
4140
|
};
|
|
3875
4141
|
};
|
|
@@ -3894,9 +4160,9 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
3894
4160
|
* @throws {RequiredError}
|
|
3895
4161
|
* @memberof OAuthApi
|
|
3896
4162
|
*/
|
|
3897
|
-
OAuthApi.prototype.
|
|
4163
|
+
OAuthApi.prototype.getTwitterAuthUrl = function (agentId, redirectUri, options) {
|
|
3898
4164
|
var _this = this;
|
|
3899
|
-
return (0, exports.OAuthApiFp)(this.configuration).
|
|
4165
|
+
return (0, exports.OAuthApiFp)(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3900
4166
|
};
|
|
3901
4167
|
/**
|
|
3902
4168
|
* Handle Twitter OAuth2 callback. This endpoint is called by Twitter after the user authorizes the application. It exchanges the authorization code for access and refresh tokens, then stores them in the database. **Query Parameters:** * `state` - URL-encoded state containing agent_id and redirect_uri * `code` - Authorization code from Twitter * `error` - Error message from Twitter (optional) **Returns:** * JSONResponse or RedirectResponse depending on redirect_uri
|
|
@@ -3908,9 +4174,21 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
3908
4174
|
* @throws {RequiredError}
|
|
3909
4175
|
* @memberof OAuthApi
|
|
3910
4176
|
*/
|
|
3911
|
-
OAuthApi.prototype.
|
|
4177
|
+
OAuthApi.prototype.twitterOauthCallback = function (state, code, error, options) {
|
|
4178
|
+
var _this = this;
|
|
4179
|
+
return (0, exports.OAuthApiFp)(this.configuration).twitterOauthCallback(state, code, error, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4180
|
+
};
|
|
4181
|
+
/**
|
|
4182
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4183
|
+
* @summary Unlink Twitter Endpoint
|
|
4184
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
4185
|
+
* @param {*} [options] Override http request option.
|
|
4186
|
+
* @throws {RequiredError}
|
|
4187
|
+
* @memberof OAuthApi
|
|
4188
|
+
*/
|
|
4189
|
+
OAuthApi.prototype.unlinkTwitter = function (agentId, options) {
|
|
3912
4190
|
var _this = this;
|
|
3913
|
-
return (0, exports.OAuthApiFp)(this.configuration).
|
|
4191
|
+
return (0, exports.OAuthApiFp)(this.configuration).unlinkTwitter(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3914
4192
|
};
|
|
3915
4193
|
return OAuthApi;
|
|
3916
4194
|
}(base_1.BaseAPI));
|