@opensearch-project/opensearch 3.6.0 → 3.10.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/Transport.js +48 -3
- package/lib/aws/shared.js +1 -1
- package/package.json +8 -3
|
@@ -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,16 +223,17 @@ 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
238
|
_id?: Common.Id;
|
|
235
239
|
_ignored?: string[];
|
|
@@ -248,24 +252,31 @@ export type Hit = {
|
|
|
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
|
-
_source?:
|
|
258
|
-
}[];
|
|
259
|
-
max_score
|
|
260
|
+
export type HitsMetadata<TDocument = any> = {
|
|
261
|
+
hits: (Hit<TDocument> & {
|
|
262
|
+
_source?: TDocument;
|
|
263
|
+
})[];
|
|
264
|
+
max_score: undefined | number;
|
|
260
265
|
total?: TotalHits | number;
|
|
261
266
|
}
|
|
262
267
|
|
|
268
|
+
export type HitsMetadataJsonValue = HitsMetadata<any> & {
|
|
269
|
+
hits?: {
|
|
270
|
+
_source?: any;
|
|
271
|
+
}[];
|
|
272
|
+
}
|
|
273
|
+
|
|
263
274
|
export type InnerHits = {
|
|
264
275
|
_source?: SourceConfig;
|
|
265
276
|
collapse?: FieldCollapse;
|
|
266
277
|
docvalue_fields?: Common_QueryDsl.FieldAndFormat[];
|
|
267
278
|
explain?: boolean;
|
|
268
|
-
fields?:
|
|
279
|
+
fields?: Common_QueryDsl.FieldAndFormat[];
|
|
269
280
|
from?: number;
|
|
270
281
|
highlight?: Highlight;
|
|
271
282
|
ignore_unmapped?: boolean;
|
|
@@ -350,8 +361,8 @@ export type PointInTimeReference = {
|
|
|
350
361
|
export type ProcessorExecutionDetail = {
|
|
351
362
|
duration_millis?: number;
|
|
352
363
|
error?: string;
|
|
353
|
-
input_data?:
|
|
354
|
-
output_data?:
|
|
364
|
+
input_data?: any;
|
|
365
|
+
output_data?: any;
|
|
355
366
|
processor_name?: string;
|
|
356
367
|
status?: string;
|
|
357
368
|
tag?: string;
|
|
@@ -402,31 +413,51 @@ export type RescoreQuery = {
|
|
|
402
413
|
score_mode?: ScoreMode;
|
|
403
414
|
}
|
|
404
415
|
|
|
405
|
-
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> = {
|
|
406
427
|
_clusters?: Common.ClusterStatistics;
|
|
407
428
|
_scroll_id?: Common.ScrollId;
|
|
408
429
|
_shards: Common.ShardStatistics;
|
|
409
430
|
aggregations?: Record<string, Common_Aggregations.Aggregate>;
|
|
410
|
-
|
|
411
|
-
hits
|
|
431
|
+
hits: HitsMetadata<TDocument> & {
|
|
432
|
+
hits?: {
|
|
433
|
+
_source?: TDocument;
|
|
434
|
+
}[];
|
|
435
|
+
};
|
|
412
436
|
num_reduce_phases?: number;
|
|
413
437
|
phase_took?: Common.PhaseTook;
|
|
414
438
|
pit_id?: Common.Id;
|
|
415
439
|
processor_results?: ProcessorExecutionDetail[];
|
|
416
440
|
profile?: Profile;
|
|
417
|
-
suggest?: Record<string, Suggest[]>;
|
|
441
|
+
suggest?: Record<string, Suggest<TDocument>[]>;
|
|
418
442
|
terminated_early?: boolean;
|
|
419
443
|
timed_out: boolean;
|
|
420
444
|
took: number;
|
|
421
445
|
}
|
|
422
446
|
|
|
423
|
-
export type
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
+
})
|
|
430
461
|
|
|
431
462
|
export type ShardProfile = {
|
|
432
463
|
aggregations: AggregationProfile[];
|
|
@@ -456,7 +487,13 @@ export type StupidBackoffSmoothingModel = {
|
|
|
456
487
|
discount: number;
|
|
457
488
|
}
|
|
458
489
|
|
|
459
|
-
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
|
|
460
497
|
|
|
461
498
|
export type SuggestBase = {
|
|
462
499
|
length: number;
|
|
@@ -485,10 +522,6 @@ export type SuggestFuzziness = {
|
|
|
485
522
|
|
|
486
523
|
export type SuggestSort = 'frequency' | 'score'
|
|
487
524
|
|
|
488
|
-
export type T = Record<string, any>
|
|
489
|
-
|
|
490
|
-
export type TDocument = Record<string, any>
|
|
491
|
-
|
|
492
525
|
export type TermSuggest = SuggestBase & {
|
|
493
526
|
options: TermSuggestOption | TermSuggestOption[];
|
|
494
527
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
|
|
@@ -80,7 +80,7 @@ export type SearchStateResponse = {
|
|
|
80
80
|
provision_end_time?: Common.DateTime;
|
|
81
81
|
provision_start_time?: Common.DateTime;
|
|
82
82
|
provisioning_progress?: string;
|
|
83
|
-
resources_created?: ResourcesCreated;
|
|
83
|
+
resources_created?: ResourcesCreated | ResourcesCreated[];
|
|
84
84
|
state?: string;
|
|
85
85
|
user?: user;
|
|
86
86
|
workflow_id?: string;
|
|
@@ -128,6 +128,7 @@ export type user = {
|
|
|
128
128
|
name?: string;
|
|
129
129
|
roles?: string[];
|
|
130
130
|
user_requested_tenant?: string;
|
|
131
|
+
user_requested_tenant_access?: string;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
export type UserProvidedSubstitutionExpressions = Record<string, string>
|
|
@@ -159,6 +160,8 @@ export type WorkflowSearchStateResponse = {
|
|
|
159
160
|
took?: number;
|
|
160
161
|
}
|
|
161
162
|
|
|
163
|
+
export type WorkFlowState = 'COMPLETED' | 'FAILED' | 'NOT_STARTED' | 'PROVISIONING'
|
|
164
|
+
|
|
162
165
|
export type WorkFlowStatusDefaultResponse = {
|
|
163
166
|
error?: string;
|
|
164
167
|
resources_created?: string[];
|
|
@@ -172,7 +175,7 @@ export type WorkFlowStatusFullResponse = {
|
|
|
172
175
|
provision_start_time?: string;
|
|
173
176
|
provisioning_progress?: string;
|
|
174
177
|
resources_created?: string[];
|
|
175
|
-
state?:
|
|
178
|
+
state?: WorkFlowState;
|
|
176
179
|
user?: user;
|
|
177
180
|
user_outputs?: string[];
|
|
178
181
|
workflow_id?: string;
|
|
@@ -29,24 +29,28 @@ export type DataSource = {
|
|
|
29
29
|
endpoint: string;
|
|
30
30
|
name: Common.Name;
|
|
31
31
|
next_update_at_in_epoch_millis: Common.EpochTimeUnitMillis;
|
|
32
|
-
state:
|
|
32
|
+
state: DataSourceState;
|
|
33
33
|
update_interval_in_days: number;
|
|
34
34
|
update_stats: UpdateStats;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export type DataSourceState = 'AVAILABLE' | 'CREATE_FAILED' | 'CREATING' | 'DELETING'
|
|
38
|
+
|
|
37
39
|
export type Envelope = PointCoordinates[]
|
|
38
40
|
|
|
39
41
|
export type GeoJSONData = {
|
|
40
42
|
geometry: Geometry;
|
|
41
43
|
properties?: Record<string, any>;
|
|
42
|
-
type:
|
|
44
|
+
type: GeoJSONDataType;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
export type GeoJSONDataType = 'Feature' | 'FeatureCollection'
|
|
48
|
+
|
|
45
49
|
export type GeoJSONRequest = {
|
|
46
50
|
data: GeoJSONData[];
|
|
47
51
|
field?: string;
|
|
48
52
|
index: Common.IndexName;
|
|
49
|
-
type:
|
|
53
|
+
type: GeospatialFieldType;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
export type Geometry = GeoShapes | GeometryCollection
|
|
@@ -58,6 +62,8 @@ export type GeometryCollection = {
|
|
|
58
62
|
|
|
59
63
|
export type GeoShapes = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | Envelope
|
|
60
64
|
|
|
65
|
+
export type GeospatialFieldType = 'geo_point' | 'geo_shape'
|
|
66
|
+
|
|
61
67
|
export type GeoSpatialGeojsonUploadResponse = {
|
|
62
68
|
errors: boolean;
|
|
63
69
|
failure: number;
|
package/api/_types/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import * as Core_Termvectors from './_core.termvectors'
|
|
|
40
40
|
import * as Core_UpdateByQueryRethrottle from './_core.update_by_query_rethrottle'
|
|
41
41
|
import * as Core_Update from './_core.update'
|
|
42
42
|
import * as AsynchronousSearch_Common from './asynchronous_search._common'
|
|
43
|
+
import * as Cat_Common from './cat._common'
|
|
43
44
|
import * as Cat_Aliases from './cat.aliases'
|
|
44
45
|
import * as Cat_Allocation from './cat.allocation'
|
|
45
46
|
import * as Cat_ClusterManager from './cat.cluster_manager'
|
|
@@ -83,6 +84,7 @@ import * as Indices_GetAlias from './indices.get_alias'
|
|
|
83
84
|
import * as Indices_GetFieldMapping from './indices.get_field_mapping'
|
|
84
85
|
import * as Indices_GetIndexTemplate from './indices.get_index_template'
|
|
85
86
|
import * as Indices_GetMapping from './indices.get_mapping'
|
|
87
|
+
import * as Indices_ModifyDataStream from './indices.modify_data_stream'
|
|
86
88
|
import * as Indices_PutIndexTemplate from './indices.put_index_template'
|
|
87
89
|
import * as Indices_Recovery from './indices.recovery'
|
|
88
90
|
import * as Indices_ResolveIndex from './indices.resolve_index'
|
|
@@ -95,9 +97,11 @@ import * as Indices_UpdateAliases from './indices.update_aliases'
|
|
|
95
97
|
import * as Indices_ValidateQuery from './indices.validate_query'
|
|
96
98
|
import * as Ingest_Common from './ingest._common'
|
|
97
99
|
import * as Ingest_Simulate from './ingest.simulate'
|
|
100
|
+
import * as Ingestion_Common from './ingestion._common'
|
|
98
101
|
import * as Insights_Common from './insights._common'
|
|
99
102
|
import * as Ism_Common from './ism._common'
|
|
100
103
|
import * as Knn_Common from './knn._common'
|
|
104
|
+
import * as List_Common from './list._common'
|
|
101
105
|
import * as Ltr_Common from './ltr._common'
|
|
102
106
|
import * as Ml_Common from './ml._common'
|
|
103
107
|
import * as Neural_Common from './neural._common'
|
|
@@ -108,11 +112,15 @@ import * as Nodes_Stats from './nodes.stats'
|
|
|
108
112
|
import * as Nodes_Usage from './nodes.usage'
|
|
109
113
|
import * as Notifications_Common from './notifications._common'
|
|
110
114
|
import * as Observability_Common from './observability._common'
|
|
115
|
+
import * as Ppl_Common from './ppl._common'
|
|
111
116
|
import * as Query_Common from './query._common'
|
|
112
117
|
import * as RemoteStore_Common from './remote_store._common'
|
|
113
118
|
import * as Replication_Common from './replication._common'
|
|
114
119
|
import * as Rollups_Common from './rollups._common'
|
|
115
120
|
import * as SearchPipeline_Common from './search_pipeline._common'
|
|
121
|
+
import * as SearchRelevance_Common from './search_relevance._common'
|
|
122
|
+
import * as SecurityAnalytics_Alerts from './security_analytics.alerts'
|
|
123
|
+
import * as SecurityAnalytics_Findings from './security_analytics.findings'
|
|
116
124
|
import * as Security_Common from './security._common'
|
|
117
125
|
import * as Sm_Common from './sm._common'
|
|
118
126
|
import * as Snapshot_Common from './snapshot._common'
|
|
@@ -122,6 +130,7 @@ import * as Snapshot_VerifyRepository from './snapshot.verify_repository'
|
|
|
122
130
|
import * as Sql_Common from './sql._common'
|
|
123
131
|
import * as Tasks_Common from './tasks._common'
|
|
124
132
|
import * as Transforms_Common from './transforms._common'
|
|
133
|
+
import * as Ubi_Common from './ubi._common'
|
|
125
134
|
import * as Wlm_Common from './wlm._common'
|
|
126
135
|
import * as Global from './_global'
|
|
127
136
|
|
|
@@ -152,6 +161,7 @@ export {
|
|
|
152
161
|
Core_UpdateByQueryRethrottle,
|
|
153
162
|
Core_Update,
|
|
154
163
|
AsynchronousSearch_Common,
|
|
164
|
+
Cat_Common,
|
|
155
165
|
Cat_Aliases,
|
|
156
166
|
Cat_Allocation,
|
|
157
167
|
Cat_ClusterManager,
|
|
@@ -195,6 +205,7 @@ export {
|
|
|
195
205
|
Indices_GetFieldMapping,
|
|
196
206
|
Indices_GetIndexTemplate,
|
|
197
207
|
Indices_GetMapping,
|
|
208
|
+
Indices_ModifyDataStream,
|
|
198
209
|
Indices_PutIndexTemplate,
|
|
199
210
|
Indices_Recovery,
|
|
200
211
|
Indices_ResolveIndex,
|
|
@@ -207,9 +218,11 @@ export {
|
|
|
207
218
|
Indices_ValidateQuery,
|
|
208
219
|
Ingest_Common,
|
|
209
220
|
Ingest_Simulate,
|
|
221
|
+
Ingestion_Common,
|
|
210
222
|
Insights_Common,
|
|
211
223
|
Ism_Common,
|
|
212
224
|
Knn_Common,
|
|
225
|
+
List_Common,
|
|
213
226
|
Ltr_Common,
|
|
214
227
|
Ml_Common,
|
|
215
228
|
Neural_Common,
|
|
@@ -220,11 +233,15 @@ export {
|
|
|
220
233
|
Nodes_Usage,
|
|
221
234
|
Notifications_Common,
|
|
222
235
|
Observability_Common,
|
|
236
|
+
Ppl_Common,
|
|
223
237
|
Query_Common,
|
|
224
238
|
RemoteStore_Common,
|
|
225
239
|
Replication_Common,
|
|
226
240
|
Rollups_Common,
|
|
227
241
|
SearchPipeline_Common,
|
|
242
|
+
SearchRelevance_Common,
|
|
243
|
+
SecurityAnalytics_Alerts,
|
|
244
|
+
SecurityAnalytics_Findings,
|
|
228
245
|
Security_Common,
|
|
229
246
|
Sm_Common,
|
|
230
247
|
Snapshot_Common,
|
|
@@ -234,6 +251,7 @@ export {
|
|
|
234
251
|
Sql_Common,
|
|
235
252
|
Tasks_Common,
|
|
236
253
|
Transforms_Common,
|
|
254
|
+
Ubi_Common,
|
|
237
255
|
Wlm_Common,
|
|
238
256
|
Global,
|
|
239
257
|
};
|