@crestal/nation-sdk 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -11
- package/api.ts +6 -707
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -322
- package/dist/api.js +92 -942
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +0 -503
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
|
@@ -724,29 +549,27 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
724
549
|
});
|
|
725
550
|
},
|
|
726
551
|
/**
|
|
727
|
-
*
|
|
728
|
-
* @summary
|
|
729
|
-
* @param {string} agentId
|
|
730
|
-
* @param {
|
|
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
|
|
553
|
+
* @summary Override Agent
|
|
554
|
+
* @param {string} agentId ID of the agent to update
|
|
555
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
731
556
|
* @param {*} [options] Override http request option.
|
|
732
557
|
* @throws {RequiredError}
|
|
733
558
|
*/
|
|
734
|
-
|
|
559
|
+
overrideAgent: function (agentId_1, agentUpdate_1) {
|
|
735
560
|
var args_1 = [];
|
|
736
561
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
737
562
|
args_1[_i - 2] = arguments[_i];
|
|
738
563
|
}
|
|
739
|
-
return __awaiter(_this, __spreadArray([agentId_1,
|
|
740
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
564
|
+
return __awaiter(_this, __spreadArray([agentId_1, agentUpdate_1], args_1, true), void 0, function (agentId, agentUpdate, options) {
|
|
565
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
741
566
|
if (options === void 0) { options = {}; }
|
|
742
567
|
return __generator(this, function (_a) {
|
|
743
568
|
switch (_a.label) {
|
|
744
569
|
case 0:
|
|
745
570
|
// verify required parameter 'agentId' is not null or undefined
|
|
746
|
-
(0, common_1.assertParamExists)('
|
|
747
|
-
|
|
748
|
-
(0, common_1.assertParamExists)('importAgent_5', 'file', file);
|
|
749
|
-
localVarPath = "/agents/{agent_id}/import"
|
|
571
|
+
(0, common_1.assertParamExists)('overrideAgent', 'agentId', agentId);
|
|
572
|
+
localVarPath = "/agents/{agent_id}"
|
|
750
573
|
.replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
|
|
751
574
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
752
575
|
if (configuration) {
|
|
@@ -755,7 +578,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
755
578
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
756
579
|
localVarHeaderParameter = {};
|
|
757
580
|
localVarQueryParameter = {};
|
|
758
|
-
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
759
581
|
// authentication HTTPBearer required
|
|
760
582
|
// http bearer authentication required
|
|
761
583
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
@@ -763,14 +585,11 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
763
585
|
// authentication HTTPBearer required
|
|
764
586
|
// http bearer authentication required
|
|
765
587
|
_a.sent();
|
|
766
|
-
|
|
767
|
-
localVarFormParams.append('file', file);
|
|
768
|
-
}
|
|
769
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
588
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
770
589
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
771
590
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
772
591
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
773
|
-
localVarRequestOptions.data =
|
|
592
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentUpdate, localVarRequestOptions, configuration);
|
|
774
593
|
return [2 /*return*/, {
|
|
775
594
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
776
595
|
options: localVarRequestOptions,
|
|
@@ -780,14 +599,14 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
780
599
|
});
|
|
781
600
|
},
|
|
782
601
|
/**
|
|
783
|
-
*
|
|
784
|
-
* @summary
|
|
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
|
|
603
|
+
* @summary Update Agent
|
|
785
604
|
* @param {string} agentId ID of the agent to update
|
|
786
605
|
* @param {AgentUpdate} [agentUpdate]
|
|
787
606
|
* @param {*} [options] Override http request option.
|
|
788
607
|
* @throws {RequiredError}
|
|
789
608
|
*/
|
|
790
|
-
|
|
609
|
+
updateAgent: function (agentId_1, agentUpdate_1) {
|
|
791
610
|
var args_1 = [];
|
|
792
611
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
793
612
|
args_1[_i - 2] = arguments[_i];
|
|
@@ -799,14 +618,14 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
799
618
|
switch (_a.label) {
|
|
800
619
|
case 0:
|
|
801
620
|
// verify required parameter 'agentId' is not null or undefined
|
|
802
|
-
(0, common_1.assertParamExists)('
|
|
621
|
+
(0, common_1.assertParamExists)('updateAgent', 'agentId', agentId);
|
|
803
622
|
localVarPath = "/agents/{agent_id}"
|
|
804
623
|
.replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
|
|
805
624
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
806
625
|
if (configuration) {
|
|
807
626
|
baseOptions = configuration.baseOptions;
|
|
808
627
|
}
|
|
809
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
628
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
810
629
|
localVarHeaderParameter = {};
|
|
811
630
|
localVarQueryParameter = {};
|
|
812
631
|
// authentication HTTPBearer required
|
|
@@ -830,33 +649,29 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
830
649
|
});
|
|
831
650
|
},
|
|
832
651
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @summary
|
|
835
|
-
* @param {string} agentId ID of the agent to update
|
|
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
|
|
653
|
+
* @summary Validate Agent Create
|
|
836
654
|
* @param {AgentUpdate} [agentUpdate]
|
|
837
655
|
* @param {*} [options] Override http request option.
|
|
838
656
|
* @throws {RequiredError}
|
|
839
657
|
*/
|
|
840
|
-
|
|
658
|
+
validateAgentCreate: function (agentUpdate_1) {
|
|
841
659
|
var args_1 = [];
|
|
842
|
-
for (var _i =
|
|
843
|
-
args_1[_i -
|
|
660
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
661
|
+
args_1[_i - 1] = arguments[_i];
|
|
844
662
|
}
|
|
845
|
-
return __awaiter(_this, __spreadArray([
|
|
663
|
+
return __awaiter(_this, __spreadArray([agentUpdate_1], args_1, true), void 0, function (agentUpdate, options) {
|
|
846
664
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
847
665
|
if (options === void 0) { options = {}; }
|
|
848
666
|
return __generator(this, function (_a) {
|
|
849
667
|
switch (_a.label) {
|
|
850
668
|
case 0:
|
|
851
|
-
|
|
852
|
-
(0, common_1.assertParamExists)('overrideAgent_6', 'agentId', agentId);
|
|
853
|
-
localVarPath = "/agents/{agent_id}"
|
|
854
|
-
.replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
|
|
669
|
+
localVarPath = "/agent/validate";
|
|
855
670
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
856
671
|
if (configuration) {
|
|
857
672
|
baseOptions = configuration.baseOptions;
|
|
858
673
|
}
|
|
859
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
674
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
860
675
|
localVarHeaderParameter = {};
|
|
861
676
|
localVarQueryParameter = {};
|
|
862
677
|
// authentication HTTPBearer required
|
|
@@ -880,14 +695,14 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
880
695
|
});
|
|
881
696
|
},
|
|
882
697
|
/**
|
|
883
|
-
*
|
|
884
|
-
* @summary
|
|
885
|
-
* @param {string} agentId ID
|
|
698
|
+
* 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
|
|
699
|
+
* @summary Validate Agent Update
|
|
700
|
+
* @param {string} agentId Agent ID
|
|
886
701
|
* @param {AgentUpdate} [agentUpdate]
|
|
887
702
|
* @param {*} [options] Override http request option.
|
|
888
703
|
* @throws {RequiredError}
|
|
889
704
|
*/
|
|
890
|
-
|
|
705
|
+
validateAgentUpdate: function (agentId_1, agentUpdate_1) {
|
|
891
706
|
var args_1 = [];
|
|
892
707
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
893
708
|
args_1[_i - 2] = arguments[_i];
|
|
@@ -899,14 +714,14 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
899
714
|
switch (_a.label) {
|
|
900
715
|
case 0:
|
|
901
716
|
// verify required parameter 'agentId' is not null or undefined
|
|
902
|
-
(0, common_1.assertParamExists)('
|
|
903
|
-
localVarPath = "/agents/{agent_id}"
|
|
717
|
+
(0, common_1.assertParamExists)('validateAgentUpdate', 'agentId', agentId);
|
|
718
|
+
localVarPath = "/agents/{agent_id}/validate"
|
|
904
719
|
.replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
|
|
905
720
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
906
721
|
if (configuration) {
|
|
907
722
|
baseOptions = configuration.baseOptions;
|
|
908
723
|
}
|
|
909
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
724
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
910
725
|
localVarHeaderParameter = {};
|
|
911
726
|
localVarQueryParameter = {};
|
|
912
727
|
// authentication HTTPBearer required
|
|
@@ -929,261 +744,19 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
929
744
|
});
|
|
930
745
|
});
|
|
931
746
|
},
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
exports.AgentApiAxiosParamCreator = AgentApiAxiosParamCreator;
|
|
750
|
+
/**
|
|
751
|
+
* AgentApi - functional programming interface
|
|
752
|
+
* @export
|
|
753
|
+
*/
|
|
754
|
+
var AgentApiFp = function (configuration) {
|
|
755
|
+
var localVarAxiosParamCreator = (0, exports.AgentApiAxiosParamCreator)(configuration);
|
|
756
|
+
return {
|
|
932
757
|
/**
|
|
933
|
-
*
|
|
934
|
-
* @summary
|
|
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
|
|
758
|
+
* 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
|
|
759
|
+
* @summary Create Agent
|
|
1187
760
|
* @param {AgentUpdate} [agentUpdate]
|
|
1188
761
|
* @param {*} [options] Override http request option.
|
|
1189
762
|
* @throws {RequiredError}
|
|
@@ -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
|
|
@@ -1240,343 +790,154 @@ var AgentApiFp = function (configuration) {
|
|
|
1240
790
|
var _a, _b, _c;
|
|
1241
791
|
return __generator(this, function (_d) {
|
|
1242
792
|
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)];
|
|
793
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportAgent(agentId, options)];
|
|
1434
794
|
case 1:
|
|
1435
795
|
localVarAxiosArgs = _d.sent();
|
|
1436
796
|
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.
|
|
797
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.exportAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1438
798
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1439
799
|
}
|
|
1440
800
|
});
|
|
1441
801
|
});
|
|
1442
802
|
},
|
|
1443
803
|
/**
|
|
1444
|
-
*
|
|
1445
|
-
* @summary
|
|
1446
|
-
* @param {string} agentId ID of the agent to
|
|
1447
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
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
|
|
805
|
+
* @summary Get Agent
|
|
806
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
1448
807
|
* @param {*} [options] Override http request option.
|
|
1449
808
|
* @throws {RequiredError}
|
|
1450
809
|
*/
|
|
1451
|
-
|
|
810
|
+
getAgent: function (agentId, options) {
|
|
1452
811
|
return __awaiter(this, void 0, void 0, function () {
|
|
1453
812
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1454
813
|
var _a, _b, _c;
|
|
1455
814
|
return __generator(this, function (_d) {
|
|
1456
815
|
switch (_d.label) {
|
|
1457
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
816
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgent(agentId, options)];
|
|
1458
817
|
case 1:
|
|
1459
818
|
localVarAxiosArgs = _d.sent();
|
|
1460
819
|
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.
|
|
820
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1462
821
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1463
822
|
}
|
|
1464
823
|
});
|
|
1465
824
|
});
|
|
1466
825
|
},
|
|
1467
826
|
/**
|
|
1468
|
-
*
|
|
1469
|
-
* @summary
|
|
1470
|
-
* @param {string}
|
|
1471
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
827
|
+
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
828
|
+
* @summary Get Agent Statistics
|
|
829
|
+
* @param {string} aid ID of the agent
|
|
1472
830
|
* @param {*} [options] Override http request option.
|
|
1473
831
|
* @throws {RequiredError}
|
|
1474
832
|
*/
|
|
1475
|
-
|
|
833
|
+
getAgentStatistics: function (aid, options) {
|
|
1476
834
|
return __awaiter(this, void 0, void 0, function () {
|
|
1477
835
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1478
836
|
var _a, _b, _c;
|
|
1479
837
|
return __generator(this, function (_d) {
|
|
1480
838
|
switch (_d.label) {
|
|
1481
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
839
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentStatistics(aid, options)];
|
|
1482
840
|
case 1:
|
|
1483
841
|
localVarAxiosArgs = _d.sent();
|
|
1484
842
|
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.
|
|
843
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1486
844
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1487
845
|
}
|
|
1488
846
|
});
|
|
1489
847
|
});
|
|
1490
848
|
},
|
|
1491
849
|
/**
|
|
1492
|
-
*
|
|
1493
|
-
* @summary
|
|
1494
|
-
* @param {
|
|
1495
|
-
* @param {
|
|
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
|
|
851
|
+
* @summary Get Agents
|
|
852
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
853
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
854
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
1496
855
|
* @param {*} [options] Override http request option.
|
|
1497
856
|
* @throws {RequiredError}
|
|
1498
857
|
*/
|
|
1499
|
-
|
|
858
|
+
getAgents: function (sort, cursor, limit, options) {
|
|
1500
859
|
return __awaiter(this, void 0, void 0, function () {
|
|
1501
860
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1502
861
|
var _a, _b, _c;
|
|
1503
862
|
return __generator(this, function (_d) {
|
|
1504
863
|
switch (_d.label) {
|
|
1505
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
864
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, options)];
|
|
1506
865
|
case 1:
|
|
1507
866
|
localVarAxiosArgs = _d.sent();
|
|
1508
867
|
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.
|
|
868
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1510
869
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1511
870
|
}
|
|
1512
871
|
});
|
|
1513
872
|
});
|
|
1514
873
|
},
|
|
1515
874
|
/**
|
|
1516
|
-
*
|
|
1517
|
-
* @summary
|
|
1518
|
-
* @param {string} agentId
|
|
1519
|
-
* @param {
|
|
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
|
|
876
|
+
* @summary Import Agent
|
|
877
|
+
* @param {string} agentId
|
|
878
|
+
* @param {File} file YAML file containing agent configuration
|
|
1520
879
|
* @param {*} [options] Override http request option.
|
|
1521
880
|
* @throws {RequiredError}
|
|
1522
881
|
*/
|
|
1523
|
-
|
|
882
|
+
importAgent: function (agentId, file, options) {
|
|
1524
883
|
return __awaiter(this, void 0, void 0, function () {
|
|
1525
884
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1526
885
|
var _a, _b, _c;
|
|
1527
886
|
return __generator(this, function (_d) {
|
|
1528
887
|
switch (_d.label) {
|
|
1529
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
888
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.importAgent(agentId, file, options)];
|
|
1530
889
|
case 1:
|
|
1531
890
|
localVarAxiosArgs = _d.sent();
|
|
1532
891
|
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.
|
|
892
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.importAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1534
893
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1535
894
|
}
|
|
1536
895
|
});
|
|
1537
896
|
});
|
|
1538
897
|
},
|
|
1539
898
|
/**
|
|
1540
|
-
*
|
|
1541
|
-
* @summary
|
|
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
|
|
900
|
+
* @summary Override Agent
|
|
901
|
+
* @param {string} agentId ID of the agent to update
|
|
1542
902
|
* @param {AgentUpdate} [agentUpdate]
|
|
1543
903
|
* @param {*} [options] Override http request option.
|
|
1544
904
|
* @throws {RequiredError}
|
|
1545
905
|
*/
|
|
1546
|
-
|
|
906
|
+
overrideAgent: function (agentId, agentUpdate, options) {
|
|
1547
907
|
return __awaiter(this, void 0, void 0, function () {
|
|
1548
908
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1549
909
|
var _a, _b, _c;
|
|
1550
910
|
return __generator(this, function (_d) {
|
|
1551
911
|
switch (_d.label) {
|
|
1552
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
912
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.overrideAgent(agentId, agentUpdate, options)];
|
|
1553
913
|
case 1:
|
|
1554
914
|
localVarAxiosArgs = _d.sent();
|
|
1555
915
|
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.
|
|
916
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.overrideAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1557
917
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1558
918
|
}
|
|
1559
919
|
});
|
|
1560
920
|
});
|
|
1561
921
|
},
|
|
1562
922
|
/**
|
|
1563
|
-
*
|
|
1564
|
-
* @summary
|
|
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
|
|
924
|
+
* @summary Update Agent
|
|
925
|
+
* @param {string} agentId ID of the agent to update
|
|
1565
926
|
* @param {AgentUpdate} [agentUpdate]
|
|
1566
927
|
* @param {*} [options] Override http request option.
|
|
1567
928
|
* @throws {RequiredError}
|
|
1568
929
|
*/
|
|
1569
|
-
|
|
930
|
+
updateAgent: function (agentId, agentUpdate, options) {
|
|
1570
931
|
return __awaiter(this, void 0, void 0, function () {
|
|
1571
932
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1572
933
|
var _a, _b, _c;
|
|
1573
934
|
return __generator(this, function (_d) {
|
|
1574
935
|
switch (_d.label) {
|
|
1575
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
936
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAgent(agentId, agentUpdate, options)];
|
|
1576
937
|
case 1:
|
|
1577
938
|
localVarAxiosArgs = _d.sent();
|
|
1578
939
|
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.
|
|
940
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.updateAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1580
941
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1581
942
|
}
|
|
1582
943
|
});
|
|
@@ -1584,23 +945,22 @@ var AgentApiFp = function (configuration) {
|
|
|
1584
945
|
},
|
|
1585
946
|
/**
|
|
1586
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
|
|
1587
|
-
* @summary Validate Agent
|
|
1588
|
-
* @param {string} agentId Agent ID
|
|
948
|
+
* @summary Validate Agent Create
|
|
1589
949
|
* @param {AgentUpdate} [agentUpdate]
|
|
1590
950
|
* @param {*} [options] Override http request option.
|
|
1591
951
|
* @throws {RequiredError}
|
|
1592
952
|
*/
|
|
1593
|
-
|
|
953
|
+
validateAgentCreate: function (agentUpdate, options) {
|
|
1594
954
|
return __awaiter(this, void 0, void 0, function () {
|
|
1595
955
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1596
956
|
var _a, _b, _c;
|
|
1597
957
|
return __generator(this, function (_d) {
|
|
1598
958
|
switch (_d.label) {
|
|
1599
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
959
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAgentCreate(agentUpdate, options)];
|
|
1600
960
|
case 1:
|
|
1601
961
|
localVarAxiosArgs = _d.sent();
|
|
1602
962
|
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.
|
|
963
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.validateAgentCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1604
964
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1605
965
|
}
|
|
1606
966
|
});
|
|
@@ -1614,17 +974,17 @@ var AgentApiFp = function (configuration) {
|
|
|
1614
974
|
* @param {*} [options] Override http request option.
|
|
1615
975
|
* @throws {RequiredError}
|
|
1616
976
|
*/
|
|
1617
|
-
|
|
977
|
+
validateAgentUpdate: function (agentId, agentUpdate, options) {
|
|
1618
978
|
return __awaiter(this, void 0, void 0, function () {
|
|
1619
979
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1620
980
|
var _a, _b, _c;
|
|
1621
981
|
return __generator(this, function (_d) {
|
|
1622
982
|
switch (_d.label) {
|
|
1623
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
983
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAgentUpdate(agentId, agentUpdate, options)];
|
|
1624
984
|
case 1:
|
|
1625
985
|
localVarAxiosArgs = _d.sent();
|
|
1626
986
|
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.
|
|
987
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.validateAgentUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1628
988
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1629
989
|
}
|
|
1630
990
|
});
|
|
@@ -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
|
|
@@ -1700,16 +1040,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1700
1040
|
getAgentStatistics: function (aid, options) {
|
|
1701
1041
|
return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
|
|
1702
1042
|
},
|
|
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
1043
|
/**
|
|
1714
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
|
|
1715
1045
|
* @summary Get Agents
|
|
@@ -1722,18 +1052,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1722
1052
|
getAgents: function (sort, cursor, limit, options) {
|
|
1723
1053
|
return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
1724
1054
|
},
|
|
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
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
|
|
1739
1057
|
* @summary Import Agent
|
|
@@ -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;
|