@opensearch-project/opensearch 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/OpenSearchApi.d.ts +78 -8
- package/api/_core/count.js +1 -1
- package/api/_core/createPit.d.ts +1 -2
- package/api/_core/deleteAllPits.d.ts +2 -2
- package/api/_core/deleteByQuery.d.ts +2 -1
- package/api/_core/deleteByQuery.js +1 -1
- package/api/_core/deletePit.d.ts +2 -2
- package/api/_core/getAllPits.d.ts +2 -2
- package/api/_core/rankEval.d.ts +1 -1
- package/api/_core/reindex.d.ts +1 -0
- package/api/_core/reindex.js +1 -0
- package/api/_core/renderSearchTemplate.d.ts +1 -1
- package/api/_core/searchShards.d.ts +0 -11
- package/api/_core/searchShards.js +0 -1
- package/api/_core/updateByQuery.d.ts +2 -1
- package/api/_core/updateByQuery.js +1 -1
- package/api/_types/_common.aggregations.d.ts +37 -156
- package/api/_types/_common.d.ts +2 -10
- package/api/_types/_core.field_caps.d.ts +1 -1
- package/api/_types/{_core._common.d.ts → _core.pit.d.ts} +0 -12
- package/api/_types/_core.rank_eval.d.ts +3 -3
- package/api/_types/_core.termvectors.d.ts +1 -1
- package/api/_types/index.d.ts +2 -2
- package/api/_types/ml._common.d.ts +159 -28
- package/api/asynchronousSearch/delete.js +1 -1
- package/api/asynchronousSearch/get.js +1 -1
- package/api/asynchronousSearch/search.js +4 -4
- package/api/asynchronousSearch/stats.js +1 -1
- package/api/cat/aliases.js +1 -1
- package/api/cat/allPitSegments.js +1 -1
- package/api/cat/clusterManager.js +1 -1
- package/api/cat/count.js +1 -1
- package/api/cat/fielddata.js +1 -1
- package/api/cat/health.js +1 -1
- package/api/cat/indices.js +2 -2
- package/api/cat/master.js +1 -1
- package/api/cat/nodeattrs.js +1 -1
- package/api/cat/nodes.js +1 -1
- package/api/cat/pendingTasks.js +1 -1
- package/api/cat/pitSegments.js +1 -1
- package/api/cat/plugins.js +1 -1
- package/api/cat/recovery.js +1 -1
- package/api/cat/repositories.js +1 -1
- package/api/cat/segmentReplication.js +2 -2
- package/api/cat/shards.js +1 -1
- package/api/cat/snapshots.js +1 -1
- package/api/cat/tasks.js +1 -1
- package/api/cat/templates.js +1 -1
- package/api/cat/threadPool.js +1 -1
- package/api/index.d.ts +38 -6
- package/api/ml/_api.js +48 -0
- package/api/ml/createController.d.ts +39 -0
- package/api/ml/createController.js +50 -0
- package/api/ml/createModelMeta.d.ts +1 -1
- package/api/ml/deleteController.d.ts +30 -0
- package/api/ml/deleteController.js +49 -0
- package/api/ml/executeAgent.d.ts +36 -0
- package/api/ml/executeAgent.js +50 -0
- package/api/ml/getAgent.d.ts +30 -0
- package/api/ml/getAgent.js +49 -0
- package/api/ml/getAllMemories.d.ts +34 -0
- package/api/ml/getAllMemories.js +48 -0
- package/api/ml/getAllMessages.d.ts +35 -0
- package/api/ml/getAllMessages.js +51 -0
- package/api/ml/getAllTools.d.ts +28 -0
- package/api/ml/getAllTools.js +45 -0
- package/api/ml/getController.d.ts +34 -0
- package/api/ml/getController.js +49 -0
- package/api/ml/getMemory.d.ts +2 -8
- package/api/ml/getMemory.js +5 -5
- package/api/ml/getMessage.d.ts +2 -3
- package/api/ml/getMessage.js +6 -12
- package/api/ml/getMessageTraces.d.ts +6 -1
- package/api/ml/getMessageTraces.js +2 -0
- package/api/ml/getProfile.d.ts +30 -0
- package/api/ml/getProfile.js +47 -0
- package/api/ml/getProfileModels.d.ts +31 -0
- package/api/ml/getProfileModels.js +49 -0
- package/api/ml/getProfileTasks.d.ts +31 -0
- package/api/ml/getProfileTasks.js +49 -0
- package/api/ml/getStats.d.ts +31 -0
- package/api/ml/getStats.js +50 -0
- package/api/ml/getTool.d.ts +30 -0
- package/api/ml/getTool.js +49 -0
- package/api/ml/registerModel.d.ts +6 -2
- package/api/ml/registerModelMeta.d.ts +1 -1
- package/api/ml/searchAgents.d.ts +36 -0
- package/api/ml/searchAgents.js +47 -0
- package/api/ml/searchTasks.d.ts +36 -0
- package/api/ml/searchTasks.js +47 -0
- package/api/ml/undeployModel.d.ts +1 -1
- package/api/ml/unloadModel.d.ts +1 -1
- package/api/ml/updateController.d.ts +37 -0
- package/api/ml/updateController.js +50 -0
- package/api/ml/updateModel.d.ts +2 -1
- package/api/ml/uploadModel.d.ts +2 -1
- package/package.json +1 -1
package/api/cat/threadPool.js
CHANGED
|
@@ -29,7 +29,7 @@ By default the active, queued, and rejected statistics are returned for all thre
|
|
|
29
29
|
* @param {string} [params.cluster_manager_timeout] - A timeout for connection to the cluster manager node.
|
|
30
30
|
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
31
31
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
32
|
-
* @param {boolean} [params.help=false] -
|
|
32
|
+
* @param {boolean} [params.help=false] - Returns help information.
|
|
33
33
|
* @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
|
|
34
34
|
* @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
|
|
35
35
|
* @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
|
package/api/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { GetScript_Request, GetScript_Response, GetScript_ResponseBody } from '.
|
|
|
36
36
|
import { PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody } from './_core/putScript';
|
|
37
37
|
import { ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody } from './_core/scriptsPainlessExecute';
|
|
38
38
|
import { Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody } from './_core/search';
|
|
39
|
-
import { SearchShards_Request,
|
|
39
|
+
import { SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody } from './_core/searchShards';
|
|
40
40
|
import { DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody } from './_core/deletePit';
|
|
41
41
|
import { DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody } from './_core/deleteAllPits';
|
|
42
42
|
import { GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody } from './_core/getAllPits';
|
|
@@ -278,21 +278,31 @@ import { Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody } from
|
|
|
278
278
|
import { Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody } from './ml/predict';
|
|
279
279
|
import { Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody } from './ml/trainPredict';
|
|
280
280
|
import { Ml_Train_Request, Ml_Train_RequestBody, Ml_Train_Response, Ml_Train_ResponseBody } from './ml/train';
|
|
281
|
+
import { Ml_GetStats_Request, Ml_GetStats_Response, Ml_GetStats_ResponseBody } from './ml/getStats';
|
|
281
282
|
import { Ml_RegisterAgents_Request, Ml_RegisterAgents_RequestBody, Ml_RegisterAgents_Response, Ml_RegisterAgents_ResponseBody } from './ml/registerAgents';
|
|
283
|
+
import { Ml_SearchAgents_Request, Ml_SearchAgents_RequestBody, Ml_SearchAgents_Response, Ml_SearchAgents_ResponseBody } from './ml/searchAgents';
|
|
282
284
|
import { Ml_DeleteAgent_Request, Ml_DeleteAgent_Response, Ml_DeleteAgent_ResponseBody } from './ml/deleteAgent';
|
|
285
|
+
import { Ml_GetAgent_Request, Ml_GetAgent_Response, Ml_GetAgent_ResponseBody } from './ml/getAgent';
|
|
286
|
+
import { Ml_ExecuteAgent_Request, Ml_ExecuteAgent_RequestBody, Ml_ExecuteAgent_Response, Ml_ExecuteAgent_ResponseBody } from './ml/executeAgent';
|
|
283
287
|
import { Ml_CreateConnector_Request, Ml_CreateConnector_RequestBody, Ml_CreateConnector_Response, Ml_CreateConnector_ResponseBody } from './ml/createConnector';
|
|
284
288
|
import { Ml_SearchConnectors_Request, Ml_SearchConnectors_RequestBody, Ml_SearchConnectors_Response, Ml_SearchConnectors_ResponseBody } from './ml/searchConnectors';
|
|
285
289
|
import { Ml_DeleteConnector_Request, Ml_DeleteConnector_Response, Ml_DeleteConnector_ResponseBody } from './ml/deleteConnector';
|
|
286
290
|
import { Ml_GetConnector_Request, Ml_GetConnector_Response, Ml_GetConnector_ResponseBody } from './ml/getConnector';
|
|
287
291
|
import { Ml_UpdateConnector_Request, Ml_UpdateConnector_RequestBody, Ml_UpdateConnector_Response, Ml_UpdateConnector_ResponseBody } from './ml/updateConnector';
|
|
288
|
-
import {
|
|
292
|
+
import { Ml_DeleteController_Request, Ml_DeleteController_Response, Ml_DeleteController_ResponseBody } from './ml/deleteController';
|
|
293
|
+
import { Ml_GetController_Request, Ml_GetController_Response, Ml_GetController_ResponseBody } from './ml/getController';
|
|
294
|
+
import { Ml_CreateController_Request, Ml_CreateController_RequestBody, Ml_CreateController_Response, Ml_CreateController_ResponseBody } from './ml/createController';
|
|
295
|
+
import { Ml_UpdateController_Request, Ml_UpdateController_RequestBody, Ml_UpdateController_Response, Ml_UpdateController_ResponseBody } from './ml/updateController';
|
|
296
|
+
import { Ml_GetAllMemories_Request, Ml_GetAllMemories_Response, Ml_GetAllMemories_ResponseBody } from './ml/getAllMemories';
|
|
289
297
|
import { Ml_CreateMemory_Request, Ml_CreateMemory_RequestBody, Ml_CreateMemory_Response, Ml_CreateMemory_ResponseBody } from './ml/createMemory';
|
|
290
298
|
import { Ml_SearchMemory_Request, Ml_SearchMemory_RequestBody, Ml_SearchMemory_Response, Ml_SearchMemory_ResponseBody } from './ml/searchMemory';
|
|
291
299
|
import { Ml_DeleteMemory_Request, Ml_DeleteMemory_Response, Ml_DeleteMemory_ResponseBody } from './ml/deleteMemory';
|
|
300
|
+
import { Ml_GetMemory_Request, Ml_GetMemory_Response, Ml_GetMemory_ResponseBody } from './ml/getMemory';
|
|
292
301
|
import { Ml_UpdateMemory_Request, Ml_UpdateMemory_RequestBody, Ml_UpdateMemory_Response, Ml_UpdateMemory_ResponseBody } from './ml/updateMemory';
|
|
293
302
|
import { Ml_SearchMessage_Request, Ml_SearchMessage_RequestBody, Ml_SearchMessage_Response, Ml_SearchMessage_ResponseBody } from './ml/searchMessage';
|
|
294
|
-
import {
|
|
303
|
+
import { Ml_GetAllMessages_Request, Ml_GetAllMessages_Response, Ml_GetAllMessages_ResponseBody } from './ml/getAllMessages';
|
|
295
304
|
import { Ml_CreateMessage_Request, Ml_CreateMessage_RequestBody, Ml_CreateMessage_Response, Ml_CreateMessage_ResponseBody } from './ml/createMessage';
|
|
305
|
+
import { Ml_GetMessage_Request, Ml_GetMessage_Response, Ml_GetMessage_ResponseBody } from './ml/getMessage';
|
|
296
306
|
import { Ml_UpdateMessage_Request, Ml_UpdateMessage_RequestBody, Ml_UpdateMessage_Response, Ml_UpdateMessage_ResponseBody } from './ml/updateMessage';
|
|
297
307
|
import { Ml_GetMessageTraces_Request, Ml_GetMessageTraces_Response, Ml_GetMessageTraces_ResponseBody } from './ml/getMessageTraces';
|
|
298
308
|
import { Ml_RegisterModelGroup_Request, Ml_RegisterModelGroup_RequestBody, Ml_RegisterModelGroup_Response, Ml_RegisterModelGroup_ResponseBody } from './ml/registerModelGroup';
|
|
@@ -315,8 +325,14 @@ import { Ml_PredictModel_Request, Ml_PredictModel_RequestBody, Ml_PredictModel_R
|
|
|
315
325
|
import { Ml_ChunkModel_Request, Ml_ChunkModel_RequestBody, Ml_ChunkModel_Response, Ml_ChunkModel_ResponseBody } from './ml/chunkModel';
|
|
316
326
|
import { Ml_UploadChunk_Request, Ml_UploadChunk_RequestBody, Ml_UploadChunk_Response, Ml_UploadChunk_ResponseBody } from './ml/uploadChunk';
|
|
317
327
|
import { Ml_CreateModelMeta_Request, Ml_CreateModelMeta_RequestBody, Ml_CreateModelMeta_Response, Ml_CreateModelMeta_ResponseBody } from './ml/createModelMeta';
|
|
328
|
+
import { Ml_GetProfile_Request, Ml_GetProfile_Response, Ml_GetProfile_ResponseBody } from './ml/getProfile';
|
|
329
|
+
import { Ml_GetProfileModels_Request, Ml_GetProfileModels_Response, Ml_GetProfileModels_ResponseBody } from './ml/getProfileModels';
|
|
330
|
+
import { Ml_GetProfileTasks_Request, Ml_GetProfileTasks_Response, Ml_GetProfileTasks_ResponseBody } from './ml/getProfileTasks';
|
|
331
|
+
import { Ml_SearchTasks_Request, Ml_SearchTasks_RequestBody, Ml_SearchTasks_Response, Ml_SearchTasks_ResponseBody } from './ml/searchTasks';
|
|
318
332
|
import { Ml_DeleteTask_Request, Ml_DeleteTask_Response, Ml_DeleteTask_ResponseBody } from './ml/deleteTask';
|
|
319
333
|
import { Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody } from './ml/getTask';
|
|
334
|
+
import { Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody } from './ml/getAllTools';
|
|
335
|
+
import { Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody } from './ml/getTool';
|
|
320
336
|
import { Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody } from './notifications/listChannels';
|
|
321
337
|
import { Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody } from './notifications/deleteConfigs';
|
|
322
338
|
import { Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody } from './notifications/getConfigs';
|
|
@@ -427,7 +443,7 @@ export {
|
|
|
427
443
|
PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody,
|
|
428
444
|
ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody,
|
|
429
445
|
Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody,
|
|
430
|
-
SearchShards_Request,
|
|
446
|
+
SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody,
|
|
431
447
|
DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody,
|
|
432
448
|
DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody,
|
|
433
449
|
GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody,
|
|
@@ -669,21 +685,31 @@ export {
|
|
|
669
685
|
Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody,
|
|
670
686
|
Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody,
|
|
671
687
|
Ml_Train_Request, Ml_Train_RequestBody, Ml_Train_Response, Ml_Train_ResponseBody,
|
|
688
|
+
Ml_GetStats_Request, Ml_GetStats_Response, Ml_GetStats_ResponseBody,
|
|
672
689
|
Ml_RegisterAgents_Request, Ml_RegisterAgents_RequestBody, Ml_RegisterAgents_Response, Ml_RegisterAgents_ResponseBody,
|
|
690
|
+
Ml_SearchAgents_Request, Ml_SearchAgents_RequestBody, Ml_SearchAgents_Response, Ml_SearchAgents_ResponseBody,
|
|
673
691
|
Ml_DeleteAgent_Request, Ml_DeleteAgent_Response, Ml_DeleteAgent_ResponseBody,
|
|
692
|
+
Ml_GetAgent_Request, Ml_GetAgent_Response, Ml_GetAgent_ResponseBody,
|
|
693
|
+
Ml_ExecuteAgent_Request, Ml_ExecuteAgent_RequestBody, Ml_ExecuteAgent_Response, Ml_ExecuteAgent_ResponseBody,
|
|
674
694
|
Ml_CreateConnector_Request, Ml_CreateConnector_RequestBody, Ml_CreateConnector_Response, Ml_CreateConnector_ResponseBody,
|
|
675
695
|
Ml_SearchConnectors_Request, Ml_SearchConnectors_RequestBody, Ml_SearchConnectors_Response, Ml_SearchConnectors_ResponseBody,
|
|
676
696
|
Ml_DeleteConnector_Request, Ml_DeleteConnector_Response, Ml_DeleteConnector_ResponseBody,
|
|
677
697
|
Ml_GetConnector_Request, Ml_GetConnector_Response, Ml_GetConnector_ResponseBody,
|
|
678
698
|
Ml_UpdateConnector_Request, Ml_UpdateConnector_RequestBody, Ml_UpdateConnector_Response, Ml_UpdateConnector_ResponseBody,
|
|
679
|
-
|
|
699
|
+
Ml_DeleteController_Request, Ml_DeleteController_Response, Ml_DeleteController_ResponseBody,
|
|
700
|
+
Ml_GetController_Request, Ml_GetController_Response, Ml_GetController_ResponseBody,
|
|
701
|
+
Ml_CreateController_Request, Ml_CreateController_RequestBody, Ml_CreateController_Response, Ml_CreateController_ResponseBody,
|
|
702
|
+
Ml_UpdateController_Request, Ml_UpdateController_RequestBody, Ml_UpdateController_Response, Ml_UpdateController_ResponseBody,
|
|
703
|
+
Ml_GetAllMemories_Request, Ml_GetAllMemories_Response, Ml_GetAllMemories_ResponseBody,
|
|
680
704
|
Ml_CreateMemory_Request, Ml_CreateMemory_RequestBody, Ml_CreateMemory_Response, Ml_CreateMemory_ResponseBody,
|
|
681
705
|
Ml_SearchMemory_Request, Ml_SearchMemory_RequestBody, Ml_SearchMemory_Response, Ml_SearchMemory_ResponseBody,
|
|
682
706
|
Ml_DeleteMemory_Request, Ml_DeleteMemory_Response, Ml_DeleteMemory_ResponseBody,
|
|
707
|
+
Ml_GetMemory_Request, Ml_GetMemory_Response, Ml_GetMemory_ResponseBody,
|
|
683
708
|
Ml_UpdateMemory_Request, Ml_UpdateMemory_RequestBody, Ml_UpdateMemory_Response, Ml_UpdateMemory_ResponseBody,
|
|
684
709
|
Ml_SearchMessage_Request, Ml_SearchMessage_RequestBody, Ml_SearchMessage_Response, Ml_SearchMessage_ResponseBody,
|
|
685
|
-
|
|
710
|
+
Ml_GetAllMessages_Request, Ml_GetAllMessages_Response, Ml_GetAllMessages_ResponseBody,
|
|
686
711
|
Ml_CreateMessage_Request, Ml_CreateMessage_RequestBody, Ml_CreateMessage_Response, Ml_CreateMessage_ResponseBody,
|
|
712
|
+
Ml_GetMessage_Request, Ml_GetMessage_Response, Ml_GetMessage_ResponseBody,
|
|
687
713
|
Ml_UpdateMessage_Request, Ml_UpdateMessage_RequestBody, Ml_UpdateMessage_Response, Ml_UpdateMessage_ResponseBody,
|
|
688
714
|
Ml_GetMessageTraces_Request, Ml_GetMessageTraces_Response, Ml_GetMessageTraces_ResponseBody,
|
|
689
715
|
Ml_RegisterModelGroup_Request, Ml_RegisterModelGroup_RequestBody, Ml_RegisterModelGroup_Response, Ml_RegisterModelGroup_ResponseBody,
|
|
@@ -706,8 +732,14 @@ export {
|
|
|
706
732
|
Ml_ChunkModel_Request, Ml_ChunkModel_RequestBody, Ml_ChunkModel_Response, Ml_ChunkModel_ResponseBody,
|
|
707
733
|
Ml_UploadChunk_Request, Ml_UploadChunk_RequestBody, Ml_UploadChunk_Response, Ml_UploadChunk_ResponseBody,
|
|
708
734
|
Ml_CreateModelMeta_Request, Ml_CreateModelMeta_RequestBody, Ml_CreateModelMeta_Response, Ml_CreateModelMeta_ResponseBody,
|
|
735
|
+
Ml_GetProfile_Request, Ml_GetProfile_Response, Ml_GetProfile_ResponseBody,
|
|
736
|
+
Ml_GetProfileModels_Request, Ml_GetProfileModels_Response, Ml_GetProfileModels_ResponseBody,
|
|
737
|
+
Ml_GetProfileTasks_Request, Ml_GetProfileTasks_Response, Ml_GetProfileTasks_ResponseBody,
|
|
738
|
+
Ml_SearchTasks_Request, Ml_SearchTasks_RequestBody, Ml_SearchTasks_Response, Ml_SearchTasks_ResponseBody,
|
|
709
739
|
Ml_DeleteTask_Request, Ml_DeleteTask_Response, Ml_DeleteTask_ResponseBody,
|
|
710
740
|
Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody,
|
|
741
|
+
Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody,
|
|
742
|
+
Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody,
|
|
711
743
|
Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody,
|
|
712
744
|
Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody,
|
|
713
745
|
Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody,
|
package/api/ml/_api.js
CHANGED
|
@@ -21,23 +21,36 @@
|
|
|
21
21
|
function MlApi(bindObj) {
|
|
22
22
|
this.chunkModel = require('./chunkModel').bind(bindObj);
|
|
23
23
|
this.createConnector = require('./createConnector').bind(bindObj);
|
|
24
|
+
this.createController = require('./createController').bind(bindObj);
|
|
24
25
|
this.createMemory = require('./createMemory').bind(bindObj);
|
|
25
26
|
this.createMessage = require('./createMessage').bind(bindObj);
|
|
26
27
|
this.createModelMeta = require('./createModelMeta').bind(bindObj);
|
|
27
28
|
this.deleteAgent = require('./deleteAgent').bind(bindObj);
|
|
28
29
|
this.deleteConnector = require('./deleteConnector').bind(bindObj);
|
|
30
|
+
this.deleteController = require('./deleteController').bind(bindObj);
|
|
29
31
|
this.deleteMemory = require('./deleteMemory').bind(bindObj);
|
|
30
32
|
this.deleteModel = require('./deleteModel').bind(bindObj);
|
|
31
33
|
this.deleteModelGroup = require('./deleteModelGroup').bind(bindObj);
|
|
32
34
|
this.deleteTask = require('./deleteTask').bind(bindObj);
|
|
33
35
|
this.deployModel = require('./deployModel').bind(bindObj);
|
|
36
|
+
this.executeAgent = require('./executeAgent').bind(bindObj);
|
|
37
|
+
this.getAgent = require('./getAgent').bind(bindObj);
|
|
38
|
+
this.getAllMemories = require('./getAllMemories').bind(bindObj);
|
|
39
|
+
this.getAllMessages = require('./getAllMessages').bind(bindObj);
|
|
40
|
+
this.getAllTools = require('./getAllTools').bind(bindObj);
|
|
34
41
|
this.getConnector = require('./getConnector').bind(bindObj);
|
|
42
|
+
this.getController = require('./getController').bind(bindObj);
|
|
35
43
|
this.getMemory = require('./getMemory').bind(bindObj);
|
|
36
44
|
this.getMessage = require('./getMessage').bind(bindObj);
|
|
37
45
|
this.getMessageTraces = require('./getMessageTraces').bind(bindObj);
|
|
38
46
|
this.getModel = require('./getModel').bind(bindObj);
|
|
39
47
|
this.getModelGroup = require('./getModelGroup').bind(bindObj);
|
|
48
|
+
this.getProfile = require('./getProfile').bind(bindObj);
|
|
49
|
+
this.getProfileModels = require('./getProfileModels').bind(bindObj);
|
|
50
|
+
this.getProfileTasks = require('./getProfileTasks').bind(bindObj);
|
|
51
|
+
this.getStats = require('./getStats').bind(bindObj);
|
|
40
52
|
this.getTask = require('./getTask').bind(bindObj);
|
|
53
|
+
this.getTool = require('./getTool').bind(bindObj);
|
|
41
54
|
this.loadModel = require('./loadModel').bind(bindObj);
|
|
42
55
|
this.predict = require('./predict').bind(bindObj);
|
|
43
56
|
this.predictModel = require('./predictModel').bind(bindObj);
|
|
@@ -45,16 +58,19 @@ function MlApi(bindObj) {
|
|
|
45
58
|
this.registerModel = require('./registerModel').bind(bindObj);
|
|
46
59
|
this.registerModelGroup = require('./registerModelGroup').bind(bindObj);
|
|
47
60
|
this.registerModelMeta = require('./registerModelMeta').bind(bindObj);
|
|
61
|
+
this.searchAgents = require('./searchAgents').bind(bindObj);
|
|
48
62
|
this.searchConnectors = require('./searchConnectors').bind(bindObj);
|
|
49
63
|
this.searchMemory = require('./searchMemory').bind(bindObj);
|
|
50
64
|
this.searchMessage = require('./searchMessage').bind(bindObj);
|
|
51
65
|
this.searchModelGroup = require('./searchModelGroup').bind(bindObj);
|
|
52
66
|
this.searchModels = require('./searchModels').bind(bindObj);
|
|
67
|
+
this.searchTasks = require('./searchTasks').bind(bindObj);
|
|
53
68
|
this.train = require('./train').bind(bindObj);
|
|
54
69
|
this.trainPredict = require('./trainPredict').bind(bindObj);
|
|
55
70
|
this.undeployModel = require('./undeployModel').bind(bindObj);
|
|
56
71
|
this.unloadModel = require('./unloadModel').bind(bindObj);
|
|
57
72
|
this.updateConnector = require('./updateConnector').bind(bindObj);
|
|
73
|
+
this.updateController = require('./updateController').bind(bindObj);
|
|
58
74
|
this.updateMemory = require('./updateMemory').bind(bindObj);
|
|
59
75
|
this.updateMessage = require('./updateMessage').bind(bindObj);
|
|
60
76
|
this.updateModel = require('./updateModel').bind(bindObj);
|
|
@@ -66,6 +82,8 @@ function MlApi(bindObj) {
|
|
|
66
82
|
this.chunk_model = require('./chunkModel').bind(bindObj);
|
|
67
83
|
// Deprecated: Use createConnector instead.
|
|
68
84
|
this.create_connector = require('./createConnector').bind(bindObj);
|
|
85
|
+
// Deprecated: Use createController instead.
|
|
86
|
+
this.create_controller = require('./createController').bind(bindObj);
|
|
69
87
|
// Deprecated: Use createMemory instead.
|
|
70
88
|
this.create_memory = require('./createMemory').bind(bindObj);
|
|
71
89
|
// Deprecated: Use createMessage instead.
|
|
@@ -76,6 +94,8 @@ function MlApi(bindObj) {
|
|
|
76
94
|
this.delete_agent = require('./deleteAgent').bind(bindObj);
|
|
77
95
|
// Deprecated: Use deleteConnector instead.
|
|
78
96
|
this.delete_connector = require('./deleteConnector').bind(bindObj);
|
|
97
|
+
// Deprecated: Use deleteController instead.
|
|
98
|
+
this.delete_controller = require('./deleteController').bind(bindObj);
|
|
79
99
|
// Deprecated: Use deleteMemory instead.
|
|
80
100
|
this.delete_memory = require('./deleteMemory').bind(bindObj);
|
|
81
101
|
// Deprecated: Use deleteModel instead.
|
|
@@ -86,8 +106,20 @@ function MlApi(bindObj) {
|
|
|
86
106
|
this.delete_task = require('./deleteTask').bind(bindObj);
|
|
87
107
|
// Deprecated: Use deployModel instead.
|
|
88
108
|
this.deploy_model = require('./deployModel').bind(bindObj);
|
|
109
|
+
// Deprecated: Use executeAgent instead.
|
|
110
|
+
this.execute_agent = require('./executeAgent').bind(bindObj);
|
|
111
|
+
// Deprecated: Use getAgent instead.
|
|
112
|
+
this.get_agent = require('./getAgent').bind(bindObj);
|
|
113
|
+
// Deprecated: Use getAllMemories instead.
|
|
114
|
+
this.get_all_memories = require('./getAllMemories').bind(bindObj);
|
|
115
|
+
// Deprecated: Use getAllMessages instead.
|
|
116
|
+
this.get_all_messages = require('./getAllMessages').bind(bindObj);
|
|
117
|
+
// Deprecated: Use getAllTools instead.
|
|
118
|
+
this.get_all_tools = require('./getAllTools').bind(bindObj);
|
|
89
119
|
// Deprecated: Use getConnector instead.
|
|
90
120
|
this.get_connector = require('./getConnector').bind(bindObj);
|
|
121
|
+
// Deprecated: Use getController instead.
|
|
122
|
+
this.get_controller = require('./getController').bind(bindObj);
|
|
91
123
|
// Deprecated: Use getMemory instead.
|
|
92
124
|
this.get_memory = require('./getMemory').bind(bindObj);
|
|
93
125
|
// Deprecated: Use getMessage instead.
|
|
@@ -98,8 +130,18 @@ function MlApi(bindObj) {
|
|
|
98
130
|
this.get_model = require('./getModel').bind(bindObj);
|
|
99
131
|
// Deprecated: Use getModelGroup instead.
|
|
100
132
|
this.get_model_group = require('./getModelGroup').bind(bindObj);
|
|
133
|
+
// Deprecated: Use getProfile instead.
|
|
134
|
+
this.get_profile = require('./getProfile').bind(bindObj);
|
|
135
|
+
// Deprecated: Use getProfileModels instead.
|
|
136
|
+
this.get_profile_models = require('./getProfileModels').bind(bindObj);
|
|
137
|
+
// Deprecated: Use getProfileTasks instead.
|
|
138
|
+
this.get_profile_tasks = require('./getProfileTasks').bind(bindObj);
|
|
139
|
+
// Deprecated: Use getStats instead.
|
|
140
|
+
this.get_stats = require('./getStats').bind(bindObj);
|
|
101
141
|
// Deprecated: Use getTask instead.
|
|
102
142
|
this.get_task = require('./getTask').bind(bindObj);
|
|
143
|
+
// Deprecated: Use getTool instead.
|
|
144
|
+
this.get_tool = require('./getTool').bind(bindObj);
|
|
103
145
|
// Deprecated: Use loadModel instead.
|
|
104
146
|
this.load_model = require('./loadModel').bind(bindObj);
|
|
105
147
|
// Deprecated: Use predictModel instead.
|
|
@@ -112,6 +154,8 @@ function MlApi(bindObj) {
|
|
|
112
154
|
this.register_model_group = require('./registerModelGroup').bind(bindObj);
|
|
113
155
|
// Deprecated: Use registerModelMeta instead.
|
|
114
156
|
this.register_model_meta = require('./registerModelMeta').bind(bindObj);
|
|
157
|
+
// Deprecated: Use searchAgents instead.
|
|
158
|
+
this.search_agents = require('./searchAgents').bind(bindObj);
|
|
115
159
|
// Deprecated: Use searchConnectors instead.
|
|
116
160
|
this.search_connectors = require('./searchConnectors').bind(bindObj);
|
|
117
161
|
// Deprecated: Use searchMemory instead.
|
|
@@ -122,6 +166,8 @@ function MlApi(bindObj) {
|
|
|
122
166
|
this.search_model_group = require('./searchModelGroup').bind(bindObj);
|
|
123
167
|
// Deprecated: Use searchModels instead.
|
|
124
168
|
this.search_models = require('./searchModels').bind(bindObj);
|
|
169
|
+
// Deprecated: Use searchTasks instead.
|
|
170
|
+
this.search_tasks = require('./searchTasks').bind(bindObj);
|
|
125
171
|
// Deprecated: Use trainPredict instead.
|
|
126
172
|
this.train_predict = require('./trainPredict').bind(bindObj);
|
|
127
173
|
// Deprecated: Use undeployModel instead.
|
|
@@ -130,6 +176,8 @@ function MlApi(bindObj) {
|
|
|
130
176
|
this.unload_model = require('./unloadModel').bind(bindObj);
|
|
131
177
|
// Deprecated: Use updateConnector instead.
|
|
132
178
|
this.update_connector = require('./updateConnector').bind(bindObj);
|
|
179
|
+
// Deprecated: Use updateController instead.
|
|
180
|
+
this.update_controller = require('./updateController').bind(bindObj);
|
|
133
181
|
// Deprecated: Use updateMemory instead.
|
|
134
182
|
this.update_memory = require('./updateMemory').bind(bindObj);
|
|
135
183
|
// Deprecated: Use updateMessage instead.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Common from '../_types/_common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
21
|
+
|
|
22
|
+
export interface Ml_CreateController_Request extends Global.Params {
|
|
23
|
+
body?: Ml_CreateController_RequestBody;
|
|
24
|
+
model_id: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Ml_CreateController_RequestBody = {
|
|
28
|
+
user_rate_limiter?: Record<string, Ml_Common.RateLimiter>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Ml_CreateController_Response extends ApiResponse {
|
|
32
|
+
body: Ml_CreateController_ResponseBody;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Ml_CreateController_ResponseBody = {
|
|
36
|
+
model_id?: Common.Name;
|
|
37
|
+
status?: Ml_Common.Status;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Creates a controller.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.create_controller}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.model_id
|
|
29
|
+
* @param {object} [params.body]
|
|
30
|
+
*
|
|
31
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
33
|
+
*
|
|
34
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
35
|
+
*/
|
|
36
|
+
function createControllerFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.model_id == null) return handleMissingParam('model_id', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, model_id, ...querystring } = params;
|
|
41
|
+
model_id = parsePathParam(model_id);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/controllers/' + model_id;
|
|
44
|
+
const method = 'POST';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = createControllerFunc;
|
|
@@ -27,7 +27,7 @@ export type Ml_CreateModelMeta_RequestBody = {
|
|
|
27
27
|
description?: string;
|
|
28
28
|
model_config: Ml_Common.ModelConfig;
|
|
29
29
|
model_content_hash_value: string;
|
|
30
|
-
model_format:
|
|
30
|
+
model_format: Ml_Common.ModelFormat;
|
|
31
31
|
model_group_id?: Common.Id;
|
|
32
32
|
name: string;
|
|
33
33
|
total_chunks: number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Common from '../_types/_common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
|
|
21
|
+
export interface Ml_DeleteController_Request extends Global.Params {
|
|
22
|
+
model_id: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Ml_DeleteController_Response extends ApiResponse {
|
|
26
|
+
body: Ml_DeleteController_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Ml_DeleteController_ResponseBody = Common.WriteResponseBase
|
|
30
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Deletes a controller.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.delete_controller}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.model_id
|
|
29
|
+
*
|
|
30
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
32
|
+
*
|
|
33
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
34
|
+
*/
|
|
35
|
+
function deleteControllerFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.model_id == null) return handleMissingParam('model_id', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, model_id, ...querystring } = params;
|
|
40
|
+
model_id = parsePathParam(model_id);
|
|
41
|
+
|
|
42
|
+
const path = '/_plugins/_ml/controllers/' + model_id;
|
|
43
|
+
const method = 'DELETE';
|
|
44
|
+
body = body || '';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = deleteControllerFunc;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
20
|
+
|
|
21
|
+
export interface Ml_ExecuteAgent_Request extends Global.Params {
|
|
22
|
+
agent_id: string;
|
|
23
|
+
body?: Ml_ExecuteAgent_RequestBody;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Ml_ExecuteAgent_RequestBody = {
|
|
27
|
+
parameters: Ml_Common.Parameters;
|
|
28
|
+
'parameters.verbose'?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Ml_ExecuteAgent_Response extends ApiResponse {
|
|
32
|
+
body: Ml_ExecuteAgent_ResponseBody;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Ml_ExecuteAgent_ResponseBody = Ml_Common.PredictResponse
|
|
36
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Execute an agent.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.execute_agent}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.agent_id
|
|
29
|
+
* @param {object} [params.body]
|
|
30
|
+
*
|
|
31
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
33
|
+
*
|
|
34
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
35
|
+
*/
|
|
36
|
+
function executeAgentFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.agent_id == null) return handleMissingParam('agent_id', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, agent_id, ...querystring } = params;
|
|
41
|
+
agent_id = parsePathParam(agent_id);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/agents/' + agent_id + '/_execute';
|
|
44
|
+
const method = 'POST';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = executeAgentFunc;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
20
|
+
|
|
21
|
+
export interface Ml_GetAgent_Request extends Global.Params {
|
|
22
|
+
agent_id: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Ml_GetAgent_Response extends ApiResponse {
|
|
26
|
+
body: Ml_GetAgent_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Ml_GetAgent_ResponseBody = Ml_Common.GetAgentResponse
|
|
30
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get an agent.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.get_agent}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.agent_id
|
|
29
|
+
*
|
|
30
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
32
|
+
*
|
|
33
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
34
|
+
*/
|
|
35
|
+
function getAgentFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.agent_id == null) return handleMissingParam('agent_id', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, agent_id, ...querystring } = params;
|
|
40
|
+
agent_id = parsePathParam(agent_id);
|
|
41
|
+
|
|
42
|
+
const path = '/_plugins/_ml/agents/' + agent_id;
|
|
43
|
+
const method = 'GET';
|
|
44
|
+
body = body || '';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = getAgentFunc;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
20
|
+
|
|
21
|
+
export interface Ml_GetAllMemories_Request extends Global.Params {
|
|
22
|
+
max_results?: number;
|
|
23
|
+
next_token?: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Ml_GetAllMemories_Response extends ApiResponse {
|
|
27
|
+
body: Ml_GetAllMemories_ResponseBody;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type Ml_GetAllMemories_ResponseBody = {
|
|
31
|
+
memories: Ml_Common.Memory[];
|
|
32
|
+
next_token?: number;
|
|
33
|
+
}
|
|
34
|
+
|