@opensearch-project/opensearch 3.0.0-beta.6 → 3.0.0-beta.7
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/{lib → api}/OpenSearchAPI.d.ts +129 -9
- package/api/OpenSearchAPI.js +185 -0
- package/api/_core/bulk.d.ts +3 -2
- package/api/_core/bulk.js +4 -3
- package/api/_core/clearScroll.d.ts +3 -2
- package/api/_core/clearScroll.js +4 -3
- package/api/_core/count.d.ts +4 -2
- package/api/_core/count.js +4 -3
- package/api/_core/create.d.ts +3 -2
- package/api/_core/create.js +4 -3
- package/api/_core/createPit.d.ts +3 -2
- package/api/_core/createPit.js +4 -3
- package/api/_core/delete.d.ts +3 -2
- package/api/_core/delete.js +4 -3
- package/api/_core/deleteAllPits.d.ts +3 -2
- package/api/_core/deleteAllPits.js +4 -3
- package/api/_core/deleteByQuery.d.ts +3 -2
- package/api/_core/deleteByQuery.js +5 -4
- package/api/_core/deleteByQueryRethrottle.d.ts +3 -2
- package/api/_core/deleteByQueryRethrottle.js +4 -3
- package/api/_core/deletePit.d.ts +3 -2
- package/api/_core/deletePit.js +4 -3
- package/api/_core/deleteScript.d.ts +3 -2
- package/api/_core/deleteScript.js +4 -3
- package/api/_core/exists.d.ts +3 -2
- package/api/_core/exists.js +4 -3
- package/api/_core/existsSource.d.ts +3 -2
- package/api/_core/existsSource.js +4 -3
- package/api/_core/explain.d.ts +3 -2
- package/api/_core/explain.js +4 -3
- package/api/_core/fieldCaps.d.ts +3 -2
- package/api/_core/fieldCaps.js +4 -3
- package/api/_core/get.d.ts +3 -2
- package/api/_core/get.js +4 -3
- package/api/_core/getAllPits.d.ts +3 -2
- package/api/_core/getAllPits.js +4 -3
- package/api/_core/getScript.d.ts +3 -2
- package/api/_core/getScript.js +4 -3
- package/api/_core/getScriptContext.d.ts +3 -2
- package/api/_core/getScriptContext.js +4 -3
- package/api/_core/getScriptLanguages.d.ts +3 -2
- package/api/_core/getScriptLanguages.js +4 -3
- package/api/_core/getSource.d.ts +3 -2
- package/api/_core/getSource.js +4 -3
- package/api/_core/index.d.ts +3 -2
- package/api/_core/index.js +4 -3
- package/api/_core/info.d.ts +3 -2
- package/api/_core/info.js +4 -3
- package/api/_core/mget.d.ts +3 -2
- package/api/_core/mget.js +4 -3
- package/api/_core/msearch.d.ts +3 -2
- package/api/_core/msearch.js +4 -3
- package/api/_core/msearchTemplate.d.ts +3 -2
- package/api/_core/msearchTemplate.js +4 -3
- package/api/_core/mtermvectors.d.ts +3 -2
- package/api/_core/mtermvectors.js +4 -3
- package/api/_core/ping.d.ts +3 -2
- package/api/_core/ping.js +4 -3
- package/api/_core/putScript.d.ts +3 -2
- package/api/_core/putScript.js +4 -3
- package/api/_core/rankEval.d.ts +3 -2
- package/api/_core/rankEval.js +4 -3
- package/api/_core/reindex.d.ts +3 -2
- package/api/_core/reindex.js +5 -4
- package/api/_core/reindexRethrottle.d.ts +3 -2
- package/api/_core/reindexRethrottle.js +4 -3
- package/api/_core/renderSearchTemplate.d.ts +3 -2
- package/api/_core/renderSearchTemplate.js +4 -3
- package/api/_core/scriptsPainlessExecute.d.ts +3 -2
- package/api/_core/scriptsPainlessExecute.js +4 -3
- package/api/_core/scroll.d.ts +3 -2
- package/api/_core/scroll.js +4 -3
- package/api/_core/search.d.ts +4 -3
- package/api/_core/search.js +4 -3
- package/api/_core/searchShards.d.ts +3 -2
- package/api/_core/searchShards.js +4 -3
- package/api/_core/searchTemplate.d.ts +3 -2
- package/api/_core/searchTemplate.js +4 -3
- package/api/_core/termvectors.d.ts +3 -2
- package/api/_core/termvectors.js +4 -3
- package/api/_core/update.d.ts +3 -2
- package/api/_core/update.js +4 -3
- package/api/_core/updateByQuery.d.ts +3 -2
- package/api/_core/updateByQuery.js +5 -4
- package/api/_core/updateByQueryRethrottle.d.ts +3 -2
- package/api/_core/updateByQueryRethrottle.js +4 -3
- package/api/_types/_common.aggregations.d.ts +3 -2
- package/api/_types/_common.analysis.d.ts +3 -2
- package/api/_types/_common.d.ts +96 -97
- package/api/_types/_common.mapping.d.ts +36 -18
- package/api/_types/_common.query_dsl.d.ts +62 -18
- package/api/_types/_core._common.d.ts +3 -2
- package/api/_types/_core.bulk.d.ts +3 -2
- package/api/_types/_core.explain.d.ts +3 -2
- package/api/_types/_core.field_caps.d.ts +3 -2
- package/api/_types/_core.get.d.ts +3 -2
- package/api/_types/_core.get_script_context.d.ts +3 -2
- package/api/_types/_core.get_script_languages.d.ts +3 -2
- package/api/_types/_core.mget.d.ts +3 -2
- package/api/_types/_core.msearch.d.ts +5 -4
- package/api/_types/_core.msearch_template.d.ts +3 -2
- package/api/_types/_core.mtermvectors.d.ts +3 -2
- package/api/_types/_core.rank_eval.d.ts +3 -2
- package/api/_types/_core.reindex.d.ts +3 -2
- package/api/_types/_core.reindex_rethrottle.d.ts +3 -2
- package/api/_types/_core.scripts_painless_execute.d.ts +3 -2
- package/api/_types/_core.search.d.ts +3 -2
- package/api/_types/_core.search_shards.d.ts +3 -2
- package/api/_types/_core.termvectors.d.ts +3 -2
- package/api/_types/_core.update.d.ts +3 -2
- package/api/_types/_core.update_by_query_rethrottle.d.ts +3 -2
- package/api/_types/_global.d.ts +3 -2
- package/api/_types/asynchronous_search._common.d.ts +87 -0
- package/api/_types/cat._common.d.ts +3 -2
- package/api/_types/cat.aliases.d.ts +3 -2
- package/api/_types/cat.allocation.d.ts +7 -6
- package/api/_types/cat.cluster_manager.d.ts +3 -2
- package/api/_types/cat.count.d.ts +3 -2
- package/api/_types/cat.fielddata.d.ts +3 -2
- package/api/_types/cat.health.d.ts +3 -2
- package/api/_types/cat.indices.d.ts +133 -128
- package/api/_types/cat.master.d.ts +3 -2
- package/api/_types/cat.nodeattrs.d.ts +3 -2
- package/api/_types/cat.nodes.d.ts +13 -5
- package/api/_types/cat.pending_tasks.d.ts +3 -2
- package/api/_types/cat.plugins.d.ts +3 -2
- package/api/_types/cat.recovery.d.ts +5 -4
- package/api/_types/cat.repositories.d.ts +3 -2
- package/api/_types/cat.segments.d.ts +5 -4
- package/api/_types/cat.shards.d.ts +80 -70
- package/api/_types/cat.snapshots.d.ts +3 -2
- package/api/_types/cat.tasks.d.ts +3 -2
- package/api/_types/cat.templates.d.ts +3 -2
- package/api/_types/cat.thread_pool.d.ts +4 -2
- package/api/_types/cluster._common.d.ts +3 -2
- package/api/_types/cluster.allocation_explain.d.ts +11 -7
- package/api/_types/cluster.decommission_awareness.d.ts +21 -0
- package/api/_types/cluster.health.d.ts +15 -2
- package/api/_types/cluster.pending_tasks.d.ts +3 -2
- package/api/_types/cluster.remote_info.d.ts +3 -2
- package/api/_types/cluster.reroute.d.ts +3 -2
- package/api/_types/cluster.state.d.ts +3 -2
- package/api/_types/cluster.stats.d.ts +43 -29
- package/api/_types/cluster.weighted_routing.d.ts +30 -0
- package/api/_types/dangling_indices.list_dangling_indices.d.ts +3 -2
- package/api/_types/flow_framework.common.d.ts +71 -0
- package/api/_types/flow_framework.errors.d.ts +35 -0
- package/api/_types/indices._common.d.ts +9 -8
- package/api/_types/indices.add_block.d.ts +3 -2
- package/api/_types/indices.analyze.d.ts +3 -2
- package/api/_types/indices.close.d.ts +3 -2
- package/api/_types/indices.data_streams_stats.d.ts +5 -4
- package/api/_types/indices.get_alias.d.ts +3 -2
- package/api/_types/indices.get_field_mapping.d.ts +3 -2
- package/api/_types/indices.get_index_template.d.ts +3 -2
- package/api/_types/indices.get_mapping.d.ts +3 -2
- package/api/_types/indices.put_index_template.d.ts +3 -2
- package/api/_types/indices.recovery.d.ts +11 -10
- package/api/_types/indices.resolve_index.d.ts +3 -2
- package/api/_types/indices.rollover.d.ts +11 -10
- package/api/_types/indices.segments.d.ts +8 -4
- package/api/_types/indices.shard_stores.d.ts +3 -2
- package/api/_types/indices.simulate_template.d.ts +3 -2
- package/api/_types/indices.stats.d.ts +27 -66
- package/api/_types/indices.update_aliases.d.ts +3 -2
- package/api/_types/indices.validate_query.d.ts +3 -2
- package/api/_types/ingest._common.d.ts +3 -2
- package/api/_types/ingest.simulate.d.ts +3 -2
- package/api/_types/knn._common.d.ts +3 -2
- package/api/_types/ml._common.d.ts +14 -3
- package/api/_types/nodes._common.d.ts +112 -77
- package/api/_types/nodes.info.d.ts +36 -35
- package/api/_types/nodes.reload_secure_settings.d.ts +3 -2
- package/api/_types/nodes.stats.d.ts +3 -2
- package/api/_types/nodes.usage.d.ts +3 -2
- package/api/_types/notifications._common.d.ts +3 -2
- package/api/_types/observability._common.d.ts +117 -0
- package/api/_types/query._common.d.ts +66 -0
- package/api/_types/remote_store._common.d.ts +3 -2
- package/api/_types/rollups._common.d.ts +3 -2
- package/api/_types/search_pipeline._common.d.ts +101 -3
- package/api/_types/security._common.d.ts +82 -64
- package/api/_types/snapshot._common.d.ts +7 -6
- package/api/_types/snapshot.cleanup_repository.d.ts +3 -2
- package/api/_types/snapshot.get.d.ts +3 -2
- package/api/_types/snapshot.restore.d.ts +3 -2
- package/api/_types/snapshot.verify_repository.d.ts +3 -2
- package/api/_types/sql._common.d.ts +3 -2
- package/api/_types/tasks._common.d.ts +3 -2
- package/api/_types/transforms._common.d.ts +3 -2
- package/api/asynchronousSearch/_api.js +29 -0
- package/api/asynchronousSearch/delete.d.ts +31 -0
- package/api/asynchronousSearch/delete.js +49 -0
- package/api/asynchronousSearch/get.d.ts +30 -0
- package/api/asynchronousSearch/get.js +49 -0
- package/api/asynchronousSearch/search.d.ts +34 -0
- package/api/asynchronousSearch/search.js +51 -0
- package/api/asynchronousSearch/stats.d.ts +28 -0
- package/api/asynchronousSearch/stats.js +45 -0
- package/api/cat/_api.js +16 -3
- package/api/cat/aliases.d.ts +3 -2
- package/api/cat/aliases.js +4 -3
- package/api/cat/allPitSegments.d.ts +4 -3
- package/api/cat/allPitSegments.js +4 -3
- package/api/cat/allocation.d.ts +4 -3
- package/api/cat/allocation.js +4 -3
- package/api/cat/clusterManager.d.ts +3 -2
- package/api/cat/clusterManager.js +4 -3
- package/api/cat/count.d.ts +3 -2
- package/api/cat/count.js +4 -3
- package/api/cat/fielddata.d.ts +4 -3
- package/api/cat/fielddata.js +4 -3
- package/api/cat/health.d.ts +3 -2
- package/api/cat/health.js +4 -3
- package/api/cat/help.d.ts +3 -2
- package/api/cat/help.js +4 -3
- package/api/cat/indices.d.ts +4 -3
- package/api/cat/indices.js +4 -3
- package/api/cat/master.d.ts +3 -2
- package/api/cat/master.js +4 -3
- package/api/cat/nodeattrs.d.ts +3 -2
- package/api/cat/nodeattrs.js +4 -3
- package/api/cat/nodes.d.ts +4 -3
- package/api/cat/nodes.js +4 -3
- package/api/cat/pendingTasks.d.ts +3 -2
- package/api/cat/pendingTasks.js +4 -3
- package/api/cat/pitSegments.d.ts +4 -3
- package/api/cat/pitSegments.js +4 -3
- package/api/cat/plugins.d.ts +3 -2
- package/api/cat/plugins.js +4 -3
- package/api/cat/recovery.d.ts +4 -3
- package/api/cat/recovery.js +4 -3
- package/api/cat/repositories.d.ts +3 -2
- package/api/cat/repositories.js +4 -3
- package/api/cat/segmentReplication.d.ts +4 -3
- package/api/cat/segmentReplication.js +4 -3
- package/api/cat/segments.d.ts +4 -3
- package/api/cat/segments.js +4 -3
- package/api/cat/shards.d.ts +4 -3
- package/api/cat/shards.js +4 -3
- package/api/cat/snapshots.d.ts +3 -2
- package/api/cat/snapshots.js +4 -3
- package/api/cat/tasks.d.ts +3 -2
- package/api/cat/tasks.js +4 -3
- package/api/cat/templates.d.ts +3 -2
- package/api/cat/templates.js +4 -3
- package/api/cat/threadPool.d.ts +3 -2
- package/api/cat/threadPool.js +5 -4
- package/api/cluster/_api.js +38 -3
- package/api/cluster/allocationExplain.d.ts +3 -2
- package/api/cluster/allocationExplain.js +4 -3
- package/api/cluster/deleteComponentTemplate.d.ts +3 -2
- package/api/cluster/deleteComponentTemplate.js +4 -3
- package/api/cluster/deleteDecommissionAwareness.d.ts +5 -3
- package/api/cluster/deleteDecommissionAwareness.js +4 -3
- package/api/cluster/deleteVotingConfigExclusions.d.ts +3 -2
- package/api/cluster/deleteVotingConfigExclusions.js +4 -3
- package/api/cluster/deleteWeightedRouting.d.ts +9 -4
- package/api/cluster/deleteWeightedRouting.js +7 -4
- package/api/cluster/existsComponentTemplate.d.ts +3 -2
- package/api/cluster/existsComponentTemplate.js +4 -3
- package/api/cluster/getComponentTemplate.d.ts +3 -2
- package/api/cluster/getComponentTemplate.js +4 -3
- package/api/cluster/getDecommissionAwareness.d.ts +5 -3
- package/api/cluster/getDecommissionAwareness.js +4 -3
- package/api/cluster/getSettings.d.ts +6 -5
- package/api/cluster/getSettings.js +4 -3
- package/api/cluster/getWeightedRouting.d.ts +5 -3
- package/api/cluster/getWeightedRouting.js +4 -3
- package/api/cluster/health.d.ts +3 -2
- package/api/cluster/health.js +4 -3
- package/api/cluster/pendingTasks.d.ts +3 -2
- package/api/cluster/pendingTasks.js +4 -3
- package/api/cluster/postVotingConfigExclusions.d.ts +3 -2
- package/api/cluster/postVotingConfigExclusions.js +4 -3
- package/api/cluster/putComponentTemplate.d.ts +3 -2
- package/api/cluster/putComponentTemplate.js +4 -3
- package/api/cluster/putDecommissionAwareness.d.ts +5 -3
- package/api/cluster/putDecommissionAwareness.js +4 -3
- package/api/cluster/putSettings.d.ts +3 -2
- package/api/cluster/putSettings.js +4 -3
- package/api/cluster/putWeightedRouting.d.ts +5 -2
- package/api/cluster/putWeightedRouting.js +5 -3
- package/api/cluster/remoteInfo.d.ts +3 -2
- package/api/cluster/remoteInfo.js +4 -3
- package/api/cluster/reroute.d.ts +3 -2
- package/api/cluster/reroute.js +4 -3
- package/api/cluster/state.d.ts +3 -2
- package/api/cluster/state.js +4 -3
- package/api/cluster/stats.d.ts +3 -2
- package/api/cluster/stats.js +4 -3
- package/api/danglingIndices/_api.js +12 -5
- package/api/danglingIndices/deleteDanglingIndex.d.ts +3 -2
- package/api/danglingIndices/deleteDanglingIndex.js +4 -3
- package/api/danglingIndices/importDanglingIndex.d.ts +3 -2
- package/api/danglingIndices/importDanglingIndex.js +4 -3
- package/api/danglingIndices/listDanglingIndices.d.ts +3 -2
- package/api/danglingIndices/listDanglingIndices.js +4 -3
- package/api/flowFramework/_api.js +29 -0
- package/api/flowFramework/create.d.ts +36 -0
- package/api/flowFramework/create.js +51 -0
- package/api/flowFramework/delete.d.ts +30 -0
- package/api/flowFramework/delete.js +50 -0
- package/api/flowFramework/get.d.ts +29 -0
- package/api/flowFramework/get.js +49 -0
- package/api/flowFramework/update.d.ts +34 -0
- package/api/flowFramework/update.js +51 -0
- package/api/http/_api.js +4 -3
- package/api/http/connect.js +3 -2
- package/api/http/delete.js +3 -2
- package/api/http/get.js +3 -2
- package/api/http/head.js +3 -2
- package/api/http/options.js +3 -2
- package/api/http/patch.js +3 -2
- package/api/http/post.js +3 -2
- package/api/http/put.js +3 -2
- package/api/http/trace.js +3 -2
- package/api/index.d.ts +55 -6
- package/api/indices/_api.js +64 -3
- package/api/indices/addBlock.d.ts +3 -2
- package/api/indices/addBlock.js +4 -3
- package/api/indices/analyze.d.ts +3 -2
- package/api/indices/analyze.js +4 -3
- package/api/indices/clearCache.d.ts +3 -2
- package/api/indices/clearCache.js +4 -3
- package/api/indices/clone.d.ts +3 -2
- package/api/indices/clone.js +4 -3
- package/api/indices/close.d.ts +3 -2
- package/api/indices/close.js +4 -3
- package/api/indices/create.d.ts +3 -2
- package/api/indices/create.js +4 -3
- package/api/indices/createDataStream.d.ts +3 -2
- package/api/indices/createDataStream.js +4 -3
- package/api/indices/dataStreamsStats.d.ts +5 -4
- package/api/indices/dataStreamsStats.js +4 -3
- package/api/indices/delete.d.ts +3 -2
- package/api/indices/delete.js +4 -3
- package/api/indices/deleteAlias.d.ts +3 -2
- package/api/indices/deleteAlias.js +4 -3
- package/api/indices/deleteDataStream.d.ts +3 -2
- package/api/indices/deleteDataStream.js +4 -3
- package/api/indices/deleteIndexTemplate.d.ts +3 -2
- package/api/indices/deleteIndexTemplate.js +4 -3
- package/api/indices/deleteTemplate.d.ts +3 -2
- package/api/indices/deleteTemplate.js +4 -3
- package/api/indices/exists.d.ts +3 -2
- package/api/indices/exists.js +4 -3
- package/api/indices/existsAlias.d.ts +3 -2
- package/api/indices/existsAlias.js +4 -3
- package/api/indices/existsIndexTemplate.d.ts +3 -2
- package/api/indices/existsIndexTemplate.js +4 -3
- package/api/indices/existsTemplate.d.ts +3 -2
- package/api/indices/existsTemplate.js +4 -3
- package/api/indices/flush.d.ts +3 -2
- package/api/indices/flush.js +4 -3
- package/api/indices/forcemerge.d.ts +3 -2
- package/api/indices/forcemerge.js +4 -3
- package/api/indices/get.d.ts +3 -2
- package/api/indices/get.js +4 -3
- package/api/indices/getAlias.d.ts +3 -2
- package/api/indices/getAlias.js +4 -3
- package/api/indices/getDataStream.d.ts +3 -2
- package/api/indices/getDataStream.js +4 -3
- package/api/indices/getFieldMapping.d.ts +3 -2
- package/api/indices/getFieldMapping.js +4 -3
- package/api/indices/getIndexTemplate.d.ts +3 -2
- package/api/indices/getIndexTemplate.js +4 -3
- package/api/indices/getMapping.d.ts +3 -2
- package/api/indices/getMapping.js +4 -3
- package/api/indices/getSettings.d.ts +3 -2
- package/api/indices/getSettings.js +4 -3
- package/api/indices/getTemplate.d.ts +3 -2
- package/api/indices/getTemplate.js +4 -3
- package/api/indices/getUpgrade.d.ts +3 -2
- package/api/indices/getUpgrade.js +4 -3
- package/api/indices/open.d.ts +3 -2
- package/api/indices/open.js +4 -3
- package/api/indices/putAlias.d.ts +3 -2
- package/api/indices/putAlias.js +4 -3
- package/api/indices/putIndexTemplate.d.ts +3 -2
- package/api/indices/putIndexTemplate.js +4 -3
- package/api/indices/putMapping.d.ts +3 -2
- package/api/indices/putMapping.js +4 -3
- package/api/indices/putSettings.d.ts +3 -2
- package/api/indices/putSettings.js +4 -3
- package/api/indices/putTemplate.d.ts +3 -2
- package/api/indices/putTemplate.js +4 -3
- package/api/indices/recovery.d.ts +3 -2
- package/api/indices/recovery.js +4 -3
- package/api/indices/refresh.d.ts +3 -2
- package/api/indices/refresh.js +4 -3
- package/api/indices/resolveIndex.d.ts +3 -2
- package/api/indices/resolveIndex.js +4 -3
- package/api/indices/rollover.d.ts +3 -2
- package/api/indices/rollover.js +4 -3
- package/api/indices/segments.d.ts +3 -2
- package/api/indices/segments.js +4 -3
- package/api/indices/shardStores.d.ts +3 -2
- package/api/indices/shardStores.js +4 -3
- package/api/indices/shrink.d.ts +3 -2
- package/api/indices/shrink.js +4 -3
- package/api/indices/simulateIndexTemplate.d.ts +3 -2
- package/api/indices/simulateIndexTemplate.js +4 -3
- package/api/indices/simulateTemplate.d.ts +3 -2
- package/api/indices/simulateTemplate.js +4 -3
- package/api/indices/split.d.ts +3 -2
- package/api/indices/split.js +4 -3
- package/api/indices/stats.d.ts +4 -3
- package/api/indices/stats.js +4 -3
- package/api/indices/updateAliases.d.ts +3 -2
- package/api/indices/updateAliases.js +4 -3
- package/api/indices/upgrade.d.ts +3 -2
- package/api/indices/upgrade.js +4 -3
- package/api/indices/validateQuery.d.ts +3 -2
- package/api/indices/validateQuery.js +4 -3
- package/api/ingest/_api.js +12 -3
- package/api/ingest/deletePipeline.d.ts +3 -2
- package/api/ingest/deletePipeline.js +4 -3
- package/api/ingest/getPipeline.d.ts +3 -2
- package/api/ingest/getPipeline.js +4 -3
- package/api/ingest/processorGrok.d.ts +3 -2
- package/api/ingest/processorGrok.js +4 -3
- package/api/ingest/putPipeline.d.ts +3 -2
- package/api/ingest/putPipeline.js +4 -3
- package/api/ingest/simulate.d.ts +3 -2
- package/api/ingest/simulate.js +4 -3
- package/api/knn/_api.js +12 -3
- package/api/knn/deleteModel.d.ts +3 -2
- package/api/knn/deleteModel.js +4 -3
- package/api/knn/getModel.d.ts +3 -2
- package/api/knn/getModel.js +4 -3
- package/api/knn/searchModels.d.ts +3 -2
- package/api/knn/searchModels.js +11 -10
- package/api/knn/stats.d.ts +3 -2
- package/api/knn/stats.js +4 -3
- package/api/knn/trainModel.d.ts +3 -2
- package/api/knn/trainModel.js +4 -3
- package/api/knn/warmup.d.ts +3 -2
- package/api/knn/warmup.js +4 -3
- package/api/ml/_api.js +27 -3
- package/api/ml/deleteModel.d.ts +5 -4
- package/api/ml/deleteModel.js +4 -3
- package/api/ml/deleteModelGroup.d.ts +5 -4
- package/api/ml/deleteModelGroup.js +4 -3
- package/api/ml/deleteTask.d.ts +30 -0
- package/api/ml/deleteTask.js +49 -0
- package/api/ml/deployModel.d.ts +33 -0
- package/api/{security/generateUserTokenLegacy.js → ml/deployModel.js} +14 -13
- package/api/ml/getModelGroup.d.ts +3 -2
- package/api/ml/getModelGroup.js +4 -3
- package/api/ml/getTask.d.ts +3 -2
- package/api/ml/getTask.js +4 -3
- package/api/ml/registerModel.d.ts +7 -4
- package/api/ml/registerModel.js +4 -3
- package/api/ml/registerModelGroup.d.ts +3 -2
- package/api/ml/registerModelGroup.js +4 -3
- package/api/ml/searchModels.d.ts +3 -2
- package/api/ml/searchModels.js +4 -3
- package/api/ml/undeployModel.d.ts +30 -0
- package/api/ml/undeployModel.js +49 -0
- package/api/nodes/_api.js +8 -3
- package/api/nodes/hotThreads.d.ts +3 -2
- package/api/nodes/hotThreads.js +6 -5
- package/api/nodes/info.d.ts +3 -2
- package/api/nodes/info.js +4 -3
- package/api/nodes/reloadSecureSettings.d.ts +3 -2
- package/api/nodes/reloadSecureSettings.js +4 -3
- package/api/nodes/stats.d.ts +3 -2
- package/api/nodes/stats.js +4 -3
- package/api/nodes/usage.d.ts +3 -2
- package/api/nodes/usage.js +4 -3
- package/api/notifications/_api.js +22 -3
- package/api/notifications/createConfig.d.ts +3 -2
- package/api/notifications/createConfig.js +4 -3
- package/api/notifications/deleteConfig.d.ts +3 -2
- package/api/notifications/deleteConfig.js +4 -3
- package/api/notifications/deleteConfigs.d.ts +3 -2
- package/api/notifications/deleteConfigs.js +4 -3
- package/api/notifications/getConfig.d.ts +3 -2
- package/api/notifications/getConfig.js +4 -3
- package/api/notifications/getConfigs.d.ts +3 -2
- package/api/notifications/getConfigs.js +6 -5
- package/api/notifications/listChannels.d.ts +3 -2
- package/api/notifications/listChannels.js +4 -3
- package/api/notifications/listFeatures.d.ts +3 -2
- package/api/notifications/listFeatures.js +4 -3
- package/api/notifications/sendTest.d.ts +3 -2
- package/api/notifications/sendTest.js +4 -3
- package/api/notifications/updateConfig.d.ts +3 -2
- package/api/notifications/updateConfig.js +4 -3
- package/api/observability/_api.js +46 -0
- package/api/observability/createObject.d.ts +32 -0
- package/api/observability/createObject.js +47 -0
- package/api/observability/deleteObject.d.ts +31 -0
- package/api/observability/deleteObject.js +49 -0
- package/api/observability/deleteObjects.d.ts +32 -0
- package/api/observability/deleteObjects.js +48 -0
- package/api/observability/getLocalstats.d.ts +27 -0
- package/api/observability/getLocalstats.js +45 -0
- package/api/observability/getObject.d.ts +30 -0
- package/api/observability/getObject.js +49 -0
- package/api/observability/listObjects.d.ts +28 -0
- package/api/observability/listObjects.js +45 -0
- package/api/observability/updateObject.d.ts +33 -0
- package/api/observability/updateObject.js +50 -0
- package/api/ppl/_api.js +8 -3
- package/api/ppl/explain.d.ts +3 -2
- package/api/ppl/explain.js +4 -3
- package/api/ppl/getStats.d.ts +3 -2
- package/api/ppl/getStats.js +4 -3
- package/api/ppl/postStats.d.ts +3 -2
- package/api/ppl/postStats.js +4 -3
- package/api/ppl/query.d.ts +3 -2
- package/api/ppl/query.js +4 -3
- package/api/query/_api.js +40 -0
- package/api/query/datasourceDelete.d.ts +29 -0
- package/api/query/datasourceDelete.js +49 -0
- package/api/query/datasourceRetrieve.d.ts +30 -0
- package/api/query/datasourceRetrieve.js +49 -0
- package/api/query/datasourcesCreate.d.ts +30 -0
- package/api/query/datasourcesCreate.js +47 -0
- package/api/query/datasourcesList.d.ts +28 -0
- package/api/query/datasourcesList.js +45 -0
- package/api/query/datasourcesUpdate.d.ts +30 -0
- package/api/query/datasourcesUpdate.js +47 -0
- package/api/remoteStore/_api.js +6 -5
- package/api/remoteStore/restore.d.ts +3 -2
- package/api/remoteStore/restore.js +4 -3
- package/api/rollups/_api.js +4 -3
- package/api/rollups/delete.d.ts +3 -2
- package/api/rollups/delete.js +4 -3
- package/api/rollups/explain.d.ts +3 -2
- package/api/rollups/explain.js +4 -3
- package/api/rollups/get.d.ts +3 -2
- package/api/rollups/get.js +4 -3
- package/api/rollups/put.d.ts +3 -2
- package/api/rollups/put.js +4 -3
- package/api/rollups/start.d.ts +3 -2
- package/api/rollups/start.js +4 -3
- package/api/rollups/stop.d.ts +3 -2
- package/api/rollups/stop.js +4 -3
- package/api/searchPipeline/_api.js +6 -5
- package/api/searchPipeline/delete.d.ts +3 -2
- package/api/searchPipeline/delete.js +4 -3
- package/api/searchPipeline/get.d.ts +3 -2
- package/api/searchPipeline/get.js +4 -3
- package/api/searchPipeline/put.d.ts +3 -2
- package/api/searchPipeline/put.js +4 -3
- package/api/security/_api.js +146 -4
- package/api/security/authinfo.d.ts +3 -2
- package/api/security/authinfo.js +4 -3
- package/api/security/authtoken.d.ts +3 -2
- package/api/security/authtoken.js +4 -3
- package/api/security/changePassword.d.ts +3 -2
- package/api/security/changePassword.js +4 -3
- package/api/security/configUpgradeCheck.d.ts +3 -2
- package/api/security/configUpgradeCheck.js +5 -4
- package/api/security/configUpgradePerform.d.ts +3 -2
- package/api/security/configUpgradePerform.js +5 -4
- package/api/security/createActionGroup.d.ts +3 -2
- package/api/security/createActionGroup.js +4 -3
- package/api/security/createAllowlist.d.ts +3 -2
- package/api/security/createAllowlist.js +4 -3
- package/api/security/createRole.d.ts +3 -2
- package/api/security/createRole.js +5 -4
- package/api/security/createRoleMapping.d.ts +3 -2
- package/api/security/createRoleMapping.js +5 -4
- package/api/security/createTenant.d.ts +3 -2
- package/api/security/createTenant.js +5 -4
- package/api/security/createUpdateTenancyConfig.d.ts +4 -5
- package/api/security/createUpdateTenancyConfig.js +5 -4
- package/api/security/createUser.d.ts +3 -2
- package/api/security/createUser.js +5 -4
- package/api/security/createUserLegacy.d.ts +3 -2
- package/api/security/createUserLegacy.js +5 -4
- package/api/security/deleteActionGroup.d.ts +3 -2
- package/api/security/deleteActionGroup.js +5 -4
- package/api/security/deleteDistinguishedName.d.ts +3 -2
- package/api/security/deleteDistinguishedName.js +5 -4
- package/api/security/deleteRole.d.ts +3 -2
- package/api/security/deleteRole.js +5 -4
- package/api/security/deleteRoleMapping.d.ts +3 -2
- package/api/security/deleteRoleMapping.js +5 -4
- package/api/security/deleteTenant.d.ts +3 -2
- package/api/security/deleteTenant.js +5 -4
- package/api/security/deleteUser.d.ts +3 -2
- package/api/security/deleteUser.js +5 -4
- package/api/security/deleteUserLegacy.d.ts +3 -2
- package/api/security/deleteUserLegacy.js +5 -4
- package/api/security/flushCache.d.ts +3 -2
- package/api/security/flushCache.js +4 -3
- package/api/security/generateOboToken.d.ts +3 -2
- package/api/security/generateOboToken.js +4 -3
- package/api/security/generateUserToken.d.ts +3 -2
- package/api/security/generateUserToken.js +5 -4
- package/api/security/getAccountDetails.d.ts +3 -2
- package/api/security/getAccountDetails.js +4 -3
- package/api/security/getActionGroup.d.ts +3 -2
- package/api/security/getActionGroup.js +5 -4
- package/api/security/getActionGroups.d.ts +3 -2
- package/api/security/getActionGroups.js +4 -3
- package/api/security/getAllCertificates.d.ts +32 -0
- package/api/security/getAllCertificates.js +48 -0
- package/api/security/getAllowlist.d.ts +3 -2
- package/api/security/getAllowlist.js +4 -3
- package/api/security/getAuditConfiguration.d.ts +3 -2
- package/api/security/getAuditConfiguration.js +4 -3
- package/api/security/getCertificates.d.ts +3 -2
- package/api/security/getCertificates.js +4 -3
- package/api/security/getConfiguration.d.ts +4 -3
- package/api/security/getConfiguration.js +4 -3
- package/api/security/getDashboardsInfo.d.ts +3 -2
- package/api/security/getDashboardsInfo.js +4 -3
- package/api/security/getDistinguishedName.d.ts +3 -2
- package/api/security/getDistinguishedName.js +6 -5
- package/api/security/getDistinguishedNames.d.ts +3 -2
- package/api/security/getDistinguishedNames.js +5 -4
- package/api/security/getNodeCertificates.d.ts +33 -0
- package/api/security/getNodeCertificates.js +51 -0
- package/api/security/getPermissionsInfo.d.ts +3 -2
- package/api/security/getPermissionsInfo.js +4 -3
- package/api/security/getRole.d.ts +3 -2
- package/api/security/getRole.js +4 -3
- package/api/security/getRoleMapping.d.ts +3 -2
- package/api/security/getRoleMapping.js +4 -3
- package/api/security/getRoleMappings.d.ts +3 -2
- package/api/security/getRoleMappings.js +4 -3
- package/api/security/getRoles.d.ts +3 -2
- package/api/security/getRoles.js +4 -3
- package/api/security/getSslinfo.d.ts +4 -3
- package/api/security/getSslinfo.js +5 -4
- package/api/security/getTenancyConfig.d.ts +3 -2
- package/api/security/getTenancyConfig.js +4 -3
- package/api/security/getTenant.d.ts +3 -2
- package/api/security/getTenant.js +5 -4
- package/api/security/getTenants.d.ts +3 -2
- package/api/security/getTenants.js +4 -3
- package/api/security/getUser.d.ts +3 -2
- package/api/security/getUser.js +5 -4
- package/api/security/getUserLegacy.d.ts +3 -2
- package/api/security/getUserLegacy.js +5 -4
- package/api/security/getUsers.d.ts +3 -2
- package/api/security/getUsers.js +4 -3
- package/api/security/getUsersLegacy.d.ts +3 -2
- package/api/security/getUsersLegacy.js +4 -3
- package/api/security/health.d.ts +3 -2
- package/api/security/health.js +5 -4
- package/api/security/migrate.d.ts +3 -2
- package/api/security/migrate.js +4 -3
- package/api/security/patchActionGroup.d.ts +3 -2
- package/api/security/patchActionGroup.js +5 -4
- package/api/security/patchActionGroups.d.ts +3 -2
- package/api/security/patchActionGroups.js +4 -3
- package/api/security/patchAllowlist.d.ts +3 -2
- package/api/security/patchAllowlist.js +4 -3
- package/api/security/patchAuditConfiguration.d.ts +3 -2
- package/api/security/patchAuditConfiguration.js +4 -3
- package/api/security/patchConfiguration.d.ts +3 -2
- package/api/security/patchConfiguration.js +4 -3
- package/api/security/patchDistinguishedName.d.ts +3 -2
- package/api/security/patchDistinguishedName.js +5 -4
- package/api/security/patchDistinguishedNames.d.ts +3 -2
- package/api/security/patchDistinguishedNames.js +4 -3
- package/api/security/patchRole.d.ts +3 -2
- package/api/security/patchRole.js +5 -4
- package/api/security/patchRoleMapping.d.ts +3 -2
- package/api/security/patchRoleMapping.js +5 -4
- package/api/security/patchRoleMappings.d.ts +3 -2
- package/api/security/patchRoleMappings.js +4 -3
- package/api/security/patchRoles.d.ts +3 -2
- package/api/security/patchRoles.js +4 -3
- package/api/security/patchTenant.d.ts +3 -2
- package/api/security/patchTenant.js +5 -4
- package/api/security/patchTenants.d.ts +3 -2
- package/api/security/patchTenants.js +4 -3
- package/api/security/patchUser.d.ts +3 -2
- package/api/security/patchUser.js +5 -4
- package/api/security/patchUsers.d.ts +3 -2
- package/api/security/patchUsers.js +4 -3
- package/api/security/postDashboardsInfo.d.ts +4 -5
- package/api/security/postDashboardsInfo.js +5 -6
- package/api/security/reloadHttpCertificates.d.ts +3 -2
- package/api/security/reloadHttpCertificates.js +4 -3
- package/api/security/reloadTransportCertificates.d.ts +3 -2
- package/api/security/reloadTransportCertificates.js +4 -3
- package/api/security/tenantInfo.d.ts +3 -2
- package/api/security/tenantInfo.js +4 -3
- package/api/security/updateAuditConfiguration.d.ts +3 -2
- package/api/security/updateAuditConfiguration.js +4 -3
- package/api/security/updateConfiguration.d.ts +3 -2
- package/api/security/updateConfiguration.js +4 -3
- package/api/security/updateDistinguishedName.d.ts +4 -3
- package/api/security/updateDistinguishedName.js +5 -4
- package/api/security/validate.d.ts +3 -2
- package/api/security/validate.js +5 -4
- package/api/security/whoAmI.d.ts +3 -2
- package/api/security/whoAmI.js +4 -3
- package/api/security/whoAmIProtected.d.ts +3 -2
- package/api/security/whoAmIProtected.js +4 -3
- package/api/snapshot/_api.js +14 -3
- package/api/snapshot/cleanupRepository.d.ts +3 -2
- package/api/snapshot/cleanupRepository.js +4 -3
- package/api/snapshot/clone.d.ts +3 -2
- package/api/snapshot/clone.js +4 -3
- package/api/snapshot/create.d.ts +3 -2
- package/api/snapshot/create.js +4 -3
- package/api/snapshot/createRepository.d.ts +3 -2
- package/api/snapshot/createRepository.js +4 -3
- package/api/snapshot/delete.d.ts +3 -2
- package/api/snapshot/delete.js +4 -3
- package/api/snapshot/deleteRepository.d.ts +3 -2
- package/api/snapshot/deleteRepository.js +4 -3
- package/api/snapshot/get.d.ts +3 -2
- package/api/snapshot/get.js +4 -3
- package/api/snapshot/getRepository.d.ts +3 -2
- package/api/snapshot/getRepository.js +4 -3
- package/api/snapshot/restore.d.ts +3 -2
- package/api/snapshot/restore.js +4 -3
- package/api/snapshot/status.d.ts +3 -2
- package/api/snapshot/status.js +4 -3
- package/api/snapshot/verifyRepository.d.ts +3 -2
- package/api/snapshot/verifyRepository.js +4 -3
- package/api/sql/_api.js +8 -3
- package/api/sql/close.d.ts +3 -2
- package/api/sql/close.js +4 -3
- package/api/sql/explain.d.ts +3 -2
- package/api/sql/explain.js +4 -3
- package/api/sql/getStats.d.ts +3 -2
- package/api/sql/getStats.js +4 -3
- package/api/sql/postStats.d.ts +3 -2
- package/api/sql/postStats.js +4 -3
- package/api/sql/query.d.ts +3 -2
- package/api/sql/query.js +4 -3
- package/api/sql/settings.d.ts +3 -2
- package/api/sql/settings.js +4 -3
- package/api/tasks/_api.js +4 -3
- package/api/tasks/cancel.d.ts +3 -2
- package/api/tasks/cancel.js +4 -3
- package/api/tasks/get.d.ts +3 -2
- package/api/tasks/get.js +4 -3
- package/api/tasks/list.d.ts +3 -2
- package/api/tasks/list.js +4 -3
- package/api/transforms/_api.js +4 -3
- package/api/transforms/delete.d.ts +3 -2
- package/api/transforms/delete.js +4 -3
- package/api/transforms/explain.d.ts +3 -2
- package/api/transforms/explain.js +4 -3
- package/api/transforms/get.d.ts +3 -2
- package/api/transforms/get.js +4 -3
- package/api/transforms/preview.d.ts +3 -2
- package/api/transforms/preview.js +4 -3
- package/api/transforms/put.d.ts +3 -2
- package/api/transforms/put.js +4 -3
- package/api/transforms/search.d.ts +3 -2
- package/api/transforms/search.js +4 -3
- package/api/transforms/start.d.ts +3 -2
- package/api/transforms/start.js +4 -3
- package/api/transforms/stop.d.ts +3 -2
- package/api/transforms/stop.js +4 -3
- package/api/utils.js +7 -6
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.mjs +2 -0
- package/lib/Client.d.ts +2 -1
- package/lib/Client.js +35 -35
- package/lib/Helpers.d.ts +18 -21
- package/lib/Helpers.js +0 -2
- package/lib/errors.d.ts +13 -13
- package/package.json +11 -6
- package/CHANGELOG.md +0 -295
- package/NOTICE.txt +0 -8
- package/api/security/generateUserTokenLegacy.d.ts +0 -29
- package/lib/OpenSearchAPI.js +0 -117
|
@@ -5,23 +5,24 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
import * as Global from '
|
|
17
|
-
import * as API from '
|
|
17
|
+
import * as Global from './_types/_global';
|
|
18
|
+
import * as API from './index';
|
|
18
19
|
import {
|
|
19
20
|
ApiError,
|
|
20
21
|
ApiResponse,
|
|
21
22
|
TransportRequestOptions,
|
|
22
23
|
TransportRequestCallback,
|
|
23
24
|
TransportRequestPromise,
|
|
24
|
-
} from '
|
|
25
|
+
} from '../lib/Transport';
|
|
25
26
|
|
|
26
27
|
declare type callbackFn<TResponse> = (err: ApiError, result: TResponse) => void;
|
|
27
28
|
|
|
@@ -33,6 +34,27 @@ declare interface HttpRequest {
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export default class OpenSearchAPI {
|
|
37
|
+
asynchronousSearch: {
|
|
38
|
+
search (params?: API.AsynchronousSearch_Search_Request, options?: TransportRequestOptions): TransportRequestPromise<API.AsynchronousSearch_Search_Response>;
|
|
39
|
+
search (callback: callbackFn<API.AsynchronousSearch_Search_Response>): TransportRequestCallback;
|
|
40
|
+
search (params: API.AsynchronousSearch_Search_Request, callback: callbackFn<API.AsynchronousSearch_Search_Response>): TransportRequestCallback;
|
|
41
|
+
search (params: API.AsynchronousSearch_Search_Request, options: TransportRequestOptions, callback: callbackFn<API.AsynchronousSearch_Search_Response>): TransportRequestCallback;
|
|
42
|
+
|
|
43
|
+
delete (params: API.AsynchronousSearch_Delete_Request, options?: TransportRequestOptions): TransportRequestPromise<API.AsynchronousSearch_Delete_Response>;
|
|
44
|
+
delete (params: API.AsynchronousSearch_Delete_Request, callback: callbackFn<API.AsynchronousSearch_Delete_Response>): TransportRequestCallback;
|
|
45
|
+
delete (params: API.AsynchronousSearch_Delete_Request, options: TransportRequestOptions, callback: callbackFn<API.AsynchronousSearch_Delete_Response>): TransportRequestCallback;
|
|
46
|
+
|
|
47
|
+
get (params: API.AsynchronousSearch_Get_Request, options?: TransportRequestOptions): TransportRequestPromise<API.AsynchronousSearch_Get_Response>;
|
|
48
|
+
get (params: API.AsynchronousSearch_Get_Request, callback: callbackFn<API.AsynchronousSearch_Get_Response>): TransportRequestCallback;
|
|
49
|
+
get (params: API.AsynchronousSearch_Get_Request, options: TransportRequestOptions, callback: callbackFn<API.AsynchronousSearch_Get_Response>): TransportRequestCallback;
|
|
50
|
+
|
|
51
|
+
stats (params?: API.AsynchronousSearch_Stats_Request, options?: TransportRequestOptions): TransportRequestPromise<API.AsynchronousSearch_Stats_Response>;
|
|
52
|
+
stats (callback: callbackFn<API.AsynchronousSearch_Stats_Response>): TransportRequestCallback;
|
|
53
|
+
stats (params: API.AsynchronousSearch_Stats_Request, callback: callbackFn<API.AsynchronousSearch_Stats_Response>): TransportRequestCallback;
|
|
54
|
+
stats (params: API.AsynchronousSearch_Stats_Request, options: TransportRequestOptions, callback: callbackFn<API.AsynchronousSearch_Stats_Response>): TransportRequestCallback;
|
|
55
|
+
|
|
56
|
+
};
|
|
57
|
+
|
|
36
58
|
cat: {
|
|
37
59
|
help (params?: API.Cat_Help_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Cat_Help_Response>;
|
|
38
60
|
help (callback: callbackFn<API.Cat_Help_Response>): TransportRequestCallback;
|
|
@@ -272,6 +294,26 @@ export default class OpenSearchAPI {
|
|
|
272
294
|
|
|
273
295
|
};
|
|
274
296
|
|
|
297
|
+
flowFramework: {
|
|
298
|
+
create (params?: API.FlowFramework_Create_Request, options?: TransportRequestOptions): TransportRequestPromise<API.FlowFramework_Create_Response>;
|
|
299
|
+
create (callback: callbackFn<API.FlowFramework_Create_Response>): TransportRequestCallback;
|
|
300
|
+
create (params: API.FlowFramework_Create_Request, callback: callbackFn<API.FlowFramework_Create_Response>): TransportRequestCallback;
|
|
301
|
+
create (params: API.FlowFramework_Create_Request, options: TransportRequestOptions, callback: callbackFn<API.FlowFramework_Create_Response>): TransportRequestCallback;
|
|
302
|
+
|
|
303
|
+
delete (params: API.FlowFramework_Delete_Request, options?: TransportRequestOptions): TransportRequestPromise<API.FlowFramework_Delete_Response>;
|
|
304
|
+
delete (params: API.FlowFramework_Delete_Request, callback: callbackFn<API.FlowFramework_Delete_Response>): TransportRequestCallback;
|
|
305
|
+
delete (params: API.FlowFramework_Delete_Request, options: TransportRequestOptions, callback: callbackFn<API.FlowFramework_Delete_Response>): TransportRequestCallback;
|
|
306
|
+
|
|
307
|
+
get (params: API.FlowFramework_Get_Request, options?: TransportRequestOptions): TransportRequestPromise<API.FlowFramework_Get_Response>;
|
|
308
|
+
get (params: API.FlowFramework_Get_Request, callback: callbackFn<API.FlowFramework_Get_Response>): TransportRequestCallback;
|
|
309
|
+
get (params: API.FlowFramework_Get_Request, options: TransportRequestOptions, callback: callbackFn<API.FlowFramework_Get_Response>): TransportRequestCallback;
|
|
310
|
+
|
|
311
|
+
update (params: API.FlowFramework_Update_Request, options?: TransportRequestOptions): TransportRequestPromise<API.FlowFramework_Update_Response>;
|
|
312
|
+
update (params: API.FlowFramework_Update_Request, callback: callbackFn<API.FlowFramework_Update_Response>): TransportRequestCallback;
|
|
313
|
+
update (params: API.FlowFramework_Update_Request, options: TransportRequestOptions, callback: callbackFn<API.FlowFramework_Update_Response>): TransportRequestCallback;
|
|
314
|
+
|
|
315
|
+
};
|
|
316
|
+
|
|
275
317
|
indices: {
|
|
276
318
|
getAlias (params?: API.Indices_GetAlias_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Indices_GetAlias_Response>;
|
|
277
319
|
getAlias (callback: callbackFn<API.Indices_GetAlias_Response>): TransportRequestCallback;
|
|
@@ -570,6 +612,18 @@ export default class OpenSearchAPI {
|
|
|
570
612
|
deleteModel (params: API.Ml_DeleteModel_Request, callback: callbackFn<API.Ml_DeleteModel_Response>): TransportRequestCallback;
|
|
571
613
|
deleteModel (params: API.Ml_DeleteModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_DeleteModel_Response>): TransportRequestCallback;
|
|
572
614
|
|
|
615
|
+
deployModel (params: API.Ml_DeployModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_DeployModel_Response>;
|
|
616
|
+
deployModel (params: API.Ml_DeployModel_Request, callback: callbackFn<API.Ml_DeployModel_Response>): TransportRequestCallback;
|
|
617
|
+
deployModel (params: API.Ml_DeployModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_DeployModel_Response>): TransportRequestCallback;
|
|
618
|
+
|
|
619
|
+
undeployModel (params: API.Ml_UndeployModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UndeployModel_Response>;
|
|
620
|
+
undeployModel (params: API.Ml_UndeployModel_Request, callback: callbackFn<API.Ml_UndeployModel_Response>): TransportRequestCallback;
|
|
621
|
+
undeployModel (params: API.Ml_UndeployModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UndeployModel_Response>): TransportRequestCallback;
|
|
622
|
+
|
|
623
|
+
deleteTask (params: API.Ml_DeleteTask_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_DeleteTask_Response>;
|
|
624
|
+
deleteTask (params: API.Ml_DeleteTask_Request, callback: callbackFn<API.Ml_DeleteTask_Response>): TransportRequestCallback;
|
|
625
|
+
deleteTask (params: API.Ml_DeleteTask_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_DeleteTask_Response>): TransportRequestCallback;
|
|
626
|
+
|
|
573
627
|
getTask (params: API.Ml_GetTask_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_GetTask_Response>;
|
|
574
628
|
getTask (params: API.Ml_GetTask_Request, callback: callbackFn<API.Ml_GetTask_Response>): TransportRequestCallback;
|
|
575
629
|
getTask (params: API.Ml_GetTask_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_GetTask_Response>): TransportRequestCallback;
|
|
@@ -646,6 +700,41 @@ export default class OpenSearchAPI {
|
|
|
646
700
|
|
|
647
701
|
};
|
|
648
702
|
|
|
703
|
+
observability: {
|
|
704
|
+
getLocalstats (params?: API.Observability_GetLocalstats_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_GetLocalstats_Response>;
|
|
705
|
+
getLocalstats (callback: callbackFn<API.Observability_GetLocalstats_Response>): TransportRequestCallback;
|
|
706
|
+
getLocalstats (params: API.Observability_GetLocalstats_Request, callback: callbackFn<API.Observability_GetLocalstats_Response>): TransportRequestCallback;
|
|
707
|
+
getLocalstats (params: API.Observability_GetLocalstats_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_GetLocalstats_Response>): TransportRequestCallback;
|
|
708
|
+
|
|
709
|
+
deleteObjects (params?: API.Observability_DeleteObjects_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_DeleteObjects_Response>;
|
|
710
|
+
deleteObjects (callback: callbackFn<API.Observability_DeleteObjects_Response>): TransportRequestCallback;
|
|
711
|
+
deleteObjects (params: API.Observability_DeleteObjects_Request, callback: callbackFn<API.Observability_DeleteObjects_Response>): TransportRequestCallback;
|
|
712
|
+
deleteObjects (params: API.Observability_DeleteObjects_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_DeleteObjects_Response>): TransportRequestCallback;
|
|
713
|
+
|
|
714
|
+
listObjects (params?: API.Observability_ListObjects_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_ListObjects_Response>;
|
|
715
|
+
listObjects (callback: callbackFn<API.Observability_ListObjects_Response>): TransportRequestCallback;
|
|
716
|
+
listObjects (params: API.Observability_ListObjects_Request, callback: callbackFn<API.Observability_ListObjects_Response>): TransportRequestCallback;
|
|
717
|
+
listObjects (params: API.Observability_ListObjects_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_ListObjects_Response>): TransportRequestCallback;
|
|
718
|
+
|
|
719
|
+
createObject (params?: API.Observability_CreateObject_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_CreateObject_Response>;
|
|
720
|
+
createObject (callback: callbackFn<API.Observability_CreateObject_Response>): TransportRequestCallback;
|
|
721
|
+
createObject (params: API.Observability_CreateObject_Request, callback: callbackFn<API.Observability_CreateObject_Response>): TransportRequestCallback;
|
|
722
|
+
createObject (params: API.Observability_CreateObject_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_CreateObject_Response>): TransportRequestCallback;
|
|
723
|
+
|
|
724
|
+
deleteObject (params: API.Observability_DeleteObject_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_DeleteObject_Response>;
|
|
725
|
+
deleteObject (params: API.Observability_DeleteObject_Request, callback: callbackFn<API.Observability_DeleteObject_Response>): TransportRequestCallback;
|
|
726
|
+
deleteObject (params: API.Observability_DeleteObject_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_DeleteObject_Response>): TransportRequestCallback;
|
|
727
|
+
|
|
728
|
+
getObject (params: API.Observability_GetObject_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_GetObject_Response>;
|
|
729
|
+
getObject (params: API.Observability_GetObject_Request, callback: callbackFn<API.Observability_GetObject_Response>): TransportRequestCallback;
|
|
730
|
+
getObject (params: API.Observability_GetObject_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_GetObject_Response>): TransportRequestCallback;
|
|
731
|
+
|
|
732
|
+
updateObject (params: API.Observability_UpdateObject_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Observability_UpdateObject_Response>;
|
|
733
|
+
updateObject (params: API.Observability_UpdateObject_Request, callback: callbackFn<API.Observability_UpdateObject_Response>): TransportRequestCallback;
|
|
734
|
+
updateObject (params: API.Observability_UpdateObject_Request, options: TransportRequestOptions, callback: callbackFn<API.Observability_UpdateObject_Response>): TransportRequestCallback;
|
|
735
|
+
|
|
736
|
+
};
|
|
737
|
+
|
|
649
738
|
ppl: {
|
|
650
739
|
query (params: API.Ppl_Query_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ppl_Query_Response>;
|
|
651
740
|
query (params: API.Ppl_Query_Request, callback: callbackFn<API.Ppl_Query_Response>): TransportRequestCallback;
|
|
@@ -666,6 +755,32 @@ export default class OpenSearchAPI {
|
|
|
666
755
|
|
|
667
756
|
};
|
|
668
757
|
|
|
758
|
+
query: {
|
|
759
|
+
datasourcesList (params?: API.Query_DatasourcesList_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Query_DatasourcesList_Response>;
|
|
760
|
+
datasourcesList (callback: callbackFn<API.Query_DatasourcesList_Response>): TransportRequestCallback;
|
|
761
|
+
datasourcesList (params: API.Query_DatasourcesList_Request, callback: callbackFn<API.Query_DatasourcesList_Response>): TransportRequestCallback;
|
|
762
|
+
datasourcesList (params: API.Query_DatasourcesList_Request, options: TransportRequestOptions, callback: callbackFn<API.Query_DatasourcesList_Response>): TransportRequestCallback;
|
|
763
|
+
|
|
764
|
+
datasourcesCreate (params?: API.Query_DatasourcesCreate_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Query_DatasourcesCreate_Response>;
|
|
765
|
+
datasourcesCreate (callback: callbackFn<API.Query_DatasourcesCreate_Response>): TransportRequestCallback;
|
|
766
|
+
datasourcesCreate (params: API.Query_DatasourcesCreate_Request, callback: callbackFn<API.Query_DatasourcesCreate_Response>): TransportRequestCallback;
|
|
767
|
+
datasourcesCreate (params: API.Query_DatasourcesCreate_Request, options: TransportRequestOptions, callback: callbackFn<API.Query_DatasourcesCreate_Response>): TransportRequestCallback;
|
|
768
|
+
|
|
769
|
+
datasourcesUpdate (params?: API.Query_DatasourcesUpdate_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Query_DatasourcesUpdate_Response>;
|
|
770
|
+
datasourcesUpdate (callback: callbackFn<API.Query_DatasourcesUpdate_Response>): TransportRequestCallback;
|
|
771
|
+
datasourcesUpdate (params: API.Query_DatasourcesUpdate_Request, callback: callbackFn<API.Query_DatasourcesUpdate_Response>): TransportRequestCallback;
|
|
772
|
+
datasourcesUpdate (params: API.Query_DatasourcesUpdate_Request, options: TransportRequestOptions, callback: callbackFn<API.Query_DatasourcesUpdate_Response>): TransportRequestCallback;
|
|
773
|
+
|
|
774
|
+
datasourceDelete (params: API.Query_DatasourceDelete_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Query_DatasourceDelete_Response>;
|
|
775
|
+
datasourceDelete (params: API.Query_DatasourceDelete_Request, callback: callbackFn<API.Query_DatasourceDelete_Response>): TransportRequestCallback;
|
|
776
|
+
datasourceDelete (params: API.Query_DatasourceDelete_Request, options: TransportRequestOptions, callback: callbackFn<API.Query_DatasourceDelete_Response>): TransportRequestCallback;
|
|
777
|
+
|
|
778
|
+
datasourceRetrieve (params: API.Query_DatasourceRetrieve_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Query_DatasourceRetrieve_Response>;
|
|
779
|
+
datasourceRetrieve (params: API.Query_DatasourceRetrieve_Request, callback: callbackFn<API.Query_DatasourceRetrieve_Response>): TransportRequestCallback;
|
|
780
|
+
datasourceRetrieve (params: API.Query_DatasourceRetrieve_Request, options: TransportRequestOptions, callback: callbackFn<API.Query_DatasourceRetrieve_Response>): TransportRequestCallback;
|
|
781
|
+
|
|
782
|
+
};
|
|
783
|
+
|
|
669
784
|
remoteStore: {
|
|
670
785
|
restore (params: API.RemoteStore_Restore_Request, options?: TransportRequestOptions): TransportRequestPromise<API.RemoteStore_Restore_Response>;
|
|
671
786
|
restore (params: API.RemoteStore_Restore_Request, callback: callbackFn<API.RemoteStore_Restore_Response>): TransportRequestCallback;
|
|
@@ -802,6 +917,15 @@ export default class OpenSearchAPI {
|
|
|
802
917
|
flushCache (params: API.Security_FlushCache_Request, callback: callbackFn<API.Security_FlushCache_Response>): TransportRequestCallback;
|
|
803
918
|
flushCache (params: API.Security_FlushCache_Request, options: TransportRequestOptions, callback: callbackFn<API.Security_FlushCache_Response>): TransportRequestCallback;
|
|
804
919
|
|
|
920
|
+
getAllCertificates (params?: API.Security_GetAllCertificates_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Security_GetAllCertificates_Response>;
|
|
921
|
+
getAllCertificates (callback: callbackFn<API.Security_GetAllCertificates_Response>): TransportRequestCallback;
|
|
922
|
+
getAllCertificates (params: API.Security_GetAllCertificates_Request, callback: callbackFn<API.Security_GetAllCertificates_Response>): TransportRequestCallback;
|
|
923
|
+
getAllCertificates (params: API.Security_GetAllCertificates_Request, options: TransportRequestOptions, callback: callbackFn<API.Security_GetAllCertificates_Response>): TransportRequestCallback;
|
|
924
|
+
|
|
925
|
+
getNodeCertificates (params: API.Security_GetNodeCertificates_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Security_GetNodeCertificates_Response>;
|
|
926
|
+
getNodeCertificates (params: API.Security_GetNodeCertificates_Request, callback: callbackFn<API.Security_GetNodeCertificates_Response>): TransportRequestCallback;
|
|
927
|
+
getNodeCertificates (params: API.Security_GetNodeCertificates_Request, options: TransportRequestOptions, callback: callbackFn<API.Security_GetNodeCertificates_Response>): TransportRequestCallback;
|
|
928
|
+
|
|
805
929
|
generateOboToken (params: API.Security_GenerateOboToken_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Security_GenerateOboToken_Response>;
|
|
806
930
|
generateOboToken (params: API.Security_GenerateOboToken_Request, callback: callbackFn<API.Security_GenerateOboToken_Response>): TransportRequestCallback;
|
|
807
931
|
generateOboToken (params: API.Security_GenerateOboToken_Request, options: TransportRequestOptions, callback: callbackFn<API.Security_GenerateOboToken_Response>): TransportRequestCallback;
|
|
@@ -999,10 +1123,6 @@ export default class OpenSearchAPI {
|
|
|
999
1123
|
createUserLegacy (params: API.Security_CreateUserLegacy_Request, callback: callbackFn<API.Security_CreateUserLegacy_Response>): TransportRequestCallback;
|
|
1000
1124
|
createUserLegacy (params: API.Security_CreateUserLegacy_Request, options: TransportRequestOptions, callback: callbackFn<API.Security_CreateUserLegacy_Response>): TransportRequestCallback;
|
|
1001
1125
|
|
|
1002
|
-
generateUserTokenLegacy (params: API.Security_GenerateUserTokenLegacy_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Security_GenerateUserTokenLegacy_Response>;
|
|
1003
|
-
generateUserTokenLegacy (params: API.Security_GenerateUserTokenLegacy_Request, callback: callbackFn<API.Security_GenerateUserTokenLegacy_Response>): TransportRequestCallback;
|
|
1004
|
-
generateUserTokenLegacy (params: API.Security_GenerateUserTokenLegacy_Request, options: TransportRequestOptions, callback: callbackFn<API.Security_GenerateUserTokenLegacy_Response>): TransportRequestCallback;
|
|
1005
|
-
|
|
1006
1126
|
validate (params?: API.Security_Validate_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Security_Validate_Response>;
|
|
1007
1127
|
validate (callback: callbackFn<API.Security_Validate_Response>): TransportRequestCallback;
|
|
1008
1128
|
validate (params: API.Security_Validate_Request, callback: callbackFn<API.Security_Validate_Response>): TransportRequestCallback;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { kConfigErr } = require('./utils')
|
|
20
|
+
const kApiModules = Symbol('api modules')
|
|
21
|
+
|
|
22
|
+
class OpenSearchAPI {
|
|
23
|
+
constructor (opts) {
|
|
24
|
+
this[kConfigErr] = opts.ConfigurationError
|
|
25
|
+
this[kApiModules] = {
|
|
26
|
+
asynchronousSearch: new(require('./asynchronousSearch/_api'))(this),
|
|
27
|
+
cat: new(require('./cat/_api'))(this),
|
|
28
|
+
cluster: new(require('./cluster/_api'))(this),
|
|
29
|
+
danglingIndices: new(require('./danglingIndices/_api'))(this),
|
|
30
|
+
flowFramework: new(require('./flowFramework/_api'))(this),
|
|
31
|
+
http: new(require('./http/_api'))(this),
|
|
32
|
+
indices: new(require('./indices/_api'))(this),
|
|
33
|
+
ingest: new(require('./ingest/_api'))(this),
|
|
34
|
+
knn: new(require('./knn/_api'))(this),
|
|
35
|
+
ml: new(require('./ml/_api'))(this),
|
|
36
|
+
nodes: new(require('./nodes/_api'))(this),
|
|
37
|
+
notifications: new(require('./notifications/_api'))(this),
|
|
38
|
+
observability: new(require('./observability/_api'))(this),
|
|
39
|
+
ppl: new(require('./ppl/_api'))(this),
|
|
40
|
+
query: new(require('./query/_api'))(this),
|
|
41
|
+
remoteStore: new(require('./remoteStore/_api'))(this),
|
|
42
|
+
rollups: new(require('./rollups/_api'))(this),
|
|
43
|
+
searchPipeline: new(require('./searchPipeline/_api'))(this),
|
|
44
|
+
security: new(require('./security/_api'))(this),
|
|
45
|
+
snapshot: new(require('./snapshot/_api'))(this),
|
|
46
|
+
sql: new(require('./sql/_api'))(this),
|
|
47
|
+
tasks: new(require('./tasks/_api'))(this),
|
|
48
|
+
transforms: new(require('./transforms/_api'))(this),
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Setup Root API Functions
|
|
52
|
+
/** @namespace API-Core */
|
|
53
|
+
this.bulk = require('./_core/bulk').bind(this)
|
|
54
|
+
this.clearScroll = require('./_core/clearScroll').bind(this)
|
|
55
|
+
this.count = require('./_core/count').bind(this)
|
|
56
|
+
this.create = require('./_core/create').bind(this)
|
|
57
|
+
this.createPit = require('./_core/createPit').bind(this)
|
|
58
|
+
this.delete = require('./_core/delete').bind(this)
|
|
59
|
+
this.deleteAllPits = require('./_core/deleteAllPits').bind(this)
|
|
60
|
+
this.deleteByQuery = require('./_core/deleteByQuery').bind(this)
|
|
61
|
+
this.deleteByQueryRethrottle = require('./_core/deleteByQueryRethrottle').bind(this)
|
|
62
|
+
this.deletePit = require('./_core/deletePit').bind(this)
|
|
63
|
+
this.deleteScript = require('./_core/deleteScript').bind(this)
|
|
64
|
+
this.exists = require('./_core/exists').bind(this)
|
|
65
|
+
this.existsSource = require('./_core/existsSource').bind(this)
|
|
66
|
+
this.explain = require('./_core/explain').bind(this)
|
|
67
|
+
this.fieldCaps = require('./_core/fieldCaps').bind(this)
|
|
68
|
+
this.get = require('./_core/get').bind(this)
|
|
69
|
+
this.getAllPits = require('./_core/getAllPits').bind(this)
|
|
70
|
+
this.getScript = require('./_core/getScript').bind(this)
|
|
71
|
+
this.getScriptContext = require('./_core/getScriptContext').bind(this)
|
|
72
|
+
this.getScriptLanguages = require('./_core/getScriptLanguages').bind(this)
|
|
73
|
+
this.getSource = require('./_core/getSource').bind(this)
|
|
74
|
+
this.index = require('./_core/index').bind(this)
|
|
75
|
+
this.info = require('./_core/info').bind(this)
|
|
76
|
+
this.mget = require('./_core/mget').bind(this)
|
|
77
|
+
this.msearch = require('./_core/msearch').bind(this)
|
|
78
|
+
this.msearchTemplate = require('./_core/msearchTemplate').bind(this)
|
|
79
|
+
this.mtermvectors = require('./_core/mtermvectors').bind(this)
|
|
80
|
+
this.ping = require('./_core/ping').bind(this)
|
|
81
|
+
this.putScript = require('./_core/putScript').bind(this)
|
|
82
|
+
this.rankEval = require('./_core/rankEval').bind(this)
|
|
83
|
+
this.reindex = require('./_core/reindex').bind(this)
|
|
84
|
+
this.reindexRethrottle = require('./_core/reindexRethrottle').bind(this)
|
|
85
|
+
this.renderSearchTemplate = require('./_core/renderSearchTemplate').bind(this)
|
|
86
|
+
this.scriptsPainlessExecute = require('./_core/scriptsPainlessExecute').bind(this)
|
|
87
|
+
this.scroll = require('./_core/scroll').bind(this)
|
|
88
|
+
this.search = require('./_core/search').bind(this)
|
|
89
|
+
this.searchShards = require('./_core/searchShards').bind(this)
|
|
90
|
+
this.searchTemplate = require('./_core/searchTemplate').bind(this)
|
|
91
|
+
this.termvectors = require('./_core/termvectors').bind(this)
|
|
92
|
+
this.update = require('./_core/update').bind(this)
|
|
93
|
+
this.updateByQuery = require('./_core/updateByQuery').bind(this)
|
|
94
|
+
this.updateByQueryRethrottle = require('./_core/updateByQueryRethrottle').bind(this)
|
|
95
|
+
|
|
96
|
+
// Deprecated: Use clearScroll instead.
|
|
97
|
+
this.clear_scroll = require('./_core/clearScroll').bind(this)
|
|
98
|
+
// Deprecated: Use createPit instead.
|
|
99
|
+
this.create_pit = require('./_core/createPit').bind(this)
|
|
100
|
+
// Deprecated: Use deleteAllPits instead.
|
|
101
|
+
this.delete_all_pits = require('./_core/deleteAllPits').bind(this)
|
|
102
|
+
// Deprecated: Use deleteByQuery instead.
|
|
103
|
+
this.delete_by_query = require('./_core/deleteByQuery').bind(this)
|
|
104
|
+
// Deprecated: Use deleteByQueryRethrottle instead.
|
|
105
|
+
this.delete_by_query_rethrottle = require('./_core/deleteByQueryRethrottle').bind(this)
|
|
106
|
+
// Deprecated: Use deletePit instead.
|
|
107
|
+
this.delete_pit = require('./_core/deletePit').bind(this)
|
|
108
|
+
// Deprecated: Use deleteScript instead.
|
|
109
|
+
this.delete_script = require('./_core/deleteScript').bind(this)
|
|
110
|
+
// Deprecated: Use existsSource instead.
|
|
111
|
+
this.exists_source = require('./_core/existsSource').bind(this)
|
|
112
|
+
// Deprecated: Use fieldCaps instead.
|
|
113
|
+
this.field_caps = require('./_core/fieldCaps').bind(this)
|
|
114
|
+
// Deprecated: Use getAllPits instead.
|
|
115
|
+
this.get_all_pits = require('./_core/getAllPits').bind(this)
|
|
116
|
+
// Deprecated: Use getScript instead.
|
|
117
|
+
this.get_script = require('./_core/getScript').bind(this)
|
|
118
|
+
// Deprecated: Use getScriptContext instead.
|
|
119
|
+
this.get_script_context = require('./_core/getScriptContext').bind(this)
|
|
120
|
+
// Deprecated: Use getScriptLanguages instead.
|
|
121
|
+
this.get_script_languages = require('./_core/getScriptLanguages').bind(this)
|
|
122
|
+
// Deprecated: Use getSource instead.
|
|
123
|
+
this.get_source = require('./_core/getSource').bind(this)
|
|
124
|
+
// Deprecated: Use msearchTemplate instead.
|
|
125
|
+
this.msearch_template = require('./_core/msearchTemplate').bind(this)
|
|
126
|
+
// Deprecated: Use putScript instead.
|
|
127
|
+
this.put_script = require('./_core/putScript').bind(this)
|
|
128
|
+
// Deprecated: Use rankEval instead.
|
|
129
|
+
this.rank_eval = require('./_core/rankEval').bind(this)
|
|
130
|
+
// Deprecated: Use reindexRethrottle instead.
|
|
131
|
+
this.reindex_rethrottle = require('./_core/reindexRethrottle').bind(this)
|
|
132
|
+
// Deprecated: Use renderSearchTemplate instead.
|
|
133
|
+
this.render_search_template = require('./_core/renderSearchTemplate').bind(this)
|
|
134
|
+
// Deprecated: Use scriptsPainlessExecute instead.
|
|
135
|
+
this.scripts_painless_execute = require('./_core/scriptsPainlessExecute').bind(this)
|
|
136
|
+
// Deprecated: Use searchShards instead.
|
|
137
|
+
this.search_shards = require('./_core/searchShards').bind(this)
|
|
138
|
+
// Deprecated: Use searchTemplate instead.
|
|
139
|
+
this.search_template = require('./_core/searchTemplate').bind(this)
|
|
140
|
+
// Deprecated: Use updateByQuery instead.
|
|
141
|
+
this.update_by_query = require('./_core/updateByQuery').bind(this)
|
|
142
|
+
// Deprecated: Use updateByQueryRethrottle instead.
|
|
143
|
+
this.update_by_query_rethrottle = require('./_core/updateByQueryRethrottle').bind(this)
|
|
144
|
+
|
|
145
|
+
// Setup API Modules
|
|
146
|
+
Object.defineProperties(this, {
|
|
147
|
+
asynchronousSearch: { get() { return this[kApiModules].asynchronousSearch } },
|
|
148
|
+
cat: { get() { return this[kApiModules].cat } },
|
|
149
|
+
cluster: { get() { return this[kApiModules].cluster } },
|
|
150
|
+
danglingIndices: { get() { return this[kApiModules].danglingIndices } },
|
|
151
|
+
flowFramework: { get() { return this[kApiModules].flowFramework } },
|
|
152
|
+
http: { get() { return this[kApiModules].http } },
|
|
153
|
+
indices: { get() { return this[kApiModules].indices } },
|
|
154
|
+
ingest: { get() { return this[kApiModules].ingest } },
|
|
155
|
+
knn: { get() { return this[kApiModules].knn } },
|
|
156
|
+
ml: { get() { return this[kApiModules].ml } },
|
|
157
|
+
nodes: { get() { return this[kApiModules].nodes } },
|
|
158
|
+
notifications: { get() { return this[kApiModules].notifications } },
|
|
159
|
+
observability: { get() { return this[kApiModules].observability } },
|
|
160
|
+
ppl: { get() { return this[kApiModules].ppl } },
|
|
161
|
+
query: { get() { return this[kApiModules].query } },
|
|
162
|
+
remoteStore: { get() { return this[kApiModules].remoteStore } },
|
|
163
|
+
rollups: { get() { return this[kApiModules].rollups } },
|
|
164
|
+
searchPipeline: { get() { return this[kApiModules].searchPipeline } },
|
|
165
|
+
security: { get() { return this[kApiModules].security } },
|
|
166
|
+
snapshot: { get() { return this[kApiModules].snapshot } },
|
|
167
|
+
sql: { get() { return this[kApiModules].sql } },
|
|
168
|
+
tasks: { get() { return this[kApiModules].tasks } },
|
|
169
|
+
transforms: { get() { return this[kApiModules].transforms } },
|
|
170
|
+
|
|
171
|
+
// Deprecated: Use asynchronousSearch instead.
|
|
172
|
+
asynchronous_search: { get() { return this[kApiModules].asynchronousSearch } },
|
|
173
|
+
// Deprecated: Use danglingIndices instead.
|
|
174
|
+
dangling_indices: { get() { return this[kApiModules].danglingIndices } },
|
|
175
|
+
// Deprecated: Use flowFramework instead.
|
|
176
|
+
flow_framework: { get() { return this[kApiModules].flowFramework } },
|
|
177
|
+
// Deprecated: Use remoteStore instead.
|
|
178
|
+
remote_store: { get() { return this[kApiModules].remoteStore } },
|
|
179
|
+
// Deprecated: Use searchPipeline instead.
|
|
180
|
+
search_pipeline: { get() { return this[kApiModules].searchPipeline } },
|
|
181
|
+
})
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
module.exports = OpenSearchAPI;
|
package/api/_core/bulk.d.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|
package/api/_core/bulk.js
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
'use strict'
|
|
17
|
+
'use strict';
|
|
17
18
|
|
|
18
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
19
20
|
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|
package/api/_core/clearScroll.js
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
'use strict'
|
|
17
|
+
'use strict';
|
|
17
18
|
|
|
18
19
|
const { normalizeArguments, parsePathParam } = require('../utils');
|
|
19
20
|
|
package/api/_core/count.d.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
@@ -48,5 +49,6 @@ export interface Count_Response extends ApiResponse {
|
|
|
48
49
|
export interface Count_ResponseBody {
|
|
49
50
|
_shards: Common.ShardStatistics;
|
|
50
51
|
count: number;
|
|
52
|
+
terminated_early?: boolean;
|
|
51
53
|
}
|
|
52
54
|
|
package/api/_core/count.js
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
'use strict'
|
|
17
|
+
'use strict';
|
|
17
18
|
|
|
18
19
|
const { normalizeArguments, parsePathParam } = require('../utils');
|
|
19
20
|
|
package/api/_core/create.d.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|
package/api/_core/create.js
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
'use strict'
|
|
17
|
+
'use strict';
|
|
17
18
|
|
|
18
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
19
20
|
|
package/api/_core/createPit.d.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|
package/api/_core/createPit.js
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
'use strict'
|
|
17
|
+
'use strict';
|
|
17
18
|
|
|
18
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
19
20
|
|
package/api/_core/delete.d.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|
package/api/_core/delete.js
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
|
-
'use strict'
|
|
17
|
+
'use strict';
|
|
17
18
|
|
|
18
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
19
20
|
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* The OpenSearch Contributors require contributions made to
|
|
6
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
7
7
|
* compatible open source license.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/*
|
|
11
|
-
* This file was generated from OpenSearch API Spec. Do
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
12
13
|
* manually. If you want to make changes, either update the spec or
|
|
13
|
-
* the API generator.
|
|
14
|
+
* modify the API generator.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { ApiResponse } from '../../lib/Transport'
|