@crestal/nation-sdk 0.1.20 → 0.1.22

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.20
8
+ * The version of the OpenAPI document: 0.1.22
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.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = void 0;
87
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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
@@ -326,52 +326,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
326
326
  });
327
327
  });
328
328
  },
329
- /**
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]
333
- * @param {*} [options] Override http request option.
334
- * @throws {RequiredError}
335
- */
336
- createAgent_1: function (agentUpdate_1) {
337
- var args_1 = [];
338
- for (var _i = 1; _i < arguments.length; _i++) {
339
- args_1[_i - 1] = arguments[_i];
340
- }
341
- return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
342
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
- if (options === void 0) { options = {}; }
344
- return __generator(this, function (_a) {
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
329
  /**
376
330
  * 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
331
  * @summary Export Agent
@@ -419,53 +373,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
419
373
  });
420
374
  });
421
375
  },
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
376
  /**
470
377
  * 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
378
  * @summary Get Agent
@@ -540,43 +447,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
540
447
  });
541
448
  });
542
449
  },
543
- /**
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
547
- * @param {*} [options] Override http request option.
548
- * @throws {RequiredError}
549
- */
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;
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
- }];
577
- });
578
- });
579
- },
580
450
  /**
581
451
  * 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
452
  * @summary Get Agents
@@ -622,51 +492,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
622
492
  });
623
493
  });
624
494
  },
625
- /**
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
631
- * @param {*} [options] Override http request option.
632
- * @throws {RequiredError}
633
- */
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;
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
- }];
667
- });
668
- });
669
- },
670
495
  /**
671
496
  * 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
497
  * @summary Import Agent
@@ -723,62 +548,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
723
548
  });
724
549
  });
725
550
  },
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
551
  /**
783
552
  * 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
553
  * @summary Override Agent
@@ -829,56 +598,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
829
598
  });
830
599
  });
831
600
  },
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
601
  /**
883
602
  * 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
603
  * @summary Update Agent
@@ -888,167 +607,25 @@ var AgentApiAxiosParamCreator = function (configuration) {
888
607
  * @throws {RequiredError}
889
608
  */
890
609
  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];
610
+ var args_1 = [];
611
+ for (var _i = 2; _i < arguments.length; _i++) {
612
+ args_1[_i - 2] = arguments[_i];
1039
613
  }
1040
- return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
614
+ return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
1041
615
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1042
616
  if (options === void 0) { options = {}; }
1043
617
  return __generator(this, function (_a) {
1044
618
  switch (_a.label) {
1045
619
  case 0:
1046
- localVarPath = "/agent/validate";
620
+ // verify required parameter 'agentId' is not null or undefined
621
+ (0, common_1.assertParamExists)('updateAgent', 'agentId', agentId);
622
+ localVarPath = "/agents/{agent_id}"
623
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
1047
624
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1048
625
  if (configuration) {
1049
626
  baseOptions = configuration.baseOptions;
1050
627
  }
1051
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
628
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1052
629
  localVarHeaderParameter = {};
1053
630
  localVarQueryParameter = {};
1054
631
  // authentication HTTPBearer required
@@ -1073,27 +650,23 @@ var AgentApiAxiosParamCreator = function (configuration) {
1073
650
  },
1074
651
  /**
1075
652
  * 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
653
+ * @summary Validate Agent Create
1078
654
  * @param {AgentUpdate} [agentUpdate]
1079
655
  * @param {*} [options] Override http request option.
1080
656
  * @throws {RequiredError}
1081
657
  */
1082
- validateAgentUpdate: function (agentId_1, agentUpdate_1) {
658
+ validateAgentCreate: function (agentUpdate_1) {
1083
659
  var args_1 = [];
1084
- for (var _i = 2; _i < arguments.length; _i++) {
1085
- args_1[_i - 2] = arguments[_i];
660
+ for (var _i = 1; _i < arguments.length; _i++) {
661
+ args_1[_i - 1] = arguments[_i];
1086
662
  }
1087
- return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
663
+ return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
1088
664
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1089
665
  if (options === void 0) { options = {}; }
1090
666
  return __generator(this, function (_a) {
1091
667
  switch (_a.label) {
1092
668
  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)));
669
+ localVarPath = "/agent/validate";
1097
670
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1098
671
  if (configuration) {
1099
672
  baseOptions = configuration.baseOptions;
@@ -1129,7 +702,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
1129
702
  * @param {*} [options] Override http request option.
1130
703
  * @throws {RequiredError}
1131
704
  */
1132
- validateAgentUpdate_9: function (agentId_1, agentUpdate_1) {
705
+ validateAgentUpdate: function (agentId_1, agentUpdate_1) {
1133
706
  var args_1 = [];
1134
707
  for (var _i = 2; _i < arguments.length; _i++) {
1135
708
  args_1[_i - 2] = arguments[_i];
@@ -1141,7 +714,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
1141
714
  switch (_a.label) {
1142
715
  case 0:
1143
716
  // verify required parameter 'agentId' is not null or undefined
1144
- (0, common_1.assertParamExists)('validateAgentUpdate_9', 'agentId', agentId);
717
+ (0, common_1.assertParamExists)('validateAgentUpdate', 'agentId', agentId);
1145
718
  localVarPath = "/agents/{agent_id}/validate"
1146
719
  .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
1147
720
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1204,29 +777,6 @@ var AgentApiFp = function (configuration) {
1204
777
  });
1205
778
  });
1206
779
  },
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
780
  /**
1231
781
  * 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
782
  * @summary Export Agent
@@ -1250,29 +800,6 @@ var AgentApiFp = function (configuration) {
1250
800
  });
1251
801
  });
1252
802
  },
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
803
  /**
1277
804
  * 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
805
  * @summary Get Agent
@@ -1319,29 +846,6 @@ var AgentApiFp = function (configuration) {
1319
846
  });
1320
847
  });
1321
848
  },
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
849
  /**
1346
850
  * 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
851
  * @summary Get Agents
@@ -1367,31 +871,6 @@ var AgentApiFp = function (configuration) {
1367
871
  });
1368
872
  });
1369
873
  },
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
874
  /**
1396
875
  * 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
876
  * @summary Import Agent
@@ -1416,30 +895,6 @@ var AgentApiFp = function (configuration) {
1416
895
  });
1417
896
  });
1418
897
  },
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
898
  /**
1444
899
  * 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
900
  * @summary Override Agent
@@ -1464,30 +919,6 @@ var AgentApiFp = function (configuration) {
1464
919
  });
1465
920
  });
1466
921
  },
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
922
  /**
1492
923
  * 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
924
  * @summary Update Agent
@@ -1512,30 +943,6 @@ var AgentApiFp = function (configuration) {
1512
943
  });
1513
944
  });
1514
945
  },
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
946
  /**
1540
947
  * 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
948
  * @summary Validate Agent Create
@@ -1559,29 +966,6 @@ var AgentApiFp = function (configuration) {
1559
966
  });
1560
967
  });
1561
968
  },
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
969
  /**
1586
970
  * 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
971
  * @summary Validate Agent Update
@@ -1606,30 +990,6 @@ var AgentApiFp = function (configuration) {
1606
990
  });
1607
991
  });
1608
992
  },
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
993
  };
1634
994
  };
1635
995
  exports.AgentApiFp = AgentApiFp;
@@ -1650,16 +1010,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1650
1010
  createAgent: function (agentUpdate, options) {
1651
1011
  return localVarFp.createAgent(agentUpdate, options).then(function (request) { return request(axios, basePath); });
1652
1012
  },
1653
- /**
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
1013
  /**
1664
1014
  * 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
1015
  * @summary Export Agent
@@ -1670,16 +1020,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1670
1020
  exportAgent: function (agentId, options) {
1671
1021
  return localVarFp.exportAgent(agentId, options).then(function (request) { return request(axios, basePath); });
1672
1022
  },
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
1023
  /**
1684
1024
  * 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
1025
  * @summary Get Agent
@@ -1690,37 +1030,15 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1690
1030
  getAgent: function (agentId, options) {
1691
1031
  return localVarFp.getAgent(agentId, options).then(function (request) { return request(axios, basePath); });
1692
1032
  },
1693
- /**
1694
- * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1695
- * @summary Get Agent Statistics
1696
- * @param {string} aid ID of the agent
1697
- * @param {*} [options] Override http request option.
1698
- * @throws {RequiredError}
1699
- */
1700
- getAgentStatistics: function (aid, options) {
1701
- return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
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
1033
+ /**
1034
+ * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1035
+ * @summary Get Agent Statistics
1036
+ * @param {string} aid ID of the agent
1719
1037
  * @param {*} [options] Override http request option.
1720
1038
  * @throws {RequiredError}
1721
1039
  */
1722
- getAgents: function (sort, cursor, limit, options) {
1723
- return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1040
+ getAgentStatistics: function (aid, options) {
1041
+ return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
1724
1042
  },
1725
1043
  /**
1726
1044
  * 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
@@ -1731,8 +1049,8 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1731
1049
  * @param {*} [options] Override http request option.
1732
1050
  * @throws {RequiredError}
1733
1051
  */
1734
- getAgents_4: function (sort, cursor, limit, options) {
1735
- return localVarFp.getAgents_4(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1052
+ getAgents: function (sort, cursor, limit, options) {
1053
+ return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1736
1054
  },
1737
1055
  /**
1738
1056
  * 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
@@ -1745,17 +1063,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1745
1063
  importAgent: function (agentId, file, options) {
1746
1064
  return localVarFp.importAgent(agentId, file, options).then(function (request) { return request(axios, basePath); });
1747
1065
  },
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
1066
  /**
1760
1067
  * 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
1068
  * @summary Override Agent
@@ -1767,17 +1074,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1767
1074
  overrideAgent: function (agentId, agentUpdate, options) {
1768
1075
  return localVarFp.overrideAgent(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1769
1076
  },
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
1077
  /**
1782
1078
  * 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
1079
  * @summary Update Agent
@@ -1789,17 +1085,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1789
1085
  updateAgent: function (agentId, agentUpdate, options) {
1790
1086
  return localVarFp.updateAgent(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1791
1087
  },
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
1088
  /**
1804
1089
  * 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
1090
  * @summary Validate Agent Create
@@ -1810,16 +1095,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1810
1095
  validateAgentCreate: function (agentUpdate, options) {
1811
1096
  return localVarFp.validateAgentCreate(agentUpdate, options).then(function (request) { return request(axios, basePath); });
1812
1097
  },
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
1098
  /**
1824
1099
  * 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
1100
  * @summary Validate Agent Update
@@ -1831,17 +1106,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1831
1106
  validateAgentUpdate: function (agentId, agentUpdate, options) {
1832
1107
  return localVarFp.validateAgentUpdate(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1833
1108
  },
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
- },
1845
1109
  };
1846
1110
  };
1847
1111
  exports.AgentApiFactory = AgentApiFactory;
@@ -1868,18 +1132,6 @@ var AgentApi = /** @class */ (function (_super) {
1868
1132
  var _this = this;
1869
1133
  return (0, exports.AgentApiFp)(this.configuration).createAgent(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1870
1134
  };
1871
- /**
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
1135
  /**
1884
1136
  * 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
1137
  * @summary Export Agent
@@ -1892,18 +1144,6 @@ var AgentApi = /** @class */ (function (_super) {
1892
1144
  var _this = this;
1893
1145
  return (0, exports.AgentApiFp)(this.configuration).exportAgent(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1894
1146
  };
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
1147
  /**
1908
1148
  * 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
1149
  * @summary Get Agent
@@ -1928,18 +1168,6 @@ var AgentApi = /** @class */ (function (_super) {
1928
1168
  var _this = this;
1929
1169
  return (0, exports.AgentApiFp)(this.configuration).getAgentStatistics(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
1930
1170
  };
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
1171
  /**
1944
1172
  * 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
1173
  * @summary Get Agents
@@ -1954,20 +1182,6 @@ var AgentApi = /** @class */ (function (_super) {
1954
1182
  var _this = this;
1955
1183
  return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1956
1184
  };
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
1185
  /**
1972
1186
  * 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
1187
  * @summary Import Agent
@@ -1981,19 +1195,6 @@ var AgentApi = /** @class */ (function (_super) {
1981
1195
  var _this = this;
1982
1196
  return (0, exports.AgentApiFp)(this.configuration).importAgent(agentId, file, options).then(function (request) { return request(_this.axios, _this.basePath); });
1983
1197
  };
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
1198
  /**
1998
1199
  * 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
1200
  * @summary Override Agent
@@ -2007,19 +1208,6 @@ var AgentApi = /** @class */ (function (_super) {
2007
1208
  var _this = this;
2008
1209
  return (0, exports.AgentApiFp)(this.configuration).overrideAgent(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2009
1210
  };
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
1211
  /**
2024
1212
  * 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
1213
  * @summary Update Agent
@@ -2033,19 +1221,6 @@ var AgentApi = /** @class */ (function (_super) {
2033
1221
  var _this = this;
2034
1222
  return (0, exports.AgentApiFp)(this.configuration).updateAgent(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2035
1223
  };
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
1224
  /**
2050
1225
  * 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
1226
  * @summary Validate Agent Create
@@ -2058,18 +1233,6 @@ var AgentApi = /** @class */ (function (_super) {
2058
1233
  var _this = this;
2059
1234
  return (0, exports.AgentApiFp)(this.configuration).validateAgentCreate(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2060
1235
  };
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
1236
  /**
2074
1237
  * 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
1238
  * @summary Validate Agent Update
@@ -2083,19 +1246,6 @@ var AgentApi = /** @class */ (function (_super) {
2083
1246
  var _this = this;
2084
1247
  return (0, exports.AgentApiFp)(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
2085
1248
  };
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
- };
2099
1249
  return AgentApi;
2100
1250
  }(base_1.BaseAPI));
2101
1251
  exports.AgentApi = AgentApi;
@@ -4162,3 +3312,146 @@ var MetadataApi = /** @class */ (function (_super) {
4162
3312
  return MetadataApi;
4163
3313
  }(base_1.BaseAPI));
4164
3314
  exports.MetadataApi = MetadataApi;
3315
+ /**
3316
+ * UserApi - axios parameter creator
3317
+ * @export
3318
+ */
3319
+ var UserApiAxiosParamCreator = function (configuration) {
3320
+ var _this = this;
3321
+ return {
3322
+ /**
3323
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3324
+ * @summary Get User Agents
3325
+ * @param {string | null} [cursor] Cursor for pagination
3326
+ * @param {number} [limit] Maximum number of agents to return
3327
+ * @param {*} [options] Override http request option.
3328
+ * @throws {RequiredError}
3329
+ */
3330
+ getUserAgents: function (cursor_1, limit_1) {
3331
+ var args_1 = [];
3332
+ for (var _i = 2; _i < arguments.length; _i++) {
3333
+ args_1[_i - 2] = arguments[_i];
3334
+ }
3335
+ return __awaiter(_this, __spreadArray([cursor_1, limit_1], args_1, true), void 0, function (cursor, limit, options) {
3336
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3337
+ if (options === void 0) { options = {}; }
3338
+ return __generator(this, function (_a) {
3339
+ switch (_a.label) {
3340
+ case 0:
3341
+ localVarPath = "/user/agents";
3342
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3343
+ if (configuration) {
3344
+ baseOptions = configuration.baseOptions;
3345
+ }
3346
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3347
+ localVarHeaderParameter = {};
3348
+ localVarQueryParameter = {};
3349
+ // authentication HTTPBearer required
3350
+ // http bearer authentication required
3351
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3352
+ case 1:
3353
+ // authentication HTTPBearer required
3354
+ // http bearer authentication required
3355
+ _a.sent();
3356
+ if (cursor !== undefined) {
3357
+ localVarQueryParameter['cursor'] = cursor;
3358
+ }
3359
+ if (limit !== undefined) {
3360
+ localVarQueryParameter['limit'] = limit;
3361
+ }
3362
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3363
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3364
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3365
+ return [2 /*return*/, {
3366
+ url: (0, common_1.toPathString)(localVarUrlObj),
3367
+ options: localVarRequestOptions,
3368
+ }];
3369
+ }
3370
+ });
3371
+ });
3372
+ },
3373
+ };
3374
+ };
3375
+ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
3376
+ /**
3377
+ * UserApi - functional programming interface
3378
+ * @export
3379
+ */
3380
+ var UserApiFp = function (configuration) {
3381
+ var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
3382
+ return {
3383
+ /**
3384
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3385
+ * @summary Get User Agents
3386
+ * @param {string | null} [cursor] Cursor for pagination
3387
+ * @param {number} [limit] Maximum number of agents to return
3388
+ * @param {*} [options] Override http request option.
3389
+ * @throws {RequiredError}
3390
+ */
3391
+ getUserAgents: function (cursor, limit, options) {
3392
+ return __awaiter(this, void 0, void 0, function () {
3393
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3394
+ var _a, _b, _c;
3395
+ return __generator(this, function (_d) {
3396
+ switch (_d.label) {
3397
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserAgents(cursor, limit, options)];
3398
+ case 1:
3399
+ localVarAxiosArgs = _d.sent();
3400
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3401
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getUserAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3402
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3403
+ }
3404
+ });
3405
+ });
3406
+ },
3407
+ };
3408
+ };
3409
+ exports.UserApiFp = UserApiFp;
3410
+ /**
3411
+ * UserApi - factory interface
3412
+ * @export
3413
+ */
3414
+ var UserApiFactory = function (configuration, basePath, axios) {
3415
+ var localVarFp = (0, exports.UserApiFp)(configuration);
3416
+ return {
3417
+ /**
3418
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3419
+ * @summary Get User Agents
3420
+ * @param {string | null} [cursor] Cursor for pagination
3421
+ * @param {number} [limit] Maximum number of agents to return
3422
+ * @param {*} [options] Override http request option.
3423
+ * @throws {RequiredError}
3424
+ */
3425
+ getUserAgents: function (cursor, limit, options) {
3426
+ return localVarFp.getUserAgents(cursor, limit, options).then(function (request) { return request(axios, basePath); });
3427
+ },
3428
+ };
3429
+ };
3430
+ exports.UserApiFactory = UserApiFactory;
3431
+ /**
3432
+ * UserApi - object-oriented interface
3433
+ * @export
3434
+ * @class UserApi
3435
+ * @extends {BaseAPI}
3436
+ */
3437
+ var UserApi = /** @class */ (function (_super) {
3438
+ __extends(UserApi, _super);
3439
+ function UserApi() {
3440
+ return _super !== null && _super.apply(this, arguments) || this;
3441
+ }
3442
+ /**
3443
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3444
+ * @summary Get User Agents
3445
+ * @param {string | null} [cursor] Cursor for pagination
3446
+ * @param {number} [limit] Maximum number of agents to return
3447
+ * @param {*} [options] Override http request option.
3448
+ * @throws {RequiredError}
3449
+ * @memberof UserApi
3450
+ */
3451
+ UserApi.prototype.getUserAgents = function (cursor, limit, options) {
3452
+ var _this = this;
3453
+ return (0, exports.UserApiFp)(this.configuration).getUserAgents(cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
3454
+ };
3455
+ return UserApi;
3456
+ }(base_1.BaseAPI));
3457
+ exports.UserApi = UserApi;