@crestal/nation-sdk 0.1.19 → 0.1.20

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.19
8
+ * The version of the OpenAPI document: 0.1.20
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = void 0;
87
+ exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = void 0;
88
88
  var axios_1 = require("axios");
89
89
  // Some imports not used depending on template conditions
90
90
  // @ts-ignore
@@ -98,6 +98,16 @@ exports.AgentResponseModeEnum = {
98
98
  exports.AgentResponseWalletProviderEnum = {
99
99
  Cdp: 'cdp'
100
100
  };
101
+ /**
102
+ * Sort options for agents list.
103
+ * @export
104
+ * @enum {string}
105
+ */
106
+ exports.AgentSortOption = {
107
+ CreatedAtDesc: 'created_at desc',
108
+ CreatedAtAsc: 'created_at asc',
109
+ UpdatedAtDesc: 'updated_at desc'
110
+ };
101
111
  exports.AgentUpdateModeEnum = {
102
112
  Public: 'public',
103
113
  Private: 'private'
@@ -271,9 +281,9 @@ var AgentApiAxiosParamCreator = function (configuration) {
271
281
  var _this = this;
272
282
  return {
273
283
  /**
274
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
275
- * @summary Create a new agent
276
- * @param {AgentUpdate} agentUpdate
284
+ * 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
285
+ * @summary Create Agent
286
+ * @param {AgentUpdate} [agentUpdate]
277
287
  * @param {*} [options] Override http request option.
278
288
  * @throws {RequiredError}
279
289
  */
@@ -288,8 +298,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
288
298
  return __generator(this, function (_a) {
289
299
  switch (_a.label) {
290
300
  case 0:
291
- // verify required parameter 'agentUpdate' is not null or undefined
292
- (0, common_1.assertParamExists)('createAgent', 'agentUpdate', agentUpdate);
293
301
  localVarPath = "/agents";
294
302
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
295
303
  if (configuration) {
@@ -319,25 +327,165 @@ var AgentApiAxiosParamCreator = function (configuration) {
319
327
  });
320
328
  },
321
329
  /**
322
- * Retrieve a specific agent by its ID. Returns 404 if not found.
323
- * @summary Get agent by ID
324
- * @param {string} aid Agent ID
330
+ * 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
331
+ * @summary Create Agent
332
+ * @param {AgentUpdate} [agentUpdate]
325
333
  * @param {*} [options] Override http request option.
326
334
  * @throws {RequiredError}
327
335
  */
328
- getAgentById: function (aid_1) {
336
+ createAgent_1: function (agentUpdate_1) {
329
337
  var args_1 = [];
330
338
  for (var _i = 1; _i < arguments.length; _i++) {
331
339
  args_1[_i - 1] = arguments[_i];
332
340
  }
333
- return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
341
+ return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
334
342
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
343
  if (options === void 0) { options = {}; }
336
344
  return __generator(this, function (_a) {
337
- // verify required parameter 'aid' is not null or undefined
338
- (0, common_1.assertParamExists)('getAgentById', 'aid', aid);
339
- localVarPath = "/agents/{aid}"
340
- .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
345
+ switch (_a.label) {
346
+ case 0:
347
+ localVarPath = "/agents";
348
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
349
+ if (configuration) {
350
+ baseOptions = configuration.baseOptions;
351
+ }
352
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
353
+ localVarHeaderParameter = {};
354
+ localVarQueryParameter = {};
355
+ // authentication HTTPBearer required
356
+ // http bearer authentication required
357
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
+ case 1:
359
+ // authentication HTTPBearer required
360
+ // http bearer authentication required
361
+ _a.sent();
362
+ localVarHeaderParameter['Content-Type'] = 'application/json';
363
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
364
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
365
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
366
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
367
+ return [2 /*return*/, {
368
+ url: (0, common_1.toPathString)(localVarUrlObj),
369
+ options: localVarRequestOptions,
370
+ }];
371
+ }
372
+ });
373
+ });
374
+ },
375
+ /**
376
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
377
+ * @summary Export Agent
378
+ * @param {string} agentId ID of the agent to export
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ exportAgent: function (agentId_1) {
383
+ var args_1 = [];
384
+ for (var _i = 1; _i < arguments.length; _i++) {
385
+ args_1[_i - 1] = arguments[_i];
386
+ }
387
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
388
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
389
+ if (options === void 0) { options = {}; }
390
+ return __generator(this, function (_a) {
391
+ switch (_a.label) {
392
+ case 0:
393
+ // verify required parameter 'agentId' is not null or undefined
394
+ (0, common_1.assertParamExists)('exportAgent', 'agentId', agentId);
395
+ localVarPath = "/agents/{agent_id}/export"
396
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
397
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ }
401
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
402
+ localVarHeaderParameter = {};
403
+ localVarQueryParameter = {};
404
+ // authentication HTTPBearer required
405
+ // http bearer authentication required
406
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
407
+ case 1:
408
+ // authentication HTTPBearer required
409
+ // http bearer authentication required
410
+ _a.sent();
411
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
412
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
413
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
414
+ return [2 /*return*/, {
415
+ url: (0, common_1.toPathString)(localVarUrlObj),
416
+ options: localVarRequestOptions,
417
+ }];
418
+ }
419
+ });
420
+ });
421
+ },
422
+ /**
423
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
424
+ * @summary Export Agent
425
+ * @param {string} agentId ID of the agent to export
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ exportAgent_2: function (agentId_1) {
430
+ var args_1 = [];
431
+ for (var _i = 1; _i < arguments.length; _i++) {
432
+ args_1[_i - 1] = arguments[_i];
433
+ }
434
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
435
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
436
+ if (options === void 0) { options = {}; }
437
+ return __generator(this, function (_a) {
438
+ switch (_a.label) {
439
+ case 0:
440
+ // verify required parameter 'agentId' is not null or undefined
441
+ (0, common_1.assertParamExists)('exportAgent_2', 'agentId', agentId);
442
+ localVarPath = "/agents/{agent_id}/export"
443
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
444
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
445
+ if (configuration) {
446
+ baseOptions = configuration.baseOptions;
447
+ }
448
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
449
+ localVarHeaderParameter = {};
450
+ localVarQueryParameter = {};
451
+ // authentication HTTPBearer required
452
+ // http bearer authentication required
453
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
454
+ case 1:
455
+ // authentication HTTPBearer required
456
+ // http bearer authentication required
457
+ _a.sent();
458
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
459
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
461
+ return [2 /*return*/, {
462
+ url: (0, common_1.toPathString)(localVarUrlObj),
463
+ options: localVarRequestOptions,
464
+ }];
465
+ }
466
+ });
467
+ });
468
+ },
469
+ /**
470
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
471
+ * @summary Get Agent
472
+ * @param {string} agentId ID of the agent to retrieve
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ getAgent: function (agentId_1) {
477
+ var args_1 = [];
478
+ for (var _i = 1; _i < arguments.length; _i++) {
479
+ args_1[_i - 1] = arguments[_i];
480
+ }
481
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
482
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
483
+ if (options === void 0) { options = {}; }
484
+ return __generator(this, function (_a) {
485
+ // verify required parameter 'agentId' is not null or undefined
486
+ (0, common_1.assertParamExists)('getAgent', 'agentId', agentId);
487
+ localVarPath = "/agents/{agent_id}"
488
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
341
489
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
342
490
  if (configuration) {
343
491
  baseOptions = configuration.baseOptions;
@@ -392,99 +540,1110 @@ var AgentApiAxiosParamCreator = function (configuration) {
392
540
  });
393
541
  });
394
542
  },
395
- };
396
- };
397
- exports.AgentApiAxiosParamCreator = AgentApiAxiosParamCreator;
398
- /**
399
- * AgentApi - functional programming interface
400
- * @export
401
- */
402
- var AgentApiFp = function (configuration) {
403
- var localVarAxiosParamCreator = (0, exports.AgentApiAxiosParamCreator)(configuration);
404
- return {
405
543
  /**
406
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
407
- * @summary Create a new agent
408
- * @param {AgentUpdate} agentUpdate
544
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
545
+ * @summary Get Agent
546
+ * @param {string} agentId ID of the agent to retrieve
409
547
  * @param {*} [options] Override http request option.
410
548
  * @throws {RequiredError}
411
549
  */
412
- createAgent: function (agentUpdate, options) {
413
- return __awaiter(this, void 0, void 0, function () {
414
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
415
- var _a, _b, _c;
416
- return __generator(this, function (_d) {
417
- switch (_d.label) {
418
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAgent(agentUpdate, options)];
419
- case 1:
420
- localVarAxiosArgs = _d.sent();
421
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
422
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.createAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
423
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
550
+ getAgent_3: function (agentId_1) {
551
+ var args_1 = [];
552
+ for (var _i = 1; _i < arguments.length; _i++) {
553
+ args_1[_i - 1] = arguments[_i];
554
+ }
555
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
556
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
557
+ if (options === void 0) { options = {}; }
558
+ return __generator(this, function (_a) {
559
+ // verify required parameter 'agentId' is not null or undefined
560
+ (0, common_1.assertParamExists)('getAgent_3', 'agentId', agentId);
561
+ localVarPath = "/agents/{agent_id}"
562
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
563
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
564
+ if (configuration) {
565
+ baseOptions = configuration.baseOptions;
424
566
  }
567
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
568
+ localVarHeaderParameter = {};
569
+ localVarQueryParameter = {};
570
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
571
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
572
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
573
+ return [2 /*return*/, {
574
+ url: (0, common_1.toPathString)(localVarUrlObj),
575
+ options: localVarRequestOptions,
576
+ }];
425
577
  });
426
578
  });
427
579
  },
428
580
  /**
429
- * Retrieve a specific agent by its ID. Returns 404 if not found.
430
- * @summary Get agent by ID
431
- * @param {string} aid Agent ID
581
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
582
+ * @summary Get Agents
583
+ * @param {AgentSortOption} [sort] Sort order for agents list
584
+ * @param {string | null} [cursor] Cursor for pagination
585
+ * @param {number} [limit] Maximum number of agents to return
432
586
  * @param {*} [options] Override http request option.
433
587
  * @throws {RequiredError}
434
588
  */
435
- getAgentById: function (aid, options) {
436
- return __awaiter(this, void 0, void 0, function () {
437
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
438
- var _a, _b, _c;
439
- return __generator(this, function (_d) {
440
- switch (_d.label) {
441
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentById(aid, options)];
442
- case 1:
443
- localVarAxiosArgs = _d.sent();
444
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
445
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
446
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
589
+ getAgents: function (sort_1, cursor_1, limit_1) {
590
+ var args_1 = [];
591
+ for (var _i = 3; _i < arguments.length; _i++) {
592
+ args_1[_i - 3] = arguments[_i];
593
+ }
594
+ return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1], args_1, true), void 0, function (sort, cursor, limit, options) {
595
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
596
+ if (options === void 0) { options = {}; }
597
+ return __generator(this, function (_a) {
598
+ localVarPath = "/agents";
599
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
600
+ if (configuration) {
601
+ baseOptions = configuration.baseOptions;
602
+ }
603
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
604
+ localVarHeaderParameter = {};
605
+ localVarQueryParameter = {};
606
+ if (sort !== undefined) {
607
+ localVarQueryParameter['sort'] = sort;
608
+ }
609
+ if (cursor !== undefined) {
610
+ localVarQueryParameter['cursor'] = cursor;
611
+ }
612
+ if (limit !== undefined) {
613
+ localVarQueryParameter['limit'] = limit;
447
614
  }
615
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
616
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
617
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
618
+ return [2 /*return*/, {
619
+ url: (0, common_1.toPathString)(localVarUrlObj),
620
+ options: localVarRequestOptions,
621
+ }];
448
622
  });
449
623
  });
450
624
  },
451
625
  /**
452
- * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
453
- * @summary Get Agent Statistics
454
- * @param {string} aid ID of the agent
626
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
627
+ * @summary Get Agents
628
+ * @param {AgentSortOption} [sort] Sort order for agents list
629
+ * @param {string | null} [cursor] Cursor for pagination
630
+ * @param {number} [limit] Maximum number of agents to return
455
631
  * @param {*} [options] Override http request option.
456
632
  * @throws {RequiredError}
457
633
  */
458
- getAgentStatistics: function (aid, options) {
459
- return __awaiter(this, void 0, void 0, function () {
460
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
461
- var _a, _b, _c;
462
- return __generator(this, function (_d) {
463
- switch (_d.label) {
464
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentStatistics(aid, options)];
465
- case 1:
466
- localVarAxiosArgs = _d.sent();
467
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
468
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
469
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
634
+ getAgents_4: function (sort_1, cursor_1, limit_1) {
635
+ var args_1 = [];
636
+ for (var _i = 3; _i < arguments.length; _i++) {
637
+ args_1[_i - 3] = arguments[_i];
638
+ }
639
+ return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1], args_1, true), void 0, function (sort, cursor, limit, options) {
640
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
641
+ if (options === void 0) { options = {}; }
642
+ return __generator(this, function (_a) {
643
+ localVarPath = "/agents";
644
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
645
+ if (configuration) {
646
+ baseOptions = configuration.baseOptions;
647
+ }
648
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
649
+ localVarHeaderParameter = {};
650
+ localVarQueryParameter = {};
651
+ if (sort !== undefined) {
652
+ localVarQueryParameter['sort'] = sort;
653
+ }
654
+ if (cursor !== undefined) {
655
+ localVarQueryParameter['cursor'] = cursor;
470
656
  }
657
+ if (limit !== undefined) {
658
+ localVarQueryParameter['limit'] = limit;
659
+ }
660
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
661
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
662
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
663
+ return [2 /*return*/, {
664
+ url: (0, common_1.toPathString)(localVarUrlObj),
665
+ options: localVarRequestOptions,
666
+ }];
471
667
  });
472
668
  });
473
669
  },
474
- };
475
- };
476
- exports.AgentApiFp = AgentApiFp;
477
- /**
478
- * AgentApi - factory interface
479
- * @export
480
- */
481
- var AgentApiFactory = function (configuration, basePath, axios) {
482
- var localVarFp = (0, exports.AgentApiFp)(configuration);
483
- return {
484
670
  /**
485
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
486
- * @summary Create a new agent
487
- * @param {AgentUpdate} agentUpdate
671
+ * 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
672
+ * @summary Import Agent
673
+ * @param {string} agentId
674
+ * @param {File} file YAML file containing agent configuration
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ importAgent: function (agentId_1, file_1) {
679
+ var args_1 = [];
680
+ for (var _i = 2; _i < arguments.length; _i++) {
681
+ args_1[_i - 2] = arguments[_i];
682
+ }
683
+ return __awaiter(_this, __spreadArray([agentId_1, file_1], args_1, true), void 0, function (agentId, file, options) {
684
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
685
+ if (options === void 0) { options = {}; }
686
+ return __generator(this, function (_a) {
687
+ switch (_a.label) {
688
+ case 0:
689
+ // verify required parameter 'agentId' is not null or undefined
690
+ (0, common_1.assertParamExists)('importAgent', 'agentId', agentId);
691
+ // verify required parameter 'file' is not null or undefined
692
+ (0, common_1.assertParamExists)('importAgent', 'file', file);
693
+ localVarPath = "/agents/{agent_id}/import"
694
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
695
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
696
+ if (configuration) {
697
+ baseOptions = configuration.baseOptions;
698
+ }
699
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
700
+ localVarHeaderParameter = {};
701
+ localVarQueryParameter = {};
702
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
703
+ // authentication HTTPBearer required
704
+ // http bearer authentication required
705
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
706
+ case 1:
707
+ // authentication HTTPBearer required
708
+ // http bearer authentication required
709
+ _a.sent();
710
+ if (file !== undefined) {
711
+ localVarFormParams.append('file', file);
712
+ }
713
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
715
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
716
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
717
+ localVarRequestOptions.data = localVarFormParams;
718
+ return [2 /*return*/, {
719
+ url: (0, common_1.toPathString)(localVarUrlObj),
720
+ options: localVarRequestOptions,
721
+ }];
722
+ }
723
+ });
724
+ });
725
+ },
726
+ /**
727
+ * 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
728
+ * @summary Import Agent
729
+ * @param {string} agentId
730
+ * @param {File} file YAML file containing agent configuration
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ importAgent_5: function (agentId_1, file_1) {
735
+ var args_1 = [];
736
+ for (var _i = 2; _i < arguments.length; _i++) {
737
+ args_1[_i - 2] = arguments[_i];
738
+ }
739
+ return __awaiter(_this, __spreadArray([agentId_1, file_1], args_1, true), void 0, function (agentId, file, options) {
740
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
741
+ if (options === void 0) { options = {}; }
742
+ return __generator(this, function (_a) {
743
+ switch (_a.label) {
744
+ case 0:
745
+ // verify required parameter 'agentId' is not null or undefined
746
+ (0, common_1.assertParamExists)('importAgent_5', 'agentId', agentId);
747
+ // verify required parameter 'file' is not null or undefined
748
+ (0, common_1.assertParamExists)('importAgent_5', 'file', file);
749
+ localVarPath = "/agents/{agent_id}/import"
750
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
751
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
752
+ if (configuration) {
753
+ baseOptions = configuration.baseOptions;
754
+ }
755
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
756
+ localVarHeaderParameter = {};
757
+ localVarQueryParameter = {};
758
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
759
+ // authentication HTTPBearer required
760
+ // http bearer authentication required
761
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
762
+ case 1:
763
+ // authentication HTTPBearer required
764
+ // http bearer authentication required
765
+ _a.sent();
766
+ if (file !== undefined) {
767
+ localVarFormParams.append('file', file);
768
+ }
769
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
770
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
771
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
772
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
773
+ localVarRequestOptions.data = localVarFormParams;
774
+ return [2 /*return*/, {
775
+ url: (0, common_1.toPathString)(localVarUrlObj),
776
+ options: localVarRequestOptions,
777
+ }];
778
+ }
779
+ });
780
+ });
781
+ },
782
+ /**
783
+ * 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
784
+ * @summary Override Agent
785
+ * @param {string} agentId ID of the agent to update
786
+ * @param {AgentUpdate} [agentUpdate]
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ overrideAgent: function (agentId_1, agentUpdate_1) {
791
+ var args_1 = [];
792
+ for (var _i = 2; _i < arguments.length; _i++) {
793
+ args_1[_i - 2] = arguments[_i];
794
+ }
795
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
796
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
797
+ if (options === void 0) { options = {}; }
798
+ return __generator(this, function (_a) {
799
+ switch (_a.label) {
800
+ case 0:
801
+ // verify required parameter 'agentId' is not null or undefined
802
+ (0, common_1.assertParamExists)('overrideAgent', 'agentId', agentId);
803
+ localVarPath = "/agents/{agent_id}"
804
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
805
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
806
+ if (configuration) {
807
+ baseOptions = configuration.baseOptions;
808
+ }
809
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
810
+ localVarHeaderParameter = {};
811
+ localVarQueryParameter = {};
812
+ // authentication HTTPBearer required
813
+ // http bearer authentication required
814
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
815
+ case 1:
816
+ // authentication HTTPBearer required
817
+ // http bearer authentication required
818
+ _a.sent();
819
+ localVarHeaderParameter['Content-Type'] = 'application/json';
820
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
821
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
822
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
823
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
824
+ return [2 /*return*/, {
825
+ url: (0, common_1.toPathString)(localVarUrlObj),
826
+ options: localVarRequestOptions,
827
+ }];
828
+ }
829
+ });
830
+ });
831
+ },
832
+ /**
833
+ * 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
834
+ * @summary Override Agent
835
+ * @param {string} agentId ID of the agent to update
836
+ * @param {AgentUpdate} [agentUpdate]
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ overrideAgent_6: function (agentId_1, agentUpdate_1) {
841
+ var args_1 = [];
842
+ for (var _i = 2; _i < arguments.length; _i++) {
843
+ args_1[_i - 2] = arguments[_i];
844
+ }
845
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
846
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
847
+ if (options === void 0) { options = {}; }
848
+ return __generator(this, function (_a) {
849
+ switch (_a.label) {
850
+ case 0:
851
+ // verify required parameter 'agentId' is not null or undefined
852
+ (0, common_1.assertParamExists)('overrideAgent_6', 'agentId', agentId);
853
+ localVarPath = "/agents/{agent_id}"
854
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
855
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
856
+ if (configuration) {
857
+ baseOptions = configuration.baseOptions;
858
+ }
859
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
860
+ localVarHeaderParameter = {};
861
+ localVarQueryParameter = {};
862
+ // authentication HTTPBearer required
863
+ // http bearer authentication required
864
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
865
+ case 1:
866
+ // authentication HTTPBearer required
867
+ // http bearer authentication required
868
+ _a.sent();
869
+ localVarHeaderParameter['Content-Type'] = 'application/json';
870
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
871
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
872
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
873
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
874
+ return [2 /*return*/, {
875
+ url: (0, common_1.toPathString)(localVarUrlObj),
876
+ options: localVarRequestOptions,
877
+ }];
878
+ }
879
+ });
880
+ });
881
+ },
882
+ /**
883
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
884
+ * @summary Update Agent
885
+ * @param {string} agentId ID of the agent to update
886
+ * @param {AgentUpdate} [agentUpdate]
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ updateAgent: function (agentId_1, agentUpdate_1) {
891
+ var args_1 = [];
892
+ for (var _i = 2; _i < arguments.length; _i++) {
893
+ args_1[_i - 2] = arguments[_i];
894
+ }
895
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
896
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
897
+ if (options === void 0) { options = {}; }
898
+ return __generator(this, function (_a) {
899
+ switch (_a.label) {
900
+ case 0:
901
+ // verify required parameter 'agentId' is not null or undefined
902
+ (0, common_1.assertParamExists)('updateAgent', 'agentId', agentId);
903
+ localVarPath = "/agents/{agent_id}"
904
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
905
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
906
+ if (configuration) {
907
+ baseOptions = configuration.baseOptions;
908
+ }
909
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
910
+ localVarHeaderParameter = {};
911
+ localVarQueryParameter = {};
912
+ // authentication HTTPBearer required
913
+ // http bearer authentication required
914
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
915
+ case 1:
916
+ // authentication HTTPBearer required
917
+ // http bearer authentication required
918
+ _a.sent();
919
+ localVarHeaderParameter['Content-Type'] = 'application/json';
920
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
921
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
922
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
923
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
924
+ return [2 /*return*/, {
925
+ url: (0, common_1.toPathString)(localVarUrlObj),
926
+ options: localVarRequestOptions,
927
+ }];
928
+ }
929
+ });
930
+ });
931
+ },
932
+ /**
933
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
934
+ * @summary Update Agent
935
+ * @param {string} agentId ID of the agent to update
936
+ * @param {AgentUpdate} [agentUpdate]
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ updateAgent_7: function (agentId_1, agentUpdate_1) {
941
+ var args_1 = [];
942
+ for (var _i = 2; _i < arguments.length; _i++) {
943
+ args_1[_i - 2] = arguments[_i];
944
+ }
945
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
946
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
947
+ if (options === void 0) { options = {}; }
948
+ return __generator(this, function (_a) {
949
+ switch (_a.label) {
950
+ case 0:
951
+ // verify required parameter 'agentId' is not null or undefined
952
+ (0, common_1.assertParamExists)('updateAgent_7', 'agentId', agentId);
953
+ localVarPath = "/agents/{agent_id}"
954
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
955
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
956
+ if (configuration) {
957
+ baseOptions = configuration.baseOptions;
958
+ }
959
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
960
+ localVarHeaderParameter = {};
961
+ localVarQueryParameter = {};
962
+ // authentication HTTPBearer required
963
+ // http bearer authentication required
964
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
965
+ case 1:
966
+ // authentication HTTPBearer required
967
+ // http bearer authentication required
968
+ _a.sent();
969
+ localVarHeaderParameter['Content-Type'] = 'application/json';
970
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
971
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
972
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
973
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
974
+ return [2 /*return*/, {
975
+ url: (0, common_1.toPathString)(localVarUrlObj),
976
+ options: localVarRequestOptions,
977
+ }];
978
+ }
979
+ });
980
+ });
981
+ },
982
+ /**
983
+ * 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
984
+ * @summary Validate Agent Create
985
+ * @param {AgentUpdate} [agentUpdate]
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ validateAgentCreate: function (agentUpdate_1) {
990
+ var args_1 = [];
991
+ for (var _i = 1; _i < arguments.length; _i++) {
992
+ args_1[_i - 1] = arguments[_i];
993
+ }
994
+ return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
995
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
996
+ if (options === void 0) { options = {}; }
997
+ return __generator(this, function (_a) {
998
+ switch (_a.label) {
999
+ case 0:
1000
+ localVarPath = "/agent/validate";
1001
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1002
+ if (configuration) {
1003
+ baseOptions = configuration.baseOptions;
1004
+ }
1005
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1006
+ localVarHeaderParameter = {};
1007
+ localVarQueryParameter = {};
1008
+ // authentication HTTPBearer required
1009
+ // http bearer authentication required
1010
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1011
+ case 1:
1012
+ // authentication HTTPBearer required
1013
+ // http bearer authentication required
1014
+ _a.sent();
1015
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1016
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1017
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1018
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1019
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
1020
+ return [2 /*return*/, {
1021
+ url: (0, common_1.toPathString)(localVarUrlObj),
1022
+ options: localVarRequestOptions,
1023
+ }];
1024
+ }
1025
+ });
1026
+ });
1027
+ },
1028
+ /**
1029
+ * 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
1030
+ * @summary Validate Agent Create
1031
+ * @param {AgentUpdate} [agentUpdate]
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ validateAgentCreate_8: function (agentUpdate_1) {
1036
+ var args_1 = [];
1037
+ for (var _i = 1; _i < arguments.length; _i++) {
1038
+ args_1[_i - 1] = arguments[_i];
1039
+ }
1040
+ return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
1041
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1042
+ if (options === void 0) { options = {}; }
1043
+ return __generator(this, function (_a) {
1044
+ switch (_a.label) {
1045
+ case 0:
1046
+ localVarPath = "/agent/validate";
1047
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1048
+ if (configuration) {
1049
+ baseOptions = configuration.baseOptions;
1050
+ }
1051
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1052
+ localVarHeaderParameter = {};
1053
+ localVarQueryParameter = {};
1054
+ // authentication HTTPBearer required
1055
+ // http bearer authentication required
1056
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1057
+ case 1:
1058
+ // authentication HTTPBearer required
1059
+ // http bearer authentication required
1060
+ _a.sent();
1061
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1062
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1063
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1064
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1065
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
1066
+ return [2 /*return*/, {
1067
+ url: (0, common_1.toPathString)(localVarUrlObj),
1068
+ options: localVarRequestOptions,
1069
+ }];
1070
+ }
1071
+ });
1072
+ });
1073
+ },
1074
+ /**
1075
+ * 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
1076
+ * @summary Validate Agent Update
1077
+ * @param {string} agentId Agent ID
1078
+ * @param {AgentUpdate} [agentUpdate]
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ validateAgentUpdate: function (agentId_1, agentUpdate_1) {
1083
+ var args_1 = [];
1084
+ for (var _i = 2; _i < arguments.length; _i++) {
1085
+ args_1[_i - 2] = arguments[_i];
1086
+ }
1087
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
1088
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1089
+ if (options === void 0) { options = {}; }
1090
+ return __generator(this, function (_a) {
1091
+ switch (_a.label) {
1092
+ case 0:
1093
+ // verify required parameter 'agentId' is not null or undefined
1094
+ (0, common_1.assertParamExists)('validateAgentUpdate', 'agentId', agentId);
1095
+ localVarPath = "/agents/{agent_id}/validate"
1096
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
1097
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1098
+ if (configuration) {
1099
+ baseOptions = configuration.baseOptions;
1100
+ }
1101
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1102
+ localVarHeaderParameter = {};
1103
+ localVarQueryParameter = {};
1104
+ // authentication HTTPBearer required
1105
+ // http bearer authentication required
1106
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1107
+ case 1:
1108
+ // authentication HTTPBearer required
1109
+ // http bearer authentication required
1110
+ _a.sent();
1111
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1112
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1113
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1114
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1115
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
1116
+ return [2 /*return*/, {
1117
+ url: (0, common_1.toPathString)(localVarUrlObj),
1118
+ options: localVarRequestOptions,
1119
+ }];
1120
+ }
1121
+ });
1122
+ });
1123
+ },
1124
+ /**
1125
+ * 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
1126
+ * @summary Validate Agent Update
1127
+ * @param {string} agentId Agent ID
1128
+ * @param {AgentUpdate} [agentUpdate]
1129
+ * @param {*} [options] Override http request option.
1130
+ * @throws {RequiredError}
1131
+ */
1132
+ validateAgentUpdate_9: function (agentId_1, agentUpdate_1) {
1133
+ var args_1 = [];
1134
+ for (var _i = 2; _i < arguments.length; _i++) {
1135
+ args_1[_i - 2] = arguments[_i];
1136
+ }
1137
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
1138
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1139
+ if (options === void 0) { options = {}; }
1140
+ return __generator(this, function (_a) {
1141
+ switch (_a.label) {
1142
+ case 0:
1143
+ // verify required parameter 'agentId' is not null or undefined
1144
+ (0, common_1.assertParamExists)('validateAgentUpdate_9', 'agentId', agentId);
1145
+ localVarPath = "/agents/{agent_id}/validate"
1146
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
1147
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1148
+ if (configuration) {
1149
+ baseOptions = configuration.baseOptions;
1150
+ }
1151
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1152
+ localVarHeaderParameter = {};
1153
+ localVarQueryParameter = {};
1154
+ // authentication HTTPBearer required
1155
+ // http bearer authentication required
1156
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1157
+ case 1:
1158
+ // authentication HTTPBearer required
1159
+ // http bearer authentication required
1160
+ _a.sent();
1161
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1162
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1163
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1164
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1165
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
1166
+ return [2 /*return*/, {
1167
+ url: (0, common_1.toPathString)(localVarUrlObj),
1168
+ options: localVarRequestOptions,
1169
+ }];
1170
+ }
1171
+ });
1172
+ });
1173
+ },
1174
+ };
1175
+ };
1176
+ exports.AgentApiAxiosParamCreator = AgentApiAxiosParamCreator;
1177
+ /**
1178
+ * AgentApi - functional programming interface
1179
+ * @export
1180
+ */
1181
+ var AgentApiFp = function (configuration) {
1182
+ var localVarAxiosParamCreator = (0, exports.AgentApiAxiosParamCreator)(configuration);
1183
+ return {
1184
+ /**
1185
+ * 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
1186
+ * @summary Create Agent
1187
+ * @param {AgentUpdate} [agentUpdate]
1188
+ * @param {*} [options] Override http request option.
1189
+ * @throws {RequiredError}
1190
+ */
1191
+ createAgent: function (agentUpdate, options) {
1192
+ return __awaiter(this, void 0, void 0, function () {
1193
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1194
+ var _a, _b, _c;
1195
+ return __generator(this, function (_d) {
1196
+ switch (_d.label) {
1197
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAgent(agentUpdate, options)];
1198
+ case 1:
1199
+ localVarAxiosArgs = _d.sent();
1200
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1201
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.createAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1202
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1203
+ }
1204
+ });
1205
+ });
1206
+ },
1207
+ /**
1208
+ * 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
1209
+ * @summary Create Agent
1210
+ * @param {AgentUpdate} [agentUpdate]
1211
+ * @param {*} [options] Override http request option.
1212
+ * @throws {RequiredError}
1213
+ */
1214
+ createAgent_1: function (agentUpdate, options) {
1215
+ return __awaiter(this, void 0, void 0, function () {
1216
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1217
+ var _a, _b, _c;
1218
+ return __generator(this, function (_d) {
1219
+ switch (_d.label) {
1220
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAgent_1(agentUpdate, options)];
1221
+ case 1:
1222
+ localVarAxiosArgs = _d.sent();
1223
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1224
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.createAgent_1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1225
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1226
+ }
1227
+ });
1228
+ });
1229
+ },
1230
+ /**
1231
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1232
+ * @summary Export Agent
1233
+ * @param {string} agentId ID of the agent to export
1234
+ * @param {*} [options] Override http request option.
1235
+ * @throws {RequiredError}
1236
+ */
1237
+ exportAgent: function (agentId, options) {
1238
+ return __awaiter(this, void 0, void 0, function () {
1239
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1240
+ var _a, _b, _c;
1241
+ return __generator(this, function (_d) {
1242
+ switch (_d.label) {
1243
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportAgent(agentId, options)];
1244
+ case 1:
1245
+ localVarAxiosArgs = _d.sent();
1246
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1247
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.exportAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1248
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1249
+ }
1250
+ });
1251
+ });
1252
+ },
1253
+ /**
1254
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1255
+ * @summary Export Agent
1256
+ * @param {string} agentId ID of the agent to export
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ */
1260
+ exportAgent_2: function (agentId, options) {
1261
+ return __awaiter(this, void 0, void 0, function () {
1262
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1263
+ var _a, _b, _c;
1264
+ return __generator(this, function (_d) {
1265
+ switch (_d.label) {
1266
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportAgent_2(agentId, options)];
1267
+ case 1:
1268
+ localVarAxiosArgs = _d.sent();
1269
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1270
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.exportAgent_2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1271
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1272
+ }
1273
+ });
1274
+ });
1275
+ },
1276
+ /**
1277
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
1278
+ * @summary Get Agent
1279
+ * @param {string} agentId ID of the agent to retrieve
1280
+ * @param {*} [options] Override http request option.
1281
+ * @throws {RequiredError}
1282
+ */
1283
+ getAgent: function (agentId, options) {
1284
+ return __awaiter(this, void 0, void 0, function () {
1285
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1286
+ var _a, _b, _c;
1287
+ return __generator(this, function (_d) {
1288
+ switch (_d.label) {
1289
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgent(agentId, options)];
1290
+ case 1:
1291
+ localVarAxiosArgs = _d.sent();
1292
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1293
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1294
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1295
+ }
1296
+ });
1297
+ });
1298
+ },
1299
+ /**
1300
+ * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1301
+ * @summary Get Agent Statistics
1302
+ * @param {string} aid ID of the agent
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ getAgentStatistics: function (aid, options) {
1307
+ return __awaiter(this, void 0, void 0, function () {
1308
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1309
+ var _a, _b, _c;
1310
+ return __generator(this, function (_d) {
1311
+ switch (_d.label) {
1312
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentStatistics(aid, options)];
1313
+ case 1:
1314
+ localVarAxiosArgs = _d.sent();
1315
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1316
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1317
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1318
+ }
1319
+ });
1320
+ });
1321
+ },
1322
+ /**
1323
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
1324
+ * @summary Get Agent
1325
+ * @param {string} agentId ID of the agent to retrieve
1326
+ * @param {*} [options] Override http request option.
1327
+ * @throws {RequiredError}
1328
+ */
1329
+ getAgent_3: function (agentId, options) {
1330
+ return __awaiter(this, void 0, void 0, function () {
1331
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1332
+ var _a, _b, _c;
1333
+ return __generator(this, function (_d) {
1334
+ switch (_d.label) {
1335
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgent_3(agentId, options)];
1336
+ case 1:
1337
+ localVarAxiosArgs = _d.sent();
1338
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1339
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgent_3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1340
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1341
+ }
1342
+ });
1343
+ });
1344
+ },
1345
+ /**
1346
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1347
+ * @summary Get Agents
1348
+ * @param {AgentSortOption} [sort] Sort order for agents list
1349
+ * @param {string | null} [cursor] Cursor for pagination
1350
+ * @param {number} [limit] Maximum number of agents to return
1351
+ * @param {*} [options] Override http request option.
1352
+ * @throws {RequiredError}
1353
+ */
1354
+ getAgents: function (sort, cursor, limit, options) {
1355
+ return __awaiter(this, void 0, void 0, function () {
1356
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1357
+ var _a, _b, _c;
1358
+ return __generator(this, function (_d) {
1359
+ switch (_d.label) {
1360
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, options)];
1361
+ case 1:
1362
+ localVarAxiosArgs = _d.sent();
1363
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1364
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1365
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1366
+ }
1367
+ });
1368
+ });
1369
+ },
1370
+ /**
1371
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1372
+ * @summary Get Agents
1373
+ * @param {AgentSortOption} [sort] Sort order for agents list
1374
+ * @param {string | null} [cursor] Cursor for pagination
1375
+ * @param {number} [limit] Maximum number of agents to return
1376
+ * @param {*} [options] Override http request option.
1377
+ * @throws {RequiredError}
1378
+ */
1379
+ getAgents_4: function (sort, cursor, limit, options) {
1380
+ return __awaiter(this, void 0, void 0, function () {
1381
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1382
+ var _a, _b, _c;
1383
+ return __generator(this, function (_d) {
1384
+ switch (_d.label) {
1385
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents_4(sort, cursor, limit, options)];
1386
+ case 1:
1387
+ localVarAxiosArgs = _d.sent();
1388
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1389
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgents_4']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1390
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1391
+ }
1392
+ });
1393
+ });
1394
+ },
1395
+ /**
1396
+ * 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
1397
+ * @summary Import Agent
1398
+ * @param {string} agentId
1399
+ * @param {File} file YAML file containing agent configuration
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ */
1403
+ importAgent: function (agentId, file, options) {
1404
+ return __awaiter(this, void 0, void 0, function () {
1405
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1406
+ var _a, _b, _c;
1407
+ return __generator(this, function (_d) {
1408
+ switch (_d.label) {
1409
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importAgent(agentId, file, options)];
1410
+ case 1:
1411
+ localVarAxiosArgs = _d.sent();
1412
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1413
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.importAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1414
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1415
+ }
1416
+ });
1417
+ });
1418
+ },
1419
+ /**
1420
+ * 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
1421
+ * @summary Import Agent
1422
+ * @param {string} agentId
1423
+ * @param {File} file YAML file containing agent configuration
1424
+ * @param {*} [options] Override http request option.
1425
+ * @throws {RequiredError}
1426
+ */
1427
+ importAgent_5: function (agentId, file, options) {
1428
+ return __awaiter(this, void 0, void 0, function () {
1429
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1430
+ var _a, _b, _c;
1431
+ return __generator(this, function (_d) {
1432
+ switch (_d.label) {
1433
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importAgent_5(agentId, file, options)];
1434
+ case 1:
1435
+ localVarAxiosArgs = _d.sent();
1436
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1437
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.importAgent_5']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1438
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1439
+ }
1440
+ });
1441
+ });
1442
+ },
1443
+ /**
1444
+ * 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
1445
+ * @summary Override Agent
1446
+ * @param {string} agentId ID of the agent to update
1447
+ * @param {AgentUpdate} [agentUpdate]
1448
+ * @param {*} [options] Override http request option.
1449
+ * @throws {RequiredError}
1450
+ */
1451
+ overrideAgent: function (agentId, agentUpdate, options) {
1452
+ return __awaiter(this, void 0, void 0, function () {
1453
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1454
+ var _a, _b, _c;
1455
+ return __generator(this, function (_d) {
1456
+ switch (_d.label) {
1457
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.overrideAgent(agentId, agentUpdate, options)];
1458
+ case 1:
1459
+ localVarAxiosArgs = _d.sent();
1460
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1461
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.overrideAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1462
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1463
+ }
1464
+ });
1465
+ });
1466
+ },
1467
+ /**
1468
+ * 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
1469
+ * @summary Override Agent
1470
+ * @param {string} agentId ID of the agent to update
1471
+ * @param {AgentUpdate} [agentUpdate]
1472
+ * @param {*} [options] Override http request option.
1473
+ * @throws {RequiredError}
1474
+ */
1475
+ overrideAgent_6: function (agentId, agentUpdate, options) {
1476
+ return __awaiter(this, void 0, void 0, function () {
1477
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1478
+ var _a, _b, _c;
1479
+ return __generator(this, function (_d) {
1480
+ switch (_d.label) {
1481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.overrideAgent_6(agentId, agentUpdate, options)];
1482
+ case 1:
1483
+ localVarAxiosArgs = _d.sent();
1484
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1485
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.overrideAgent_6']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1486
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1487
+ }
1488
+ });
1489
+ });
1490
+ },
1491
+ /**
1492
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
1493
+ * @summary Update Agent
1494
+ * @param {string} agentId ID of the agent to update
1495
+ * @param {AgentUpdate} [agentUpdate]
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ */
1499
+ updateAgent: function (agentId, agentUpdate, options) {
1500
+ return __awaiter(this, void 0, void 0, function () {
1501
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1502
+ var _a, _b, _c;
1503
+ return __generator(this, function (_d) {
1504
+ switch (_d.label) {
1505
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAgent(agentId, agentUpdate, options)];
1506
+ case 1:
1507
+ localVarAxiosArgs = _d.sent();
1508
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1509
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.updateAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1510
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1511
+ }
1512
+ });
1513
+ });
1514
+ },
1515
+ /**
1516
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
1517
+ * @summary Update Agent
1518
+ * @param {string} agentId ID of the agent to update
1519
+ * @param {AgentUpdate} [agentUpdate]
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ */
1523
+ updateAgent_7: function (agentId, agentUpdate, options) {
1524
+ return __awaiter(this, void 0, void 0, function () {
1525
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1526
+ var _a, _b, _c;
1527
+ return __generator(this, function (_d) {
1528
+ switch (_d.label) {
1529
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAgent_7(agentId, agentUpdate, options)];
1530
+ case 1:
1531
+ localVarAxiosArgs = _d.sent();
1532
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1533
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.updateAgent_7']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1534
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1535
+ }
1536
+ });
1537
+ });
1538
+ },
1539
+ /**
1540
+ * 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
1541
+ * @summary Validate Agent Create
1542
+ * @param {AgentUpdate} [agentUpdate]
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ */
1546
+ validateAgentCreate: function (agentUpdate, options) {
1547
+ return __awaiter(this, void 0, void 0, function () {
1548
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1549
+ var _a, _b, _c;
1550
+ return __generator(this, function (_d) {
1551
+ switch (_d.label) {
1552
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAgentCreate(agentUpdate, options)];
1553
+ case 1:
1554
+ localVarAxiosArgs = _d.sent();
1555
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1556
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.validateAgentCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1557
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1558
+ }
1559
+ });
1560
+ });
1561
+ },
1562
+ /**
1563
+ * 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
1564
+ * @summary Validate Agent Create
1565
+ * @param {AgentUpdate} [agentUpdate]
1566
+ * @param {*} [options] Override http request option.
1567
+ * @throws {RequiredError}
1568
+ */
1569
+ validateAgentCreate_8: function (agentUpdate, options) {
1570
+ return __awaiter(this, void 0, void 0, function () {
1571
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1572
+ var _a, _b, _c;
1573
+ return __generator(this, function (_d) {
1574
+ switch (_d.label) {
1575
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAgentCreate_8(agentUpdate, options)];
1576
+ case 1:
1577
+ localVarAxiosArgs = _d.sent();
1578
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1579
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.validateAgentCreate_8']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1580
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1581
+ }
1582
+ });
1583
+ });
1584
+ },
1585
+ /**
1586
+ * 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
1587
+ * @summary Validate Agent Update
1588
+ * @param {string} agentId Agent ID
1589
+ * @param {AgentUpdate} [agentUpdate]
1590
+ * @param {*} [options] Override http request option.
1591
+ * @throws {RequiredError}
1592
+ */
1593
+ validateAgentUpdate: function (agentId, agentUpdate, options) {
1594
+ return __awaiter(this, void 0, void 0, function () {
1595
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1596
+ var _a, _b, _c;
1597
+ return __generator(this, function (_d) {
1598
+ switch (_d.label) {
1599
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAgentUpdate(agentId, agentUpdate, options)];
1600
+ case 1:
1601
+ localVarAxiosArgs = _d.sent();
1602
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1603
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.validateAgentUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1604
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1605
+ }
1606
+ });
1607
+ });
1608
+ },
1609
+ /**
1610
+ * 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
1611
+ * @summary Validate Agent Update
1612
+ * @param {string} agentId Agent ID
1613
+ * @param {AgentUpdate} [agentUpdate]
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ validateAgentUpdate_9: function (agentId, agentUpdate, options) {
1618
+ return __awaiter(this, void 0, void 0, function () {
1619
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1620
+ var _a, _b, _c;
1621
+ return __generator(this, function (_d) {
1622
+ switch (_d.label) {
1623
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAgentUpdate_9(agentId, agentUpdate, options)];
1624
+ case 1:
1625
+ localVarAxiosArgs = _d.sent();
1626
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1627
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.validateAgentUpdate_9']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1628
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1629
+ }
1630
+ });
1631
+ });
1632
+ },
1633
+ };
1634
+ };
1635
+ exports.AgentApiFp = AgentApiFp;
1636
+ /**
1637
+ * AgentApi - factory interface
1638
+ * @export
1639
+ */
1640
+ var AgentApiFactory = function (configuration, basePath, axios) {
1641
+ var localVarFp = (0, exports.AgentApiFp)(configuration);
1642
+ return {
1643
+ /**
1644
+ * 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
1645
+ * @summary Create Agent
1646
+ * @param {AgentUpdate} [agentUpdate]
488
1647
  * @param {*} [options] Override http request option.
489
1648
  * @throws {RequiredError}
490
1649
  */
@@ -492,14 +1651,44 @@ var AgentApiFactory = function (configuration, basePath, axios) {
492
1651
  return localVarFp.createAgent(agentUpdate, options).then(function (request) { return request(axios, basePath); });
493
1652
  },
494
1653
  /**
495
- * Retrieve a specific agent by its ID. Returns 404 if not found.
496
- * @summary Get agent by ID
497
- * @param {string} aid Agent ID
1654
+ * 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
1655
+ * @summary Create Agent
1656
+ * @param {AgentUpdate} [agentUpdate]
1657
+ * @param {*} [options] Override http request option.
1658
+ * @throws {RequiredError}
1659
+ */
1660
+ createAgent_1: function (agentUpdate, options) {
1661
+ return localVarFp.createAgent_1(agentUpdate, options).then(function (request) { return request(axios, basePath); });
1662
+ },
1663
+ /**
1664
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1665
+ * @summary Export Agent
1666
+ * @param {string} agentId ID of the agent to export
1667
+ * @param {*} [options] Override http request option.
1668
+ * @throws {RequiredError}
1669
+ */
1670
+ exportAgent: function (agentId, options) {
1671
+ return localVarFp.exportAgent(agentId, options).then(function (request) { return request(axios, basePath); });
1672
+ },
1673
+ /**
1674
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1675
+ * @summary Export Agent
1676
+ * @param {string} agentId ID of the agent to export
1677
+ * @param {*} [options] Override http request option.
1678
+ * @throws {RequiredError}
1679
+ */
1680
+ exportAgent_2: function (agentId, options) {
1681
+ return localVarFp.exportAgent_2(agentId, options).then(function (request) { return request(axios, basePath); });
1682
+ },
1683
+ /**
1684
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
1685
+ * @summary Get Agent
1686
+ * @param {string} agentId ID of the agent to retrieve
498
1687
  * @param {*} [options] Override http request option.
499
1688
  * @throws {RequiredError}
500
1689
  */
501
- getAgentById: function (aid, options) {
502
- return localVarFp.getAgentById(aid, options).then(function (request) { return request(axios, basePath); });
1690
+ getAgent: function (agentId, options) {
1691
+ return localVarFp.getAgent(agentId, options).then(function (request) { return request(axios, basePath); });
503
1692
  },
504
1693
  /**
505
1694
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
@@ -511,6 +1700,148 @@ var AgentApiFactory = function (configuration, basePath, axios) {
511
1700
  getAgentStatistics: function (aid, options) {
512
1701
  return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
513
1702
  },
1703
+ /**
1704
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
1705
+ * @summary Get Agent
1706
+ * @param {string} agentId ID of the agent to retrieve
1707
+ * @param {*} [options] Override http request option.
1708
+ * @throws {RequiredError}
1709
+ */
1710
+ getAgent_3: function (agentId, options) {
1711
+ return localVarFp.getAgent_3(agentId, options).then(function (request) { return request(axios, basePath); });
1712
+ },
1713
+ /**
1714
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1715
+ * @summary Get Agents
1716
+ * @param {AgentSortOption} [sort] Sort order for agents list
1717
+ * @param {string | null} [cursor] Cursor for pagination
1718
+ * @param {number} [limit] Maximum number of agents to return
1719
+ * @param {*} [options] Override http request option.
1720
+ * @throws {RequiredError}
1721
+ */
1722
+ getAgents: function (sort, cursor, limit, options) {
1723
+ return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1724
+ },
1725
+ /**
1726
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1727
+ * @summary Get Agents
1728
+ * @param {AgentSortOption} [sort] Sort order for agents list
1729
+ * @param {string | null} [cursor] Cursor for pagination
1730
+ * @param {number} [limit] Maximum number of agents to return
1731
+ * @param {*} [options] Override http request option.
1732
+ * @throws {RequiredError}
1733
+ */
1734
+ getAgents_4: function (sort, cursor, limit, options) {
1735
+ return localVarFp.getAgents_4(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1736
+ },
1737
+ /**
1738
+ * 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
1739
+ * @summary Import Agent
1740
+ * @param {string} agentId
1741
+ * @param {File} file YAML file containing agent configuration
1742
+ * @param {*} [options] Override http request option.
1743
+ * @throws {RequiredError}
1744
+ */
1745
+ importAgent: function (agentId, file, options) {
1746
+ return localVarFp.importAgent(agentId, file, options).then(function (request) { return request(axios, basePath); });
1747
+ },
1748
+ /**
1749
+ * 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
1750
+ * @summary Import Agent
1751
+ * @param {string} agentId
1752
+ * @param {File} file YAML file containing agent configuration
1753
+ * @param {*} [options] Override http request option.
1754
+ * @throws {RequiredError}
1755
+ */
1756
+ importAgent_5: function (agentId, file, options) {
1757
+ return localVarFp.importAgent_5(agentId, file, options).then(function (request) { return request(axios, basePath); });
1758
+ },
1759
+ /**
1760
+ * 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
1761
+ * @summary Override Agent
1762
+ * @param {string} agentId ID of the agent to update
1763
+ * @param {AgentUpdate} [agentUpdate]
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ overrideAgent: function (agentId, agentUpdate, options) {
1768
+ return localVarFp.overrideAgent(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1769
+ },
1770
+ /**
1771
+ * 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
1772
+ * @summary Override Agent
1773
+ * @param {string} agentId ID of the agent to update
1774
+ * @param {AgentUpdate} [agentUpdate]
1775
+ * @param {*} [options] Override http request option.
1776
+ * @throws {RequiredError}
1777
+ */
1778
+ overrideAgent_6: function (agentId, agentUpdate, options) {
1779
+ return localVarFp.overrideAgent_6(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1780
+ },
1781
+ /**
1782
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
1783
+ * @summary Update Agent
1784
+ * @param {string} agentId ID of the agent to update
1785
+ * @param {AgentUpdate} [agentUpdate]
1786
+ * @param {*} [options] Override http request option.
1787
+ * @throws {RequiredError}
1788
+ */
1789
+ updateAgent: function (agentId, agentUpdate, options) {
1790
+ return localVarFp.updateAgent(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1791
+ },
1792
+ /**
1793
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
1794
+ * @summary Update Agent
1795
+ * @param {string} agentId ID of the agent to update
1796
+ * @param {AgentUpdate} [agentUpdate]
1797
+ * @param {*} [options] Override http request option.
1798
+ * @throws {RequiredError}
1799
+ */
1800
+ updateAgent_7: function (agentId, agentUpdate, options) {
1801
+ return localVarFp.updateAgent_7(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1802
+ },
1803
+ /**
1804
+ * 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
1805
+ * @summary Validate Agent Create
1806
+ * @param {AgentUpdate} [agentUpdate]
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ */
1810
+ validateAgentCreate: function (agentUpdate, options) {
1811
+ return localVarFp.validateAgentCreate(agentUpdate, options).then(function (request) { return request(axios, basePath); });
1812
+ },
1813
+ /**
1814
+ * 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
1815
+ * @summary Validate Agent Create
1816
+ * @param {AgentUpdate} [agentUpdate]
1817
+ * @param {*} [options] Override http request option.
1818
+ * @throws {RequiredError}
1819
+ */
1820
+ validateAgentCreate_8: function (agentUpdate, options) {
1821
+ return localVarFp.validateAgentCreate_8(agentUpdate, options).then(function (request) { return request(axios, basePath); });
1822
+ },
1823
+ /**
1824
+ * 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
1825
+ * @summary Validate Agent Update
1826
+ * @param {string} agentId Agent ID
1827
+ * @param {AgentUpdate} [agentUpdate]
1828
+ * @param {*} [options] Override http request option.
1829
+ * @throws {RequiredError}
1830
+ */
1831
+ validateAgentUpdate: function (agentId, agentUpdate, options) {
1832
+ return localVarFp.validateAgentUpdate(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1833
+ },
1834
+ /**
1835
+ * 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
1836
+ * @summary Validate Agent Update
1837
+ * @param {string} agentId Agent ID
1838
+ * @param {AgentUpdate} [agentUpdate]
1839
+ * @param {*} [options] Override http request option.
1840
+ * @throws {RequiredError}
1841
+ */
1842
+ validateAgentUpdate_9: function (agentId, agentUpdate, options) {
1843
+ return localVarFp.validateAgentUpdate_9(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1844
+ },
514
1845
  };
515
1846
  };
516
1847
  exports.AgentApiFactory = AgentApiFactory;
@@ -526,9 +1857,9 @@ var AgentApi = /** @class */ (function (_super) {
526
1857
  return _super !== null && _super.apply(this, arguments) || this;
527
1858
  }
528
1859
  /**
529
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
530
- * @summary Create a new agent
531
- * @param {AgentUpdate} agentUpdate
1860
+ * 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
1861
+ * @summary Create Agent
1862
+ * @param {AgentUpdate} [agentUpdate]
532
1863
  * @param {*} [options] Override http request option.
533
1864
  * @throws {RequiredError}
534
1865
  * @memberof AgentApi
@@ -538,16 +1869,52 @@ var AgentApi = /** @class */ (function (_super) {
538
1869
  return (0, exports.AgentApiFp)(this.configuration).createAgent(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
1870
  };
540
1871
  /**
541
- * Retrieve a specific agent by its ID. Returns 404 if not found.
542
- * @summary Get agent by ID
543
- * @param {string} aid Agent ID
1872
+ * 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
1873
+ * @summary Create Agent
1874
+ * @param {AgentUpdate} [agentUpdate]
1875
+ * @param {*} [options] Override http request option.
1876
+ * @throws {RequiredError}
1877
+ * @memberof AgentApi
1878
+ */
1879
+ AgentApi.prototype.createAgent_1 = function (agentUpdate, options) {
1880
+ var _this = this;
1881
+ return (0, exports.AgentApiFp)(this.configuration).createAgent_1(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1882
+ };
1883
+ /**
1884
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1885
+ * @summary Export Agent
1886
+ * @param {string} agentId ID of the agent to export
1887
+ * @param {*} [options] Override http request option.
1888
+ * @throws {RequiredError}
1889
+ * @memberof AgentApi
1890
+ */
1891
+ AgentApi.prototype.exportAgent = function (agentId, options) {
1892
+ var _this = this;
1893
+ return (0, exports.AgentApiFp)(this.configuration).exportAgent(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1894
+ };
1895
+ /**
1896
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1897
+ * @summary Export Agent
1898
+ * @param {string} agentId ID of the agent to export
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ * @memberof AgentApi
1902
+ */
1903
+ AgentApi.prototype.exportAgent_2 = function (agentId, options) {
1904
+ var _this = this;
1905
+ return (0, exports.AgentApiFp)(this.configuration).exportAgent_2(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1906
+ };
1907
+ /**
1908
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
1909
+ * @summary Get Agent
1910
+ * @param {string} agentId ID of the agent to retrieve
544
1911
  * @param {*} [options] Override http request option.
545
1912
  * @throws {RequiredError}
546
1913
  * @memberof AgentApi
547
1914
  */
548
- AgentApi.prototype.getAgentById = function (aid, options) {
1915
+ AgentApi.prototype.getAgent = function (agentId, options) {
549
1916
  var _this = this;
550
- return (0, exports.AgentApiFp)(this.configuration).getAgentById(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
1917
+ return (0, exports.AgentApiFp)(this.configuration).getAgent(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
551
1918
  };
552
1919
  /**
553
1920
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
@@ -561,6 +1928,174 @@ var AgentApi = /** @class */ (function (_super) {
561
1928
  var _this = this;
562
1929
  return (0, exports.AgentApiFp)(this.configuration).getAgentStatistics(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
563
1930
  };
1931
+ /**
1932
+ * Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
1933
+ * @summary Get Agent
1934
+ * @param {string} agentId ID of the agent to retrieve
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ * @memberof AgentApi
1938
+ */
1939
+ AgentApi.prototype.getAgent_3 = function (agentId, options) {
1940
+ var _this = this;
1941
+ return (0, exports.AgentApiFp)(this.configuration).getAgent_3(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1942
+ };
1943
+ /**
1944
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1945
+ * @summary Get Agents
1946
+ * @param {AgentSortOption} [sort] Sort order for agents list
1947
+ * @param {string | null} [cursor] Cursor for pagination
1948
+ * @param {number} [limit] Maximum number of agents to return
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ * @memberof AgentApi
1952
+ */
1953
+ AgentApi.prototype.getAgents = function (sort, cursor, limit, options) {
1954
+ var _this = this;
1955
+ return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1956
+ };
1957
+ /**
1958
+ * Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
1959
+ * @summary Get Agents
1960
+ * @param {AgentSortOption} [sort] Sort order for agents list
1961
+ * @param {string | null} [cursor] Cursor for pagination
1962
+ * @param {number} [limit] Maximum number of agents to return
1963
+ * @param {*} [options] Override http request option.
1964
+ * @throws {RequiredError}
1965
+ * @memberof AgentApi
1966
+ */
1967
+ AgentApi.prototype.getAgents_4 = function (sort, cursor, limit, options) {
1968
+ var _this = this;
1969
+ return (0, exports.AgentApiFp)(this.configuration).getAgents_4(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1970
+ };
1971
+ /**
1972
+ * 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
1973
+ * @summary Import Agent
1974
+ * @param {string} agentId
1975
+ * @param {File} file YAML file containing agent configuration
1976
+ * @param {*} [options] Override http request option.
1977
+ * @throws {RequiredError}
1978
+ * @memberof AgentApi
1979
+ */
1980
+ AgentApi.prototype.importAgent = function (agentId, file, options) {
1981
+ var _this = this;
1982
+ return (0, exports.AgentApiFp)(this.configuration).importAgent(agentId, file, options).then(function (request) { return request(_this.axios, _this.basePath); });
1983
+ };
1984
+ /**
1985
+ * 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
1986
+ * @summary Import Agent
1987
+ * @param {string} agentId
1988
+ * @param {File} file YAML file containing agent configuration
1989
+ * @param {*} [options] Override http request option.
1990
+ * @throws {RequiredError}
1991
+ * @memberof AgentApi
1992
+ */
1993
+ AgentApi.prototype.importAgent_5 = function (agentId, file, options) {
1994
+ var _this = this;
1995
+ return (0, exports.AgentApiFp)(this.configuration).importAgent_5(agentId, file, options).then(function (request) { return request(_this.axios, _this.basePath); });
1996
+ };
1997
+ /**
1998
+ * 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
1999
+ * @summary Override Agent
2000
+ * @param {string} agentId ID of the agent to update
2001
+ * @param {AgentUpdate} [agentUpdate]
2002
+ * @param {*} [options] Override http request option.
2003
+ * @throws {RequiredError}
2004
+ * @memberof AgentApi
2005
+ */
2006
+ AgentApi.prototype.overrideAgent = function (agentId, agentUpdate, options) {
2007
+ var _this = this;
2008
+ return (0, exports.AgentApiFp)(this.configuration).overrideAgent(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2009
+ };
2010
+ /**
2011
+ * 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
2012
+ * @summary Override Agent
2013
+ * @param {string} agentId ID of the agent to update
2014
+ * @param {AgentUpdate} [agentUpdate]
2015
+ * @param {*} [options] Override http request option.
2016
+ * @throws {RequiredError}
2017
+ * @memberof AgentApi
2018
+ */
2019
+ AgentApi.prototype.overrideAgent_6 = function (agentId, agentUpdate, options) {
2020
+ var _this = this;
2021
+ return (0, exports.AgentApiFp)(this.configuration).overrideAgent_6(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2022
+ };
2023
+ /**
2024
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
2025
+ * @summary Update Agent
2026
+ * @param {string} agentId ID of the agent to update
2027
+ * @param {AgentUpdate} [agentUpdate]
2028
+ * @param {*} [options] Override http request option.
2029
+ * @throws {RequiredError}
2030
+ * @memberof AgentApi
2031
+ */
2032
+ AgentApi.prototype.updateAgent = function (agentId, agentUpdate, options) {
2033
+ var _this = this;
2034
+ return (0, exports.AgentApiFp)(this.configuration).updateAgent(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2035
+ };
2036
+ /**
2037
+ * Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **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
2038
+ * @summary Update Agent
2039
+ * @param {string} agentId ID of the agent to update
2040
+ * @param {AgentUpdate} [agentUpdate]
2041
+ * @param {*} [options] Override http request option.
2042
+ * @throws {RequiredError}
2043
+ * @memberof AgentApi
2044
+ */
2045
+ AgentApi.prototype.updateAgent_7 = function (agentId, agentUpdate, options) {
2046
+ var _this = this;
2047
+ return (0, exports.AgentApiFp)(this.configuration).updateAgent_7(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2048
+ };
2049
+ /**
2050
+ * 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
2051
+ * @summary Validate Agent Create
2052
+ * @param {AgentUpdate} [agentUpdate]
2053
+ * @param {*} [options] Override http request option.
2054
+ * @throws {RequiredError}
2055
+ * @memberof AgentApi
2056
+ */
2057
+ AgentApi.prototype.validateAgentCreate = function (agentUpdate, options) {
2058
+ var _this = this;
2059
+ return (0, exports.AgentApiFp)(this.configuration).validateAgentCreate(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2060
+ };
2061
+ /**
2062
+ * 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
2063
+ * @summary Validate Agent Create
2064
+ * @param {AgentUpdate} [agentUpdate]
2065
+ * @param {*} [options] Override http request option.
2066
+ * @throws {RequiredError}
2067
+ * @memberof AgentApi
2068
+ */
2069
+ AgentApi.prototype.validateAgentCreate_8 = function (agentUpdate, options) {
2070
+ var _this = this;
2071
+ return (0, exports.AgentApiFp)(this.configuration).validateAgentCreate_8(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2072
+ };
2073
+ /**
2074
+ * 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
2075
+ * @summary Validate Agent Update
2076
+ * @param {string} agentId Agent ID
2077
+ * @param {AgentUpdate} [agentUpdate]
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ * @memberof AgentApi
2081
+ */
2082
+ AgentApi.prototype.validateAgentUpdate = function (agentId, agentUpdate, options) {
2083
+ var _this = this;
2084
+ return (0, exports.AgentApiFp)(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2085
+ };
2086
+ /**
2087
+ * 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
2088
+ * @summary Validate Agent Update
2089
+ * @param {string} agentId Agent ID
2090
+ * @param {AgentUpdate} [agentUpdate]
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ * @memberof AgentApi
2094
+ */
2095
+ AgentApi.prototype.validateAgentUpdate_9 = function (agentId, agentUpdate, options) {
2096
+ var _this = this;
2097
+ return (0, exports.AgentApiFp)(this.configuration).validateAgentUpdate_9(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2098
+ };
564
2099
  return AgentApi;
565
2100
  }(base_1.BaseAPI));
566
2101
  exports.AgentApi = AgentApi;