@opensearch-project/opensearch 3.5.1 → 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 +366 -0
- package/api/OpenSearchApi.js +202 -135
- package/api/_core/bulk.d.ts +3 -8
- 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 +4 -2
- 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 +7 -3
- package/api/_core/search.js +4 -3
- package/api/_core/searchShards.d.ts +5 -0
- package/api/_core/searchShards.js +3 -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 +288 -386
- package/api/_types/_common.analysis.d.ts +12 -5
- package/api/_types/_common.d.ts +80 -54
- package/api/_types/_common.mapping.d.ts +35 -3
- package/api/_types/_common.query_dsl.d.ts +54 -26
- package/api/_types/_core.bulk.d.ts +33 -9
- package/api/_types/_core.explain.d.ts +1 -7
- 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 +82 -33
- 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._common.d.ts +2 -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.stats.d.ts +3 -3
- 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 +153 -0
- package/api/_types/index.d.ts +22 -0
- package/api/_types/indices._common.d.ts +75 -19
- 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 +63 -2
- package/api/_types/ml._common.d.ts +218 -168
- package/api/_types/neural._common.d.ts +229 -0
- package/api/_types/nodes._common.d.ts +1 -1
- package/api/_types/nodes.info.d.ts +8 -2
- package/api/_types/nodes.stats.d.ts +51 -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 +52 -1
- package/api/_types/search_relevance._common.d.ts +132 -0
- package/api/_types/security._common.d.ts +31 -22
- 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 +3 -3
- 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.d.ts +2 -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 +7 -7
- package/api/flowFramework/delete.js +4 -4
- package/api/flowFramework/deprovision.js +4 -4
- package/api/flowFramework/get.js +3 -3
- package/api/flowFramework/getStatus.js +4 -4
- package/api/flowFramework/getSteps.js +3 -3
- package/api/flowFramework/provision.js +3 -3
- package/api/flowFramework/search.js +1 -1
- package/api/flowFramework/searchState.js +1 -1
- package/api/flowFramework/update.js +8 -8
- package/api/geospatial/_api.js +57 -0
- package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
- package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
- package/api/geospatial/geojsonUploadPost.d.ts +30 -0
- package/api/geospatial/geojsonUploadPost.js +49 -0
- package/api/geospatial/geojsonUploadPut.d.ts +30 -0
- package/api/geospatial/geojsonUploadPut.js +49 -0
- package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
- package/api/geospatial/getIp2GeoDatasource.js +48 -0
- package/api/geospatial/getUploadStats.d.ts +28 -0
- package/api/geospatial/getUploadStats.js +45 -0
- package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasource.js +53 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
- package/api/http/_api.js +22 -9
- package/api/index.d.ts +168 -10
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- package/api/ism/explainPolicy.d.ts +1 -1
- package/api/ism/explainPolicy.js +3 -3
- package/api/ism/getPolicies.js +2 -2
- package/api/ism/getPolicy.js +2 -2
- package/api/ism/putPolicies.js +2 -2
- package/api/ism/putPolicy.js +1 -1
- package/api/ism/refreshSearchAnalyzers.d.ts +1 -1
- package/api/ism/refreshSearchAnalyzers.js +3 -3
- 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 +3 -3
- 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 +106 -1
- 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/cacheStats.d.ts +28 -0
- package/api/ltr/cacheStats.js +45 -0
- package/api/ltr/clearCache.d.ts +30 -0
- package/api/ltr/clearCache.js +48 -0
- package/api/ltr/createDefaultStore.d.ts +28 -0
- package/api/ltr/createDefaultStore.js +45 -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/createStore.d.ts +30 -0
- package/api/ltr/createStore.js +49 -0
- package/api/ltr/deleteDefaultStore.d.ts +28 -0
- package/api/ltr/deleteDefaultStore.js +45 -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/deleteStore.d.ts +30 -0
- package/api/ltr/deleteStore.js +49 -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/getStore.d.ts +30 -0
- package/api/ltr/getStore.js +49 -0
- package/api/ltr/listStores.d.ts +28 -0
- package/api/ltr/listStores.js +45 -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 +31 -0
- package/api/neural/stats.d.ts +36 -0
- package/api/neural/stats.js +55 -0
- package/api/nodes/_api.js +16 -7
- package/api/nodes/hotThreads.js +7 -7
- package/api/nodes/info.js +4 -4
- package/api/nodes/reloadSecureSettings.js +2 -2
- package/api/nodes/stats.js +10 -10
- 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/observability/createObject.js +1 -1
- package/api/observability/deleteObject.js +1 -1
- package/api/observability/deleteObjects.js +2 -2
- package/api/observability/getObject.js +1 -1
- package/api/observability/updateObject.js +2 -2
- package/api/ppl/_api.js +14 -6
- package/api/ppl/explain.d.ts +2 -1
- package/api/ppl/explain.js +5 -5
- package/api/ppl/getStats.d.ts +2 -1
- package/api/ppl/getStats.js +4 -4
- package/api/ppl/postStats.d.ts +2 -1
- package/api/ppl/postStats.js +5 -5
- package/api/ppl/query.d.ts +2 -1
- package/api/ppl/query.js +5 -5
- package/api/query/_api.js +19 -10
- package/api/query/datasourceDelete.js +2 -2
- package/api/query/datasourceRetrieve.js +2 -2
- package/api/query/datasourcesCreate.js +2 -2
- package/api/query/datasourcesList.js +1 -1
- package/api/query/datasourcesUpdate.js +2 -2
- 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 +3 -3
- package/api/rollups/explain.js +3 -3
- package/api/rollups/get.js +3 -3
- package/api/rollups/put.js +6 -6
- package/api/rollups/start.js +3 -3
- package/api/rollups/stop.js +3 -3
- 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 +5 -5
- package/api/sql/explain.d.ts +1 -1
- package/api/sql/explain.js +5 -5
- package/api/sql/getStats.d.ts +2 -1
- package/api/sql/getStats.js +4 -4
- package/api/sql/postStats.d.ts +1 -1
- package/api/sql/postStats.js +5 -5
- package/api/sql/query.d.ts +1 -1
- package/api/sql/query.js +5 -5
- package/api/sql/settings.d.ts +1 -1
- package/api/sql/settings.js +4 -4
- 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 +5 -3
- package/lib/Helpers.js +8 -8
- package/lib/ProxyAgent.js +125 -0
- package/lib/aws/shared.js +4 -3
- package/package.json +9 -4
|
@@ -17,20 +17,41 @@
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
import * as Core_Search from './_core.search'
|
|
19
19
|
|
|
20
|
+
export type BulkResponse = {
|
|
21
|
+
errors: boolean;
|
|
22
|
+
ingest_took?: number;
|
|
23
|
+
items: Item[];
|
|
24
|
+
took: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
export type CreateOperation = WriteOperation
|
|
21
28
|
|
|
22
|
-
export type DeleteOperation = OperationBase
|
|
29
|
+
export type DeleteOperation = OperationBase & {
|
|
30
|
+
if_primary_term?: number;
|
|
31
|
+
if_seq_no?: Common.SequenceNumber;
|
|
32
|
+
version?: Common.VersionNumber;
|
|
33
|
+
version_type?: Common.VersionType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type IndexOperation = WriteOperation & {
|
|
37
|
+
if_primary_term?: number;
|
|
38
|
+
if_seq_no?: Common.SequenceNumber;
|
|
39
|
+
op_type?: Common.OpType;
|
|
40
|
+
version?: Common.VersionNumber;
|
|
41
|
+
version_type?: Common.VersionType;
|
|
42
|
+
}
|
|
23
43
|
|
|
24
|
-
export type
|
|
44
|
+
export type Item = {
|
|
45
|
+
create?: ResponseItem;
|
|
46
|
+
delete?: ResponseItem;
|
|
47
|
+
index?: ResponseItem;
|
|
48
|
+
update?: ResponseItem;
|
|
49
|
+
}
|
|
25
50
|
|
|
26
51
|
export type OperationBase = {
|
|
27
52
|
_id?: Common.Id;
|
|
28
53
|
_index?: Common.IndexName;
|
|
29
|
-
if_primary_term?: number;
|
|
30
|
-
if_seq_no?: Common.SequenceNumber;
|
|
31
54
|
routing?: Common.Routing;
|
|
32
|
-
version?: Common.VersionNumber;
|
|
33
|
-
version_type?: Common.VersionType;
|
|
34
55
|
}
|
|
35
56
|
|
|
36
57
|
export type OperationContainer = {
|
|
@@ -41,11 +62,11 @@ export type OperationContainer = {
|
|
|
41
62
|
}
|
|
42
63
|
|
|
43
64
|
export type ResponseItem = {
|
|
44
|
-
_id?:
|
|
65
|
+
_id?: string;
|
|
45
66
|
_index: string;
|
|
46
67
|
_primary_term?: number;
|
|
47
68
|
_seq_no?: Common.SequenceNumber;
|
|
48
|
-
_shards?: Common.
|
|
69
|
+
_shards?: Common.ShardInfo;
|
|
49
70
|
_type?: string;
|
|
50
71
|
_version?: Common.VersionNumber;
|
|
51
72
|
error?: Common.ErrorCause;
|
|
@@ -60,18 +81,21 @@ export type UpdateAction = {
|
|
|
60
81
|
detect_noop?: boolean;
|
|
61
82
|
doc?: Record<string, any>;
|
|
62
83
|
doc_as_upsert?: boolean;
|
|
84
|
+
if_primary_term?: number;
|
|
85
|
+
if_seq_no?: Common.SequenceNumber;
|
|
63
86
|
script?: Common.Script;
|
|
64
87
|
scripted_upsert?: boolean;
|
|
65
88
|
upsert?: Record<string, any>;
|
|
66
89
|
}
|
|
67
90
|
|
|
68
91
|
export type UpdateOperation = OperationBase & {
|
|
92
|
+
if_primary_term?: number;
|
|
93
|
+
if_seq_no?: Common.SequenceNumber;
|
|
69
94
|
require_alias?: boolean;
|
|
70
95
|
retry_on_conflict?: number;
|
|
71
96
|
}
|
|
72
97
|
|
|
73
98
|
export type WriteOperation = OperationBase & {
|
|
74
|
-
dynamic_templates?: Record<string, string>;
|
|
75
99
|
pipeline?: string;
|
|
76
100
|
require_alias?: boolean;
|
|
77
101
|
}
|
|
@@ -17,13 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
export type Explanation = {
|
|
19
19
|
description: string;
|
|
20
|
-
details
|
|
21
|
-
value: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type ExplanationDetail = {
|
|
25
|
-
description: string;
|
|
26
|
-
details?: ExplanationDetail[];
|
|
20
|
+
details?: Explanation[];
|
|
27
21
|
value: number;
|
|
28
22
|
}
|
|
29
23
|
|
|
@@ -16,16 +16,20 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
|
-
export type GetResult = {
|
|
19
|
+
export type GetResult = GetResultBase<any> & {
|
|
20
|
+
_source?: any;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type GetResultBase<TDocument = any> = {
|
|
20
24
|
_id: Common.Id;
|
|
21
25
|
_index: Common.IndexName;
|
|
22
26
|
_primary_term?: number;
|
|
23
27
|
_routing?: string;
|
|
24
28
|
_seq_no?: Common.SequenceNumber;
|
|
25
|
-
_source?:
|
|
29
|
+
_source?: TDocument;
|
|
26
30
|
_type?: Common.Type;
|
|
27
31
|
_version?: Common.VersionNumber;
|
|
28
|
-
fields?: Record<string,
|
|
32
|
+
fields?: Record<string, any>;
|
|
29
33
|
found: boolean;
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
import * as Common_Aggregations from './_common.aggregations'
|
|
19
|
-
import * as Common_Analysis from './_common.analysis'
|
|
20
19
|
import * as Common_QueryDsl from './_common.query_dsl'
|
|
21
20
|
import * as Core_Explain from './_core.explain'
|
|
22
21
|
|
|
@@ -104,9 +103,13 @@ export type CompletionContext = Context | {
|
|
|
104
103
|
prefix?: boolean;
|
|
105
104
|
}
|
|
106
105
|
|
|
107
|
-
export type CompletionSuggest = SuggestBase & {
|
|
108
|
-
options: CompletionSuggestOption
|
|
109
|
-
|
|
106
|
+
export type CompletionSuggest<TDocument = any> = SuggestBase & ({
|
|
107
|
+
options: (CompletionSuggestOption<TDocument> & {
|
|
108
|
+
_source?: TDocument;
|
|
109
|
+
}) | (CompletionSuggestOption<TDocument> & {
|
|
110
|
+
_source?: TDocument;
|
|
111
|
+
})[];
|
|
112
|
+
})
|
|
110
113
|
|
|
111
114
|
export type CompletionSuggester = SuggesterBase & {
|
|
112
115
|
contexts?: Record<string, CompletionContext[]>;
|
|
@@ -115,15 +118,15 @@ export type CompletionSuggester = SuggesterBase & {
|
|
|
115
118
|
skip_duplicates?: boolean;
|
|
116
119
|
}
|
|
117
120
|
|
|
118
|
-
export type CompletionSuggestOption = {
|
|
121
|
+
export type CompletionSuggestOption<TDocument = any> = {
|
|
119
122
|
_id?: string;
|
|
120
123
|
_index?: Common.IndexName;
|
|
121
124
|
_routing?: Common.Routing;
|
|
122
125
|
_score?: number;
|
|
123
|
-
_source?:
|
|
126
|
+
_source?: TDocument;
|
|
124
127
|
collate_match?: boolean;
|
|
125
128
|
contexts?: Record<string, Context[]>;
|
|
126
|
-
fields?: Record<string,
|
|
129
|
+
fields?: Record<string, any>;
|
|
127
130
|
score?: number;
|
|
128
131
|
text: string;
|
|
129
132
|
}
|
|
@@ -186,7 +189,7 @@ export type FieldSuggester = {
|
|
|
186
189
|
|
|
187
190
|
export type Highlight = HighlightBase & {
|
|
188
191
|
encoder?: HighlighterEncoder;
|
|
189
|
-
fields:
|
|
192
|
+
fields: HighlightFields;
|
|
190
193
|
}
|
|
191
194
|
|
|
192
195
|
export type HighlightBase = {
|
|
@@ -220,50 +223,60 @@ export type HighlighterFragmenter = 'simple' | 'span'
|
|
|
220
223
|
|
|
221
224
|
export type HighlighterOrder = 'score'
|
|
222
225
|
|
|
223
|
-
export type HighlighterTagsSchema = 'styled'
|
|
226
|
+
export type HighlighterTagsSchema = 'default' | 'styled'
|
|
224
227
|
|
|
225
228
|
export type HighlighterType = BuiltinHighlighterType | string
|
|
226
229
|
|
|
227
230
|
export type HighlightField = HighlightBase & {
|
|
228
|
-
analyzer?: Common_Analysis.Analyzer;
|
|
229
231
|
matched_fields?: Common.Fields;
|
|
230
232
|
}
|
|
231
233
|
|
|
232
|
-
export type
|
|
234
|
+
export type HighlightFields = Record<string, HighlightField> | Record<string, HighlightField>[]
|
|
235
|
+
|
|
236
|
+
export type Hit<TDocument = any> = {
|
|
233
237
|
_explanation?: Core_Explain.Explanation;
|
|
234
|
-
_id
|
|
238
|
+
_id?: Common.Id;
|
|
235
239
|
_ignored?: string[];
|
|
236
|
-
_index
|
|
240
|
+
_index?: Common.IndexName;
|
|
237
241
|
_nested?: NestedIdentity;
|
|
238
242
|
_node?: string;
|
|
239
243
|
_primary_term?: number;
|
|
240
244
|
_routing?: string;
|
|
241
|
-
_score?: undefined | number
|
|
245
|
+
_score?: undefined | number;
|
|
242
246
|
_seq_no?: Common.SequenceNumber;
|
|
243
247
|
_shard?: string;
|
|
244
|
-
_source?:
|
|
248
|
+
_source?: TDocument;
|
|
245
249
|
_type?: Common.Type;
|
|
246
250
|
_version?: Common.VersionNumber;
|
|
247
251
|
fields?: Record<string, any>;
|
|
248
252
|
highlight?: Record<string, string[]>;
|
|
249
253
|
ignored_field_values?: Record<string, string[]>;
|
|
250
254
|
inner_hits?: Record<string, InnerHitsResult>;
|
|
251
|
-
matched_queries?: string[]
|
|
255
|
+
matched_queries?: string[] | Record<string, number>;
|
|
252
256
|
sort?: Common.SortResults;
|
|
257
|
+
[key: string]: any | Record<string, any>;
|
|
253
258
|
}
|
|
254
259
|
|
|
255
|
-
export type HitsMetadata = {
|
|
256
|
-
hits: Hit
|
|
257
|
-
|
|
260
|
+
export type HitsMetadata<TDocument = any> = {
|
|
261
|
+
hits: (Hit<TDocument> & {
|
|
262
|
+
_source?: TDocument;
|
|
263
|
+
})[];
|
|
264
|
+
max_score: undefined | number;
|
|
258
265
|
total?: TotalHits | number;
|
|
259
266
|
}
|
|
260
267
|
|
|
268
|
+
export type HitsMetadataJsonValue = HitsMetadata<any> & {
|
|
269
|
+
hits?: {
|
|
270
|
+
_source?: any;
|
|
271
|
+
}[];
|
|
272
|
+
}
|
|
273
|
+
|
|
261
274
|
export type InnerHits = {
|
|
262
275
|
_source?: SourceConfig;
|
|
263
276
|
collapse?: FieldCollapse;
|
|
264
277
|
docvalue_fields?: Common_QueryDsl.FieldAndFormat[];
|
|
265
278
|
explain?: boolean;
|
|
266
|
-
fields?:
|
|
279
|
+
fields?: Common_QueryDsl.FieldAndFormat[];
|
|
267
280
|
from?: number;
|
|
268
281
|
highlight?: Highlight;
|
|
269
282
|
ignore_unmapped?: boolean;
|
|
@@ -345,6 +358,16 @@ export type PointInTimeReference = {
|
|
|
345
358
|
keep_alive?: Common.Duration;
|
|
346
359
|
}
|
|
347
360
|
|
|
361
|
+
export type ProcessorExecutionDetail = {
|
|
362
|
+
duration_millis?: number;
|
|
363
|
+
error?: string;
|
|
364
|
+
input_data?: any;
|
|
365
|
+
output_data?: any;
|
|
366
|
+
processor_name?: string;
|
|
367
|
+
status?: string;
|
|
368
|
+
tag?: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
348
371
|
export type Profile = {
|
|
349
372
|
shards: ShardProfile[];
|
|
350
373
|
}
|
|
@@ -390,31 +413,51 @@ export type RescoreQuery = {
|
|
|
390
413
|
score_mode?: ScoreMode;
|
|
391
414
|
}
|
|
392
415
|
|
|
393
|
-
export type
|
|
416
|
+
export type ScoreMode = 'avg' | 'max' | 'min' | 'multiply' | 'total'
|
|
417
|
+
|
|
418
|
+
export type SearchProfile = {
|
|
419
|
+
collector: Collector[];
|
|
420
|
+
query: QueryProfile[];
|
|
421
|
+
rewrite_time: number;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export type SearchResponse = SearchResult<any> & Record<string, any>
|
|
425
|
+
|
|
426
|
+
export type SearchResult<TDocument = any> = {
|
|
394
427
|
_clusters?: Common.ClusterStatistics;
|
|
395
428
|
_scroll_id?: Common.ScrollId;
|
|
396
429
|
_shards: Common.ShardStatistics;
|
|
397
430
|
aggregations?: Record<string, Common_Aggregations.Aggregate>;
|
|
398
|
-
|
|
399
|
-
hits
|
|
400
|
-
|
|
431
|
+
hits: HitsMetadata<TDocument> & {
|
|
432
|
+
hits?: {
|
|
433
|
+
_source?: TDocument;
|
|
434
|
+
}[];
|
|
435
|
+
};
|
|
401
436
|
num_reduce_phases?: number;
|
|
402
437
|
phase_took?: Common.PhaseTook;
|
|
403
438
|
pit_id?: Common.Id;
|
|
439
|
+
processor_results?: ProcessorExecutionDetail[];
|
|
404
440
|
profile?: Profile;
|
|
405
|
-
suggest?: Record<string, Suggest[]>;
|
|
441
|
+
suggest?: Record<string, Suggest<TDocument>[]>;
|
|
406
442
|
terminated_early?: boolean;
|
|
407
443
|
timed_out: boolean;
|
|
408
444
|
took: number;
|
|
409
445
|
}
|
|
410
446
|
|
|
411
|
-
export type
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
447
|
+
export type SearchResultJsonValue = SearchResult<any> & ({
|
|
448
|
+
hits?: {
|
|
449
|
+
hits?: {
|
|
450
|
+
_source?: any;
|
|
451
|
+
}[];
|
|
452
|
+
};
|
|
453
|
+
suggest?: Record<string, ({
|
|
454
|
+
options?: {
|
|
455
|
+
_source?: any;
|
|
456
|
+
} | {
|
|
457
|
+
_source?: any;
|
|
458
|
+
}[];
|
|
459
|
+
} | PhraseSuggest | TermSuggest)[]>;
|
|
460
|
+
})
|
|
418
461
|
|
|
419
462
|
export type ShardProfile = {
|
|
420
463
|
aggregations: AggregationProfile[];
|
|
@@ -444,7 +487,13 @@ export type StupidBackoffSmoothingModel = {
|
|
|
444
487
|
discount: number;
|
|
445
488
|
}
|
|
446
489
|
|
|
447
|
-
export type Suggest =
|
|
490
|
+
export type Suggest<TDocument = any> = (CompletionSuggest<TDocument> & ({
|
|
491
|
+
options?: (CompletionSuggestOption<TDocument> & {
|
|
492
|
+
_source?: TDocument;
|
|
493
|
+
}) | (CompletionSuggestOption<TDocument> & {
|
|
494
|
+
_source?: TDocument;
|
|
495
|
+
})[];
|
|
496
|
+
})) | PhraseSuggest | TermSuggest
|
|
448
497
|
|
|
449
498
|
export type SuggestBase = {
|
|
450
499
|
length: number;
|
|
@@ -18,6 +18,7 @@ import * as Common from './_common'
|
|
|
18
18
|
import * as Common_Aggregations from './_common.aggregations'
|
|
19
19
|
import * as Common_QueryDsl from './_common.query_dsl'
|
|
20
20
|
import * as Core_Search from './_core.search'
|
|
21
|
+
import * as Nodes_Common from './nodes._common'
|
|
21
22
|
|
|
22
23
|
export type AsynchronousSearchStats = {
|
|
23
24
|
cancelled?: number;
|
|
@@ -38,7 +39,7 @@ export type NodesStats = {
|
|
|
38
39
|
export type ResponseBody = {
|
|
39
40
|
expiration_time_in_millis?: number;
|
|
40
41
|
id?: string;
|
|
41
|
-
response?: Core_Search.
|
|
42
|
+
response?: Core_Search.SearchResponse;
|
|
42
43
|
start_time_in_millis?: number;
|
|
43
44
|
state?: string;
|
|
44
45
|
took?: number;
|
|
@@ -60,7 +61,6 @@ export type Search = {
|
|
|
60
61
|
post_filter?: Common_QueryDsl.QueryContainer;
|
|
61
62
|
profile?: boolean;
|
|
62
63
|
query?: Common_QueryDsl.QueryContainer;
|
|
63
|
-
rank?: Common.RankContainer;
|
|
64
64
|
script_fields?: Record<string, Common.ScriptField>;
|
|
65
65
|
search_after?: Common.SortResults;
|
|
66
66
|
seq_no_primary_term?: boolean;
|
|
@@ -77,8 +77,7 @@ export type Search = {
|
|
|
77
77
|
version?: boolean;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export type StatsResponse = {
|
|
81
|
-
_nodes?: Common.NodeStatistics;
|
|
80
|
+
export type StatsResponse = Nodes_Common.NodesResponseBase & {
|
|
82
81
|
cluster_name?: string;
|
|
83
82
|
nodes?: Record<string, NodesStats>;
|
|
84
83
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
|
|
18
|
+
export type ResponseFormat = 'cbor' | 'json' | 'smile' | 'text' | 'yaml'
|
|
19
|
+
|
|
@@ -41,6 +41,8 @@ export type IndicesRecord = {
|
|
|
41
41
|
'indexing.index_failed'?: undefined | string;
|
|
42
42
|
'indexing.index_time'?: undefined | string;
|
|
43
43
|
'indexing.index_total'?: undefined | string;
|
|
44
|
+
last_index_request_timestamp?: undefined | string;
|
|
45
|
+
last_index_request_timestamp_string?: undefined | string;
|
|
44
46
|
'memory.total'?: string;
|
|
45
47
|
'merges.current'?: undefined | string;
|
|
46
48
|
'merges.current_docs'?: undefined | string;
|
|
@@ -49,6 +51,14 @@ export type IndicesRecord = {
|
|
|
49
51
|
'merges.total_docs'?: undefined | string;
|
|
50
52
|
'merges.total_size'?: undefined | string;
|
|
51
53
|
'merges.total_time'?: undefined | string;
|
|
54
|
+
'merges.warmer.ongoing_count'?: undefined | string;
|
|
55
|
+
'merges.warmer.total_bytes_received'?: undefined | string;
|
|
56
|
+
'merges.warmer.total_bytes_sent'?: undefined | string;
|
|
57
|
+
'merges.warmer.total_failure_count'?: undefined | string;
|
|
58
|
+
'merges.warmer.total_invocations'?: undefined | string;
|
|
59
|
+
'merges.warmer.total_receive_time'?: undefined | string;
|
|
60
|
+
'merges.warmer.total_send_time'?: undefined | string;
|
|
61
|
+
'merges.warmer.total_time'?: undefined | string;
|
|
52
62
|
pri?: string;
|
|
53
63
|
'pri.completion.size'?: undefined | string;
|
|
54
64
|
'pri.fielddata.evictions'?: undefined | string;
|
|
@@ -77,6 +87,14 @@ export type IndicesRecord = {
|
|
|
77
87
|
'pri.merges.total_docs'?: undefined | string;
|
|
78
88
|
'pri.merges.total_size'?: undefined | string;
|
|
79
89
|
'pri.merges.total_time'?: undefined | string;
|
|
90
|
+
'pri.merges.warmer.ongoing_count'?: undefined | string;
|
|
91
|
+
'pri.merges.warmer.total_bytes_received'?: undefined | string;
|
|
92
|
+
'pri.merges.warmer.total_bytes_sent'?: undefined | string;
|
|
93
|
+
'pri.merges.warmer.total_failure_count'?: undefined | string;
|
|
94
|
+
'pri.merges.warmer.total_invocations'?: undefined | string;
|
|
95
|
+
'pri.merges.warmer.total_receive_time'?: undefined | string;
|
|
96
|
+
'pri.merges.warmer.total_send_time'?: undefined | string;
|
|
97
|
+
'pri.merges.warmer.total_time'?: undefined | string;
|
|
80
98
|
'pri.query_cache.evictions'?: undefined | string;
|
|
81
99
|
'pri.query_cache.memory_size'?: undefined | string;
|
|
82
100
|
'pri.refresh.external_time'?: undefined | string;
|
|
@@ -100,11 +118,16 @@ export type IndicesRecord = {
|
|
|
100
118
|
'pri.search.point_in_time_time'?: undefined | string;
|
|
101
119
|
'pri.search.point_in_time_total'?: undefined | string;
|
|
102
120
|
'pri.search.query_current'?: undefined | string;
|
|
121
|
+
'pri.search.query_failed'?: undefined | string;
|
|
103
122
|
'pri.search.query_time'?: undefined | string;
|
|
104
123
|
'pri.search.query_total'?: undefined | string;
|
|
105
124
|
'pri.search.scroll_current'?: undefined | string;
|
|
106
125
|
'pri.search.scroll_time'?: undefined | string;
|
|
107
126
|
'pri.search.scroll_total'?: undefined | string;
|
|
127
|
+
'pri.search.startree_query_failed'?: undefined | string;
|
|
128
|
+
'pri.search.startree.query_current'?: undefined | string;
|
|
129
|
+
'pri.search.startree.query_time'?: undefined | string;
|
|
130
|
+
'pri.search.startree.query_total'?: undefined | string;
|
|
108
131
|
'pri.segments.count'?: undefined | string;
|
|
109
132
|
'pri.segments.fixed_bitset_memory'?: undefined | string;
|
|
110
133
|
'pri.segments.index_writer_memory'?: undefined | string;
|
|
@@ -141,11 +164,16 @@ export type IndicesRecord = {
|
|
|
141
164
|
'search.point_in_time_time'?: undefined | string;
|
|
142
165
|
'search.point_in_time_total'?: undefined | string;
|
|
143
166
|
'search.query_current'?: undefined | string;
|
|
167
|
+
'search.query_failed'?: undefined | string;
|
|
144
168
|
'search.query_time'?: undefined | string;
|
|
145
169
|
'search.query_total'?: undefined | string;
|
|
146
170
|
'search.scroll_current'?: undefined | string;
|
|
147
171
|
'search.scroll_time'?: undefined | string;
|
|
148
172
|
'search.scroll_total'?: undefined | string;
|
|
173
|
+
'search.startree_query_current'?: undefined | string;
|
|
174
|
+
'search.startree_query_failed'?: undefined | string;
|
|
175
|
+
'search.startree_query_time'?: undefined | string;
|
|
176
|
+
'search.startree_query_total'?: undefined | string;
|
|
149
177
|
'search.throttled'?: string;
|
|
150
178
|
'segments.count'?: undefined | string;
|
|
151
179
|
'segments.fixed_bitset_memory'?: undefined | string;
|
|
@@ -70,6 +70,14 @@ export type NodesRecord = {
|
|
|
70
70
|
'merges.total_docs'?: string;
|
|
71
71
|
'merges.total_size'?: string;
|
|
72
72
|
'merges.total_time'?: string;
|
|
73
|
+
'merges.warmer.ongoing_count'?: string;
|
|
74
|
+
'merges.warmer.total_bytes_received'?: string;
|
|
75
|
+
'merges.warmer.total_bytes_sent'?: string;
|
|
76
|
+
'merges.warmer.total_failure_count'?: string;
|
|
77
|
+
'merges.warmer.total_invocations'?: string;
|
|
78
|
+
'merges.warmer.total_receive_time'?: string;
|
|
79
|
+
'merges.warmer.total_send_time'?: string;
|
|
80
|
+
'merges.warmer.total_time'?: string;
|
|
73
81
|
name?: Common.Name;
|
|
74
82
|
'node.role'?: string;
|
|
75
83
|
'node.roles'?: string;
|
|
@@ -106,11 +114,16 @@ export type NodesRecord = {
|
|
|
106
114
|
'search.point_in_time_time'?: string;
|
|
107
115
|
'search.point_in_time_total'?: string;
|
|
108
116
|
'search.query_current'?: string;
|
|
117
|
+
'search.query_failed'?: string;
|
|
109
118
|
'search.query_time'?: string;
|
|
110
119
|
'search.query_total'?: string;
|
|
111
120
|
'search.scroll_current'?: string;
|
|
112
121
|
'search.scroll_time'?: string;
|
|
113
122
|
'search.scroll_total'?: string;
|
|
123
|
+
'search.startree_query_current'?: string;
|
|
124
|
+
'search.startree_query_failed'?: string;
|
|
125
|
+
'search.startree_query_time'?: string;
|
|
126
|
+
'search.startree_query_total'?: string;
|
|
114
127
|
'segments.count'?: string;
|
|
115
128
|
'segments.fixed_bitset_memory'?: string;
|
|
116
129
|
'segments.index_writer_memory'?: string;
|
|
@@ -52,6 +52,14 @@ export type ShardsRecord = {
|
|
|
52
52
|
'merges.total_docs'?: undefined | string;
|
|
53
53
|
'merges.total_size'?: undefined | string;
|
|
54
54
|
'merges.total_time'?: undefined | string;
|
|
55
|
+
'merges.warmer.ongoing_count'?: undefined | string;
|
|
56
|
+
'merges.warmer.total_bytes_received'?: undefined | string;
|
|
57
|
+
'merges.warmer.total_bytes_sent'?: undefined | string;
|
|
58
|
+
'merges.warmer.total_failure_count'?: undefined | string;
|
|
59
|
+
'merges.warmer.total_invocations'?: undefined | string;
|
|
60
|
+
'merges.warmer.total_receive_time'?: undefined | string;
|
|
61
|
+
'merges.warmer.total_send_time'?: undefined | string;
|
|
62
|
+
'merges.warmer.total_time'?: undefined | string;
|
|
55
63
|
node?: undefined | string;
|
|
56
64
|
'path.data'?: undefined | string;
|
|
57
65
|
'path.state'?: undefined | string;
|
|
@@ -76,12 +84,17 @@ export type ShardsRecord = {
|
|
|
76
84
|
'search.point_in_time_time'?: undefined | string;
|
|
77
85
|
'search.point_in_time_total'?: undefined | string;
|
|
78
86
|
'search.query_current'?: undefined | string;
|
|
87
|
+
'search.query_failed'?: undefined | string;
|
|
79
88
|
'search.query_time'?: undefined | string;
|
|
80
89
|
'search.query_total'?: undefined | string;
|
|
81
90
|
'search.scroll_current'?: undefined | string;
|
|
82
91
|
'search.scroll_time'?: undefined | string;
|
|
83
92
|
'search.scroll_total'?: undefined | string;
|
|
84
93
|
'search.search_idle_reactivate_count_total'?: undefined | string;
|
|
94
|
+
'search.startree_query_current'?: undefined | string;
|
|
95
|
+
'search.startree_query_failed'?: undefined | string;
|
|
96
|
+
'search.startree_query_time'?: undefined | string;
|
|
97
|
+
'search.startree_query_total'?: undefined | string;
|
|
85
98
|
'segments.count'?: undefined | string;
|
|
86
99
|
'segments.fixed_bitset_memory'?: undefined | string;
|
|
87
100
|
'segments.index_writer_memory'?: undefined | string;
|
|
@@ -78,8 +78,11 @@ export type NodeDiskUsage = {
|
|
|
78
78
|
least_available: DiskUsage;
|
|
79
79
|
most_available: DiskUsage;
|
|
80
80
|
node_name: Common.Name;
|
|
81
|
+
node_resource_usage_stats?: NodeResourceUsageStats;
|
|
81
82
|
}
|
|
82
83
|
|
|
84
|
+
export type NodeResourceUsageStats = Record<string, any>
|
|
85
|
+
|
|
83
86
|
export type ReservedSize = {
|
|
84
87
|
node_id: Common.Id;
|
|
85
88
|
path: string;
|
|
@@ -15,7 +15,5 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
export type
|
|
19
|
-
|
|
20
|
-
export type ZoneDecommissionStatusResponse = Record<string, 'DRAINING' | 'FAILED' | 'INIT' | 'IN_PROGRESS' | 'SUCCESSFUL'>
|
|
18
|
+
export type DecommissionStatus = 'INIT' | 'DRAINING' | 'IN_PROGRESS' | 'SUCCESSFUL' | 'FAILED'
|
|
21
19
|
|
|
@@ -21,6 +21,8 @@ export type PendingTask = {
|
|
|
21
21
|
insert_order: number;
|
|
22
22
|
priority: string;
|
|
23
23
|
source: string;
|
|
24
|
+
time_in_execution?: Common.Duration;
|
|
25
|
+
time_in_execution_millis?: Common.DurationValueUnitMillis;
|
|
24
26
|
time_in_queue?: Common.Duration;
|
|
25
27
|
time_in_queue_millis: Common.DurationValueUnitMillis;
|
|
26
28
|
}
|
|
@@ -75,7 +75,7 @@ export type ClusterJvm = {
|
|
|
75
75
|
max_uptime_in_millis: Common.DurationValueUnitMillis;
|
|
76
76
|
mem: ClusterJvmMemory;
|
|
77
77
|
threads: number;
|
|
78
|
-
versions
|
|
78
|
+
versions?: ClusterJvmVersion[];
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export type ClusterJvmMemory = {
|
|
@@ -151,12 +151,12 @@ export type ClusterOperatingSystemArchitecture = {
|
|
|
151
151
|
|
|
152
152
|
export type ClusterOperatingSystemName = {
|
|
153
153
|
count: number;
|
|
154
|
-
name
|
|
154
|
+
name?: Common.Name;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export type ClusterOperatingSystemPrettyName = {
|
|
158
158
|
count: number;
|
|
159
|
-
pretty_name
|
|
159
|
+
pretty_name?: Common.Name;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
export type ClusterProcess = {
|
|
@@ -16,15 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
|
-
export type Weights = WeightsBase & {
|
|
20
|
-
weights?: Record<string, any>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
19
|
export type WeightsBase = {
|
|
24
20
|
_version?: Common.VersionNumber;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export type WeightsResponse = Weights & {
|
|
28
|
-
discovered_cluster_manager?: boolean;
|
|
21
|
+
weights?: Record<string, string>;
|
|
29
22
|
}
|
|
30
23
|
|