From 3e57383b048bf3557130d9e8a5deeeb723de7e57 Mon Sep 17 00:00:00 2001 From: delvedor Date: Mon, 6 Jul 2020 11:51:04 +0200 Subject: [PATCH] API generation --- .../dangling_indices.delete_dangling_index.js | 88 ++++++++ .../dangling_indices.import_dangling_index.js | 88 ++++++++ .../dangling_indices.list_dangling_indices.js | 77 +++++++ api/api/eql.delete.js | 78 +++++++ api/api/eql.get.js | 80 ++++++++ api/api/eql.search.js | 8 +- api/api/indices.add_block.js | 102 ++++++++++ api/api/security.clear_cached_privileges.js | 78 +++++++ api/api/xpack.info.js | 5 +- api/index.js | 22 ++ api/kibana.d.ts | 11 +- api/requestParams.d.ts | 48 ++++- docs/reference.asciidoc | 190 +++++++++++++++++- index.d.ts | 92 ++++++++- 14 files changed, 941 insertions(+), 26 deletions(-) create mode 100644 api/api/dangling_indices.delete_dangling_index.js create mode 100644 api/api/dangling_indices.import_dangling_index.js create mode 100644 api/api/dangling_indices.list_dangling_indices.js create mode 100644 api/api/eql.delete.js create mode 100644 api/api/eql.get.js create mode 100644 api/api/indices.add_block.js create mode 100644 api/api/security.clear_cached_privileges.js diff --git a/api/api/dangling_indices.delete_dangling_index.js b/api/api/dangling_indices.delete_dangling_index.js new file mode 100644 index 000000000..5b9b6dbc3 --- /dev/null +++ b/api/api/dangling_indices.delete_dangling_index.js @@ -0,0 +1,88 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildDanglingIndicesDeleteDanglingIndex (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'accept_data_loss', + 'timeout', + 'master_timeout', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + acceptDataLoss: 'accept_data_loss', + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a dangling_indices.delete_dangling_index request + * Deletes the specified dangling index + * https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html + */ + return function danglingIndicesDeleteDanglingIndex (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['index_uuid'] == null && params['indexUuid'] == null) { + const err = new ConfigurationError('Missing required parameter: index_uuid or indexUuid') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, indexUuid, index_uuid, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'DELETE' + path = '/' + '_dangling' + '/' + encodeURIComponent(index_uuid || indexUuid) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildDanglingIndicesDeleteDanglingIndex diff --git a/api/api/dangling_indices.import_dangling_index.js b/api/api/dangling_indices.import_dangling_index.js new file mode 100644 index 000000000..69a6e4b46 --- /dev/null +++ b/api/api/dangling_indices.import_dangling_index.js @@ -0,0 +1,88 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildDanglingIndicesImportDanglingIndex (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'accept_data_loss', + 'timeout', + 'master_timeout', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + acceptDataLoss: 'accept_data_loss', + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a dangling_indices.import_dangling_index request + * Imports the specified dangling index + * https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html + */ + return function danglingIndicesImportDanglingIndex (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['index_uuid'] == null && params['indexUuid'] == null) { + const err = new ConfigurationError('Missing required parameter: index_uuid or indexUuid') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, indexUuid, index_uuid, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'POST' + path = '/' + '_dangling' + '/' + encodeURIComponent(index_uuid || indexUuid) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildDanglingIndicesImportDanglingIndex diff --git a/api/api/dangling_indices.list_dangling_indices.js b/api/api/dangling_indices.list_dangling_indices.js new file mode 100644 index 000000000..fdc3847af --- /dev/null +++ b/api/api/dangling_indices.list_dangling_indices.js @@ -0,0 +1,77 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildDanglingIndicesListDanglingIndices (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a dangling_indices.list_dangling_indices request + * Returns all dangling indices. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html + */ + return function danglingIndicesListDanglingIndices (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'GET' + path = '/' + '_dangling' + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildDanglingIndicesListDanglingIndices diff --git a/api/api/eql.delete.js b/api/api/eql.delete.js new file mode 100644 index 000000000..33efe0512 --- /dev/null +++ b/api/api/eql.delete.js @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildEqlDelete (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a eql.delete request + * Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html + */ + return function eqlDelete (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['id'] == null) { + const err = new ConfigurationError('Missing required parameter: id') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, id, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'DELETE' + path = '/' + '_eql' + '/' + 'search' + '/' + encodeURIComponent(id) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildEqlDelete diff --git a/api/api/eql.get.js b/api/api/eql.get.js new file mode 100644 index 000000000..05fe84d1a --- /dev/null +++ b/api/api/eql.get.js @@ -0,0 +1,80 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildEqlGet (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'wait_for_completion_timeout', + 'keep_alive' + ] + + const snakeCase = { + waitForCompletionTimeout: 'wait_for_completion_timeout', + keepAlive: 'keep_alive' + } + + /** + * Perform a eql.get request + * Returns async results from previously executed Event Query Language (EQL) search + * https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html + */ + return function eqlGet (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['id'] == null) { + const err = new ConfigurationError('Missing required parameter: id') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, id, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'GET' + path = '/' + '_eql' + '/' + 'search' + '/' + encodeURIComponent(id) + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildEqlGet diff --git a/api/api/eql.search.js b/api/api/eql.search.js index 576846fce..eaa611d8a 100644 --- a/api/api/eql.search.js +++ b/api/api/eql.search.js @@ -12,11 +12,15 @@ function buildEqlSearch (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ - + 'wait_for_completion_timeout', + 'keep_on_completion', + 'keep_alive' ] const snakeCase = { - + waitForCompletionTimeout: 'wait_for_completion_timeout', + keepOnCompletion: 'keep_on_completion', + keepAlive: 'keep_alive' } /** diff --git a/api/api/indices.add_block.js b/api/api/indices.add_block.js new file mode 100644 index 000000000..51fae6185 --- /dev/null +++ b/api/api/indices.add_block.js @@ -0,0 +1,102 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildIndicesAddBlock (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'timeout', + 'master_timeout', + 'ignore_unavailable', + 'allow_no_indices', + 'expand_wildcards', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + masterTimeout: 'master_timeout', + ignoreUnavailable: 'ignore_unavailable', + allowNoIndices: 'allow_no_indices', + expandWildcards: 'expand_wildcards', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a indices.add_block request + * Adds a block to an index. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html + */ + return function indicesAddBlock (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['index'] == null) { + const err = new ConfigurationError('Missing required parameter: index') + return handleError(err, callback) + } + if (params['block'] == null) { + const err = new ConfigurationError('Missing required parameter: block') + return handleError(err, callback) + } + + // check required url components + if (params['block'] != null && (params['index'] == null)) { + const err = new ConfigurationError('Missing required parameter of the url: index') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, index, block, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'PUT' + path = '/' + encodeURIComponent(index) + '/' + '_block' + '/' + encodeURIComponent(block) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildIndicesAddBlock diff --git a/api/api/security.clear_cached_privileges.js b/api/api/security.clear_cached_privileges.js new file mode 100644 index 000000000..35899d76b --- /dev/null +++ b/api/api/security.clear_cached_privileges.js @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildSecurityClearCachedPrivileges (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a security.clear_cached_privileges request + * Evicts application privileges from the native application privileges cache. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html + */ + return function securityClearCachedPrivileges (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['application'] == null) { + const err = new ConfigurationError('Missing required parameter: application') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, application, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'POST' + path = '/' + '_security' + '/' + 'privilege' + '/' + encodeURIComponent(application) + '/' + '_clear_cache' + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildSecurityClearCachedPrivileges diff --git a/api/api/xpack.info.js b/api/api/xpack.info.js index 2be59b4a9..4d12aa3cd 100644 --- a/api/api/xpack.info.js +++ b/api/api/xpack.info.js @@ -12,11 +12,12 @@ function buildXpackInfo (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ - 'categories' + 'categories', + 'accept_enterprise' ] const snakeCase = { - + acceptEnterprise: 'accept_enterprise' } /** diff --git a/api/index.js b/api/index.js index f71efa2e4..6fb5b0179 100644 --- a/api/index.js +++ b/api/index.js @@ -127,6 +127,22 @@ function ESAPI (opts) { }, count: lazyLoad('count', opts), create: lazyLoad('create', opts), + dangling_indices: { + delete_dangling_index: lazyLoad('dangling_indices.delete_dangling_index', opts), + deleteDanglingIndex: lazyLoad('dangling_indices.delete_dangling_index', opts), + import_dangling_index: lazyLoad('dangling_indices.import_dangling_index', opts), + importDanglingIndex: lazyLoad('dangling_indices.import_dangling_index', opts), + list_dangling_indices: lazyLoad('dangling_indices.list_dangling_indices', opts), + listDanglingIndices: lazyLoad('dangling_indices.list_dangling_indices', opts) + }, + danglingIndices: { + delete_dangling_index: lazyLoad('dangling_indices.delete_dangling_index', opts), + deleteDanglingIndex: lazyLoad('dangling_indices.delete_dangling_index', opts), + import_dangling_index: lazyLoad('dangling_indices.import_dangling_index', opts), + importDanglingIndex: lazyLoad('dangling_indices.import_dangling_index', opts), + list_dangling_indices: lazyLoad('dangling_indices.list_dangling_indices', opts), + listDanglingIndices: lazyLoad('dangling_indices.list_dangling_indices', opts) + }, delete: lazyLoad('delete', opts), delete_by_query: lazyLoad('delete_by_query', opts), deleteByQuery: lazyLoad('delete_by_query', opts), @@ -146,6 +162,8 @@ function ESAPI (opts) { stats: lazyLoad('enrich.stats', opts) }, eql: { + delete: lazyLoad('eql.delete', opts), + get: lazyLoad('eql.get', opts), search: lazyLoad('eql.search', opts) }, exists: lazyLoad('exists', opts), @@ -187,6 +205,8 @@ function ESAPI (opts) { }, index: lazyLoad('index', opts), indices: { + add_block: lazyLoad('indices.add_block', opts), + addBlock: lazyLoad('indices.add_block', opts), analyze: lazyLoad('indices.analyze', opts), clear_cache: lazyLoad('indices.clear_cache', opts), clearCache: lazyLoad('indices.clear_cache', opts), @@ -488,6 +508,8 @@ function ESAPI (opts) { authenticate: lazyLoad('security.authenticate', opts), change_password: lazyLoad('security.change_password', opts), changePassword: lazyLoad('security.change_password', opts), + clear_cached_privileges: lazyLoad('security.clear_cached_privileges', opts), + clearCachedPrivileges: lazyLoad('security.clear_cached_privileges', opts), clear_cached_realms: lazyLoad('security.clear_cached_realms', opts), clearCachedRealms: lazyLoad('security.clear_cached_realms', opts), clear_cached_roles: lazyLoad('security.clear_cached_roles', opts), diff --git a/api/kibana.d.ts b/api/kibana.d.ts index f66d4d024..5aa99a56d 100644 --- a/api/kibana.d.ts +++ b/api/kibana.d.ts @@ -138,16 +138,6 @@ interface KibanaClient { importDanglingIndex, TContext = unknown>(params?: RequestParams.DanglingIndicesImportDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> listDanglingIndices, TContext = unknown>(params?: RequestParams.DanglingIndicesListDanglingIndices, options?: TransportRequestOptions): TransportRequestPromise> } - dataFrameTransformDeprecated: { - deleteTransform, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedDeleteTransform, options?: TransportRequestOptions): TransportRequestPromise> - getTransform, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedGetTransform, options?: TransportRequestOptions): TransportRequestPromise> - getTransformStats, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedGetTransformStats, options?: TransportRequestOptions): TransportRequestPromise> - previewTransform, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedPreviewTransform, options?: TransportRequestOptions): TransportRequestPromise> - putTransform, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedPutTransform, options?: TransportRequestOptions): TransportRequestPromise> - startTransform, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedStartTransform, options?: TransportRequestOptions): TransportRequestPromise> - stopTransform, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedStopTransform, options?: TransportRequestOptions): TransportRequestPromise> - updateTransform, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.DataFrameTransformDeprecatedUpdateTransform, options?: TransportRequestOptions): TransportRequestPromise> - } delete, TContext = unknown>(params?: RequestParams.Delete, options?: TransportRequestOptions): TransportRequestPromise> deleteByQuery, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.DeleteByQuery, options?: TransportRequestOptions): TransportRequestPromise> deleteByQueryRethrottle, TContext = unknown>(params?: RequestParams.DeleteByQueryRethrottle, options?: TransportRequestOptions): TransportRequestPromise> @@ -208,6 +198,7 @@ interface KibanaClient { existsTemplate, TContext = unknown>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> existsType, TContext = unknown>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> flush, TContext = unknown>(params?: RequestParams.IndicesFlush, options?: TransportRequestOptions): TransportRequestPromise> + flushSynced, TContext = unknown>(params?: RequestParams.IndicesFlushSynced, options?: TransportRequestOptions): TransportRequestPromise> forcemerge, TContext = unknown>(params?: RequestParams.IndicesForcemerge, options?: TransportRequestOptions): TransportRequestPromise> freeze, TContext = unknown>(params?: RequestParams.IndicesFreeze, options?: TransportRequestOptions): TransportRequestPromise> get, TContext = unknown>(params?: RequestParams.IndicesGet, options?: TransportRequestOptions): TransportRequestPromise> diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index cb1a71e4a..db57aaf49 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -397,6 +397,23 @@ export interface Create extends Generic { body: T; } +export interface DanglingIndicesDeleteDanglingIndex extends Generic { + index_uuid: string; + accept_data_loss?: boolean; + timeout?: string; + master_timeout?: string; +} + +export interface DanglingIndicesImportDanglingIndex extends Generic { + index_uuid: string; + accept_data_loss?: boolean; + timeout?: string; + master_timeout?: string; +} + +export interface DanglingIndicesListDanglingIndices extends Generic { +} + export interface Delete extends Generic { id: string; index: string; @@ -511,13 +528,14 @@ export interface Explain extends Generic { body?: T; } -export interface FieldCaps extends Generic { +export interface FieldCaps extends Generic { index?: string | string[]; fields?: string | string[]; ignore_unavailable?: boolean; allow_no_indices?: boolean; expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all'; include_unmapped?: boolean; + body?: T; } export interface Get extends Generic { @@ -579,6 +597,16 @@ export interface Index extends Generic { body: T; } +export interface IndicesAddBlock extends Generic { + index: string | string[]; + block: string; + timeout?: string; + master_timeout?: string; + ignore_unavailable?: boolean; + allow_no_indices?: boolean; + expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all'; +} + export interface IndicesAnalyze extends Generic { index?: string; body?: T; @@ -1644,8 +1672,21 @@ export interface EnrichPutPolicy extends Generic { export interface EnrichStats extends Generic { } +export interface EqlDelete extends Generic { + id: string; +} + +export interface EqlGet extends Generic { + id: string; + wait_for_completion_timeout?: string; + keep_alive?: string; +} + export interface EqlSearch extends Generic { index: string; + wait_for_completion_timeout?: string; + keep_on_completion?: boolean; + keep_alive?: string; body: T; } @@ -2234,6 +2275,10 @@ export interface SecurityChangePassword extends Generic { body: T; } +export interface SecurityClearCachedPrivileges extends Generic { + application: string | string[]; +} + export interface SecurityClearCachedRealms extends Generic { realms: string | string[]; usernames?: string | string[]; @@ -2496,6 +2541,7 @@ export interface WatcherStop extends Generic { export interface XpackInfo extends Generic { categories?: string | string[]; + accept_enterprise?: boolean; } export interface XpackUsage extends Generic { diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 76c972e47..60468e77f 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -1643,6 +1643,71 @@ WARNING: This parameter has been deprecated. |=== +=== danglingIndices.deleteDanglingIndex + +[source,ts] +---- +client.danglingIndices.deleteDanglingIndex({ + index_uuid: string, + accept_data_loss: boolean, + timeout: string, + master_timeout: string +}) +---- +link:{ref}/modules-gateway-dangling-indices.html[Documentation] + +[cols=2*] +|=== +|`index_uuid` or `indexUuid` +|`string` - The UUID of the dangling index + +|`accept_data_loss` or `acceptDataLoss` +|`boolean` - Must be set to true in order to delete the dangling index + +|`timeout` +|`string` - Explicit operation timeout + +|`master_timeout` or `masterTimeout` +|`string` - Specify timeout for connection to master + +|=== + +=== danglingIndices.importDanglingIndex + +[source,ts] +---- +client.danglingIndices.importDanglingIndex({ + index_uuid: string, + accept_data_loss: boolean, + timeout: string, + master_timeout: string +}) +---- +link:{ref}/modules-gateway-dangling-indices.html[Documentation] + +[cols=2*] +|=== +|`index_uuid` or `indexUuid` +|`string` - The UUID of the dangling index + +|`accept_data_loss` or `acceptDataLoss` +|`boolean` - Must be set to true in order to import the dangling index + +|`timeout` +|`string` - Explicit operation timeout + +|`master_timeout` or `masterTimeout` +|`string` - Specify timeout for connection to master + +|=== + +=== danglingIndices.listDanglingIndices + +[source,ts] +---- +client.danglingIndices.listDanglingIndices() +---- +link:{ref}/modules-gateway-dangling-indices.html[Documentation] + + + === delete [source,ts] @@ -2126,7 +2191,8 @@ client.fieldCaps({ ignore_unavailable: boolean, allow_no_indices: boolean, expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all', - include_unmapped: boolean + include_unmapped: boolean, + body: object }) ---- link:{ref}/search-field-caps.html[Documentation] + @@ -2151,6 +2217,9 @@ _Default:_ `open` |`include_unmapped` or `includeUnmapped` |`boolean` - Indicates whether unmapped fields should be included in the response. +|`body` +|`object` - An index filter specified with the Query DSL + |=== === get @@ -2390,6 +2459,47 @@ WARNING: This parameter has been deprecated. |=== +=== indices.addBlock + +[source,ts] +---- +client.indices.addBlock({ + index: string | string[], + block: string, + timeout: string, + master_timeout: string, + ignore_unavailable: boolean, + allow_no_indices: boolean, + expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all' +}) +---- +link:{ref}/indices-blocks.html[Documentation] + +[cols=2*] +|=== +|`index` +|`string \| string[]` - A comma separated list of indices to add a block to + +|`block` +|`string` - The block to add (one of read, write, read_only or metadata) + +|`timeout` +|`string` - Explicit operation timeout + +|`master_timeout` or `masterTimeout` +|`string` - Specify timeout for connection to master + +|`ignore_unavailable` or `ignoreUnavailable` +|`boolean` - Whether specified concrete indices should be ignored when unavailable (missing or closed) + +|`allow_no_indices` or `allowNoIndices` +|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + +|`expand_wildcards` or `expandWildcards` +|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. + +_Default:_ `open` + +|=== + === indices.analyze [source,ts] @@ -3638,7 +3748,7 @@ client.indices.resolveIndex({ expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all' }) ---- - +link:{ref}/indices-resolve-index.html[Documentation] + [cols=2*] |=== |`name` @@ -6729,12 +6839,56 @@ client.enrich.stats() link:{ref}/enrich-stats-api.html[Documentation] + +=== eql.delete +*Stability:* beta +[source,ts] +---- +client.eql.delete({ + id: string +}) +---- +link:{ref}/eql-search-api.html[Documentation] + +[cols=2*] +|=== +|`id` +|`string` - The async search ID + +|=== + +=== eql.get +*Stability:* beta +[source,ts] +---- +client.eql.get({ + id: string, + wait_for_completion_timeout: string, + keep_alive: string +}) +---- +link:{ref}/eql-search-api.html[Documentation] + +[cols=2*] +|=== +|`id` +|`string` - The async search ID + +|`wait_for_completion_timeout` or `waitForCompletionTimeout` +|`string` - Specify the time that the request should block waiting for the final response + +|`keep_alive` or `keepAlive` +|`string` - Update the time interval in which the results (partial or final) for this search will be available + +_Default:_ `5d` + +|=== + === eql.search *Stability:* beta [source,ts] ---- client.eql.search({ index: string, + wait_for_completion_timeout: string, + keep_on_completion: boolean, + keep_alive: string, body: object }) ---- @@ -6744,6 +6898,16 @@ link:{ref}/eql-search-api.html[Documentation] + |`index` |`string` - The name of the index to scope the operation +|`wait_for_completion_timeout` or `waitForCompletionTimeout` +|`string` - Specify the time that the request should block waiting for the final response + +|`keep_on_completion` or `keepOnCompletion` +|`boolean` - Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false) + +|`keep_alive` or `keepAlive` +|`string` - Update the time interval in which the results (partial or final) for this search will be available + +_Default:_ `5d` + |`body` |`object` - Eql request body. Use the `query` to limit the query scope. @@ -9088,6 +9252,22 @@ link:{ref}/security-api-change-password.html[Documentation] + |=== +=== security.clearCachedPrivileges + +[source,ts] +---- +client.security.clearCachedPrivileges({ + application: string | string[] +}) +---- +link:{ref}/security-api-clear-privilege-cache.html[Documentation] + +[cols=2*] +|=== +|`application` +|`string \| string[]` - A comma-separated list of application names + +|=== + === security.clearCachedRealms [source,ts] @@ -10104,7 +10284,8 @@ link:{ref}/watcher-api-stop.html[Documentation] + [source,ts] ---- client.xpack.info({ - categories: string | string[] + categories: string | string[], + accept_enterprise: boolean }) ---- link:{ref}/info-api.html[Documentation] + @@ -10113,6 +10294,9 @@ link:{ref}/info-api.html[Documentation] + |`categories` |`string \| string[]` - Comma-separated list of info categories. Can be any of: build, license, features +|`accept_enterprise` or `acceptEnterprise` +|`boolean` - If an enterprise license is installed, return the type and mode as 'enterprise' (default: false) + |=== === xpack.usage diff --git a/index.d.ts b/index.d.ts index 6b0c64894..2829fd3e2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -529,6 +529,58 @@ declare class Client { create, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback create, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.Create, callback: callbackFn): TransportRequestCallback create, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.Create, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + dangling_indices: { + delete_dangling_index, TContext = unknown>(params?: RequestParams.DanglingIndicesDeleteDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + delete_dangling_index, TContext = unknown>(callback: callbackFn): TransportRequestCallback + delete_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, callback: callbackFn): TransportRequestCallback + delete_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + deleteDanglingIndex, TContext = unknown>(params?: RequestParams.DanglingIndicesDeleteDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + deleteDanglingIndex, TContext = unknown>(callback: callbackFn): TransportRequestCallback + deleteDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, callback: callbackFn): TransportRequestCallback + deleteDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + import_dangling_index, TContext = unknown>(params?: RequestParams.DanglingIndicesImportDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + import_dangling_index, TContext = unknown>(callback: callbackFn): TransportRequestCallback + import_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, callback: callbackFn): TransportRequestCallback + import_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + importDanglingIndex, TContext = unknown>(params?: RequestParams.DanglingIndicesImportDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + importDanglingIndex, TContext = unknown>(callback: callbackFn): TransportRequestCallback + importDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, callback: callbackFn): TransportRequestCallback + importDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + list_dangling_indices, TContext = unknown>(params?: RequestParams.DanglingIndicesListDanglingIndices, options?: TransportRequestOptions): TransportRequestPromise> + list_dangling_indices, TContext = unknown>(callback: callbackFn): TransportRequestCallback + list_dangling_indices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, callback: callbackFn): TransportRequestCallback + list_dangling_indices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + listDanglingIndices, TContext = unknown>(params?: RequestParams.DanglingIndicesListDanglingIndices, options?: TransportRequestOptions): TransportRequestPromise> + listDanglingIndices, TContext = unknown>(callback: callbackFn): TransportRequestCallback + listDanglingIndices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, callback: callbackFn): TransportRequestCallback + listDanglingIndices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + } + danglingIndices: { + delete_dangling_index, TContext = unknown>(params?: RequestParams.DanglingIndicesDeleteDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + delete_dangling_index, TContext = unknown>(callback: callbackFn): TransportRequestCallback + delete_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, callback: callbackFn): TransportRequestCallback + delete_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + deleteDanglingIndex, TContext = unknown>(params?: RequestParams.DanglingIndicesDeleteDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + deleteDanglingIndex, TContext = unknown>(callback: callbackFn): TransportRequestCallback + deleteDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, callback: callbackFn): TransportRequestCallback + deleteDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesDeleteDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + import_dangling_index, TContext = unknown>(params?: RequestParams.DanglingIndicesImportDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + import_dangling_index, TContext = unknown>(callback: callbackFn): TransportRequestCallback + import_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, callback: callbackFn): TransportRequestCallback + import_dangling_index, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + importDanglingIndex, TContext = unknown>(params?: RequestParams.DanglingIndicesImportDanglingIndex, options?: TransportRequestOptions): TransportRequestPromise> + importDanglingIndex, TContext = unknown>(callback: callbackFn): TransportRequestCallback + importDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, callback: callbackFn): TransportRequestCallback + importDanglingIndex, TContext = unknown>(params: RequestParams.DanglingIndicesImportDanglingIndex, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + list_dangling_indices, TContext = unknown>(params?: RequestParams.DanglingIndicesListDanglingIndices, options?: TransportRequestOptions): TransportRequestPromise> + list_dangling_indices, TContext = unknown>(callback: callbackFn): TransportRequestCallback + list_dangling_indices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, callback: callbackFn): TransportRequestCallback + list_dangling_indices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + listDanglingIndices, TContext = unknown>(params?: RequestParams.DanglingIndicesListDanglingIndices, options?: TransportRequestOptions): TransportRequestPromise> + listDanglingIndices, TContext = unknown>(callback: callbackFn): TransportRequestCallback + listDanglingIndices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, callback: callbackFn): TransportRequestCallback + listDanglingIndices, TContext = unknown>(params: RequestParams.DanglingIndicesListDanglingIndices, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + } delete, TContext = unknown>(params?: RequestParams.Delete, options?: TransportRequestOptions): TransportRequestPromise> delete, TContext = unknown>(callback: callbackFn): TransportRequestCallback delete, TContext = unknown>(params: RequestParams.Delete, callback: callbackFn): TransportRequestCallback @@ -596,6 +648,14 @@ declare class Client { stats, TContext = unknown>(params: RequestParams.EnrichStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } eql: { + delete, TContext = unknown>(params?: RequestParams.EqlDelete, options?: TransportRequestOptions): TransportRequestPromise> + delete, TContext = unknown>(callback: callbackFn): TransportRequestCallback + delete, TContext = unknown>(params: RequestParams.EqlDelete, callback: callbackFn): TransportRequestCallback + delete, TContext = unknown>(params: RequestParams.EqlDelete, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + get, TContext = unknown>(params?: RequestParams.EqlGet, options?: TransportRequestOptions): TransportRequestPromise> + get, TContext = unknown>(callback: callbackFn): TransportRequestCallback + get, TContext = unknown>(params: RequestParams.EqlGet, callback: callbackFn): TransportRequestCallback + get, TContext = unknown>(params: RequestParams.EqlGet, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback search, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.EqlSearch, options?: TransportRequestOptions): TransportRequestPromise> search, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback search, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.EqlSearch, callback: callbackFn): TransportRequestCallback @@ -617,14 +677,14 @@ declare class Client { explain, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.Explain, callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.Explain, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - field_caps, TContext = unknown>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> - field_caps, TContext = unknown>(callback: callbackFn): TransportRequestCallback - field_caps, TContext = unknown>(params: RequestParams.FieldCaps, callback: callbackFn): TransportRequestCallback - field_caps, TContext = unknown>(params: RequestParams.FieldCaps, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - fieldCaps, TContext = unknown>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> - fieldCaps, TContext = unknown>(callback: callbackFn): TransportRequestCallback - fieldCaps, TContext = unknown>(params: RequestParams.FieldCaps, callback: callbackFn): TransportRequestCallback - fieldCaps, TContext = unknown>(params: RequestParams.FieldCaps, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + field_caps, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> + field_caps, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + field_caps, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.FieldCaps, callback: callbackFn): TransportRequestCallback + field_caps, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.FieldCaps, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + fieldCaps, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> + fieldCaps, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + fieldCaps, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.FieldCaps, callback: callbackFn): TransportRequestCallback + fieldCaps, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.FieldCaps, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get, TContext = unknown>(params?: RequestParams.Get, options?: TransportRequestOptions): TransportRequestPromise> get, TContext = unknown>(callback: callbackFn): TransportRequestCallback get, TContext = unknown>(params: RequestParams.Get, callback: callbackFn): TransportRequestCallback @@ -742,6 +802,14 @@ declare class Client { index, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.Index, callback: callbackFn): TransportRequestCallback index, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.Index, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback indices: { + add_block, TContext = unknown>(params?: RequestParams.IndicesAddBlock, options?: TransportRequestOptions): TransportRequestPromise> + add_block, TContext = unknown>(callback: callbackFn): TransportRequestCallback + add_block, TContext = unknown>(params: RequestParams.IndicesAddBlock, callback: callbackFn): TransportRequestCallback + add_block, TContext = unknown>(params: RequestParams.IndicesAddBlock, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + addBlock, TContext = unknown>(params?: RequestParams.IndicesAddBlock, options?: TransportRequestOptions): TransportRequestPromise> + addBlock, TContext = unknown>(callback: callbackFn): TransportRequestCallback + addBlock, TContext = unknown>(params: RequestParams.IndicesAddBlock, callback: callbackFn): TransportRequestCallback + addBlock, TContext = unknown>(params: RequestParams.IndicesAddBlock, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback analyze, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesAnalyze, options?: TransportRequestOptions): TransportRequestPromise> analyze, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback analyze, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesAnalyze, callback: callbackFn): TransportRequestCallback @@ -1886,6 +1954,14 @@ declare class Client { changePassword, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback changePassword, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SecurityChangePassword, callback: callbackFn): TransportRequestCallback changePassword, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SecurityChangePassword, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + clear_cached_privileges, TContext = unknown>(params?: RequestParams.SecurityClearCachedPrivileges, options?: TransportRequestOptions): TransportRequestPromise> + clear_cached_privileges, TContext = unknown>(callback: callbackFn): TransportRequestCallback + clear_cached_privileges, TContext = unknown>(params: RequestParams.SecurityClearCachedPrivileges, callback: callbackFn): TransportRequestCallback + clear_cached_privileges, TContext = unknown>(params: RequestParams.SecurityClearCachedPrivileges, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + clearCachedPrivileges, TContext = unknown>(params?: RequestParams.SecurityClearCachedPrivileges, options?: TransportRequestOptions): TransportRequestPromise> + clearCachedPrivileges, TContext = unknown>(callback: callbackFn): TransportRequestCallback + clearCachedPrivileges, TContext = unknown>(params: RequestParams.SecurityClearCachedPrivileges, callback: callbackFn): TransportRequestCallback + clearCachedPrivileges, TContext = unknown>(params: RequestParams.SecurityClearCachedPrivileges, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback clear_cached_realms, TContext = unknown>(params?: RequestParams.SecurityClearCachedRealms, options?: TransportRequestOptions): TransportRequestPromise> clear_cached_realms, TContext = unknown>(callback: callbackFn): TransportRequestCallback clear_cached_realms, TContext = unknown>(params: RequestParams.SecurityClearCachedRealms, callback: callbackFn): TransportRequestCallback