@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
|
@@ -18,9 +18,13 @@ import * as Common from './_common'
|
|
|
18
18
|
import * as Common_QueryDsl from './_common.query_dsl'
|
|
19
19
|
import * as Core_Search from './_core.search'
|
|
20
20
|
|
|
21
|
-
export type AdjacencyMatrixAggregate = MultiBucketAggregateBaseAdjacencyMatrixBucket
|
|
21
|
+
export type AdjacencyMatrixAggregate = MultiBucketAggregateBaseAdjacencyMatrixBucket
|
|
22
22
|
|
|
23
23
|
export type AdjacencyMatrixAggregation = BucketAggregationBase & {
|
|
24
|
+
adjacency_matrix: AdjacencyMatrixAggregationFields;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type AdjacencyMatrixAggregationFields = {
|
|
24
28
|
filters?: Record<string, Common_QueryDsl.QueryContainer>;
|
|
25
29
|
}
|
|
26
30
|
|
|
@@ -28,7 +32,7 @@ export type AdjacencyMatrixBucket = MultiBucketBase & {
|
|
|
28
32
|
key: string;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
export type Aggregate = AdjacencyMatrixAggregate | AutoDateHistogramAggregate | AvgAggregate | BoxPlotAggregate | BucketMetricValueAggregate | CardinalityAggregate | ChildrenAggregate | CompositeAggregate | DateHistogramAggregate | DateRangeAggregate | DerivativeAggregate | DoubleTermsAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | FilterAggregate | FiltersAggregate | GeoBoundsAggregate | GeoCentroidAggregate | GeoDistanceAggregate | GeoHashGridAggregate | GeoTileGridAggregate | GlobalAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | HistogramAggregate | IpRangeAggregate | LongRareTermsAggregate | LongTermsAggregate | MatrixStatsAggregate | MaxAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MissingAggregate | MultiTermsAggregate | NestedAggregate | ParentAggregate | PercentilesBucketAggregate | RangeAggregate | RateAggregate | ReverseNestedAggregate | SamplerAggregate | ScriptedMetricAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | CumulativeCardinalityAggregate | SimpleValueAggregate | StatsAggregate | StatsBucketAggregate | StringRareTermsAggregate | StringTermsAggregate | SumAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | TTestAggregate | TopHitsAggregate | UnmappedRareTermsAggregate | UnmappedSignificantTermsAggregate | UnmappedTermsAggregate | ValueCountAggregate | VariableWidthHistogramAggregate | WeightedAvgAggregate
|
|
35
|
+
export type Aggregate = AdjacencyMatrixAggregate | AutoDateHistogramAggregate | AvgAggregate | BoxPlotAggregate | BucketMetricValueAggregate | CardinalityAggregate | ChildrenAggregate | CompositeAggregate | DateHistogramAggregate | DateRangeAggregate | DerivativeAggregate | DoubleTermsAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | FilterAggregate | FiltersAggregate | GeoBoundsAggregate | GeoCentroidAggregate | GeoDistanceAggregate | GeoHashGridAggregate | GeoTileGridAggregate | GlobalAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | HistogramAggregate | IpRangeAggregate | LongRareTermsAggregate | LongTermsAggregate | MatrixStatsAggregate | MaxAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MissingAggregate | MultiTermsAggregate | NestedAggregate | ParentAggregate | PercentilesBucketAggregate | RangeAggregate | RateAggregate | ReverseNestedAggregate | SamplerAggregate | ScriptedMetricAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | CumulativeCardinalityAggregate | SimpleValueAggregate | StatsAggregate | StatsBucketAggregate | StringRareTermsAggregate | StringTermsAggregate | SumAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | TTestAggregate | TopHitsAggregate | UnsignedLongTermsAggregate | UnmappedRareTermsAggregate | UnmappedSignificantTermsAggregate | UnmappedTermsAggregate | ValueCountAggregate | VariableWidthHistogramAggregate | WeightedAvgAggregate
|
|
32
36
|
|
|
33
37
|
export type AggregateBase = {
|
|
34
38
|
meta?: Common.Metadata;
|
|
@@ -38,18 +42,9 @@ export type AggregateOrder = Record<string, Common.SortOrder> | Record<string, C
|
|
|
38
42
|
|
|
39
43
|
export type Aggregation = {
|
|
40
44
|
meta?: Common.Metadata;
|
|
41
|
-
name?: string;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
export type AggregationContainer = {
|
|
45
|
-
aggregations?: Record<string, AggregationContainer>;
|
|
46
|
-
aggs?: Record<string, AggregationContainer>;
|
|
47
|
-
meta?: Common.Metadata;
|
|
48
|
-
} & ({
|
|
49
|
-
adjacency_matrix: AdjacencyMatrixAggregation;
|
|
50
|
-
} | {
|
|
51
|
-
auto_date_histogram: AutoDateHistogramAggregation;
|
|
52
|
-
} | {
|
|
47
|
+
export type AggregationContainer = Aggregation & (AdjacencyMatrixAggregation | AutoDateHistogramAggregation | {
|
|
53
48
|
avg: AverageAggregation;
|
|
54
49
|
} | {
|
|
55
50
|
avg_bucket: AverageBucketAggregation;
|
|
@@ -63,47 +58,21 @@ export type AggregationContainer = {
|
|
|
63
58
|
bucket_sort: BucketSortAggregation;
|
|
64
59
|
} | {
|
|
65
60
|
cardinality: CardinalityAggregation;
|
|
66
|
-
} | {
|
|
67
|
-
children: ChildrenAggregation;
|
|
68
|
-
} | {
|
|
69
|
-
composite: CompositeAggregation;
|
|
70
|
-
} | {
|
|
61
|
+
} | ChildrenAggregation | CompositeAggregation | {
|
|
71
62
|
cumulative_cardinality: CumulativeCardinalityAggregation;
|
|
72
63
|
} | {
|
|
73
64
|
cumulative_sum: CumulativeSumAggregation;
|
|
74
|
-
} | {
|
|
75
|
-
date_histogram: DateHistogramAggregation;
|
|
76
|
-
} | {
|
|
77
|
-
date_range: DateRangeAggregation;
|
|
78
|
-
} | {
|
|
65
|
+
} | DateHistogramAggregation | DateRangeAggregation | {
|
|
79
66
|
derivative: DerivativeAggregation;
|
|
80
|
-
} | {
|
|
81
|
-
diversified_sampler: DiversifiedSamplerAggregation;
|
|
82
|
-
} | {
|
|
67
|
+
} | DiversifiedSamplerAggregation | {
|
|
83
68
|
extended_stats: ExtendedStatsAggregation;
|
|
84
69
|
} | {
|
|
85
70
|
extended_stats_bucket: ExtendedStatsBucketAggregation;
|
|
86
|
-
} | {
|
|
87
|
-
filter: Common_QueryDsl.QueryContainer;
|
|
88
|
-
} | {
|
|
89
|
-
filters: FiltersAggregation;
|
|
90
|
-
} | {
|
|
71
|
+
} | FilterAggregation | FiltersAggregation | {
|
|
91
72
|
geo_bounds: GeoBoundsAggregation;
|
|
92
73
|
} | {
|
|
93
74
|
geo_centroid: GeoCentroidAggregation;
|
|
94
|
-
} | {
|
|
95
|
-
geo_distance: GeoDistanceAggregation;
|
|
96
|
-
} | {
|
|
97
|
-
geohash_grid: GeoHashGridAggregation;
|
|
98
|
-
} | {
|
|
99
|
-
geotile_grid: GeoTileGridAggregation;
|
|
100
|
-
} | {
|
|
101
|
-
global: GlobalAggregation;
|
|
102
|
-
} | {
|
|
103
|
-
histogram: HistogramAggregation;
|
|
104
|
-
} | {
|
|
105
|
-
ip_range: IpRangeAggregation;
|
|
106
|
-
} | {
|
|
75
|
+
} | GeoDistanceAggregation | GeoHashGridAggregation | GeoTileGridAggregation | GlobalAggregation | HistogramAggregation | IpRangeAggregation | {
|
|
107
76
|
matrix_stats: MatrixStatsAggregation;
|
|
108
77
|
} | {
|
|
109
78
|
max: MaxAggregation;
|
|
@@ -115,47 +84,27 @@ export type AggregationContainer = {
|
|
|
115
84
|
min: MinAggregation;
|
|
116
85
|
} | {
|
|
117
86
|
min_bucket: MinBucketAggregation;
|
|
118
|
-
} | {
|
|
119
|
-
missing: MissingAggregation;
|
|
120
|
-
} | {
|
|
87
|
+
} | MissingAggregation | {
|
|
121
88
|
moving_avg: MovingAverageAggregation;
|
|
122
89
|
} | {
|
|
123
90
|
moving_percentiles: MovingPercentilesAggregation;
|
|
124
91
|
} | {
|
|
125
92
|
moving_fn: MovingFunctionAggregation;
|
|
126
|
-
} | {
|
|
127
|
-
multi_terms: MultiTermsAggregation;
|
|
128
|
-
} | {
|
|
129
|
-
nested: NestedAggregation;
|
|
130
|
-
} | {
|
|
93
|
+
} | MultiTermsAggregation | NestedAggregation | {
|
|
131
94
|
normalize: NormalizeAggregation;
|
|
132
|
-
} | {
|
|
133
|
-
parent: ParentAggregation;
|
|
134
|
-
} | {
|
|
95
|
+
} | ParentAggregation | {
|
|
135
96
|
percentile_ranks: PercentileRanksAggregation;
|
|
136
97
|
} | {
|
|
137
98
|
percentiles: PercentilesAggregation;
|
|
138
99
|
} | {
|
|
139
100
|
percentiles_bucket: PercentilesBucketAggregation;
|
|
140
|
-
} | {
|
|
141
|
-
range: RangeAggregation;
|
|
142
|
-
} | {
|
|
143
|
-
rare_terms: RareTermsAggregation;
|
|
144
|
-
} | {
|
|
101
|
+
} | RangeAggregation | RareTermsAggregation | {
|
|
145
102
|
rate: RateAggregation;
|
|
146
|
-
} | {
|
|
147
|
-
reverse_nested: ReverseNestedAggregation;
|
|
148
|
-
} | {
|
|
149
|
-
sampler: SamplerAggregation;
|
|
150
|
-
} | {
|
|
103
|
+
} | ReverseNestedAggregation | SamplerAggregation | {
|
|
151
104
|
scripted_metric: ScriptedMetricAggregation;
|
|
152
105
|
} | {
|
|
153
106
|
serial_diff: SerialDifferencingAggregation;
|
|
154
|
-
} | {
|
|
155
|
-
significant_terms: SignificantTermsAggregation;
|
|
156
|
-
} | {
|
|
157
|
-
significant_text: SignificantTextAggregation;
|
|
158
|
-
} | {
|
|
107
|
+
} | SignificantTermsAggregation | SignificantTextAggregation | {
|
|
159
108
|
stats: StatsAggregation;
|
|
160
109
|
} | {
|
|
161
110
|
stats_bucket: StatsBucketAggregation;
|
|
@@ -163,9 +112,7 @@ export type AggregationContainer = {
|
|
|
163
112
|
sum: SumAggregation;
|
|
164
113
|
} | {
|
|
165
114
|
sum_bucket: SumBucketAggregation;
|
|
166
|
-
} | {
|
|
167
|
-
terms: TermsAggregation;
|
|
168
|
-
} | {
|
|
115
|
+
} | TermsAggregation | {
|
|
169
116
|
top_hits: TopHitsAggregation;
|
|
170
117
|
} | {
|
|
171
118
|
t_test: TTestAggregation;
|
|
@@ -194,6 +141,10 @@ export type AutoDateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBu
|
|
|
194
141
|
}
|
|
195
142
|
|
|
196
143
|
export type AutoDateHistogramAggregation = BucketAggregationBase & {
|
|
144
|
+
auto_date_histogram: AutoDateHistogramAggregationFields;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type AutoDateHistogramAggregationFields = {
|
|
197
148
|
buckets?: number;
|
|
198
149
|
field?: Common.Field;
|
|
199
150
|
format?: string;
|
|
@@ -209,7 +160,7 @@ export type AverageAggregation = FormatMetricAggregationBase & Record<string, an
|
|
|
209
160
|
|
|
210
161
|
export type AverageBucketAggregation = PipelineAggregationBase & Record<string, any>
|
|
211
162
|
|
|
212
|
-
export type AvgAggregate = SingleMetricAggregateBase
|
|
163
|
+
export type AvgAggregate = SingleMetricAggregateBase
|
|
213
164
|
|
|
214
165
|
export type BoxPlotAggregate = AggregateBase & {
|
|
215
166
|
lower: number;
|
|
@@ -232,17 +183,20 @@ export type BoxplotAggregation = MetricAggregationBase & {
|
|
|
232
183
|
compression?: number;
|
|
233
184
|
}
|
|
234
185
|
|
|
235
|
-
export type BucketAggregationBase =
|
|
186
|
+
export type BucketAggregationBase = {
|
|
187
|
+
aggregations?: Record<string, AggregationContainer>;
|
|
188
|
+
aggs?: Record<string, AggregationContainer>;
|
|
189
|
+
}
|
|
236
190
|
|
|
237
191
|
export type BucketMetricValueAggregate = SingleMetricAggregateBase & {
|
|
238
192
|
keys: string[];
|
|
239
193
|
}
|
|
240
194
|
|
|
241
|
-
export type BucketPathAggregation =
|
|
195
|
+
export type BucketPathAggregation = {
|
|
242
196
|
buckets_path?: BucketsPath;
|
|
243
197
|
}
|
|
244
198
|
|
|
245
|
-
export type Buckets = Record<string, TBucket> | TBucket[]
|
|
199
|
+
export type Buckets<TBucket = any> = Record<string, TBucket> | TBucket[]
|
|
246
200
|
|
|
247
201
|
export type BucketScriptAggregation = PipelineAggregationBase & {
|
|
248
202
|
script?: Common.Script;
|
|
@@ -252,7 +206,7 @@ export type BucketSelectorAggregation = PipelineAggregationBase & {
|
|
|
252
206
|
script?: Common.Script;
|
|
253
207
|
}
|
|
254
208
|
|
|
255
|
-
export type BucketSortAggregation =
|
|
209
|
+
export type BucketSortAggregation = {
|
|
256
210
|
from?: number;
|
|
257
211
|
gap_policy?: GapPolicy;
|
|
258
212
|
size?: number;
|
|
@@ -261,7 +215,7 @@ export type BucketSortAggregation = Aggregation & {
|
|
|
261
215
|
|
|
262
216
|
export type BucketsPath = string | string[] | Record<string, string>
|
|
263
217
|
|
|
264
|
-
export type BucketsQueryContainer = Buckets & (Record<string, Common_QueryDsl.QueryContainer> | Common_QueryDsl.QueryContainer[])
|
|
218
|
+
export type BucketsQueryContainer = Buckets<Common_QueryDsl.QueryContainer> & (Record<string, Common_QueryDsl.QueryContainer> | Common_QueryDsl.QueryContainer[])
|
|
265
219
|
|
|
266
220
|
export type CalendarInterval = 'second' | '1s' | 'minute' | '1m' | 'hour' | '1h' | 'day' | '1d' | 'week' | '1w' | 'month' | '1M' | 'quarter' | '1q' | 'year' | '1Y'
|
|
267
221
|
|
|
@@ -272,14 +226,17 @@ export type CardinalityAggregate = AggregateBase & {
|
|
|
272
226
|
export type CardinalityAggregation = MetricAggregationBase & {
|
|
273
227
|
execution_hint?: CardinalityExecutionMode;
|
|
274
228
|
precision_threshold?: number;
|
|
275
|
-
rehash?: boolean;
|
|
276
229
|
}
|
|
277
230
|
|
|
278
|
-
export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | '
|
|
231
|
+
export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | 'segment_ordinals'
|
|
279
232
|
|
|
280
233
|
export type ChildrenAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
281
234
|
|
|
282
235
|
export type ChildrenAggregation = BucketAggregationBase & {
|
|
236
|
+
children: ChildrenAggregationFields;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type ChildrenAggregationFields = {
|
|
283
240
|
type?: Common.RelationName;
|
|
284
241
|
}
|
|
285
242
|
|
|
@@ -295,6 +252,10 @@ export type CompositeAggregate = MultiBucketAggregateBaseCompositeBucket & {
|
|
|
295
252
|
export type CompositeAggregateKey = Record<string, Common.FieldValue>
|
|
296
253
|
|
|
297
254
|
export type CompositeAggregation = BucketAggregationBase & {
|
|
255
|
+
composite: CompositeAggregationFields;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type CompositeAggregationFields = {
|
|
298
259
|
after?: CompositeAggregateKey;
|
|
299
260
|
size?: number;
|
|
300
261
|
sources?: Record<string, CompositeAggregationSource>[];
|
|
@@ -348,9 +309,13 @@ export type CumulativeCardinalityAggregation = PipelineAggregationBase & Record<
|
|
|
348
309
|
|
|
349
310
|
export type CumulativeSumAggregation = PipelineAggregationBase & Record<string, any>
|
|
350
311
|
|
|
351
|
-
export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket
|
|
312
|
+
export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket
|
|
352
313
|
|
|
353
314
|
export type DateHistogramAggregation = BucketAggregationBase & {
|
|
315
|
+
date_histogram: DateHistogramAggregationFields;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export type DateHistogramAggregationFields = {
|
|
354
319
|
calendar_interval?: CalendarInterval;
|
|
355
320
|
extended_bounds?: ExtendedBoundsFieldDateMath;
|
|
356
321
|
field?: Common.Field;
|
|
@@ -373,9 +338,13 @@ export type DateHistogramBucket = MultiBucketBase & {
|
|
|
373
338
|
key_as_string?: string;
|
|
374
339
|
}
|
|
375
340
|
|
|
376
|
-
export type DateRangeAggregate = RangeAggregateBase
|
|
341
|
+
export type DateRangeAggregate = RangeAggregateBase
|
|
377
342
|
|
|
378
343
|
export type DateRangeAggregation = BucketAggregationBase & {
|
|
344
|
+
date_range: DateRangeAggregationFields;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export type DateRangeAggregationFields = {
|
|
379
348
|
field?: Common.Field;
|
|
380
349
|
format?: string;
|
|
381
350
|
keyed?: boolean;
|
|
@@ -398,6 +367,10 @@ export type DerivativeAggregate = SingleMetricAggregateBase & {
|
|
|
398
367
|
export type DerivativeAggregation = PipelineAggregationBase & Record<string, any>
|
|
399
368
|
|
|
400
369
|
export type DiversifiedSamplerAggregation = BucketAggregationBase & {
|
|
370
|
+
diversified_sampler: DiversifiedSamplerAggregationFields;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type DiversifiedSamplerAggregationFields = {
|
|
401
374
|
execution_hint?: SamplerAggregationExecutionHint;
|
|
402
375
|
field?: Common.Field;
|
|
403
376
|
max_docs_per_value?: number;
|
|
@@ -421,17 +394,17 @@ export type EwmaMovingAverageAggregation = MovingAverageAggregationBase & {
|
|
|
421
394
|
settings: EwmaModelSettings;
|
|
422
395
|
}
|
|
423
396
|
|
|
424
|
-
export type ExtendedBounds = {
|
|
397
|
+
export type ExtendedBounds<T = any> = {
|
|
425
398
|
max: T;
|
|
426
399
|
min: T;
|
|
427
400
|
}
|
|
428
401
|
|
|
429
|
-
export type ExtendedBoundsDouble = ExtendedBounds & {
|
|
402
|
+
export type ExtendedBoundsDouble = ExtendedBounds<number> & {
|
|
430
403
|
max?: number;
|
|
431
404
|
min?: number;
|
|
432
405
|
}
|
|
433
406
|
|
|
434
|
-
export type ExtendedBoundsFieldDateMath = ExtendedBounds & {
|
|
407
|
+
export type ExtendedBoundsFieldDateMath = ExtendedBounds<FieldDateMath> & {
|
|
435
408
|
max?: FieldDateMath;
|
|
436
409
|
min?: FieldDateMath;
|
|
437
410
|
}
|
|
@@ -459,7 +432,7 @@ export type ExtendedStatsAggregation = FormatMetricAggregationBase & {
|
|
|
459
432
|
sigma?: number;
|
|
460
433
|
}
|
|
461
434
|
|
|
462
|
-
export type ExtendedStatsBucketAggregate = ExtendedStatsAggregateBase
|
|
435
|
+
export type ExtendedStatsBucketAggregate = ExtendedStatsAggregateBase
|
|
463
436
|
|
|
464
437
|
export type ExtendedStatsBucketAggregation = PipelineAggregationBase & {
|
|
465
438
|
sigma?: number;
|
|
@@ -469,9 +442,19 @@ export type FieldDateMath = Common.DateMath | number
|
|
|
469
442
|
|
|
470
443
|
export type FilterAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
471
444
|
|
|
472
|
-
export type
|
|
445
|
+
export type FilterAggregation = BucketAggregationBase & {
|
|
446
|
+
filter: FilterAggregationFields;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export type FilterAggregationFields = Common_QueryDsl.QueryContainer
|
|
450
|
+
|
|
451
|
+
export type FiltersAggregate = MultiBucketAggregateBaseFiltersBucket
|
|
473
452
|
|
|
474
453
|
export type FiltersAggregation = BucketAggregationBase & {
|
|
454
|
+
filters: FiltersAggregationFields;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export type FiltersAggregationFields = {
|
|
475
458
|
filters?: BucketsQueryContainer;
|
|
476
459
|
keyed?: boolean;
|
|
477
460
|
other_bucket?: boolean;
|
|
@@ -508,9 +491,13 @@ export type GeoCentroidAggregation = MetricAggregationBase & {
|
|
|
508
491
|
location?: Common.GeoLocation;
|
|
509
492
|
}
|
|
510
493
|
|
|
511
|
-
export type GeoDistanceAggregate = RangeAggregateBase
|
|
494
|
+
export type GeoDistanceAggregate = RangeAggregateBase
|
|
512
495
|
|
|
513
496
|
export type GeoDistanceAggregation = BucketAggregationBase & {
|
|
497
|
+
geo_distance: GeoDistanceAggregationFields;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export type GeoDistanceAggregationFields = {
|
|
514
501
|
distance_type?: Common.GeoDistanceType;
|
|
515
502
|
field?: Common.Field;
|
|
516
503
|
origin?: Common.GeoLocation;
|
|
@@ -518,9 +505,13 @@ export type GeoDistanceAggregation = BucketAggregationBase & {
|
|
|
518
505
|
unit?: Common.DistanceUnit;
|
|
519
506
|
}
|
|
520
507
|
|
|
521
|
-
export type GeoHashGridAggregate = MultiBucketAggregateBaseGeoHashGridBucket
|
|
508
|
+
export type GeoHashGridAggregate = MultiBucketAggregateBaseGeoHashGridBucket
|
|
522
509
|
|
|
523
510
|
export type GeoHashGridAggregation = BucketAggregationBase & {
|
|
511
|
+
geohash_grid: GeoHashGridAggregationFields;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export type GeoHashGridAggregationFields = {
|
|
524
515
|
bounds?: Common.GeoBounds;
|
|
525
516
|
field?: Common.Field;
|
|
526
517
|
precision?: Common.GeoHashPrecision;
|
|
@@ -532,9 +523,13 @@ export type GeoHashGridBucket = MultiBucketBase & {
|
|
|
532
523
|
key: Common.GeoHash;
|
|
533
524
|
}
|
|
534
525
|
|
|
535
|
-
export type GeoTileGridAggregate = MultiBucketAggregateBaseGeoTileGridBucket
|
|
526
|
+
export type GeoTileGridAggregate = MultiBucketAggregateBaseGeoTileGridBucket
|
|
536
527
|
|
|
537
528
|
export type GeoTileGridAggregation = BucketAggregationBase & {
|
|
529
|
+
geotile_grid: GeoTileGridAggregationFields;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export type GeoTileGridAggregationFields = {
|
|
538
533
|
bounds?: Common.GeoBounds;
|
|
539
534
|
field?: Common.Field;
|
|
540
535
|
precision?: Common.GeoTilePrecision;
|
|
@@ -548,7 +543,11 @@ export type GeoTileGridBucket = MultiBucketBase & {
|
|
|
548
543
|
|
|
549
544
|
export type GlobalAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
550
545
|
|
|
551
|
-
export type GlobalAggregation = BucketAggregationBase &
|
|
546
|
+
export type GlobalAggregation = BucketAggregationBase & {
|
|
547
|
+
global: GlobalAggregationFields;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export type GlobalAggregationFields = Record<string, any>
|
|
552
551
|
|
|
553
552
|
export type GoogleNormalizedDistanceHeuristic = {
|
|
554
553
|
background_is_superset?: boolean;
|
|
@@ -558,13 +557,17 @@ export type HdrMethod = {
|
|
|
558
557
|
number_of_significant_value_digits?: number;
|
|
559
558
|
}
|
|
560
559
|
|
|
561
|
-
export type HdrPercentileRanksAggregate = PercentilesAggregateBase
|
|
560
|
+
export type HdrPercentileRanksAggregate = PercentilesAggregateBase
|
|
562
561
|
|
|
563
|
-
export type HdrPercentilesAggregate = PercentilesAggregateBase
|
|
562
|
+
export type HdrPercentilesAggregate = PercentilesAggregateBase
|
|
564
563
|
|
|
565
|
-
export type HistogramAggregate = MultiBucketAggregateBaseHistogramBucket
|
|
564
|
+
export type HistogramAggregate = MultiBucketAggregateBaseHistogramBucket
|
|
566
565
|
|
|
567
566
|
export type HistogramAggregation = BucketAggregationBase & {
|
|
567
|
+
histogram: HistogramAggregationFields;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export type HistogramAggregationFields = {
|
|
568
571
|
extended_bounds?: ExtendedBoundsDouble;
|
|
569
572
|
field?: Common.Field;
|
|
570
573
|
format?: string;
|
|
@@ -614,9 +617,13 @@ export type HoltWintersMovingAverageAggregation = MovingAverageAggregationBase &
|
|
|
614
617
|
|
|
615
618
|
export type HoltWintersType = 'add' | 'mult'
|
|
616
619
|
|
|
617
|
-
export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket
|
|
620
|
+
export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket
|
|
618
621
|
|
|
619
622
|
export type IpRangeAggregation = BucketAggregationBase & {
|
|
623
|
+
ip_range: IpRangeAggregationFields;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export type IpRangeAggregationFields = {
|
|
620
627
|
field?: Common.Field;
|
|
621
628
|
ranges?: IpRangeAggregationRange[];
|
|
622
629
|
}
|
|
@@ -656,7 +663,7 @@ export type LongTermsBucket = TermsBucketBase & {
|
|
|
656
663
|
|
|
657
664
|
export type LongTermsBucketKey = number | string
|
|
658
665
|
|
|
659
|
-
export type MatrixAggregation =
|
|
666
|
+
export type MatrixAggregation = {
|
|
660
667
|
fields?: Common.Fields;
|
|
661
668
|
missing?: Record<string, number>;
|
|
662
669
|
}
|
|
@@ -681,27 +688,29 @@ export type MatrixStatsFields = {
|
|
|
681
688
|
variance: number;
|
|
682
689
|
}
|
|
683
690
|
|
|
684
|
-
export type MaxAggregate = SingleMetricAggregateBase
|
|
691
|
+
export type MaxAggregate = SingleMetricAggregateBase
|
|
685
692
|
|
|
686
|
-
export type MaxAggregation = FormatMetricAggregationBase &
|
|
693
|
+
export type MaxAggregation = FormatMetricAggregationBase & {
|
|
694
|
+
value_type?: ValueType;
|
|
695
|
+
}
|
|
687
696
|
|
|
688
697
|
export type MaxBucketAggregation = PipelineAggregationBase & Record<string, any>
|
|
689
698
|
|
|
690
|
-
export type MedianAbsoluteDeviationAggregate = SingleMetricAggregateBase
|
|
699
|
+
export type MedianAbsoluteDeviationAggregate = SingleMetricAggregateBase
|
|
691
700
|
|
|
692
701
|
export type MedianAbsoluteDeviationAggregation = FormatMetricAggregationBase & {
|
|
693
702
|
compression?: number;
|
|
694
703
|
}
|
|
695
704
|
|
|
696
705
|
export type MetricAggregationBase = {
|
|
697
|
-
field?: Common.Field;
|
|
698
706
|
missing?: Common.FieldValue;
|
|
699
|
-
script?: Common.Script;
|
|
700
707
|
}
|
|
701
708
|
|
|
702
|
-
export type MinAggregate = SingleMetricAggregateBase
|
|
709
|
+
export type MinAggregate = SingleMetricAggregateBase
|
|
703
710
|
|
|
704
|
-
export type MinAggregation = FormatMetricAggregationBase &
|
|
711
|
+
export type MinAggregation = FormatMetricAggregationBase & {
|
|
712
|
+
value_type?: ValueType;
|
|
713
|
+
}
|
|
705
714
|
|
|
706
715
|
export type MinBucketAggregation = PipelineAggregationBase & Record<string, any>
|
|
707
716
|
|
|
@@ -710,6 +719,10 @@ export type MinimumInterval = 'day' | 'hour' | 'minute' | 'month' | 'second' | '
|
|
|
710
719
|
export type MissingAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
711
720
|
|
|
712
721
|
export type MissingAggregation = BucketAggregationBase & {
|
|
722
|
+
missing: MissingAggregationFields;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export type MissingAggregationFields = {
|
|
713
726
|
field?: Common.Field;
|
|
714
727
|
missing?: Common.FieldValue;
|
|
715
728
|
}
|
|
@@ -736,64 +749,65 @@ export type MovingPercentilesAggregation = PipelineAggregationBase & {
|
|
|
736
749
|
window?: number;
|
|
737
750
|
}
|
|
738
751
|
|
|
739
|
-
export type MultiBucketAggregateBase = AggregateBase & {
|
|
740
|
-
buckets: Buckets & (Record<string, TBucket> | TBucket[]);
|
|
752
|
+
export type MultiBucketAggregateBase<TBucket = any> = AggregateBase & {
|
|
753
|
+
buckets: Buckets<TBucket> & (Record<string, TBucket> | TBucket[]);
|
|
741
754
|
}
|
|
742
755
|
|
|
743
|
-
export type MultiBucketAggregateBaseAdjacencyMatrixBucket = MultiBucketAggregateBase & {
|
|
744
|
-
buckets: Buckets & (Record<string, AdjacencyMatrixBucket> | AdjacencyMatrixBucket[]);
|
|
756
|
+
export type MultiBucketAggregateBaseAdjacencyMatrixBucket = MultiBucketAggregateBase<AdjacencyMatrixBucket> & {
|
|
757
|
+
buckets: Buckets<AdjacencyMatrixBucket> & (Record<string, AdjacencyMatrixBucket> | AdjacencyMatrixBucket[]);
|
|
745
758
|
}
|
|
746
759
|
|
|
747
|
-
export type MultiBucketAggregateBaseCompositeBucket = MultiBucketAggregateBase & {
|
|
748
|
-
buckets: Buckets & (Record<string, CompositeBucket> | CompositeBucket[]);
|
|
760
|
+
export type MultiBucketAggregateBaseCompositeBucket = MultiBucketAggregateBase<CompositeBucket> & {
|
|
761
|
+
buckets: Buckets<CompositeBucket> & (Record<string, CompositeBucket> | CompositeBucket[]);
|
|
749
762
|
}
|
|
750
763
|
|
|
751
|
-
export type MultiBucketAggregateBaseDateHistogramBucket = MultiBucketAggregateBase & {
|
|
752
|
-
buckets: Buckets & (Record<string, DateHistogramBucket> | DateHistogramBucket[]);
|
|
764
|
+
export type MultiBucketAggregateBaseDateHistogramBucket = MultiBucketAggregateBase<DateHistogramBucket> & {
|
|
765
|
+
buckets: Buckets<DateHistogramBucket> & (Record<string, DateHistogramBucket> | DateHistogramBucket[]);
|
|
753
766
|
}
|
|
754
767
|
|
|
755
|
-
export type MultiBucketAggregateBaseFiltersBucket = MultiBucketAggregateBase & {
|
|
756
|
-
buckets: Buckets & (Record<string, FiltersBucket> | FiltersBucket[]);
|
|
768
|
+
export type MultiBucketAggregateBaseFiltersBucket = MultiBucketAggregateBase<FiltersBucket> & {
|
|
769
|
+
buckets: Buckets<FiltersBucket> & (Record<string, FiltersBucket> | FiltersBucket[]);
|
|
757
770
|
}
|
|
758
771
|
|
|
759
|
-
export type MultiBucketAggregateBaseGeoHashGridBucket = MultiBucketAggregateBase & {
|
|
760
|
-
buckets: Buckets & (Record<string, GeoHashGridBucket> | GeoHashGridBucket[]);
|
|
772
|
+
export type MultiBucketAggregateBaseGeoHashGridBucket = MultiBucketAggregateBase<GeoHashGridBucket> & {
|
|
773
|
+
buckets: Buckets<GeoHashGridBucket> & (Record<string, GeoHashGridBucket> | GeoHashGridBucket[]);
|
|
761
774
|
}
|
|
762
775
|
|
|
763
|
-
export type MultiBucketAggregateBaseGeoTileGridBucket = MultiBucketAggregateBase & {
|
|
764
|
-
buckets: Buckets & (Record<string, GeoTileGridBucket> | GeoTileGridBucket[]);
|
|
776
|
+
export type MultiBucketAggregateBaseGeoTileGridBucket = MultiBucketAggregateBase<GeoTileGridBucket> & {
|
|
777
|
+
buckets: Buckets<GeoTileGridBucket> & (Record<string, GeoTileGridBucket> | GeoTileGridBucket[]);
|
|
765
778
|
}
|
|
766
779
|
|
|
767
|
-
export type MultiBucketAggregateBaseHistogramBucket = MultiBucketAggregateBase & {
|
|
768
|
-
buckets: Buckets & (Record<string, HistogramBucket> | HistogramBucket[]);
|
|
780
|
+
export type MultiBucketAggregateBaseHistogramBucket = MultiBucketAggregateBase<HistogramBucket> & {
|
|
781
|
+
buckets: Buckets<HistogramBucket> & (Record<string, HistogramBucket> | HistogramBucket[]);
|
|
769
782
|
}
|
|
770
783
|
|
|
771
|
-
export type MultiBucketAggregateBaseIpRangeBucket = MultiBucketAggregateBase & {
|
|
772
|
-
buckets: Buckets & (Record<string, IpRangeBucket> | IpRangeBucket[]);
|
|
784
|
+
export type MultiBucketAggregateBaseIpRangeBucket = MultiBucketAggregateBase<IpRangeBucket> & {
|
|
785
|
+
buckets: Buckets<IpRangeBucket> & (Record<string, IpRangeBucket> | IpRangeBucket[]);
|
|
773
786
|
}
|
|
774
787
|
|
|
775
|
-
export type MultiBucketAggregateBaseLongRareTermsBucket = MultiBucketAggregateBase & {
|
|
776
|
-
buckets?: Buckets & (Record<string, LongRareTermsBucket> | LongRareTermsBucket[]);
|
|
788
|
+
export type MultiBucketAggregateBaseLongRareTermsBucket = MultiBucketAggregateBase<LongRareTermsBucket> & {
|
|
789
|
+
buckets?: Buckets<LongRareTermsBucket> & (Record<string, LongRareTermsBucket> | LongRareTermsBucket[]);
|
|
777
790
|
}
|
|
778
791
|
|
|
779
|
-
export type MultiBucketAggregateBaseRangeBucket = MultiBucketAggregateBase & {
|
|
780
|
-
buckets: Buckets & (Record<string, RangeBucket> | RangeBucket[]);
|
|
792
|
+
export type MultiBucketAggregateBaseRangeBucket = MultiBucketAggregateBase<RangeBucket> & {
|
|
793
|
+
buckets: Buckets<RangeBucket> & (Record<string, RangeBucket> | RangeBucket[]);
|
|
781
794
|
}
|
|
782
795
|
|
|
783
|
-
export type MultiBucketAggregateBaseStringRareTermsBucket = MultiBucketAggregateBase & {
|
|
784
|
-
buckets?: Buckets & (Record<string, StringRareTermsBucket> | StringRareTermsBucket[]);
|
|
796
|
+
export type MultiBucketAggregateBaseStringRareTermsBucket = MultiBucketAggregateBase<StringRareTermsBucket> & {
|
|
797
|
+
buckets?: Buckets<StringRareTermsBucket> & (Record<string, StringRareTermsBucket> | StringRareTermsBucket[]);
|
|
785
798
|
}
|
|
786
799
|
|
|
787
|
-
export type MultiBucketAggregateBaseVariableWidthHistogramBucket = MultiBucketAggregateBase & {
|
|
788
|
-
buckets: Buckets & (Record<string, VariableWidthHistogramBucket> | VariableWidthHistogramBucket[]);
|
|
800
|
+
export type MultiBucketAggregateBaseVariableWidthHistogramBucket = MultiBucketAggregateBase<VariableWidthHistogramBucket> & {
|
|
801
|
+
buckets: Buckets<VariableWidthHistogramBucket> & (Record<string, VariableWidthHistogramBucket> | VariableWidthHistogramBucket[]);
|
|
789
802
|
}
|
|
790
803
|
|
|
791
|
-
export type MultiBucketAggregateBaseVoid = MultiBucketAggregateBase & {
|
|
792
|
-
buckets?: Buckets & (Record<string, Common.Void> | Common.Void[]);
|
|
804
|
+
export type MultiBucketAggregateBaseVoid = MultiBucketAggregateBase<Common.Void> & {
|
|
805
|
+
buckets?: Buckets<Common.Void> & (Record<string, Common.Void> | Common.Void[]);
|
|
793
806
|
}
|
|
794
807
|
|
|
795
808
|
export type MultiBucketBase = {
|
|
796
809
|
doc_count: number;
|
|
810
|
+
[key: string]: any | Aggregate;
|
|
797
811
|
}
|
|
798
812
|
|
|
799
813
|
export type MultiTermLookup = {
|
|
@@ -801,9 +815,13 @@ export type MultiTermLookup = {
|
|
|
801
815
|
missing?: Common.FieldValue;
|
|
802
816
|
}
|
|
803
817
|
|
|
804
|
-
export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket
|
|
818
|
+
export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket
|
|
805
819
|
|
|
806
820
|
export type MultiTermsAggregation = BucketAggregationBase & {
|
|
821
|
+
multi_terms: MultiTermsAggregationFields;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export type MultiTermsAggregationFields = {
|
|
807
825
|
collect_mode?: TermsAggregationCollectMode;
|
|
808
826
|
min_doc_count?: number;
|
|
809
827
|
order?: HistogramOrder;
|
|
@@ -828,6 +846,10 @@ export type MutualInformationHeuristic = {
|
|
|
828
846
|
export type NestedAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
829
847
|
|
|
830
848
|
export type NestedAggregation = BucketAggregationBase & {
|
|
849
|
+
nested: NestedAggregationFields;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export type NestedAggregationFields = {
|
|
831
853
|
path?: Common.Field;
|
|
832
854
|
}
|
|
833
855
|
|
|
@@ -840,6 +862,10 @@ export type NormalizeMethod = 'mean' | 'percent_of_sum' | 'rescale_0_1' | 'resca
|
|
|
840
862
|
export type ParentAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
841
863
|
|
|
842
864
|
export type ParentAggregation = BucketAggregationBase & {
|
|
865
|
+
parent: ParentAggregationFields;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export type ParentAggregationFields = {
|
|
843
869
|
type?: Common.RelationName;
|
|
844
870
|
}
|
|
845
871
|
|
|
@@ -865,7 +891,7 @@ export type PercentilesAggregation = FormatMetricAggregationBase & {
|
|
|
865
891
|
tdigest?: TDigest;
|
|
866
892
|
}
|
|
867
893
|
|
|
868
|
-
export type PercentilesBucketAggregate = PercentilesAggregateBase
|
|
894
|
+
export type PercentilesBucketAggregate = PercentilesAggregateBase
|
|
869
895
|
|
|
870
896
|
export type PercentilesBucketAggregation = PipelineAggregationBase & {
|
|
871
897
|
percents?: number[];
|
|
@@ -876,11 +902,15 @@ export type PipelineAggregationBase = BucketPathAggregation & {
|
|
|
876
902
|
gap_policy?: GapPolicy;
|
|
877
903
|
}
|
|
878
904
|
|
|
879
|
-
export type RangeAggregate = RangeAggregateBase
|
|
905
|
+
export type RangeAggregate = RangeAggregateBase
|
|
880
906
|
|
|
881
907
|
export type RangeAggregateBase = MultiBucketAggregateBaseRangeBucket & Record<string, any>
|
|
882
908
|
|
|
883
909
|
export type RangeAggregation = BucketAggregationBase & {
|
|
910
|
+
range: RangeAggregationFields;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export type RangeAggregationFields = {
|
|
884
914
|
field?: Common.Field;
|
|
885
915
|
format?: string;
|
|
886
916
|
keyed?: boolean;
|
|
@@ -898,6 +928,10 @@ export type RangeBucket = MultiBucketBase & {
|
|
|
898
928
|
}
|
|
899
929
|
|
|
900
930
|
export type RareTermsAggregation = BucketAggregationBase & {
|
|
931
|
+
rare_terms: RareTermsAggregationFields;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export type RareTermsAggregationFields = {
|
|
901
935
|
exclude?: TermsExclude;
|
|
902
936
|
field?: Common.Field;
|
|
903
937
|
include?: TermsInclude;
|
|
@@ -922,17 +956,25 @@ export type RateMode = 'sum' | 'value_count'
|
|
|
922
956
|
export type ReverseNestedAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
923
957
|
|
|
924
958
|
export type ReverseNestedAggregation = BucketAggregationBase & {
|
|
959
|
+
reverse_nested: ReverseNestedAggregationFields;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export type ReverseNestedAggregationFields = {
|
|
925
963
|
path?: Common.Field;
|
|
926
964
|
}
|
|
927
965
|
|
|
928
966
|
export type SamplerAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
929
967
|
|
|
930
968
|
export type SamplerAggregation = BucketAggregationBase & {
|
|
931
|
-
|
|
969
|
+
sampler: SamplerAggregationFields;
|
|
932
970
|
}
|
|
933
971
|
|
|
934
972
|
export type SamplerAggregationExecutionHint = 'bytes_hash' | 'global_ordinals' | 'map'
|
|
935
973
|
|
|
974
|
+
export type SamplerAggregationFields = {
|
|
975
|
+
shard_size?: number;
|
|
976
|
+
}
|
|
977
|
+
|
|
936
978
|
export type ScriptedHeuristic = {
|
|
937
979
|
script: Common.Script;
|
|
938
980
|
}
|
|
@@ -953,37 +995,41 @@ export type SerialDifferencingAggregation = PipelineAggregationBase & {
|
|
|
953
995
|
lag?: number;
|
|
954
996
|
}
|
|
955
997
|
|
|
956
|
-
export type SignificantLongTermsAggregate = SignificantTermsAggregateBaseSignificantLongTermsBucket
|
|
998
|
+
export type SignificantLongTermsAggregate = SignificantTermsAggregateBaseSignificantLongTermsBucket
|
|
957
999
|
|
|
958
1000
|
export type SignificantLongTermsBucket = SignificantTermsBucketBase & {
|
|
959
1001
|
key: number;
|
|
960
1002
|
key_as_string?: string;
|
|
961
1003
|
}
|
|
962
1004
|
|
|
963
|
-
export type SignificantStringTermsAggregate = SignificantTermsAggregateBaseSignificantStringTermsBucket
|
|
1005
|
+
export type SignificantStringTermsAggregate = SignificantTermsAggregateBaseSignificantStringTermsBucket
|
|
964
1006
|
|
|
965
1007
|
export type SignificantStringTermsBucket = SignificantTermsBucketBase & {
|
|
966
1008
|
key: string;
|
|
967
1009
|
}
|
|
968
1010
|
|
|
969
|
-
export type SignificantTermsAggregateBase = MultiBucketAggregateBase & {
|
|
1011
|
+
export type SignificantTermsAggregateBase = MultiBucketAggregateBase<any> & {
|
|
970
1012
|
bg_count?: number;
|
|
971
1013
|
doc_count?: number;
|
|
972
1014
|
}
|
|
973
1015
|
|
|
974
1016
|
export type SignificantTermsAggregateBaseSignificantLongTermsBucket = SignificantTermsAggregateBase & {
|
|
975
|
-
buckets?: Buckets & (Record<string, SignificantLongTermsBucket> | SignificantLongTermsBucket[]);
|
|
1017
|
+
buckets?: Buckets<SignificantLongTermsBucket> & (Record<string, SignificantLongTermsBucket> | SignificantLongTermsBucket[]);
|
|
976
1018
|
}
|
|
977
1019
|
|
|
978
1020
|
export type SignificantTermsAggregateBaseSignificantStringTermsBucket = SignificantTermsAggregateBase & {
|
|
979
|
-
buckets?: Buckets & (Record<string, SignificantStringTermsBucket> | SignificantStringTermsBucket[]);
|
|
1021
|
+
buckets?: Buckets<SignificantStringTermsBucket> & (Record<string, SignificantStringTermsBucket> | SignificantStringTermsBucket[]);
|
|
980
1022
|
}
|
|
981
1023
|
|
|
982
1024
|
export type SignificantTermsAggregateBaseVoid = SignificantTermsAggregateBase & {
|
|
983
|
-
buckets?: Buckets & (Record<string, Common.Void> | Common.Void[]);
|
|
1025
|
+
buckets?: Buckets<Common.Void> & (Record<string, Common.Void> | Common.Void[]);
|
|
984
1026
|
}
|
|
985
1027
|
|
|
986
1028
|
export type SignificantTermsAggregation = BucketAggregationBase & {
|
|
1029
|
+
significant_terms: SignificantTermsAggregationFields;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export type SignificantTermsAggregationFields = {
|
|
987
1033
|
background_filter?: Common_QueryDsl.QueryContainer;
|
|
988
1034
|
chi_square?: ChiSquareHeuristic;
|
|
989
1035
|
exclude?: TermsExclude;
|
|
@@ -1007,6 +1053,10 @@ export type SignificantTermsBucketBase = MultiBucketBase & {
|
|
|
1007
1053
|
}
|
|
1008
1054
|
|
|
1009
1055
|
export type SignificantTextAggregation = BucketAggregationBase & {
|
|
1056
|
+
significant_text: SignificantTextAggregationFields;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export type SignificantTextAggregationFields = {
|
|
1010
1060
|
background_filter?: Common_QueryDsl.QueryContainer;
|
|
1011
1061
|
chi_square?: ChiSquareHeuristic;
|
|
1012
1062
|
exclude?: TermsExclude;
|
|
@@ -1031,11 +1081,10 @@ export type SimpleMovingAverageAggregation = MovingAverageAggregationBase & {
|
|
|
1031
1081
|
settings: Common.EmptyObject;
|
|
1032
1082
|
}
|
|
1033
1083
|
|
|
1034
|
-
export type SimpleValueAggregate = SingleMetricAggregateBase
|
|
1084
|
+
export type SimpleValueAggregate = SingleMetricAggregateBase
|
|
1035
1085
|
|
|
1036
1086
|
export type SingleBucketAggregateBase = AggregateBase & {
|
|
1037
1087
|
doc_count: number;
|
|
1038
|
-
[key: string]: any | Aggregate;
|
|
1039
1088
|
}
|
|
1040
1089
|
|
|
1041
1090
|
export type SingleMetricAggregateBase = AggregateBase & {
|
|
@@ -1077,7 +1126,7 @@ export type StatsAggregateBase = AggregateBase & {
|
|
|
1077
1126
|
|
|
1078
1127
|
export type StatsAggregation = FormatMetricAggregationBase & Record<string, any>
|
|
1079
1128
|
|
|
1080
|
-
export type StatsBucketAggregate = StatsAggregateBase
|
|
1129
|
+
export type StatsBucketAggregate = StatsAggregateBase
|
|
1081
1130
|
|
|
1082
1131
|
export type StatsBucketAggregation = PipelineAggregationBase & Record<string, any>
|
|
1083
1132
|
|
|
@@ -1093,74 +1142,75 @@ export type StringTermsBucket = TermsBucketBase & {
|
|
|
1093
1142
|
key: string;
|
|
1094
1143
|
}
|
|
1095
1144
|
|
|
1096
|
-
export type SumAggregate = SingleMetricAggregateBase
|
|
1145
|
+
export type SumAggregate = SingleMetricAggregateBase
|
|
1097
1146
|
|
|
1098
1147
|
export type SumAggregation = FormatMetricAggregationBase & Record<string, any>
|
|
1099
1148
|
|
|
1100
1149
|
export type SumBucketAggregation = PipelineAggregationBase & Record<string, any>
|
|
1101
1150
|
|
|
1102
|
-
export type T = Record<string, any>
|
|
1103
|
-
|
|
1104
|
-
export type TBucket = Record<string, any>
|
|
1105
|
-
|
|
1106
1151
|
export type TDigest = {
|
|
1107
1152
|
compression?: number;
|
|
1108
1153
|
}
|
|
1109
1154
|
|
|
1110
|
-
export type TDigestPercentileRanksAggregate = PercentilesAggregateBase
|
|
1155
|
+
export type TDigestPercentileRanksAggregate = PercentilesAggregateBase
|
|
1111
1156
|
|
|
1112
|
-
export type TDigestPercentilesAggregate = PercentilesAggregateBase
|
|
1157
|
+
export type TDigestPercentilesAggregate = PercentilesAggregateBase
|
|
1113
1158
|
|
|
1114
|
-
export type TermsAggregateBase = MultiBucketAggregateBase & {
|
|
1159
|
+
export type TermsAggregateBase = MultiBucketAggregateBase<any> & {
|
|
1115
1160
|
doc_count_error_upper_bound?: number;
|
|
1116
1161
|
sum_other_doc_count?: number;
|
|
1117
1162
|
}
|
|
1118
1163
|
|
|
1119
1164
|
export type TermsAggregateBaseDoubleTermsBucket = TermsAggregateBase & {
|
|
1120
|
-
buckets
|
|
1165
|
+
buckets: DoubleTermsBucket[];
|
|
1121
1166
|
}
|
|
1122
1167
|
|
|
1123
1168
|
export type TermsAggregateBaseLongTermsBucket = TermsAggregateBase & {
|
|
1124
|
-
buckets
|
|
1169
|
+
buckets: LongTermsBucket[];
|
|
1125
1170
|
}
|
|
1126
1171
|
|
|
1127
1172
|
export type TermsAggregateBaseMultiTermsBucket = TermsAggregateBase & {
|
|
1128
|
-
buckets?: Buckets & (Record<string, MultiTermsBucket> | MultiTermsBucket[]);
|
|
1173
|
+
buckets?: Buckets<MultiTermsBucket> & (Record<string, MultiTermsBucket> | MultiTermsBucket[]);
|
|
1129
1174
|
}
|
|
1130
1175
|
|
|
1131
1176
|
export type TermsAggregateBaseStringTermsBucket = TermsAggregateBase & {
|
|
1132
|
-
buckets
|
|
1177
|
+
buckets: StringTermsBucket[];
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export type TermsAggregateBaseUnsignedLongTermsBucket = TermsAggregateBase & {
|
|
1181
|
+
buckets: UnsignedLongTermsBucket[];
|
|
1133
1182
|
}
|
|
1134
1183
|
|
|
1135
1184
|
export type TermsAggregateBaseVoid = TermsAggregateBase & {
|
|
1136
|
-
buckets
|
|
1185
|
+
buckets: Common.Void[];
|
|
1137
1186
|
}
|
|
1138
1187
|
|
|
1139
1188
|
export type TermsAggregation = BucketAggregationBase & {
|
|
1189
|
+
terms: TermsAggregationFields;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
export type TermsAggregationCollectMode = 'breadth_first' | 'depth_first'
|
|
1193
|
+
|
|
1194
|
+
export type TermsAggregationExecutionHint = 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality' | 'map'
|
|
1195
|
+
|
|
1196
|
+
export type TermsAggregationFields = {
|
|
1140
1197
|
collect_mode?: TermsAggregationCollectMode;
|
|
1141
1198
|
exclude?: TermsExclude;
|
|
1142
1199
|
execution_hint?: TermsAggregationExecutionHint;
|
|
1143
|
-
field?: Common.Field;
|
|
1144
1200
|
format?: string;
|
|
1145
1201
|
include?: TermsInclude;
|
|
1146
1202
|
min_doc_count?: number;
|
|
1147
1203
|
missing?: Common.FieldValue;
|
|
1148
|
-
missing_bucket?: boolean;
|
|
1149
|
-
missing_order?: MissingOrder;
|
|
1150
1204
|
order?: AggregateOrder;
|
|
1151
|
-
|
|
1205
|
+
shard_min_doc_count?: number;
|
|
1152
1206
|
shard_size?: number;
|
|
1153
1207
|
show_term_doc_count_error?: boolean;
|
|
1154
1208
|
size?: number;
|
|
1155
|
-
value_type?:
|
|
1209
|
+
value_type?: ValueType;
|
|
1156
1210
|
}
|
|
1157
1211
|
|
|
1158
|
-
export type TermsAggregationCollectMode = 'breadth_first' | 'depth_first'
|
|
1159
|
-
|
|
1160
|
-
export type TermsAggregationExecutionHint = 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality' | 'map'
|
|
1161
|
-
|
|
1162
1212
|
export type TermsBucketBase = MultiBucketBase & {
|
|
1163
|
-
|
|
1213
|
+
doc_count_error_upper_bound?: number;
|
|
1164
1214
|
}
|
|
1165
1215
|
|
|
1166
1216
|
export type TermsExclude = string | string[]
|
|
@@ -1179,7 +1229,7 @@ export type TestPopulation = {
|
|
|
1179
1229
|
}
|
|
1180
1230
|
|
|
1181
1231
|
export type TopHitsAggregate = AggregateBase & {
|
|
1182
|
-
hits: Core_Search.
|
|
1232
|
+
hits: Core_Search.HitsMetadataJsonValue;
|
|
1183
1233
|
}
|
|
1184
1234
|
|
|
1185
1235
|
export type TopHitsAggregation = MetricAggregationBase & {
|
|
@@ -1202,7 +1252,7 @@ export type TTestAggregate = AggregateBase & {
|
|
|
1202
1252
|
value_as_string?: string;
|
|
1203
1253
|
}
|
|
1204
1254
|
|
|
1205
|
-
export type TTestAggregation =
|
|
1255
|
+
export type TTestAggregation = {
|
|
1206
1256
|
a?: TestPopulation;
|
|
1207
1257
|
b?: TestPopulation;
|
|
1208
1258
|
type?: TTestType;
|
|
@@ -1212,17 +1262,24 @@ export type TTestType = 'heteroscedastic' | 'homoscedastic' | 'paired'
|
|
|
1212
1262
|
|
|
1213
1263
|
export type UnmappedRareTermsAggregate = MultiBucketAggregateBaseVoid & Record<string, any>
|
|
1214
1264
|
|
|
1215
|
-
export type UnmappedSignificantTermsAggregate = SignificantTermsAggregateBaseVoid
|
|
1265
|
+
export type UnmappedSignificantTermsAggregate = SignificantTermsAggregateBaseVoid
|
|
1216
1266
|
|
|
1217
1267
|
export type UnmappedTermsAggregate = TermsAggregateBaseVoid & Record<string, any>
|
|
1218
1268
|
|
|
1219
|
-
export type
|
|
1269
|
+
export type UnsignedLongTermsAggregate = TermsAggregateBaseUnsignedLongTermsBucket & Record<string, any>
|
|
1270
|
+
|
|
1271
|
+
export type UnsignedLongTermsBucket = TermsBucketBase & {
|
|
1272
|
+
key: number;
|
|
1273
|
+
key_as_string?: string;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
export type ValueCountAggregate = SingleMetricAggregateBase
|
|
1220
1277
|
|
|
1221
1278
|
export type ValueCountAggregation = FormattableMetricAggregation & Record<string, any>
|
|
1222
1279
|
|
|
1223
|
-
export type ValueType = 'boolean' | '
|
|
1280
|
+
export type ValueType = 'boolean' | 'byte' | 'date' | 'double' | 'float' | 'integer' | 'ip' | 'long' | 'number' | 'numeric' | 'short' | 'string' | 'unsigned_long'
|
|
1224
1281
|
|
|
1225
|
-
export type VariableWidthHistogramAggregate = MultiBucketAggregateBaseVariableWidthHistogramBucket
|
|
1282
|
+
export type VariableWidthHistogramAggregate = MultiBucketAggregateBaseVariableWidthHistogramBucket
|
|
1226
1283
|
|
|
1227
1284
|
export type VariableWidthHistogramAggregation = {
|
|
1228
1285
|
buckets?: number;
|
|
@@ -1240,7 +1297,7 @@ export type VariableWidthHistogramBucket = MultiBucketBase & {
|
|
|
1240
1297
|
min_as_string?: string;
|
|
1241
1298
|
}
|
|
1242
1299
|
|
|
1243
|
-
export type WeightedAverageAggregation =
|
|
1300
|
+
export type WeightedAverageAggregation = {
|
|
1244
1301
|
format?: string;
|
|
1245
1302
|
value?: WeightedAverageValue;
|
|
1246
1303
|
value_type?: ValueType;
|
|
@@ -1253,5 +1310,5 @@ export type WeightedAverageValue = {
|
|
|
1253
1310
|
script?: Common.Script;
|
|
1254
1311
|
}
|
|
1255
1312
|
|
|
1256
|
-
export type WeightedAvgAggregate = SingleMetricAggregateBase
|
|
1313
|
+
export type WeightedAvgAggregate = SingleMetricAggregateBase
|
|
1257
1314
|
|