@opensearch-project/opensearch 3.1.0 → 3.3.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 +82 -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 +4 -11
- package/api/_types/_common.query_dsl.d.ts +64 -39
- 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 +193 -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/cluster/allocationExplain.js +4 -4
- package/api/cluster/deleteComponentTemplate.js +3 -3
- package/api/cluster/deleteDecommissionAwareness.js +1 -1
- package/api/cluster/deleteVotingConfigExclusions.js +2 -2
- package/api/cluster/existsComponentTemplate.js +4 -4
- package/api/cluster/getComponentTemplate.js +4 -4
- package/api/cluster/getDecommissionAwareness.js +2 -2
- package/api/cluster/getSettings.js +5 -5
- package/api/cluster/getWeightedRouting.js +1 -1
- package/api/cluster/health.js +14 -14
- package/api/cluster/pendingTasks.js +5 -5
- package/api/cluster/postVotingConfigExclusions.js +4 -4
- package/api/cluster/putComponentTemplate.js +6 -6
- package/api/cluster/putDecommissionAwareness.js +3 -3
- package/api/cluster/putSettings.js +5 -5
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/reroute.js +6 -6
- package/api/cluster/state.js +10 -10
- package/api/cluster/stats.js +5 -5
- package/api/index.d.ts +40 -6
- package/api/indices/simulateIndexTemplate.d.ts +5 -1
- package/api/ml/_api.js +51 -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/executeAlgorithm.d.ts +45 -0
- package/api/ml/executeAlgorithm.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/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';
|
|
@@ -275,24 +275,35 @@ import { Knn_TrainModel_Request, Knn_TrainModel_Response, Knn_TrainModel_Respons
|
|
|
275
275
|
import { Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody } from './knn/deleteModel';
|
|
276
276
|
import { Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody } from './knn/getModel';
|
|
277
277
|
import { Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody } from './knn/warmup';
|
|
278
|
+
import { Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody } from './ml/executeAlgorithm';
|
|
278
279
|
import { Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody } from './ml/predict';
|
|
279
280
|
import { Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody } from './ml/trainPredict';
|
|
280
281
|
import { Ml_Train_Request, Ml_Train_RequestBody, Ml_Train_Response, Ml_Train_ResponseBody } from './ml/train';
|
|
282
|
+
import { Ml_GetStats_Request, Ml_GetStats_Response, Ml_GetStats_ResponseBody } from './ml/getStats';
|
|
281
283
|
import { Ml_RegisterAgents_Request, Ml_RegisterAgents_RequestBody, Ml_RegisterAgents_Response, Ml_RegisterAgents_ResponseBody } from './ml/registerAgents';
|
|
284
|
+
import { Ml_SearchAgents_Request, Ml_SearchAgents_RequestBody, Ml_SearchAgents_Response, Ml_SearchAgents_ResponseBody } from './ml/searchAgents';
|
|
282
285
|
import { Ml_DeleteAgent_Request, Ml_DeleteAgent_Response, Ml_DeleteAgent_ResponseBody } from './ml/deleteAgent';
|
|
286
|
+
import { Ml_GetAgent_Request, Ml_GetAgent_Response, Ml_GetAgent_ResponseBody } from './ml/getAgent';
|
|
287
|
+
import { Ml_ExecuteAgent_Request, Ml_ExecuteAgent_RequestBody, Ml_ExecuteAgent_Response, Ml_ExecuteAgent_ResponseBody } from './ml/executeAgent';
|
|
283
288
|
import { Ml_CreateConnector_Request, Ml_CreateConnector_RequestBody, Ml_CreateConnector_Response, Ml_CreateConnector_ResponseBody } from './ml/createConnector';
|
|
284
289
|
import { Ml_SearchConnectors_Request, Ml_SearchConnectors_RequestBody, Ml_SearchConnectors_Response, Ml_SearchConnectors_ResponseBody } from './ml/searchConnectors';
|
|
285
290
|
import { Ml_DeleteConnector_Request, Ml_DeleteConnector_Response, Ml_DeleteConnector_ResponseBody } from './ml/deleteConnector';
|
|
286
291
|
import { Ml_GetConnector_Request, Ml_GetConnector_Response, Ml_GetConnector_ResponseBody } from './ml/getConnector';
|
|
287
292
|
import { Ml_UpdateConnector_Request, Ml_UpdateConnector_RequestBody, Ml_UpdateConnector_Response, Ml_UpdateConnector_ResponseBody } from './ml/updateConnector';
|
|
288
|
-
import {
|
|
293
|
+
import { Ml_DeleteController_Request, Ml_DeleteController_Response, Ml_DeleteController_ResponseBody } from './ml/deleteController';
|
|
294
|
+
import { Ml_GetController_Request, Ml_GetController_Response, Ml_GetController_ResponseBody } from './ml/getController';
|
|
295
|
+
import { Ml_CreateController_Request, Ml_CreateController_RequestBody, Ml_CreateController_Response, Ml_CreateController_ResponseBody } from './ml/createController';
|
|
296
|
+
import { Ml_UpdateController_Request, Ml_UpdateController_RequestBody, Ml_UpdateController_Response, Ml_UpdateController_ResponseBody } from './ml/updateController';
|
|
297
|
+
import { Ml_GetAllMemories_Request, Ml_GetAllMemories_Response, Ml_GetAllMemories_ResponseBody } from './ml/getAllMemories';
|
|
289
298
|
import { Ml_CreateMemory_Request, Ml_CreateMemory_RequestBody, Ml_CreateMemory_Response, Ml_CreateMemory_ResponseBody } from './ml/createMemory';
|
|
290
299
|
import { Ml_SearchMemory_Request, Ml_SearchMemory_RequestBody, Ml_SearchMemory_Response, Ml_SearchMemory_ResponseBody } from './ml/searchMemory';
|
|
291
300
|
import { Ml_DeleteMemory_Request, Ml_DeleteMemory_Response, Ml_DeleteMemory_ResponseBody } from './ml/deleteMemory';
|
|
301
|
+
import { Ml_GetMemory_Request, Ml_GetMemory_Response, Ml_GetMemory_ResponseBody } from './ml/getMemory';
|
|
292
302
|
import { Ml_UpdateMemory_Request, Ml_UpdateMemory_RequestBody, Ml_UpdateMemory_Response, Ml_UpdateMemory_ResponseBody } from './ml/updateMemory';
|
|
293
303
|
import { Ml_SearchMessage_Request, Ml_SearchMessage_RequestBody, Ml_SearchMessage_Response, Ml_SearchMessage_ResponseBody } from './ml/searchMessage';
|
|
294
|
-
import {
|
|
304
|
+
import { Ml_GetAllMessages_Request, Ml_GetAllMessages_Response, Ml_GetAllMessages_ResponseBody } from './ml/getAllMessages';
|
|
295
305
|
import { Ml_CreateMessage_Request, Ml_CreateMessage_RequestBody, Ml_CreateMessage_Response, Ml_CreateMessage_ResponseBody } from './ml/createMessage';
|
|
306
|
+
import { Ml_GetMessage_Request, Ml_GetMessage_Response, Ml_GetMessage_ResponseBody } from './ml/getMessage';
|
|
296
307
|
import { Ml_UpdateMessage_Request, Ml_UpdateMessage_RequestBody, Ml_UpdateMessage_Response, Ml_UpdateMessage_ResponseBody } from './ml/updateMessage';
|
|
297
308
|
import { Ml_GetMessageTraces_Request, Ml_GetMessageTraces_Response, Ml_GetMessageTraces_ResponseBody } from './ml/getMessageTraces';
|
|
298
309
|
import { Ml_RegisterModelGroup_Request, Ml_RegisterModelGroup_RequestBody, Ml_RegisterModelGroup_Response, Ml_RegisterModelGroup_ResponseBody } from './ml/registerModelGroup';
|
|
@@ -315,8 +326,14 @@ import { Ml_PredictModel_Request, Ml_PredictModel_RequestBody, Ml_PredictModel_R
|
|
|
315
326
|
import { Ml_ChunkModel_Request, Ml_ChunkModel_RequestBody, Ml_ChunkModel_Response, Ml_ChunkModel_ResponseBody } from './ml/chunkModel';
|
|
316
327
|
import { Ml_UploadChunk_Request, Ml_UploadChunk_RequestBody, Ml_UploadChunk_Response, Ml_UploadChunk_ResponseBody } from './ml/uploadChunk';
|
|
317
328
|
import { Ml_CreateModelMeta_Request, Ml_CreateModelMeta_RequestBody, Ml_CreateModelMeta_Response, Ml_CreateModelMeta_ResponseBody } from './ml/createModelMeta';
|
|
329
|
+
import { Ml_GetProfile_Request, Ml_GetProfile_Response, Ml_GetProfile_ResponseBody } from './ml/getProfile';
|
|
330
|
+
import { Ml_GetProfileModels_Request, Ml_GetProfileModels_Response, Ml_GetProfileModels_ResponseBody } from './ml/getProfileModels';
|
|
331
|
+
import { Ml_GetProfileTasks_Request, Ml_GetProfileTasks_Response, Ml_GetProfileTasks_ResponseBody } from './ml/getProfileTasks';
|
|
332
|
+
import { Ml_SearchTasks_Request, Ml_SearchTasks_RequestBody, Ml_SearchTasks_Response, Ml_SearchTasks_ResponseBody } from './ml/searchTasks';
|
|
318
333
|
import { Ml_DeleteTask_Request, Ml_DeleteTask_Response, Ml_DeleteTask_ResponseBody } from './ml/deleteTask';
|
|
319
334
|
import { Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody } from './ml/getTask';
|
|
335
|
+
import { Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody } from './ml/getAllTools';
|
|
336
|
+
import { Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody } from './ml/getTool';
|
|
320
337
|
import { Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody } from './notifications/listChannels';
|
|
321
338
|
import { Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody } from './notifications/deleteConfigs';
|
|
322
339
|
import { Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody } from './notifications/getConfigs';
|
|
@@ -427,7 +444,7 @@ export {
|
|
|
427
444
|
PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody,
|
|
428
445
|
ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody,
|
|
429
446
|
Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody,
|
|
430
|
-
SearchShards_Request,
|
|
447
|
+
SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody,
|
|
431
448
|
DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody,
|
|
432
449
|
DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody,
|
|
433
450
|
GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody,
|
|
@@ -666,24 +683,35 @@ export {
|
|
|
666
683
|
Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody,
|
|
667
684
|
Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody,
|
|
668
685
|
Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody,
|
|
686
|
+
Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody,
|
|
669
687
|
Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody,
|
|
670
688
|
Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody,
|
|
671
689
|
Ml_Train_Request, Ml_Train_RequestBody, Ml_Train_Response, Ml_Train_ResponseBody,
|
|
690
|
+
Ml_GetStats_Request, Ml_GetStats_Response, Ml_GetStats_ResponseBody,
|
|
672
691
|
Ml_RegisterAgents_Request, Ml_RegisterAgents_RequestBody, Ml_RegisterAgents_Response, Ml_RegisterAgents_ResponseBody,
|
|
692
|
+
Ml_SearchAgents_Request, Ml_SearchAgents_RequestBody, Ml_SearchAgents_Response, Ml_SearchAgents_ResponseBody,
|
|
673
693
|
Ml_DeleteAgent_Request, Ml_DeleteAgent_Response, Ml_DeleteAgent_ResponseBody,
|
|
694
|
+
Ml_GetAgent_Request, Ml_GetAgent_Response, Ml_GetAgent_ResponseBody,
|
|
695
|
+
Ml_ExecuteAgent_Request, Ml_ExecuteAgent_RequestBody, Ml_ExecuteAgent_Response, Ml_ExecuteAgent_ResponseBody,
|
|
674
696
|
Ml_CreateConnector_Request, Ml_CreateConnector_RequestBody, Ml_CreateConnector_Response, Ml_CreateConnector_ResponseBody,
|
|
675
697
|
Ml_SearchConnectors_Request, Ml_SearchConnectors_RequestBody, Ml_SearchConnectors_Response, Ml_SearchConnectors_ResponseBody,
|
|
676
698
|
Ml_DeleteConnector_Request, Ml_DeleteConnector_Response, Ml_DeleteConnector_ResponseBody,
|
|
677
699
|
Ml_GetConnector_Request, Ml_GetConnector_Response, Ml_GetConnector_ResponseBody,
|
|
678
700
|
Ml_UpdateConnector_Request, Ml_UpdateConnector_RequestBody, Ml_UpdateConnector_Response, Ml_UpdateConnector_ResponseBody,
|
|
679
|
-
|
|
701
|
+
Ml_DeleteController_Request, Ml_DeleteController_Response, Ml_DeleteController_ResponseBody,
|
|
702
|
+
Ml_GetController_Request, Ml_GetController_Response, Ml_GetController_ResponseBody,
|
|
703
|
+
Ml_CreateController_Request, Ml_CreateController_RequestBody, Ml_CreateController_Response, Ml_CreateController_ResponseBody,
|
|
704
|
+
Ml_UpdateController_Request, Ml_UpdateController_RequestBody, Ml_UpdateController_Response, Ml_UpdateController_ResponseBody,
|
|
705
|
+
Ml_GetAllMemories_Request, Ml_GetAllMemories_Response, Ml_GetAllMemories_ResponseBody,
|
|
680
706
|
Ml_CreateMemory_Request, Ml_CreateMemory_RequestBody, Ml_CreateMemory_Response, Ml_CreateMemory_ResponseBody,
|
|
681
707
|
Ml_SearchMemory_Request, Ml_SearchMemory_RequestBody, Ml_SearchMemory_Response, Ml_SearchMemory_ResponseBody,
|
|
682
708
|
Ml_DeleteMemory_Request, Ml_DeleteMemory_Response, Ml_DeleteMemory_ResponseBody,
|
|
709
|
+
Ml_GetMemory_Request, Ml_GetMemory_Response, Ml_GetMemory_ResponseBody,
|
|
683
710
|
Ml_UpdateMemory_Request, Ml_UpdateMemory_RequestBody, Ml_UpdateMemory_Response, Ml_UpdateMemory_ResponseBody,
|
|
684
711
|
Ml_SearchMessage_Request, Ml_SearchMessage_RequestBody, Ml_SearchMessage_Response, Ml_SearchMessage_ResponseBody,
|
|
685
|
-
|
|
712
|
+
Ml_GetAllMessages_Request, Ml_GetAllMessages_Response, Ml_GetAllMessages_ResponseBody,
|
|
686
713
|
Ml_CreateMessage_Request, Ml_CreateMessage_RequestBody, Ml_CreateMessage_Response, Ml_CreateMessage_ResponseBody,
|
|
714
|
+
Ml_GetMessage_Request, Ml_GetMessage_Response, Ml_GetMessage_ResponseBody,
|
|
687
715
|
Ml_UpdateMessage_Request, Ml_UpdateMessage_RequestBody, Ml_UpdateMessage_Response, Ml_UpdateMessage_ResponseBody,
|
|
688
716
|
Ml_GetMessageTraces_Request, Ml_GetMessageTraces_Response, Ml_GetMessageTraces_ResponseBody,
|
|
689
717
|
Ml_RegisterModelGroup_Request, Ml_RegisterModelGroup_RequestBody, Ml_RegisterModelGroup_Response, Ml_RegisterModelGroup_ResponseBody,
|
|
@@ -706,8 +734,14 @@ export {
|
|
|
706
734
|
Ml_ChunkModel_Request, Ml_ChunkModel_RequestBody, Ml_ChunkModel_Response, Ml_ChunkModel_ResponseBody,
|
|
707
735
|
Ml_UploadChunk_Request, Ml_UploadChunk_RequestBody, Ml_UploadChunk_Response, Ml_UploadChunk_ResponseBody,
|
|
708
736
|
Ml_CreateModelMeta_Request, Ml_CreateModelMeta_RequestBody, Ml_CreateModelMeta_Response, Ml_CreateModelMeta_ResponseBody,
|
|
737
|
+
Ml_GetProfile_Request, Ml_GetProfile_Response, Ml_GetProfile_ResponseBody,
|
|
738
|
+
Ml_GetProfileModels_Request, Ml_GetProfileModels_Response, Ml_GetProfileModels_ResponseBody,
|
|
739
|
+
Ml_GetProfileTasks_Request, Ml_GetProfileTasks_Response, Ml_GetProfileTasks_ResponseBody,
|
|
740
|
+
Ml_SearchTasks_Request, Ml_SearchTasks_RequestBody, Ml_SearchTasks_Response, Ml_SearchTasks_ResponseBody,
|
|
709
741
|
Ml_DeleteTask_Request, Ml_DeleteTask_Response, Ml_DeleteTask_ResponseBody,
|
|
710
742
|
Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody,
|
|
743
|
+
Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody,
|
|
744
|
+
Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody,
|
|
711
745
|
Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody,
|
|
712
746
|
Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody,
|
|
713
747
|
Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody,
|
|
@@ -19,6 +19,7 @@ import * as Common from '../_types/_common'
|
|
|
19
19
|
import * as Global from '../_types/_global'
|
|
20
20
|
import * as Indices_Common from '../_types/indices._common'
|
|
21
21
|
import * as Indices_PutIndexTemplate from '../_types/indices.put_index_template'
|
|
22
|
+
import * as Indices_SimulateTemplate from '../_types/indices.simulate_template'
|
|
22
23
|
|
|
23
24
|
export interface Indices_SimulateIndexTemplate_Request extends Global.Params {
|
|
24
25
|
body?: Indices_SimulateIndexTemplate_RequestBody;
|
|
@@ -42,5 +43,8 @@ export interface Indices_SimulateIndexTemplate_Response extends ApiResponse {
|
|
|
42
43
|
body: Indices_SimulateIndexTemplate_ResponseBody;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
export type Indices_SimulateIndexTemplate_ResponseBody =
|
|
46
|
+
export type Indices_SimulateIndexTemplate_ResponseBody = {
|
|
47
|
+
overlapping?: Indices_SimulateTemplate.Overlapping[];
|
|
48
|
+
template?: Indices_SimulateTemplate.Template;
|
|
49
|
+
}
|
|
46
50
|
|
package/api/ml/_api.js
CHANGED
|
@@ -21,23 +21,37 @@
|
|
|
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.executeAlgorithm = require('./executeAlgorithm').bind(bindObj);
|
|
38
|
+
this.getAgent = require('./getAgent').bind(bindObj);
|
|
39
|
+
this.getAllMemories = require('./getAllMemories').bind(bindObj);
|
|
40
|
+
this.getAllMessages = require('./getAllMessages').bind(bindObj);
|
|
41
|
+
this.getAllTools = require('./getAllTools').bind(bindObj);
|
|
34
42
|
this.getConnector = require('./getConnector').bind(bindObj);
|
|
43
|
+
this.getController = require('./getController').bind(bindObj);
|
|
35
44
|
this.getMemory = require('./getMemory').bind(bindObj);
|
|
36
45
|
this.getMessage = require('./getMessage').bind(bindObj);
|
|
37
46
|
this.getMessageTraces = require('./getMessageTraces').bind(bindObj);
|
|
38
47
|
this.getModel = require('./getModel').bind(bindObj);
|
|
39
48
|
this.getModelGroup = require('./getModelGroup').bind(bindObj);
|
|
49
|
+
this.getProfile = require('./getProfile').bind(bindObj);
|
|
50
|
+
this.getProfileModels = require('./getProfileModels').bind(bindObj);
|
|
51
|
+
this.getProfileTasks = require('./getProfileTasks').bind(bindObj);
|
|
52
|
+
this.getStats = require('./getStats').bind(bindObj);
|
|
40
53
|
this.getTask = require('./getTask').bind(bindObj);
|
|
54
|
+
this.getTool = require('./getTool').bind(bindObj);
|
|
41
55
|
this.loadModel = require('./loadModel').bind(bindObj);
|
|
42
56
|
this.predict = require('./predict').bind(bindObj);
|
|
43
57
|
this.predictModel = require('./predictModel').bind(bindObj);
|
|
@@ -45,16 +59,19 @@ function MlApi(bindObj) {
|
|
|
45
59
|
this.registerModel = require('./registerModel').bind(bindObj);
|
|
46
60
|
this.registerModelGroup = require('./registerModelGroup').bind(bindObj);
|
|
47
61
|
this.registerModelMeta = require('./registerModelMeta').bind(bindObj);
|
|
62
|
+
this.searchAgents = require('./searchAgents').bind(bindObj);
|
|
48
63
|
this.searchConnectors = require('./searchConnectors').bind(bindObj);
|
|
49
64
|
this.searchMemory = require('./searchMemory').bind(bindObj);
|
|
50
65
|
this.searchMessage = require('./searchMessage').bind(bindObj);
|
|
51
66
|
this.searchModelGroup = require('./searchModelGroup').bind(bindObj);
|
|
52
67
|
this.searchModels = require('./searchModels').bind(bindObj);
|
|
68
|
+
this.searchTasks = require('./searchTasks').bind(bindObj);
|
|
53
69
|
this.train = require('./train').bind(bindObj);
|
|
54
70
|
this.trainPredict = require('./trainPredict').bind(bindObj);
|
|
55
71
|
this.undeployModel = require('./undeployModel').bind(bindObj);
|
|
56
72
|
this.unloadModel = require('./unloadModel').bind(bindObj);
|
|
57
73
|
this.updateConnector = require('./updateConnector').bind(bindObj);
|
|
74
|
+
this.updateController = require('./updateController').bind(bindObj);
|
|
58
75
|
this.updateMemory = require('./updateMemory').bind(bindObj);
|
|
59
76
|
this.updateMessage = require('./updateMessage').bind(bindObj);
|
|
60
77
|
this.updateModel = require('./updateModel').bind(bindObj);
|
|
@@ -66,6 +83,8 @@ function MlApi(bindObj) {
|
|
|
66
83
|
this.chunk_model = require('./chunkModel').bind(bindObj);
|
|
67
84
|
// Deprecated: Use createConnector instead.
|
|
68
85
|
this.create_connector = require('./createConnector').bind(bindObj);
|
|
86
|
+
// Deprecated: Use createController instead.
|
|
87
|
+
this.create_controller = require('./createController').bind(bindObj);
|
|
69
88
|
// Deprecated: Use createMemory instead.
|
|
70
89
|
this.create_memory = require('./createMemory').bind(bindObj);
|
|
71
90
|
// Deprecated: Use createMessage instead.
|
|
@@ -76,6 +95,8 @@ function MlApi(bindObj) {
|
|
|
76
95
|
this.delete_agent = require('./deleteAgent').bind(bindObj);
|
|
77
96
|
// Deprecated: Use deleteConnector instead.
|
|
78
97
|
this.delete_connector = require('./deleteConnector').bind(bindObj);
|
|
98
|
+
// Deprecated: Use deleteController instead.
|
|
99
|
+
this.delete_controller = require('./deleteController').bind(bindObj);
|
|
79
100
|
// Deprecated: Use deleteMemory instead.
|
|
80
101
|
this.delete_memory = require('./deleteMemory').bind(bindObj);
|
|
81
102
|
// Deprecated: Use deleteModel instead.
|
|
@@ -86,8 +107,22 @@ function MlApi(bindObj) {
|
|
|
86
107
|
this.delete_task = require('./deleteTask').bind(bindObj);
|
|
87
108
|
// Deprecated: Use deployModel instead.
|
|
88
109
|
this.deploy_model = require('./deployModel').bind(bindObj);
|
|
110
|
+
// Deprecated: Use executeAgent instead.
|
|
111
|
+
this.execute_agent = require('./executeAgent').bind(bindObj);
|
|
112
|
+
// Deprecated: Use executeAlgorithm instead.
|
|
113
|
+
this.execute_algorithm = require('./executeAlgorithm').bind(bindObj);
|
|
114
|
+
// Deprecated: Use getAgent instead.
|
|
115
|
+
this.get_agent = require('./getAgent').bind(bindObj);
|
|
116
|
+
// Deprecated: Use getAllMemories instead.
|
|
117
|
+
this.get_all_memories = require('./getAllMemories').bind(bindObj);
|
|
118
|
+
// Deprecated: Use getAllMessages instead.
|
|
119
|
+
this.get_all_messages = require('./getAllMessages').bind(bindObj);
|
|
120
|
+
// Deprecated: Use getAllTools instead.
|
|
121
|
+
this.get_all_tools = require('./getAllTools').bind(bindObj);
|
|
89
122
|
// Deprecated: Use getConnector instead.
|
|
90
123
|
this.get_connector = require('./getConnector').bind(bindObj);
|
|
124
|
+
// Deprecated: Use getController instead.
|
|
125
|
+
this.get_controller = require('./getController').bind(bindObj);
|
|
91
126
|
// Deprecated: Use getMemory instead.
|
|
92
127
|
this.get_memory = require('./getMemory').bind(bindObj);
|
|
93
128
|
// Deprecated: Use getMessage instead.
|
|
@@ -98,8 +133,18 @@ function MlApi(bindObj) {
|
|
|
98
133
|
this.get_model = require('./getModel').bind(bindObj);
|
|
99
134
|
// Deprecated: Use getModelGroup instead.
|
|
100
135
|
this.get_model_group = require('./getModelGroup').bind(bindObj);
|
|
136
|
+
// Deprecated: Use getProfile instead.
|
|
137
|
+
this.get_profile = require('./getProfile').bind(bindObj);
|
|
138
|
+
// Deprecated: Use getProfileModels instead.
|
|
139
|
+
this.get_profile_models = require('./getProfileModels').bind(bindObj);
|
|
140
|
+
// Deprecated: Use getProfileTasks instead.
|
|
141
|
+
this.get_profile_tasks = require('./getProfileTasks').bind(bindObj);
|
|
142
|
+
// Deprecated: Use getStats instead.
|
|
143
|
+
this.get_stats = require('./getStats').bind(bindObj);
|
|
101
144
|
// Deprecated: Use getTask instead.
|
|
102
145
|
this.get_task = require('./getTask').bind(bindObj);
|
|
146
|
+
// Deprecated: Use getTool instead.
|
|
147
|
+
this.get_tool = require('./getTool').bind(bindObj);
|
|
103
148
|
// Deprecated: Use loadModel instead.
|
|
104
149
|
this.load_model = require('./loadModel').bind(bindObj);
|
|
105
150
|
// Deprecated: Use predictModel instead.
|
|
@@ -112,6 +157,8 @@ function MlApi(bindObj) {
|
|
|
112
157
|
this.register_model_group = require('./registerModelGroup').bind(bindObj);
|
|
113
158
|
// Deprecated: Use registerModelMeta instead.
|
|
114
159
|
this.register_model_meta = require('./registerModelMeta').bind(bindObj);
|
|
160
|
+
// Deprecated: Use searchAgents instead.
|
|
161
|
+
this.search_agents = require('./searchAgents').bind(bindObj);
|
|
115
162
|
// Deprecated: Use searchConnectors instead.
|
|
116
163
|
this.search_connectors = require('./searchConnectors').bind(bindObj);
|
|
117
164
|
// Deprecated: Use searchMemory instead.
|
|
@@ -122,6 +169,8 @@ function MlApi(bindObj) {
|
|
|
122
169
|
this.search_model_group = require('./searchModelGroup').bind(bindObj);
|
|
123
170
|
// Deprecated: Use searchModels instead.
|
|
124
171
|
this.search_models = require('./searchModels').bind(bindObj);
|
|
172
|
+
// Deprecated: Use searchTasks instead.
|
|
173
|
+
this.search_tasks = require('./searchTasks').bind(bindObj);
|
|
125
174
|
// Deprecated: Use trainPredict instead.
|
|
126
175
|
this.train_predict = require('./trainPredict').bind(bindObj);
|
|
127
176
|
// Deprecated: Use undeployModel instead.
|
|
@@ -130,6 +179,8 @@ function MlApi(bindObj) {
|
|
|
130
179
|
this.unload_model = require('./unloadModel').bind(bindObj);
|
|
131
180
|
// Deprecated: Use updateConnector instead.
|
|
132
181
|
this.update_connector = require('./updateConnector').bind(bindObj);
|
|
182
|
+
// Deprecated: Use updateController instead.
|
|
183
|
+
this.update_controller = require('./updateController').bind(bindObj);
|
|
133
184
|
// Deprecated: Use updateMemory instead.
|
|
134
185
|
this.update_memory = require('./updateMemory').bind(bindObj);
|
|
135
186
|
// 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,45 @@
|
|
|
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_ExecuteAlgorithm_Request extends Global.Params {
|
|
22
|
+
algorithm_name: 'anomaly_localization' | 'local_sample_calculator';
|
|
23
|
+
body?: Ml_ExecuteAlgorithm_RequestBody;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Ml_ExecuteAlgorithm_RequestBody = {
|
|
27
|
+
aggregations?: Ml_Common.Aggregation[];
|
|
28
|
+
attribute_field_names?: string[];
|
|
29
|
+
end_time?: number;
|
|
30
|
+
index_name?: string;
|
|
31
|
+
input_data?: number[];
|
|
32
|
+
metrics?: number[][];
|
|
33
|
+
min_time_interval?: number;
|
|
34
|
+
num_outputs?: number;
|
|
35
|
+
operation?: 'max' | 'min' | 'sum';
|
|
36
|
+
start_time?: number;
|
|
37
|
+
time_field_name?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface Ml_ExecuteAlgorithm_Response extends ApiResponse {
|
|
41
|
+
body: Ml_ExecuteAlgorithm_ResponseBody;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Ml_ExecuteAlgorithm_ResponseBody = Ml_Common.ExecuteAlgorithmResponse
|
|
45
|
+
|
|
@@ -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 algorithm.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.execute_algorithm}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.algorithm_name
|
|
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 executeAlgorithmFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.algorithm_name == null) return handleMissingParam('algorithm_name', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, algorithm_name, ...querystring } = params;
|
|
41
|
+
algorithm_name = parsePathParam(algorithm_name);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/_execute/' + algorithm_name;
|
|
44
|
+
const method = 'POST';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = executeAlgorithmFunc;
|