@opensearch-project/opensearch 3.6.0 → 3.9.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 +288 -0
- package/api/OpenSearchApi.js +202 -139
- package/api/_core/bulk.d.ts +2 -7
- package/api/_core/bulk.js +3 -3
- package/api/_core/bulkStream.d.ts +2 -7
- package/api/_core/bulkStream.js +2 -2
- package/api/_core/clearScroll.js +3 -3
- package/api/_core/count.js +3 -3
- package/api/_core/create.js +4 -4
- package/api/_core/createPit.d.ts +7 -4
- package/api/_core/createPit.js +8 -4
- package/api/_core/delete.js +4 -4
- package/api/_core/deleteAllPits.js +1 -1
- package/api/_core/deleteByQuery.js +3 -3
- package/api/_core/deleteByQueryRethrottle.js +1 -1
- package/api/_core/deletePit.js +1 -1
- package/api/_core/deleteScript.js +1 -1
- package/api/_core/exists.js +4 -4
- package/api/_core/existsSource.js +4 -4
- package/api/_core/explain.d.ts +3 -1
- package/api/_core/explain.js +3 -3
- package/api/_core/fieldCaps.js +4 -4
- package/api/_core/get.d.ts +3 -1
- package/api/_core/get.js +5 -5
- package/api/_core/getAllPits.js +1 -1
- package/api/_core/getScript.js +1 -1
- package/api/_core/getScriptContext.js +1 -1
- package/api/_core/getScriptLanguages.js +1 -1
- package/api/_core/getSource.d.ts +1 -1
- package/api/_core/getSource.js +5 -5
- package/api/_core/index.js +4 -4
- package/api/_core/info.js +1 -1
- package/api/_core/mget.js +4 -4
- package/api/_core/msearch.d.ts +1 -0
- package/api/_core/msearch.js +3 -2
- package/api/_core/msearchTemplate.js +2 -2
- package/api/_core/mtermvectors.js +9 -9
- package/api/_core/ping.js +1 -1
- package/api/_core/putScript.js +1 -1
- package/api/_core/rankEval.js +2 -2
- package/api/_core/reindex.js +1 -1
- package/api/_core/reindexRethrottle.js +1 -1
- package/api/_core/renderSearchTemplate.js +1 -1
- package/api/_core/scriptsPainlessExecute.d.ts +1 -1
- package/api/_core/scriptsPainlessExecute.js +1 -1
- package/api/_core/scroll.d.ts +1 -1
- package/api/_core/scroll.js +1 -1
- package/api/_core/search.d.ts +6 -3
- package/api/_core/search.js +3 -3
- package/api/_core/searchShards.js +2 -2
- package/api/_core/searchTemplate.d.ts +4 -17
- package/api/_core/searchTemplate.js +5 -3
- package/api/_core/termvectors.js +9 -9
- package/api/_core/update.js +2 -2
- package/api/_core/updateByQuery.js +3 -3
- package/api/_core/updateByQueryRethrottle.js +1 -1
- package/api/_types/_common.aggregations.d.ts +232 -175
- package/api/_types/_common.analysis.d.ts +10 -3
- package/api/_types/_common.d.ts +67 -47
- package/api/_types/_common.mapping.d.ts +34 -2
- package/api/_types/_common.query_dsl.d.ts +48 -24
- package/api/_types/_core.bulk.d.ts +17 -1
- package/api/_types/_core.explain.d.ts +1 -1
- package/api/_types/_core.get.d.ts +7 -3
- package/api/_types/_core.msearch.d.ts +1 -1
- package/api/_types/_core.pit.d.ts +2 -2
- package/api/_types/_core.search.d.ts +69 -36
- package/api/_types/asynchronous_search._common.d.ts +3 -4
- package/api/_types/cat._common.d.ts +19 -0
- package/api/_types/cat.indices.d.ts +28 -0
- package/api/_types/cat.nodes.d.ts +13 -0
- package/api/_types/cat.shards.d.ts +13 -0
- package/api/_types/cat.thread_pool.d.ts +1 -0
- package/api/_types/cluster.allocation_explain.d.ts +3 -0
- package/api/_types/cluster.decommission_awareness.d.ts +1 -3
- package/api/_types/cluster.pending_tasks.d.ts +2 -0
- package/api/_types/cluster.weighted_routing.d.ts +1 -8
- package/api/_types/flow_framework.common.d.ts +5 -2
- package/api/_types/geospatial._common.d.ts +9 -3
- package/api/_types/index.d.ts +18 -0
- package/api/_types/indices._common.d.ts +69 -16
- package/api/_types/indices.modify_data_stream.d.ts +33 -0
- package/api/_types/ingest._common.d.ts +37 -0
- package/api/_types/ingestion._common.d.ts +70 -0
- package/api/_types/insights._common.d.ts +8 -35
- package/api/_types/ism._common.d.ts +3 -3
- package/api/_types/knn._common.d.ts +45 -6
- package/api/_types/list._common.d.ts +19 -0
- package/api/_types/ltr._common.d.ts +11 -4
- package/api/_types/ml._common.d.ts +209 -168
- package/api/_types/neural._common.d.ts +146 -11
- package/api/_types/nodes.info.d.ts +8 -2
- package/api/_types/nodes.stats.d.ts +50 -2
- package/api/_types/observability._common.d.ts +0 -16
- package/api/_types/ppl._common.d.ts +19 -0
- package/api/_types/query._common.d.ts +0 -20
- package/api/_types/replication._common.d.ts +4 -1
- package/api/_types/rollups._common.d.ts +2 -0
- package/api/_types/search_pipeline._common.d.ts +33 -0
- package/api/_types/search_relevance._common.d.ts +132 -0
- package/api/_types/security._common.d.ts +25 -16
- package/api/_types/security_analytics.alerts.d.ts +59 -0
- package/api/_types/security_analytics.findings.d.ts +65 -0
- package/api/_types/sm._common.d.ts +3 -39
- package/api/_types/sql._common.d.ts +8 -0
- package/api/_types/transforms._common.d.ts +0 -23
- package/api/_types/ubi._common.d.ts +19 -0
- package/api/_types/wlm._common.d.ts +5 -3
- package/api/asynchronousSearch/_api.js +12 -4
- package/api/asynchronousSearch/delete.js +1 -1
- package/api/asynchronousSearch/get.js +1 -1
- package/api/asynchronousSearch/search.js +1 -1
- package/api/asynchronousSearch/stats.js +1 -1
- package/api/cat/_api.js +58 -30
- package/api/cat/aliases.d.ts +2 -1
- package/api/cat/aliases.js +2 -2
- package/api/cat/allPitSegments.d.ts +2 -1
- package/api/cat/allPitSegments.js +2 -2
- package/api/cat/allocation.d.ts +2 -1
- package/api/cat/allocation.js +2 -2
- package/api/cat/clusterManager.d.ts +2 -1
- package/api/cat/clusterManager.js +2 -2
- package/api/cat/count.d.ts +2 -1
- package/api/cat/count.js +3 -3
- package/api/cat/fielddata.d.ts +2 -1
- package/api/cat/fielddata.js +2 -2
- package/api/cat/health.d.ts +2 -1
- package/api/cat/health.js +2 -2
- package/api/cat/help.js +1 -1
- package/api/cat/indices.d.ts +2 -1
- package/api/cat/indices.js +2 -2
- package/api/cat/master.d.ts +2 -1
- package/api/cat/master.js +2 -2
- package/api/cat/nodeattrs.d.ts +2 -1
- package/api/cat/nodeattrs.js +2 -2
- package/api/cat/nodes.d.ts +2 -1
- package/api/cat/nodes.js +3 -3
- package/api/cat/pendingTasks.d.ts +2 -1
- package/api/cat/pendingTasks.js +3 -3
- package/api/cat/pitSegments.d.ts +2 -1
- package/api/cat/pitSegments.js +2 -2
- package/api/cat/plugins.d.ts +2 -1
- package/api/cat/plugins.js +2 -2
- package/api/cat/recovery.d.ts +2 -1
- package/api/cat/recovery.js +3 -3
- package/api/cat/repositories.d.ts +2 -1
- package/api/cat/repositories.js +2 -2
- package/api/cat/segmentReplication.d.ts +2 -1
- package/api/cat/segmentReplication.js +3 -3
- package/api/cat/segments.d.ts +2 -1
- package/api/cat/segments.js +2 -2
- package/api/cat/shards.d.ts +2 -1
- package/api/cat/shards.js +3 -3
- package/api/cat/snapshots.d.ts +2 -1
- package/api/cat/snapshots.js +3 -3
- package/api/cat/tasks.d.ts +2 -1
- package/api/cat/tasks.js +3 -3
- package/api/cat/templates.d.ts +2 -1
- package/api/cat/templates.js +2 -2
- package/api/cat/threadPool.d.ts +2 -1
- package/api/cat/threadPool.js +2 -2
- package/api/cluster/_api.js +63 -38
- package/api/cluster/allocationExplain.js +1 -1
- package/api/cluster/deleteComponentTemplate.js +2 -2
- package/api/cluster/deleteDecommissionAwareness.js +1 -1
- package/api/cluster/deleteVotingConfigExclusions.js +1 -1
- package/api/cluster/deleteWeightedRouting.d.ts +5 -2
- package/api/cluster/deleteWeightedRouting.js +1 -1
- package/api/cluster/existsComponentTemplate.js +2 -2
- package/api/cluster/getComponentTemplate.js +2 -2
- package/api/cluster/getDecommissionAwareness.d.ts +1 -1
- package/api/cluster/getDecommissionAwareness.js +1 -1
- package/api/cluster/getSettings.js +2 -2
- package/api/cluster/getWeightedRouting.d.ts +3 -1
- package/api/cluster/getWeightedRouting.js +1 -1
- package/api/cluster/health.js +3 -3
- package/api/cluster/pendingTasks.js +2 -2
- package/api/cluster/postVotingConfigExclusions.js +1 -1
- package/api/cluster/putComponentTemplate.js +3 -3
- package/api/cluster/putDecommissionAwareness.js +1 -1
- package/api/cluster/putSettings.js +2 -2
- package/api/cluster/putWeightedRouting.d.ts +5 -2
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/remoteInfo.js +1 -1
- package/api/cluster/reroute.js +2 -2
- package/api/cluster/state.js +3 -3
- package/api/cluster/stats.js +3 -3
- package/api/danglingIndices/_api.js +13 -6
- package/api/danglingIndices/deleteDanglingIndex.js +1 -1
- package/api/danglingIndices/importDanglingIndex.js +1 -1
- package/api/danglingIndices/listDanglingIndices.d.ts +2 -2
- package/api/danglingIndices/listDanglingIndices.js +1 -1
- package/api/flowFramework/_api.js +27 -13
- package/api/flowFramework/create.js +1 -1
- package/api/flowFramework/delete.js +1 -1
- package/api/flowFramework/deprovision.js +1 -1
- package/api/flowFramework/get.js +1 -1
- package/api/flowFramework/getStatus.js +1 -1
- package/api/flowFramework/getSteps.js +1 -1
- package/api/flowFramework/provision.js +1 -1
- package/api/flowFramework/search.js +1 -1
- package/api/flowFramework/searchState.js +1 -1
- package/api/flowFramework/update.js +1 -1
- package/api/geospatial/_api.js +25 -14
- package/api/geospatial/deleteIp2GeoDatasource.js +1 -1
- package/api/geospatial/getIp2GeoDatasource.js +1 -1
- package/api/geospatial/putIp2GeoDatasource.js +1 -1
- package/api/geospatial/putIp2GeoDatasourceSettings.js +1 -1
- package/api/http/_api.js +22 -9
- package/api/index.d.ts +132 -6
- package/api/indices/_api.js +134 -78
- package/api/indices/addBlock.js +1 -1
- package/api/indices/analyze.js +1 -1
- package/api/indices/clearCache.js +3 -3
- package/api/indices/clone.js +1 -1
- package/api/indices/close.js +2 -2
- package/api/indices/create.js +2 -2
- package/api/indices/createDataStream.js +1 -1
- package/api/indices/dataStreamsStats.js +2 -2
- package/api/indices/delete.js +2 -2
- package/api/indices/deleteAlias.js +3 -3
- package/api/indices/deleteDataStream.js +2 -2
- package/api/indices/deleteIndexTemplate.js +2 -2
- package/api/indices/deleteTemplate.js +1 -1
- package/api/indices/exists.js +2 -2
- package/api/indices/existsAlias.js +3 -3
- package/api/indices/existsIndexTemplate.js +2 -2
- package/api/indices/existsTemplate.js +1 -1
- package/api/indices/flush.js +2 -2
- package/api/indices/forcemerge.js +1 -1
- package/api/indices/get.js +2 -2
- package/api/indices/getAlias.js +3 -3
- package/api/indices/getDataStream.js +2 -2
- package/api/indices/getFieldMapping.js +3 -3
- package/api/indices/getIndexTemplate.js +2 -2
- package/api/indices/getMapping.js +2 -2
- package/api/indices/getSettings.js +3 -3
- package/api/indices/getTemplate.js +2 -2
- package/api/indices/getUpgrade.js +2 -2
- package/api/indices/modifyDataStream.d.ts +37 -0
- package/api/indices/modifyDataStream.js +50 -0
- package/api/indices/open.js +2 -2
- package/api/indices/putAlias.js +2 -2
- package/api/indices/putIndexTemplate.js +1 -1
- package/api/indices/putMapping.js +1 -1
- package/api/indices/putSettings.js +2 -2
- package/api/indices/putTemplate.js +1 -1
- package/api/indices/recovery.js +2 -2
- package/api/indices/refresh.js +2 -2
- package/api/indices/resolveIndex.js +1 -1
- package/api/indices/rollover.js +2 -2
- package/api/indices/segments.js +2 -2
- package/api/indices/shardStores.js +5 -5
- package/api/indices/shrink.js +1 -1
- package/api/indices/simulateIndexTemplate.js +1 -1
- package/api/indices/simulateTemplate.js +2 -2
- package/api/indices/split.js +1 -1
- package/api/indices/stats.js +5 -5
- package/api/indices/updateAliases.js +1 -1
- package/api/indices/upgrade.js +2 -2
- package/api/indices/validateQuery.js +2 -2
- package/api/ingest/_api.js +18 -9
- package/api/ingest/deletePipeline.js +1 -1
- package/api/ingest/getPipeline.js +1 -1
- package/api/ingest/processorGrok.js +1 -1
- package/api/ingest/putPipeline.js +1 -1
- package/api/ingest/simulate.js +1 -1
- package/api/ingestion/_api.js +37 -0
- package/api/ingestion/getState.d.ts +34 -0
- package/api/ingestion/getState.js +52 -0
- package/api/ingestion/pause.d.ts +33 -0
- package/api/ingestion/pause.js +51 -0
- package/api/ingestion/resume.d.ts +34 -0
- package/api/ingestion/resume.js +52 -0
- package/api/insights/_api.js +7 -2
- package/api/insights/topQueries.d.ts +1 -1
- package/api/ism/_api.js +40 -24
- package/api/ism/addPolicy.d.ts +1 -1
- package/api/ism/addPolicy.js +2 -2
- package/api/ism/changePolicy.d.ts +1 -1
- package/api/ism/changePolicy.js +2 -2
- package/api/ism/deletePolicy.js +1 -1
- package/api/ism/existsPolicy.js +1 -1
- package/api/ism/explainPolicy.d.ts +1 -1
- package/api/ism/explainPolicy.js +2 -2
- package/api/ism/getPolicies.js +1 -1
- package/api/ism/getPolicy.js +1 -1
- package/api/ism/putPolicies.js +1 -1
- package/api/ism/putPolicy.js +1 -1
- package/api/ism/refreshSearchAnalyzers.d.ts +1 -1
- package/api/ism/refreshSearchAnalyzers.js +2 -2
- package/api/ism/removePolicy.d.ts +1 -1
- package/api/ism/removePolicy.js +2 -2
- package/api/ism/retryIndex.d.ts +1 -1
- package/api/ism/retryIndex.js +2 -2
- package/api/knn/_api.js +20 -10
- package/api/knn/deleteModel.js +1 -1
- package/api/knn/getModel.js +1 -1
- package/api/knn/searchModels.d.ts +1 -1
- package/api/knn/searchModels.js +5 -5
- package/api/knn/stats.d.ts +1 -1
- package/api/knn/stats.js +3 -3
- package/api/knn/trainModel.js +1 -1
- package/api/knn/warmup.js +2 -2
- package/api/list/_api.js +10 -3
- package/api/list/help.js +1 -1
- package/api/list/indices.d.ts +3 -2
- package/api/list/indices.js +5 -5
- package/api/list/shards.d.ts +3 -2
- package/api/list/shards.js +4 -4
- package/api/ltr/_api.js +98 -17
- package/api/ltr/addFeaturesToSet.d.ts +37 -0
- package/api/ltr/addFeaturesToSet.js +55 -0
- package/api/ltr/addFeaturesToSetByQuery.d.ts +35 -0
- package/api/ltr/addFeaturesToSetByQuery.js +57 -0
- package/api/ltr/createFeature.d.ts +35 -0
- package/api/ltr/createFeature.js +53 -0
- package/api/ltr/createFeatureset.d.ts +35 -0
- package/api/ltr/createFeatureset.js +53 -0
- package/api/ltr/createModel.d.ts +35 -0
- package/api/ltr/createModel.js +53 -0
- package/api/ltr/createModelFromSet.d.ts +35 -0
- package/api/ltr/createModelFromSet.js +53 -0
- package/api/ltr/deleteFeature.d.ts +31 -0
- package/api/ltr/deleteFeature.js +51 -0
- package/api/ltr/deleteFeatureset.d.ts +31 -0
- package/api/ltr/deleteFeatureset.js +51 -0
- package/api/ltr/deleteModel.d.ts +31 -0
- package/api/ltr/deleteModel.js +51 -0
- package/api/ltr/getFeature.d.ts +30 -0
- package/api/ltr/getFeature.js +51 -0
- package/api/ltr/getFeatureset.d.ts +30 -0
- package/api/ltr/getFeatureset.js +51 -0
- package/api/ltr/getModel.d.ts +30 -0
- package/api/ltr/getModel.js +51 -0
- package/api/ltr/searchFeatures.d.ts +33 -0
- package/api/ltr/searchFeatures.js +51 -0
- package/api/ltr/searchFeaturesets.d.ts +33 -0
- package/api/ltr/searchFeaturesets.js +51 -0
- package/api/ltr/searchModels.d.ts +33 -0
- package/api/ltr/searchModels.js +51 -0
- package/api/ltr/stats.d.ts +1 -1
- package/api/ltr/stats.js +2 -2
- package/api/ltr/updateFeature.d.ts +35 -0
- package/api/ltr/updateFeature.js +53 -0
- package/api/ltr/updateFeatureset.d.ts +35 -0
- package/api/ltr/updateFeatureset.js +53 -0
- package/api/ml/_api.js +239 -116
- package/api/ml/addAgenticMemory.d.ts +45 -0
- package/api/ml/addAgenticMemory.js +50 -0
- package/api/ml/createConnector.d.ts +1 -1
- package/api/ml/createMemoryContainer.d.ts +40 -0
- package/api/ml/createMemoryContainer.js +47 -0
- package/api/ml/createMemoryContainerSession.d.ts +41 -0
- package/api/ml/createMemoryContainerSession.js +50 -0
- package/api/ml/createModelMeta.d.ts +1 -0
- package/api/ml/deleteAgenticMemory.d.ts +33 -0
- package/api/ml/deleteAgenticMemory.js +55 -0
- package/api/ml/deleteAgenticMemoryQuery.d.ts +37 -0
- package/api/ml/deleteAgenticMemoryQuery.js +53 -0
- package/api/ml/deleteMemoryContainer.d.ts +33 -0
- package/api/ml/deleteMemoryContainer.js +51 -0
- package/api/ml/executeAgentStream.d.ts +35 -0
- package/api/ml/executeAgentStream.js +50 -0
- package/api/ml/executeAlgorithm.d.ts +2 -2
- package/api/ml/executeAlgorithm.js +1 -1
- package/api/ml/executeTool.d.ts +35 -0
- package/api/ml/executeTool.js +50 -0
- package/api/ml/getAgenticMemory.d.ts +32 -0
- package/api/ml/getAgenticMemory.js +55 -0
- package/api/ml/getMemoryContainer.d.ts +30 -0
- package/api/ml/getMemoryContainer.js +49 -0
- package/api/ml/getStats.d.ts +1 -1
- package/api/ml/getTool.d.ts +1 -1
- package/api/ml/loadModel.d.ts +2 -1
- package/api/ml/predictModel.d.ts +6 -1
- package/api/ml/predictModelStream.d.ts +37 -0
- package/api/ml/predictModelStream.js +50 -0
- package/api/ml/registerModel.d.ts +3 -0
- package/api/ml/registerModelGroup.d.ts +1 -1
- package/api/ml/registerModelMeta.d.ts +1 -0
- package/api/ml/searchAgenticMemory.d.ts +40 -0
- package/api/ml/searchAgenticMemory.js +53 -0
- package/api/ml/searchAgents.d.ts +4 -2
- package/api/ml/searchConnectors.d.ts +4 -2
- package/api/ml/searchMemory.d.ts +4 -2
- package/api/ml/searchMemoryContainer.d.ts +38 -0
- package/api/ml/searchMemoryContainer.js +47 -0
- package/api/ml/searchMessage.d.ts +4 -2
- package/api/ml/searchModelGroup.d.ts +4 -2
- package/api/ml/searchModels.d.ts +4 -2
- package/api/ml/searchTasks.d.ts +4 -2
- package/api/ml/updateAgenticMemory.d.ts +46 -0
- package/api/ml/updateAgenticMemory.js +56 -0
- package/api/ml/updateConnector.d.ts +2 -2
- package/api/ml/updateMemoryContainer.d.ts +38 -0
- package/api/ml/updateMemoryContainer.js +50 -0
- package/api/neural/_api.js +6 -1
- package/api/neural/stats.d.ts +4 -1
- package/api/neural/stats.js +5 -2
- package/api/nodes/_api.js +16 -7
- package/api/nodes/hotThreads.js +1 -1
- package/api/nodes/info.js +1 -1
- package/api/nodes/reloadSecureSettings.js +1 -1
- package/api/nodes/stats.js +1 -1
- package/api/nodes/usage.js +1 -1
- package/api/notifications/_api.js +31 -18
- package/api/notifications/createConfig.js +1 -1
- package/api/notifications/deleteConfig.js +1 -1
- package/api/notifications/deleteConfigs.js +1 -1
- package/api/notifications/getConfigs.js +1 -1
- package/api/notifications/listChannels.js +1 -1
- package/api/notifications/listFeatures.js +1 -1
- package/api/notifications/sendTest.js +1 -1
- package/api/notifications/updateConfig.js +1 -1
- package/api/observability/_api.js +25 -14
- package/api/ppl/_api.js +14 -6
- package/api/ppl/explain.d.ts +2 -1
- package/api/ppl/explain.js +2 -2
- package/api/ppl/getStats.d.ts +2 -1
- package/api/ppl/getStats.js +2 -2
- package/api/ppl/postStats.d.ts +2 -1
- package/api/ppl/postStats.js +2 -2
- package/api/ppl/query.d.ts +2 -1
- package/api/ppl/query.js +2 -2
- package/api/query/_api.js +19 -10
- package/api/remoteStore/_api.js +6 -1
- package/api/remoteStore/restore.js +1 -1
- package/api/replication/_api.js +32 -17
- package/api/replication/autofollowStats.js +1 -1
- package/api/replication/createReplicationRule.js +1 -1
- package/api/replication/deleteReplicationRule.js +1 -1
- package/api/replication/followerStats.js +1 -1
- package/api/replication/leaderStats.js +1 -1
- package/api/replication/pause.js +1 -1
- package/api/replication/resume.js +1 -1
- package/api/replication/start.js +1 -1
- package/api/replication/status.js +1 -1
- package/api/replication/stop.js +1 -1
- package/api/replication/updateSettings.js +1 -1
- package/api/rollups/_api.js +16 -6
- package/api/rollups/delete.js +1 -1
- package/api/rollups/explain.js +1 -1
- package/api/rollups/get.js +1 -1
- package/api/rollups/put.js +1 -1
- package/api/rollups/start.js +1 -1
- package/api/rollups/stop.js +1 -1
- package/api/searchPipeline/_api.js +10 -3
- package/api/searchPipeline/put.js +1 -1
- package/api/searchRelevance/_api.js +117 -0
- package/api/searchRelevance/deleteExperiments.d.ts +30 -0
- package/api/searchRelevance/deleteExperiments.js +49 -0
- package/api/searchRelevance/deleteJudgments.d.ts +30 -0
- package/api/searchRelevance/deleteJudgments.js +49 -0
- package/api/searchRelevance/deleteQuerySets.d.ts +30 -0
- package/api/searchRelevance/deleteQuerySets.js +49 -0
- package/api/searchRelevance/deleteScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/deleteScheduledExperiments.js +49 -0
- package/api/searchRelevance/deleteSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/deleteSearchConfigurations.js +49 -0
- package/api/searchRelevance/experimentsSearch.d.ts +31 -0
- package/api/searchRelevance/experimentsSearch.js +47 -0
- package/api/searchRelevance/getExperiments.d.ts +30 -0
- package/api/searchRelevance/getExperiments.js +48 -0
- package/api/searchRelevance/getJudgments.d.ts +30 -0
- package/api/searchRelevance/getJudgments.js +48 -0
- package/api/searchRelevance/getNodeStats.d.ts +42 -0
- package/api/searchRelevance/getNodeStats.js +56 -0
- package/api/searchRelevance/getQuerySets.d.ts +30 -0
- package/api/searchRelevance/getQuerySets.js +48 -0
- package/api/searchRelevance/getScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/getScheduledExperiments.js +48 -0
- package/api/searchRelevance/getSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/getSearchConfigurations.js +48 -0
- package/api/searchRelevance/getStats.d.ts +41 -0
- package/api/searchRelevance/getStats.js +53 -0
- package/api/searchRelevance/judgmentsSearch.d.ts +31 -0
- package/api/searchRelevance/judgmentsSearch.js +47 -0
- package/api/searchRelevance/postQuerySets.d.ts +30 -0
- package/api/searchRelevance/postQuerySets.js +47 -0
- package/api/searchRelevance/postScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/postScheduledExperiments.js +47 -0
- package/api/searchRelevance/putExperiments.d.ts +32 -0
- package/api/searchRelevance/putExperiments.js +47 -0
- package/api/searchRelevance/putJudgments.d.ts +32 -0
- package/api/searchRelevance/putJudgments.js +47 -0
- package/api/searchRelevance/putQuerySets.d.ts +30 -0
- package/api/searchRelevance/putQuerySets.js +47 -0
- package/api/searchRelevance/putSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/putSearchConfigurations.js +47 -0
- package/api/searchRelevance/querySetsSearch.d.ts +31 -0
- package/api/searchRelevance/querySetsSearch.js +47 -0
- package/api/searchRelevance/searchConfigurationsSearch.d.ts +31 -0
- package/api/searchRelevance/searchConfigurationsSearch.js +47 -0
- package/api/security/_api.js +227 -147
- package/api/security/changePassword.js +1 -1
- package/api/security/configUpgradeCheck.js +1 -1
- package/api/security/configUpgradePerform.js +1 -1
- package/api/security/createActionGroup.js +1 -1
- package/api/security/createAllowlist.js +1 -1
- package/api/security/createRole.js +1 -1
- package/api/security/createRoleMapping.js +1 -1
- package/api/security/createTenant.js +1 -1
- package/api/security/createUpdateTenancyConfig.js +1 -1
- package/api/security/createUser.js +1 -1
- package/api/security/deleteActionGroup.js +1 -1
- package/api/security/deleteDistinguishedName.js +1 -1
- package/api/security/deleteRole.js +1 -1
- package/api/security/deleteRoleMapping.js +1 -1
- package/api/security/deleteTenant.js +1 -1
- package/api/security/deleteUser.js +1 -1
- package/api/security/flushCache.js +1 -1
- package/api/security/generateOboToken.js +1 -1
- package/api/security/getAccountDetails.js +1 -1
- package/api/security/getActionGroup.js +1 -1
- package/api/security/getActionGroups.js +1 -1
- package/api/security/getAllowlist.js +1 -1
- package/api/security/getAuditConfiguration.js +1 -1
- package/api/security/getCertificates.js +1 -1
- package/api/security/getConfiguration.js +1 -1
- package/api/security/getDistinguishedName.js +1 -1
- package/api/security/getDistinguishedNames.js +1 -1
- package/api/security/getRole.js +1 -1
- package/api/security/getRoleMapping.js +1 -1
- package/api/security/getRoleMappings.js +1 -1
- package/api/security/getRoles.js +1 -1
- package/api/security/getSslinfo.d.ts +2 -1
- package/api/security/getSslinfo.js +1 -1
- package/api/security/getTenancyConfig.js +1 -1
- package/api/security/getTenant.js +1 -1
- package/api/security/getTenants.js +1 -1
- package/api/security/getUser.js +1 -1
- package/api/security/getUsers.js +1 -1
- package/api/security/health.js +1 -1
- package/api/security/patchActionGroup.js +1 -1
- package/api/security/patchActionGroups.js +1 -1
- package/api/security/patchAllowlist.js +1 -1
- package/api/security/patchAuditConfiguration.js +1 -1
- package/api/security/patchConfiguration.js +1 -1
- package/api/security/patchDistinguishedName.d.ts +3 -1
- package/api/security/patchDistinguishedNames.js +1 -1
- package/api/security/patchRole.js +1 -1
- package/api/security/patchRoleMapping.js +1 -1
- package/api/security/patchRoleMappings.js +1 -1
- package/api/security/patchRoles.js +1 -1
- package/api/security/patchTenant.js +1 -1
- package/api/security/patchTenants.js +1 -1
- package/api/security/patchUser.js +1 -1
- package/api/security/patchUsers.js +1 -1
- package/api/security/reloadHttpCertificates.js +1 -1
- package/api/security/reloadTransportCertificates.js +1 -1
- package/api/security/updateAuditConfiguration.js +1 -1
- package/api/security/updateConfiguration.js +1 -1
- package/api/security/updateDistinguishedName.js +1 -1
- package/api/securityAnalytics/_api.js +41 -0
- package/api/securityAnalytics/getAlerts.d.ts +42 -0
- package/api/securityAnalytics/getAlerts.js +58 -0
- package/api/securityAnalytics/getFindings.d.ts +43 -0
- package/api/securityAnalytics/getFindings.js +59 -0
- package/api/securityAnalytics/searchFindingCorrelations.d.ts +33 -0
- package/api/securityAnalytics/searchFindingCorrelations.js +52 -0
- package/api/sm/_api.js +28 -16
- package/api/sm/deletePolicy.d.ts +2 -2
- package/api/sm/getPolicies.d.ts +2 -1
- package/api/sm/getPolicies.js +1 -1
- package/api/snapshot/_api.js +31 -16
- package/api/snapshot/cleanupRepository.js +2 -2
- package/api/snapshot/clone.js +2 -2
- package/api/snapshot/create.js +2 -2
- package/api/snapshot/createRepository.js +2 -2
- package/api/snapshot/delete.js +2 -2
- package/api/snapshot/deleteRepository.js +2 -2
- package/api/snapshot/get.js +3 -3
- package/api/snapshot/getRepository.js +2 -2
- package/api/snapshot/restore.d.ts +1 -0
- package/api/snapshot/restore.js +2 -2
- package/api/snapshot/status.js +2 -2
- package/api/snapshot/verifyRepository.js +2 -2
- package/api/sql/_api.js +18 -8
- package/api/sql/close.d.ts +1 -1
- package/api/sql/close.js +2 -2
- package/api/sql/explain.d.ts +1 -1
- package/api/sql/explain.js +2 -2
- package/api/sql/getStats.d.ts +2 -1
- package/api/sql/getStats.js +2 -2
- package/api/sql/postStats.d.ts +1 -1
- package/api/sql/postStats.js +2 -2
- package/api/sql/query.d.ts +1 -1
- package/api/sql/query.js +2 -2
- package/api/sql/settings.d.ts +1 -1
- package/api/sql/settings.js +2 -2
- package/api/tasks/_api.js +12 -3
- package/api/tasks/cancel.js +1 -1
- package/api/tasks/delete.d.ts +30 -0
- package/api/tasks/delete.js +49 -0
- package/api/tasks/get.js +1 -1
- package/api/tasks/list.js +1 -1
- package/api/transforms/_api.js +20 -8
- package/api/transforms/delete.d.ts +2 -2
- package/api/transforms/delete.js +1 -1
- package/api/transforms/explain.js +1 -1
- package/api/transforms/get.js +1 -1
- package/api/transforms/preview.js +1 -1
- package/api/transforms/put.js +1 -1
- package/api/transforms/search.js +1 -1
- package/api/transforms/start.js +1 -1
- package/api/transforms/stop.js +1 -1
- package/api/ubi/_api.js +31 -0
- package/api/ubi/initialize.d.ts +27 -0
- package/api/ubi/initialize.js +45 -0
- package/api/wlm/_api.js +16 -8
- package/lib/Connection.d.ts +1 -2
- package/lib/Connection.js +3 -3
- package/lib/Helpers.js +8 -8
- package/lib/ProxyAgent.js +125 -0
- package/lib/aws/shared.js +1 -1
- package/package.json +8 -3
package/api/ppl/query.d.ts
CHANGED
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
18
|
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ppl_Common from '../_types/ppl._common'
|
|
19
20
|
import * as Sql_Common from '../_types/sql._common'
|
|
20
21
|
|
|
21
22
|
export interface Ppl_Query_Request extends Global.Params {
|
|
22
23
|
body: Sql_Common.Query;
|
|
23
|
-
format?:
|
|
24
|
+
format?: Ppl_Common.ResponseFormat;
|
|
24
25
|
sanitize?: boolean;
|
|
25
26
|
}
|
|
26
27
|
|
package/api/ppl/query.js
CHANGED
|
@@ -20,12 +20,12 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Executes a PPL query against OpenSearch indexes.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/search-plugins/sql/sql-ppl-api/ - ppl.query}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ppl
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.format] - Specifies the response format (JSON OR YAML).
|
|
28
|
+
* @param {string} [params.format=jdbc] - Specifies the response format (JSON OR YAML).
|
|
29
29
|
* @param {boolean} [params.sanitize=true] - Whether to sanitize special characters in the results.
|
|
30
30
|
* @param {object} params.body - Contains the PPL query to execute.
|
|
31
31
|
*
|
package/api/query/_api.js
CHANGED
|
@@ -18,23 +18,32 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Query */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const datasourceDeleteFn = require('./datasourceDelete');
|
|
25
|
+
const datasourceRetrieveFn = require('./datasourceRetrieve');
|
|
26
|
+
const datasourcesCreateFn = require('./datasourcesCreate');
|
|
27
|
+
const datasourcesListFn = require('./datasourcesList');
|
|
28
|
+
const datasourcesUpdateFn = require('./datasourcesUpdate');
|
|
29
|
+
|
|
21
30
|
function QueryApi(bindObj) {
|
|
22
|
-
this.datasourceDelete =
|
|
23
|
-
this.datasourceRetrieve =
|
|
24
|
-
this.datasourcesCreate =
|
|
25
|
-
this.datasourcesList =
|
|
26
|
-
this.datasourcesUpdate =
|
|
31
|
+
this.datasourceDelete = datasourceDeleteFn.bind(bindObj);
|
|
32
|
+
this.datasourceRetrieve = datasourceRetrieveFn.bind(bindObj);
|
|
33
|
+
this.datasourcesCreate = datasourcesCreateFn.bind(bindObj);
|
|
34
|
+
this.datasourcesList = datasourcesListFn.bind(bindObj);
|
|
35
|
+
this.datasourcesUpdate = datasourcesUpdateFn.bind(bindObj);
|
|
27
36
|
|
|
28
37
|
// Deprecated: Use datasourceDelete instead.
|
|
29
|
-
this.datasource_delete =
|
|
38
|
+
this.datasource_delete = datasourceDeleteFn.bind(bindObj);
|
|
30
39
|
// Deprecated: Use datasourceRetrieve instead.
|
|
31
|
-
this.datasource_retrieve =
|
|
40
|
+
this.datasource_retrieve = datasourceRetrieveFn.bind(bindObj);
|
|
32
41
|
// Deprecated: Use datasourcesCreate instead.
|
|
33
|
-
this.datasources_create =
|
|
42
|
+
this.datasources_create = datasourcesCreateFn.bind(bindObj);
|
|
34
43
|
// Deprecated: Use datasourcesList instead.
|
|
35
|
-
this.datasources_list =
|
|
44
|
+
this.datasources_list = datasourcesListFn.bind(bindObj);
|
|
36
45
|
// Deprecated: Use datasourcesUpdate instead.
|
|
37
|
-
this.datasources_update =
|
|
46
|
+
this.datasources_update = datasourcesUpdateFn.bind(bindObj);
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
module.exports = QueryApi;
|
package/api/remoteStore/_api.js
CHANGED
|
@@ -18,8 +18,13 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Remote-Store */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const restoreFn = require('./restore');
|
|
25
|
+
|
|
21
26
|
function RemoteStoreApi(bindObj) {
|
|
22
|
-
this.restore =
|
|
27
|
+
this.restore = restoreFn.bind(bindObj);
|
|
23
28
|
|
|
24
29
|
}
|
|
25
30
|
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Restores from remote store.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/availability-and-recovery/remote-store/index/#restoring-from-a-backup - remote_store.restore}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Remote-Store
|
|
26
26
|
*
|
package/api/replication/_api.js
CHANGED
|
@@ -18,31 +18,46 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Replication */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const autofollowStatsFn = require('./autofollowStats');
|
|
25
|
+
const createReplicationRuleFn = require('./createReplicationRule');
|
|
26
|
+
const deleteReplicationRuleFn = require('./deleteReplicationRule');
|
|
27
|
+
const followerStatsFn = require('./followerStats');
|
|
28
|
+
const leaderStatsFn = require('./leaderStats');
|
|
29
|
+
const pauseFn = require('./pause');
|
|
30
|
+
const resumeFn = require('./resume');
|
|
31
|
+
const startFn = require('./start');
|
|
32
|
+
const statusFn = require('./status');
|
|
33
|
+
const stopFn = require('./stop');
|
|
34
|
+
const updateSettingsFn = require('./updateSettings');
|
|
35
|
+
|
|
21
36
|
function ReplicationApi(bindObj) {
|
|
22
|
-
this.autofollowStats =
|
|
23
|
-
this.createReplicationRule =
|
|
24
|
-
this.deleteReplicationRule =
|
|
25
|
-
this.followerStats =
|
|
26
|
-
this.leaderStats =
|
|
27
|
-
this.pause =
|
|
28
|
-
this.resume =
|
|
29
|
-
this.start =
|
|
30
|
-
this.status =
|
|
31
|
-
this.stop =
|
|
32
|
-
this.updateSettings =
|
|
37
|
+
this.autofollowStats = autofollowStatsFn.bind(bindObj);
|
|
38
|
+
this.createReplicationRule = createReplicationRuleFn.bind(bindObj);
|
|
39
|
+
this.deleteReplicationRule = deleteReplicationRuleFn.bind(bindObj);
|
|
40
|
+
this.followerStats = followerStatsFn.bind(bindObj);
|
|
41
|
+
this.leaderStats = leaderStatsFn.bind(bindObj);
|
|
42
|
+
this.pause = pauseFn.bind(bindObj);
|
|
43
|
+
this.resume = resumeFn.bind(bindObj);
|
|
44
|
+
this.start = startFn.bind(bindObj);
|
|
45
|
+
this.status = statusFn.bind(bindObj);
|
|
46
|
+
this.stop = stopFn.bind(bindObj);
|
|
47
|
+
this.updateSettings = updateSettingsFn.bind(bindObj);
|
|
33
48
|
|
|
34
49
|
// Deprecated: Use autofollowStats instead.
|
|
35
|
-
this.autofollow_stats =
|
|
50
|
+
this.autofollow_stats = autofollowStatsFn.bind(bindObj);
|
|
36
51
|
// Deprecated: Use createReplicationRule instead.
|
|
37
|
-
this.create_replication_rule =
|
|
52
|
+
this.create_replication_rule = createReplicationRuleFn.bind(bindObj);
|
|
38
53
|
// Deprecated: Use deleteReplicationRule instead.
|
|
39
|
-
this.delete_replication_rule =
|
|
54
|
+
this.delete_replication_rule = deleteReplicationRuleFn.bind(bindObj);
|
|
40
55
|
// Deprecated: Use followerStats instead.
|
|
41
|
-
this.follower_stats =
|
|
56
|
+
this.follower_stats = followerStatsFn.bind(bindObj);
|
|
42
57
|
// Deprecated: Use leaderStats instead.
|
|
43
|
-
this.leader_stats =
|
|
58
|
+
this.leader_stats = leaderStatsFn.bind(bindObj);
|
|
44
59
|
// Deprecated: Use updateSettings instead.
|
|
45
|
-
this.update_settings =
|
|
60
|
+
this.update_settings = updateSettingsFn.bind(bindObj);
|
|
46
61
|
}
|
|
47
62
|
|
|
48
63
|
module.exports = ReplicationApi;
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves information about any auto-follow activity and any replication rules configured on the specified cluster.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#get-auto-follow-stats - replication.autofollow_stats}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Automatically starts the replication on indexes matching a specified pattern.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#create-replication-rule - replication.create_replication_rule}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Deletes the specified replication rule.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#delete-replication-rule - replication.delete_replication_rule}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves information about any follower (syncing) indexes on a specified cluster.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#get-follower-cluster-stats - replication.follower_stats}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves information about any replicated leader indexes on a specified cluster.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#get-leader-cluster-stats - replication.leader_stats}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
package/api/replication/pause.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Pauses the replication of the leader index.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#pause-replication - replication.pause}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Resumes replication of the leader index.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#resume-replication - replication.resume}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
package/api/replication/start.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Initiates the replication of an index from the leader cluster to the follower cluster.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#start-replication - replication.start}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves the the status of an index replication.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#get-replication-status - replication.status}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
package/api/replication/stop.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Terminates the replication and converts the follower index to a standard index.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#stop-replication - replication.stop}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Updates any settings on the follower index.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/api/#update-settings - replication.update_settings}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Replication
|
|
26
26
|
*
|
package/api/rollups/_api.js
CHANGED
|
@@ -18,13 +18,23 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Rollups */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const deleteFn = require('./delete');
|
|
25
|
+
const explainFn = require('./explain');
|
|
26
|
+
const getFn = require('./get');
|
|
27
|
+
const putFn = require('./put');
|
|
28
|
+
const startFn = require('./start');
|
|
29
|
+
const stopFn = require('./stop');
|
|
30
|
+
|
|
21
31
|
function RollupsApi(bindObj) {
|
|
22
|
-
this.delete =
|
|
23
|
-
this.explain =
|
|
24
|
-
this.get =
|
|
25
|
-
this.put =
|
|
26
|
-
this.start =
|
|
27
|
-
this.stop =
|
|
32
|
+
this.delete = deleteFn.bind(bindObj);
|
|
33
|
+
this.explain = explainFn.bind(bindObj);
|
|
34
|
+
this.get = getFn.bind(bindObj);
|
|
35
|
+
this.put = putFn.bind(bindObj);
|
|
36
|
+
this.start = startFn.bind(bindObj);
|
|
37
|
+
this.stop = stopFn.bind(bindObj);
|
|
28
38
|
|
|
29
39
|
}
|
|
30
40
|
|
package/api/rollups/delete.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Deletes an index rollup job configuration.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/im-plugin/index-rollups/rollup-api/#delete-an-index-rollup-job - rollups.delete}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Rollups
|
|
26
26
|
*
|
package/api/rollups/explain.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves the execution status information for an index rollup job.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/im-plugin/index-rollups/rollup-api/#explain-an-index-rollup-job - rollups.explain}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Rollups
|
|
26
26
|
*
|
package/api/rollups/get.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves an index rollup job configuration by ID.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/im-plugin/index-rollups/rollup-api/#get-an-index-rollup-job - rollups.get}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Rollups
|
|
26
26
|
*
|
package/api/rollups/put.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Creates or updates an index rollup job configuration.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/im-plugin/index-rollups/rollup-api/#create-or-update-an-index-rollup-job - rollups.put}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Rollups
|
|
26
26
|
*
|
package/api/rollups/start.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Starts the execution of an index rollup job.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/im-plugin/index-rollups/rollup-api/#start-or-stop-an-index-rollup-job - rollups.start}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Rollups
|
|
26
26
|
*
|
package/api/rollups/stop.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Stops the execution of an index rollup job.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/im-plugin/index-rollups/rollup-api/#start-or-stop-an-index-rollup-job - rollups.stop}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Rollups
|
|
26
26
|
*
|
|
@@ -18,10 +18,17 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Search-Pipeline */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const deleteFn = require('./delete');
|
|
25
|
+
const getFn = require('./get');
|
|
26
|
+
const putFn = require('./put');
|
|
27
|
+
|
|
21
28
|
function SearchPipelineApi(bindObj) {
|
|
22
|
-
this.delete =
|
|
23
|
-
this.get =
|
|
24
|
-
this.put =
|
|
29
|
+
this.delete = deleteFn.bind(bindObj);
|
|
30
|
+
this.get = getFn.bind(bindObj);
|
|
31
|
+
this.put = putFn.bind(bindObj);
|
|
25
32
|
|
|
26
33
|
}
|
|
27
34
|
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Creates or replaces the specified search pipeline.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/search-plugins/search-pipelines/creating-search-pipeline/ - search_pipeline.put}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Search-Pipeline
|
|
26
26
|
*
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
/** @namespace API-Search-Relevance */
|
|
20
|
+
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const deleteExperimentsFn = require('./deleteExperiments');
|
|
25
|
+
const deleteJudgmentsFn = require('./deleteJudgments');
|
|
26
|
+
const deleteQuerySetsFn = require('./deleteQuerySets');
|
|
27
|
+
const deleteScheduledExperimentsFn = require('./deleteScheduledExperiments');
|
|
28
|
+
const deleteSearchConfigurationsFn = require('./deleteSearchConfigurations');
|
|
29
|
+
const experimentsSearchFn = require('./experimentsSearch');
|
|
30
|
+
const getExperimentsFn = require('./getExperiments');
|
|
31
|
+
const getJudgmentsFn = require('./getJudgments');
|
|
32
|
+
const getNodeStatsFn = require('./getNodeStats');
|
|
33
|
+
const getQuerySetsFn = require('./getQuerySets');
|
|
34
|
+
const getScheduledExperimentsFn = require('./getScheduledExperiments');
|
|
35
|
+
const getSearchConfigurationsFn = require('./getSearchConfigurations');
|
|
36
|
+
const getStatsFn = require('./getStats');
|
|
37
|
+
const judgmentsSearchFn = require('./judgmentsSearch');
|
|
38
|
+
const postQuerySetsFn = require('./postQuerySets');
|
|
39
|
+
const postScheduledExperimentsFn = require('./postScheduledExperiments');
|
|
40
|
+
const putExperimentsFn = require('./putExperiments');
|
|
41
|
+
const putJudgmentsFn = require('./putJudgments');
|
|
42
|
+
const putQuerySetsFn = require('./putQuerySets');
|
|
43
|
+
const putSearchConfigurationsFn = require('./putSearchConfigurations');
|
|
44
|
+
const querySetsSearchFn = require('./querySetsSearch');
|
|
45
|
+
const searchConfigurationsSearchFn = require('./searchConfigurationsSearch');
|
|
46
|
+
|
|
47
|
+
function SearchRelevanceApi(bindObj) {
|
|
48
|
+
this.deleteExperiments = deleteExperimentsFn.bind(bindObj);
|
|
49
|
+
this.deleteJudgments = deleteJudgmentsFn.bind(bindObj);
|
|
50
|
+
this.deleteQuerySets = deleteQuerySetsFn.bind(bindObj);
|
|
51
|
+
this.deleteScheduledExperiments = deleteScheduledExperimentsFn.bind(bindObj);
|
|
52
|
+
this.deleteSearchConfigurations = deleteSearchConfigurationsFn.bind(bindObj);
|
|
53
|
+
this.experimentsSearch = experimentsSearchFn.bind(bindObj);
|
|
54
|
+
this.getExperiments = getExperimentsFn.bind(bindObj);
|
|
55
|
+
this.getJudgments = getJudgmentsFn.bind(bindObj);
|
|
56
|
+
this.getNodeStats = getNodeStatsFn.bind(bindObj);
|
|
57
|
+
this.getQuerySets = getQuerySetsFn.bind(bindObj);
|
|
58
|
+
this.getScheduledExperiments = getScheduledExperimentsFn.bind(bindObj);
|
|
59
|
+
this.getSearchConfigurations = getSearchConfigurationsFn.bind(bindObj);
|
|
60
|
+
this.getStats = getStatsFn.bind(bindObj);
|
|
61
|
+
this.judgmentsSearch = judgmentsSearchFn.bind(bindObj);
|
|
62
|
+
this.postQuerySets = postQuerySetsFn.bind(bindObj);
|
|
63
|
+
this.postScheduledExperiments = postScheduledExperimentsFn.bind(bindObj);
|
|
64
|
+
this.putExperiments = putExperimentsFn.bind(bindObj);
|
|
65
|
+
this.putJudgments = putJudgmentsFn.bind(bindObj);
|
|
66
|
+
this.putQuerySets = putQuerySetsFn.bind(bindObj);
|
|
67
|
+
this.putSearchConfigurations = putSearchConfigurationsFn.bind(bindObj);
|
|
68
|
+
this.querySetsSearch = querySetsSearchFn.bind(bindObj);
|
|
69
|
+
this.searchConfigurationsSearch = searchConfigurationsSearchFn.bind(bindObj);
|
|
70
|
+
|
|
71
|
+
// Deprecated: Use deleteExperiments instead.
|
|
72
|
+
this.delete_experiments = deleteExperimentsFn.bind(bindObj);
|
|
73
|
+
// Deprecated: Use deleteJudgments instead.
|
|
74
|
+
this.delete_judgments = deleteJudgmentsFn.bind(bindObj);
|
|
75
|
+
// Deprecated: Use deleteQuerySets instead.
|
|
76
|
+
this.delete_query_sets = deleteQuerySetsFn.bind(bindObj);
|
|
77
|
+
// Deprecated: Use deleteScheduledExperiments instead.
|
|
78
|
+
this.delete_scheduled_experiments = deleteScheduledExperimentsFn.bind(bindObj);
|
|
79
|
+
// Deprecated: Use deleteSearchConfigurations instead.
|
|
80
|
+
this.delete_search_configurations = deleteSearchConfigurationsFn.bind(bindObj);
|
|
81
|
+
// Deprecated: Use experimentsSearch instead.
|
|
82
|
+
this.experiments_search = experimentsSearchFn.bind(bindObj);
|
|
83
|
+
// Deprecated: Use getExperiments instead.
|
|
84
|
+
this.get_experiments = getExperimentsFn.bind(bindObj);
|
|
85
|
+
// Deprecated: Use getJudgments instead.
|
|
86
|
+
this.get_judgments = getJudgmentsFn.bind(bindObj);
|
|
87
|
+
// Deprecated: Use getNodeStats instead.
|
|
88
|
+
this.get_node_stats = getNodeStatsFn.bind(bindObj);
|
|
89
|
+
// Deprecated: Use getQuerySets instead.
|
|
90
|
+
this.get_query_sets = getQuerySetsFn.bind(bindObj);
|
|
91
|
+
// Deprecated: Use getScheduledExperiments instead.
|
|
92
|
+
this.get_scheduled_experiments = getScheduledExperimentsFn.bind(bindObj);
|
|
93
|
+
// Deprecated: Use getSearchConfigurations instead.
|
|
94
|
+
this.get_search_configurations = getSearchConfigurationsFn.bind(bindObj);
|
|
95
|
+
// Deprecated: Use getStats instead.
|
|
96
|
+
this.get_stats = getStatsFn.bind(bindObj);
|
|
97
|
+
// Deprecated: Use judgmentsSearch instead.
|
|
98
|
+
this.judgments_search = judgmentsSearchFn.bind(bindObj);
|
|
99
|
+
// Deprecated: Use postQuerySets instead.
|
|
100
|
+
this.post_query_sets = postQuerySetsFn.bind(bindObj);
|
|
101
|
+
// Deprecated: Use postScheduledExperiments instead.
|
|
102
|
+
this.post_scheduled_experiments = postScheduledExperimentsFn.bind(bindObj);
|
|
103
|
+
// Deprecated: Use putExperiments instead.
|
|
104
|
+
this.put_experiments = putExperimentsFn.bind(bindObj);
|
|
105
|
+
// Deprecated: Use putJudgments instead.
|
|
106
|
+
this.put_judgments = putJudgmentsFn.bind(bindObj);
|
|
107
|
+
// Deprecated: Use putQuerySets instead.
|
|
108
|
+
this.put_query_sets = putQuerySetsFn.bind(bindObj);
|
|
109
|
+
// Deprecated: Use putSearchConfigurations instead.
|
|
110
|
+
this.put_search_configurations = putSearchConfigurationsFn.bind(bindObj);
|
|
111
|
+
// Deprecated: Use querySetsSearch instead.
|
|
112
|
+
this.query_sets_search = querySetsSearchFn.bind(bindObj);
|
|
113
|
+
// Deprecated: Use searchConfigurationsSearch instead.
|
|
114
|
+
this.search_configurations_search = searchConfigurationsSearchFn.bind(bindObj);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
module.exports = SearchRelevanceApi;
|
|
@@ -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 SearchRelevance_DeleteExperiments_Request extends Global.Params {
|
|
22
|
+
experiment_id: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SearchRelevance_DeleteExperiments_Response extends ApiResponse {
|
|
26
|
+
body: SearchRelevance_DeleteExperiments_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type SearchRelevance_DeleteExperiments_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 specified experiment.
|
|
23
|
+
* <br/> See Also: {@link undefined - search_relevance.delete_experiments}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Search-Relevance
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.experiment_id - The experiment 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 deleteExperimentsFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.experiment_id == null) return handleMissingParam('experiment_id', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, experiment_id, ...querystring } = params;
|
|
40
|
+
experiment_id = parsePathParam(experiment_id);
|
|
41
|
+
|
|
42
|
+
const path = '/_plugins/_search_relevance/experiments/' + experiment_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 = deleteExperimentsFunc;
|
|
@@ -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 SearchRelevance_DeleteJudgments_Request extends Global.Params {
|
|
22
|
+
judgment_id: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SearchRelevance_DeleteJudgments_Response extends ApiResponse {
|
|
26
|
+
body: SearchRelevance_DeleteJudgments_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type SearchRelevance_DeleteJudgments_ResponseBody = Common.WriteResponseBase
|
|
30
|
+
|