@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
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* modify the API generator.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import * as Nodes_Common from './nodes._common'
|
|
17
18
|
|
|
18
19
|
export type AccountDetails = {
|
|
19
20
|
backend_roles?: string[];
|
|
@@ -40,7 +41,13 @@ export type ActionGroupsMap = Record<string, ActionGroup>
|
|
|
40
41
|
|
|
41
42
|
export type AllowListConfig = {
|
|
42
43
|
enabled?: boolean;
|
|
43
|
-
requests?: Record<string,
|
|
44
|
+
requests?: Record<string, string[]>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ApiTokensConfig = {
|
|
48
|
+
enabled?: boolean;
|
|
49
|
+
max_duration_seconds?: number;
|
|
50
|
+
max_tokens?: number;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
export type AuditConfig = {
|
|
@@ -55,6 +62,7 @@ export type AuditConfigWithReadOnly = {
|
|
|
55
62
|
}
|
|
56
63
|
|
|
57
64
|
export type AuditLogsConfig = {
|
|
65
|
+
disabled_categories?: string[];
|
|
58
66
|
disabled_rest_categories?: string[];
|
|
59
67
|
disabled_transport_categories?: string[];
|
|
60
68
|
enable_rest?: boolean;
|
|
@@ -80,18 +88,12 @@ export type AuthInfo = {
|
|
|
80
88
|
size_of_custom_attributes?: string;
|
|
81
89
|
size_of_user?: string;
|
|
82
90
|
sso_logout_url?: undefined | string;
|
|
83
|
-
tenants?: Record<string,
|
|
91
|
+
tenants?: Record<string, boolean>;
|
|
84
92
|
user?: string;
|
|
85
93
|
user_name?: string;
|
|
86
94
|
user_requested_tenant?: undefined | string;
|
|
87
95
|
}
|
|
88
96
|
|
|
89
|
-
export type CertificateCountPerNode = {
|
|
90
|
-
failed?: number;
|
|
91
|
-
successful?: number;
|
|
92
|
-
total?: number;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
97
|
export type CertificatesDetail = {
|
|
96
98
|
issuer_dn?: string;
|
|
97
99
|
not_after?: string;
|
|
@@ -147,7 +149,9 @@ export type CreateTenantParams = {
|
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
export type DashboardsInfo = {
|
|
152
|
+
api_tokens_enabled?: boolean;
|
|
150
153
|
default_tenant?: string;
|
|
154
|
+
max_duration_seconds?: number;
|
|
151
155
|
multitenancy_enabled?: boolean;
|
|
152
156
|
not_fail_on_forbidden_enabled?: boolean;
|
|
153
157
|
opensearch_dashboards_index?: string;
|
|
@@ -155,7 +159,9 @@ export type DashboardsInfo = {
|
|
|
155
159
|
opensearch_dashboards_server_user?: string;
|
|
156
160
|
password_validation_error_message?: string;
|
|
157
161
|
password_validation_regex?: string;
|
|
162
|
+
preferred_tenants?: string[];
|
|
158
163
|
private_tenant_enabled?: boolean;
|
|
164
|
+
resource_sharing_enabled?: boolean;
|
|
159
165
|
sign_in_options?: string[];
|
|
160
166
|
user_name?: string;
|
|
161
167
|
}
|
|
@@ -171,6 +177,7 @@ export type DynamicConfig = {
|
|
|
171
177
|
}
|
|
172
178
|
|
|
173
179
|
export type DynamicOptions = {
|
|
180
|
+
api_tokens?: ApiTokensConfig;
|
|
174
181
|
auth_failure_listeners?: Record<string, any>;
|
|
175
182
|
authc?: Record<string, any>;
|
|
176
183
|
authz?: Record<string, any>;
|
|
@@ -185,14 +192,17 @@ export type DynamicOptions = {
|
|
|
185
192
|
multi_rolespan_enabled?: boolean;
|
|
186
193
|
on_behalf_of?: Record<string, any>;
|
|
187
194
|
'opensearch-dashboards'?: Record<string, any>;
|
|
195
|
+
privileges_evaluation_ignore_unauthorized_indices?: boolean;
|
|
188
196
|
respect_request_indices_options?: boolean;
|
|
189
197
|
}
|
|
190
198
|
|
|
191
199
|
export type Error = {
|
|
192
200
|
message?: string;
|
|
193
|
-
status?:
|
|
201
|
+
status?: ErrorStatus;
|
|
194
202
|
}
|
|
195
203
|
|
|
204
|
+
export type ErrorStatus = 'BAD_REQUEST' | 'CONFLICT' | 'FORBIDDEN' | 'INTERNAL_SERVER_ERROR' | 'NOT_FOUND' | 'NOT_IMPLEMENTED' | 'UNAUTHORIZED'
|
|
205
|
+
|
|
196
206
|
export type GenerateOBOToken = {
|
|
197
207
|
authenticationToken?: string;
|
|
198
208
|
durationSeconds?: string;
|
|
@@ -204,8 +214,7 @@ export type GetCertificates = {
|
|
|
204
214
|
transport_certificates_list?: CertificatesDetail[];
|
|
205
215
|
}
|
|
206
216
|
|
|
207
|
-
export type GetCertificatesNew = {
|
|
208
|
-
_nodes?: Record<string, CertificateCountPerNode>;
|
|
217
|
+
export type GetCertificatesNew = Nodes_Common.NodesResponseBase & {
|
|
209
218
|
cluster_name?: string;
|
|
210
219
|
nodes?: Record<string, CertificatesPerNode>;
|
|
211
220
|
}
|
|
@@ -213,6 +222,7 @@ export type GetCertificatesNew = {
|
|
|
213
222
|
export type HealthInfo = {
|
|
214
223
|
message?: undefined | string;
|
|
215
224
|
mode?: string;
|
|
225
|
+
settings?: Record<string, any>;
|
|
216
226
|
status?: string;
|
|
217
227
|
}
|
|
218
228
|
|
|
@@ -231,6 +241,7 @@ export type InternalServerError = {
|
|
|
231
241
|
export type MultiTenancyConfig = {
|
|
232
242
|
default_tenant?: string;
|
|
233
243
|
multitenancy_enabled?: boolean;
|
|
244
|
+
preferred_tenants?: string[];
|
|
234
245
|
private_tenant_enabled?: boolean;
|
|
235
246
|
sign_in_options?: string[];
|
|
236
247
|
}
|
|
@@ -252,10 +263,8 @@ export type PatchOperation = {
|
|
|
252
263
|
value?: Record<string, any>;
|
|
253
264
|
}
|
|
254
265
|
|
|
255
|
-
export type PatchOperations = PatchOperation[]
|
|
256
|
-
|
|
257
266
|
export type PermissionsInfo = {
|
|
258
|
-
disabled_endpoints?: Record<string,
|
|
267
|
+
disabled_endpoints?: Record<string, string[]>;
|
|
259
268
|
has_api_access?: boolean;
|
|
260
269
|
user?: string;
|
|
261
270
|
user_name?: string;
|
|
@@ -325,13 +334,13 @@ export type TenantsMap = Record<string, Tenant>
|
|
|
325
334
|
|
|
326
335
|
export type UpgradeCheck = {
|
|
327
336
|
status?: string;
|
|
328
|
-
upgradeActions?: Record<string,
|
|
337
|
+
upgradeActions?: Record<string, Record<string, string[]>>;
|
|
329
338
|
upgradeAvailable?: boolean;
|
|
330
339
|
}
|
|
331
340
|
|
|
332
341
|
export type UpgradePerform = {
|
|
333
342
|
status?: string;
|
|
334
|
-
upgrades?: Record<string,
|
|
343
|
+
upgrades?: Record<string, Record<string, string[]>>;
|
|
335
344
|
}
|
|
336
345
|
|
|
337
346
|
export type User = {
|
|
@@ -0,0 +1,59 @@
|
|
|
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 ActionExecutionResult = {
|
|
19
|
+
action_id?: string;
|
|
20
|
+
last_execution_time?: string;
|
|
21
|
+
throttled_count?: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type Alert = {
|
|
25
|
+
acknowledged_time?: undefined | string;
|
|
26
|
+
action_execution_results?: ActionExecutionResult[];
|
|
27
|
+
alert_history?: AlertError[];
|
|
28
|
+
detector_id?: string;
|
|
29
|
+
end_time?: undefined | string;
|
|
30
|
+
error_message?: undefined | string;
|
|
31
|
+
finding_ids?: string[];
|
|
32
|
+
id?: string;
|
|
33
|
+
last_notification_time?: string;
|
|
34
|
+
related_doc_ids?: string[];
|
|
35
|
+
schema_version?: number;
|
|
36
|
+
severity?: string;
|
|
37
|
+
start_time?: string;
|
|
38
|
+
state?: AlertState;
|
|
39
|
+
trigger_id?: string;
|
|
40
|
+
trigger_name?: string;
|
|
41
|
+
version?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type AlertError = {
|
|
45
|
+
message?: string;
|
|
46
|
+
timestamp?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Alerts = Alert[]
|
|
50
|
+
|
|
51
|
+
export type AlertSeverityLevel = '1' | '2' | '3' | '4' | '5' | 'ALL'
|
|
52
|
+
|
|
53
|
+
export type AlertState = 'ACKNOWLEDGED' | 'ACTIVE' | 'COMPLETED' | 'DELETED' | 'ERROR'
|
|
54
|
+
|
|
55
|
+
export type GetAlertsResponse = {
|
|
56
|
+
alerts: Alerts;
|
|
57
|
+
total_alerts: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 DetectionType = 'rule' | 'threat'
|
|
19
|
+
|
|
20
|
+
export type Document = {
|
|
21
|
+
document?: string;
|
|
22
|
+
found?: boolean;
|
|
23
|
+
id?: string;
|
|
24
|
+
index?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Finding = {
|
|
28
|
+
detectorId?: string;
|
|
29
|
+
document_list?: Document[];
|
|
30
|
+
id?: string;
|
|
31
|
+
index?: string;
|
|
32
|
+
queries?: Query[];
|
|
33
|
+
related_doc_ids?: string[];
|
|
34
|
+
timestamp?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Findings = Finding[]
|
|
38
|
+
|
|
39
|
+
export type FindingWithScore = {
|
|
40
|
+
detector_type?: string;
|
|
41
|
+
finding?: string;
|
|
42
|
+
rules?: string[];
|
|
43
|
+
score?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetFindingsResponse = {
|
|
47
|
+
findings: Findings;
|
|
48
|
+
total_findings: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type Query = {
|
|
52
|
+
fields?: string[];
|
|
53
|
+
id?: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
query?: string;
|
|
56
|
+
query_field_names?: string[];
|
|
57
|
+
tags?: string[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type RuleSeverity = 'critical' | 'high' | 'low' | 'medium'
|
|
61
|
+
|
|
62
|
+
export type SearchFindingCorrelationsResponse = {
|
|
63
|
+
findings: FindingWithScore[];
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
export type BadRequestResponse = {
|
|
19
|
-
error?: string;
|
|
20
|
-
status?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
18
|
export type CreateUpdatePolicyRequest = {
|
|
24
19
|
creation: CreationConfig;
|
|
25
20
|
deletion?: DeletionConfig;
|
|
@@ -43,17 +38,6 @@ export type CronSchedule = {
|
|
|
43
38
|
cron?: CronExpression;
|
|
44
39
|
}
|
|
45
40
|
|
|
46
|
-
export type DeletePolicyResponse = {
|
|
47
|
-
_id: string;
|
|
48
|
-
_index: string;
|
|
49
|
-
_primary_term: number;
|
|
50
|
-
_seq_no: number;
|
|
51
|
-
_shards: ShardsInfo;
|
|
52
|
-
_version: number;
|
|
53
|
-
forced_refresh: boolean;
|
|
54
|
-
result: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
41
|
export type DeletionCondition = {
|
|
58
42
|
max_age?: string;
|
|
59
43
|
max_count?: number;
|
|
@@ -92,13 +76,15 @@ export type GetPoliciesResponse = {
|
|
|
92
76
|
export type IntervalConfig = {
|
|
93
77
|
period: number;
|
|
94
78
|
start_time: number;
|
|
95
|
-
unit:
|
|
79
|
+
unit: IntervalUnit;
|
|
96
80
|
}
|
|
97
81
|
|
|
98
82
|
export type IntervalSchedule = {
|
|
99
83
|
interval?: IntervalConfig;
|
|
100
84
|
}
|
|
101
85
|
|
|
86
|
+
export type IntervalUnit = 'Days' | 'Hours' | 'Minutes'
|
|
87
|
+
|
|
102
88
|
export type ListedPolicy = {
|
|
103
89
|
_id: string;
|
|
104
90
|
_primary_term?: number;
|
|
@@ -106,17 +92,6 @@ export type ListedPolicy = {
|
|
|
106
92
|
sm_policy: SMPolicy;
|
|
107
93
|
}
|
|
108
94
|
|
|
109
|
-
export type NotFoundError = {
|
|
110
|
-
reason: string;
|
|
111
|
-
root_cause?: RootCause[];
|
|
112
|
-
type: string;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type NotFoundResponse = {
|
|
116
|
-
error: NotFoundError;
|
|
117
|
-
status: number;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
95
|
export type NotificationChannel = {
|
|
121
96
|
id: string;
|
|
122
97
|
}
|
|
@@ -149,17 +124,6 @@ export type RetryMetadata = {
|
|
|
149
124
|
count?: number;
|
|
150
125
|
}
|
|
151
126
|
|
|
152
|
-
export type RootCause = {
|
|
153
|
-
reason?: string;
|
|
154
|
-
type?: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export type ShardsInfo = {
|
|
158
|
-
failed?: number;
|
|
159
|
-
successful?: number;
|
|
160
|
-
total?: number;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
127
|
export type SMPolicy = {
|
|
164
128
|
creation: CreationConfig;
|
|
165
129
|
deletion?: DeletionConfig;
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
export type CalciteExplain = {
|
|
19
|
+
logical?: string;
|
|
20
|
+
physical?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
export type Cursor = {
|
|
19
24
|
keep_alive?: string;
|
|
20
25
|
}
|
|
@@ -32,6 +37,7 @@ export type ExplainBody = {
|
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
export type ExplainResponse = {
|
|
40
|
+
calcite?: CalciteExplain;
|
|
35
41
|
root?: ExplainBody;
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -65,6 +71,8 @@ export type QueryResponse = {
|
|
|
65
71
|
total?: number;
|
|
66
72
|
}
|
|
67
73
|
|
|
74
|
+
export type ResponseFormat = 'cost' | 'csv' | 'extended' | 'jdbc' | 'json' | 'raw' | 'simple' | 'standard' | 'viz' | 'yaml'
|
|
75
|
+
|
|
68
76
|
export type Sql = {
|
|
69
77
|
cursor?: Cursor;
|
|
70
78
|
enabled?: boolean | string;
|
|
@@ -30,29 +30,6 @@ export type DateHistogramGroup = {
|
|
|
30
30
|
timezone?: string;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export type DeletedTransformResponse = {
|
|
34
|
-
_id: Common.Id;
|
|
35
|
-
_index: string;
|
|
36
|
-
_primary_term: number;
|
|
37
|
-
_seq_no: Common.SequenceNumber;
|
|
38
|
-
_shards: Common.ShardStatistics;
|
|
39
|
-
_type?: Common.Type;
|
|
40
|
-
_version: Common.VersionNumber;
|
|
41
|
-
forced_refresh: boolean;
|
|
42
|
-
result: string;
|
|
43
|
-
status: number;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type DeleteTransformResponseItem = {
|
|
47
|
-
delete?: DeletedTransformResponse;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export type DeleteTransformsResponse = {
|
|
51
|
-
errors?: boolean;
|
|
52
|
-
items?: DeleteTransformResponseItem[];
|
|
53
|
-
took?: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
33
|
export type Explain = {
|
|
57
34
|
metadata_id?: undefined | string;
|
|
58
35
|
transform_metadata?: TransformMetadata | undefined;
|
|
@@ -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 Initialize = string
|
|
19
|
+
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
export type QueryGroupCreate = {
|
|
19
19
|
name: string;
|
|
20
|
-
resiliency_mode:
|
|
20
|
+
resiliency_mode: ResiliencyMode;
|
|
21
21
|
resource_limits: {
|
|
22
22
|
cpu?: number;
|
|
23
23
|
memory: number;
|
|
@@ -30,7 +30,7 @@ export type QueryGroupCreate = {
|
|
|
30
30
|
export type QueryGroupResponse = {
|
|
31
31
|
_id: string;
|
|
32
32
|
name: string;
|
|
33
|
-
resiliency_mode:
|
|
33
|
+
resiliency_mode: ResiliencyMode;
|
|
34
34
|
resource_limits: {
|
|
35
35
|
cpu?: number;
|
|
36
36
|
memory: number;
|
|
@@ -42,10 +42,12 @@ export type QueryGroupResponse = {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export type QueryGroupUpdate = {
|
|
45
|
-
resiliency_mode?:
|
|
45
|
+
resiliency_mode?: ResiliencyMode;
|
|
46
46
|
resource_limits?: ResourceLimitsSchema;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export type ResiliencyMode = 'enforced' | 'monitor' | 'soft'
|
|
50
|
+
|
|
49
51
|
export type ResourceLimitsSchema = {
|
|
50
52
|
cpu?: number;
|
|
51
53
|
memory?: number;
|
|
@@ -18,11 +18,19 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Asynchronous-Search */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const deleteFn = require('./delete');
|
|
25
|
+
const getFn = require('./get');
|
|
26
|
+
const searchFn = require('./search');
|
|
27
|
+
const statsFn = require('./stats');
|
|
28
|
+
|
|
21
29
|
function AsynchronousSearchApi(bindObj) {
|
|
22
|
-
this.delete =
|
|
23
|
-
this.get =
|
|
24
|
-
this.search =
|
|
25
|
-
this.stats =
|
|
30
|
+
this.delete = deleteFn.bind(bindObj);
|
|
31
|
+
this.get = getFn.bind(bindObj);
|
|
32
|
+
this.search = searchFn.bind(bindObj);
|
|
33
|
+
this.stats = statsFn.bind(bindObj);
|
|
26
34
|
|
|
27
35
|
}
|
|
28
36
|
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Deletes any responses from an asynchronous search.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/search-plugins/async/index/#delete-searches-and-results - asynchronous_search.delete}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Gets partial responses from an asynchronous search.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/search-plugins/async/index/#get-partial-results - asynchronous_search.get}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Performs an asynchronous search.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/search-plugins/async/index/#rest-api - asynchronous_search.search}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
26
26
|
*
|
|
@@ -20,7 +20,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Monitors any asynchronous searches that are `running`, `completed`, or `persisted`.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/search-plugins/async/index/#monitor-stats - asynchronous_search.stats}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
26
26
|
*
|
package/api/cat/_api.js
CHANGED
|
@@ -18,44 +18,72 @@
|
|
|
18
18
|
|
|
19
19
|
/** @namespace API-Cat */
|
|
20
20
|
|
|
21
|
+
// All operation modules are required once at module load time (not per
|
|
22
|
+
// instance) to avoid paying `require()` resolution cost on every Client
|
|
23
|
+
// construction.
|
|
24
|
+
const aliasesFn = require('./aliases');
|
|
25
|
+
const allocationFn = require('./allocation');
|
|
26
|
+
const allPitSegmentsFn = require('./allPitSegments');
|
|
27
|
+
const clusterManagerFn = require('./clusterManager');
|
|
28
|
+
const countFn = require('./count');
|
|
29
|
+
const fielddataFn = require('./fielddata');
|
|
30
|
+
const healthFn = require('./health');
|
|
31
|
+
const helpFn = require('./help');
|
|
32
|
+
const indicesFn = require('./indices');
|
|
33
|
+
const masterFn = require('./master');
|
|
34
|
+
const nodeattrsFn = require('./nodeattrs');
|
|
35
|
+
const nodesFn = require('./nodes');
|
|
36
|
+
const pendingTasksFn = require('./pendingTasks');
|
|
37
|
+
const pitSegmentsFn = require('./pitSegments');
|
|
38
|
+
const pluginsFn = require('./plugins');
|
|
39
|
+
const recoveryFn = require('./recovery');
|
|
40
|
+
const repositoriesFn = require('./repositories');
|
|
41
|
+
const segmentReplicationFn = require('./segmentReplication');
|
|
42
|
+
const segmentsFn = require('./segments');
|
|
43
|
+
const shardsFn = require('./shards');
|
|
44
|
+
const snapshotsFn = require('./snapshots');
|
|
45
|
+
const tasksFn = require('./tasks');
|
|
46
|
+
const templatesFn = require('./templates');
|
|
47
|
+
const threadPoolFn = require('./threadPool');
|
|
48
|
+
|
|
21
49
|
function CatApi(bindObj) {
|
|
22
|
-
this.aliases =
|
|
23
|
-
this.allocation =
|
|
24
|
-
this.allPitSegments =
|
|
25
|
-
this.clusterManager =
|
|
26
|
-
this.count =
|
|
27
|
-
this.fielddata =
|
|
28
|
-
this.health =
|
|
29
|
-
this.help =
|
|
30
|
-
this.indices =
|
|
31
|
-
this.master =
|
|
32
|
-
this.nodeattrs =
|
|
33
|
-
this.nodes =
|
|
34
|
-
this.pendingTasks =
|
|
35
|
-
this.pitSegments =
|
|
36
|
-
this.plugins =
|
|
37
|
-
this.recovery =
|
|
38
|
-
this.repositories =
|
|
39
|
-
this.segmentReplication =
|
|
40
|
-
this.segments =
|
|
41
|
-
this.shards =
|
|
42
|
-
this.snapshots =
|
|
43
|
-
this.tasks =
|
|
44
|
-
this.templates =
|
|
45
|
-
this.threadPool =
|
|
50
|
+
this.aliases = aliasesFn.bind(bindObj);
|
|
51
|
+
this.allocation = allocationFn.bind(bindObj);
|
|
52
|
+
this.allPitSegments = allPitSegmentsFn.bind(bindObj);
|
|
53
|
+
this.clusterManager = clusterManagerFn.bind(bindObj);
|
|
54
|
+
this.count = countFn.bind(bindObj);
|
|
55
|
+
this.fielddata = fielddataFn.bind(bindObj);
|
|
56
|
+
this.health = healthFn.bind(bindObj);
|
|
57
|
+
this.help = helpFn.bind(bindObj);
|
|
58
|
+
this.indices = indicesFn.bind(bindObj);
|
|
59
|
+
this.master = masterFn.bind(bindObj);
|
|
60
|
+
this.nodeattrs = nodeattrsFn.bind(bindObj);
|
|
61
|
+
this.nodes = nodesFn.bind(bindObj);
|
|
62
|
+
this.pendingTasks = pendingTasksFn.bind(bindObj);
|
|
63
|
+
this.pitSegments = pitSegmentsFn.bind(bindObj);
|
|
64
|
+
this.plugins = pluginsFn.bind(bindObj);
|
|
65
|
+
this.recovery = recoveryFn.bind(bindObj);
|
|
66
|
+
this.repositories = repositoriesFn.bind(bindObj);
|
|
67
|
+
this.segmentReplication = segmentReplicationFn.bind(bindObj);
|
|
68
|
+
this.segments = segmentsFn.bind(bindObj);
|
|
69
|
+
this.shards = shardsFn.bind(bindObj);
|
|
70
|
+
this.snapshots = snapshotsFn.bind(bindObj);
|
|
71
|
+
this.tasks = tasksFn.bind(bindObj);
|
|
72
|
+
this.templates = templatesFn.bind(bindObj);
|
|
73
|
+
this.threadPool = threadPoolFn.bind(bindObj);
|
|
46
74
|
|
|
47
75
|
// Deprecated: Use allPitSegments instead.
|
|
48
|
-
this.all_pit_segments =
|
|
76
|
+
this.all_pit_segments = allPitSegmentsFn.bind(bindObj);
|
|
49
77
|
// Deprecated: Use clusterManager instead.
|
|
50
|
-
this.cluster_manager =
|
|
78
|
+
this.cluster_manager = clusterManagerFn.bind(bindObj);
|
|
51
79
|
// Deprecated: Use pendingTasks instead.
|
|
52
|
-
this.pending_tasks =
|
|
80
|
+
this.pending_tasks = pendingTasksFn.bind(bindObj);
|
|
53
81
|
// Deprecated: Use pitSegments instead.
|
|
54
|
-
this.pit_segments =
|
|
82
|
+
this.pit_segments = pitSegmentsFn.bind(bindObj);
|
|
55
83
|
// Deprecated: Use segmentReplication instead.
|
|
56
|
-
this.segment_replication =
|
|
84
|
+
this.segment_replication = segmentReplicationFn.bind(bindObj);
|
|
57
85
|
// Deprecated: Use threadPool instead.
|
|
58
|
-
this.thread_pool =
|
|
86
|
+
this.thread_pool = threadPoolFn.bind(bindObj);
|
|
59
87
|
}
|
|
60
88
|
|
|
61
89
|
module.exports = CatApi;
|
package/api/cat/aliases.d.ts
CHANGED
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
18
|
import * as Cat_Aliases from '../_types/cat.aliases'
|
|
19
|
+
import * as Cat_Common from '../_types/cat._common'
|
|
19
20
|
import * as Common from '../_types/_common'
|
|
20
21
|
import * as Global from '../_types/_global'
|
|
21
22
|
|
|
22
23
|
export interface Cat_Aliases_Request extends Global.Params {
|
|
23
24
|
expand_wildcards?: Common.ExpandWildcards;
|
|
24
|
-
format?:
|
|
25
|
+
format?: Cat_Common.ResponseFormat;
|
|
25
26
|
h?: string[];
|
|
26
27
|
help?: boolean;
|
|
27
28
|
local?: boolean;
|
package/api/cat/aliases.js
CHANGED
|
@@ -20,13 +20,13 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Shows information about aliases currently configured to indexes, including filter and routing information.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/cat/cat-aliases/ - cat.aliases}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Cat
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
|
29
|
-
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
29
|
+
* @param {string} [params.format=text] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
30
30
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
31
31
|
* @param {boolean} [params.help=false] - Returns help information.
|
|
32
32
|
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Cat_Common from '../_types/cat._common'
|
|
18
19
|
import * as Cat_Segments from '../_types/cat.segments'
|
|
19
20
|
import * as Common from '../_types/_common'
|
|
20
21
|
import * as Global from '../_types/_global'
|
|
21
22
|
|
|
22
23
|
export interface Cat_AllPitSegments_Request extends Global.Params {
|
|
23
24
|
bytes?: Common.ByteUnit;
|
|
24
|
-
format?:
|
|
25
|
+
format?: Cat_Common.ResponseFormat;
|
|
25
26
|
h?: string[];
|
|
26
27
|
help?: boolean;
|
|
27
28
|
s?: string[];
|