@elastic/elasticsearch 7.9.1 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -3
- package/api/api/async_search.js +27 -0
- package/api/api/autoscaling.js +3 -3
- package/api/api/bulk.js +2 -2
- package/api/api/cat.js +2 -2
- package/api/api/close_point_in_time.js +50 -0
- package/api/api/index.js +2 -2
- package/api/api/indices.js +62 -21
- package/api/api/ml.js +46 -8
- package/api/api/open_point_in_time.js +55 -0
- package/api/api/rollup.js +41 -0
- package/api/api/security.js +56 -0
- package/api/api/snapshot.js +48 -0
- package/api/api/transform.js +2 -2
- package/api/api/update.js +2 -2
- package/api/api/watcher.js +23 -1
- package/api/index.js +24 -3
- package/api/kibana.d.ts +31 -5
- package/api/requestParams.d.ts +105 -10
- package/index.d.ts +119 -20
- package/index.js +56 -6
- package/index.mjs +19 -0
- package/lib/Connection.d.ts +24 -6
- package/lib/Connection.js +70 -55
- package/lib/Helpers.d.ts +18 -3
- package/lib/Helpers.js +34 -6
- package/lib/Serializer.d.ts +18 -3
- package/lib/Serializer.js +18 -3
- package/lib/Transport.d.ts +18 -3
- package/lib/Transport.js +171 -92
- package/lib/errors.d.ts +18 -3
- package/lib/errors.js +18 -3
- package/lib/pool/BaseConnectionPool.js +21 -3
- package/lib/pool/CloudConnectionPool.js +18 -3
- package/lib/pool/ConnectionPool.js +18 -3
- package/lib/pool/index.d.ts +20 -3
- package/lib/pool/index.js +18 -3
- package/package.json +3 -2
package/api/api/snapshot.js
CHANGED
|
@@ -58,6 +58,54 @@ SnapshotApi.prototype.cleanupRepository = function snapshotCleanupRepositoryApi
|
|
|
58
58
|
return this.transport.request(request, options, callback)
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
SnapshotApi.prototype.clone = function snapshotCloneApi (params, options, callback) {
|
|
62
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
63
|
+
|
|
64
|
+
// check required parameters
|
|
65
|
+
if (params['repository'] == null) {
|
|
66
|
+
const err = new this[kConfigurationError]('Missing required parameter: repository')
|
|
67
|
+
return handleError(err, callback)
|
|
68
|
+
}
|
|
69
|
+
if (params['snapshot'] == null) {
|
|
70
|
+
const err = new this[kConfigurationError]('Missing required parameter: snapshot')
|
|
71
|
+
return handleError(err, callback)
|
|
72
|
+
}
|
|
73
|
+
if (params['target_snapshot'] == null && params['targetSnapshot'] == null) {
|
|
74
|
+
const err = new this[kConfigurationError]('Missing required parameter: target_snapshot or targetSnapshot')
|
|
75
|
+
return handleError(err, callback)
|
|
76
|
+
}
|
|
77
|
+
if (params['body'] == null) {
|
|
78
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
79
|
+
return handleError(err, callback)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// check required url components
|
|
83
|
+
if ((params['target_snapshot'] != null || params['targetSnapshot'] != null) && (params['snapshot'] == null || params['repository'] == null)) {
|
|
84
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: snapshot, repository')
|
|
85
|
+
return handleError(err, callback)
|
|
86
|
+
} else if (params['snapshot'] != null && (params['repository'] == null)) {
|
|
87
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: repository')
|
|
88
|
+
return handleError(err, callback)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
var { method, body, repository, snapshot, targetSnapshot, target_snapshot, ...querystring } = params
|
|
92
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
93
|
+
|
|
94
|
+
var path = ''
|
|
95
|
+
if (method == null) method = 'PUT'
|
|
96
|
+
path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) + '/' + '_clone' + '/' + encodeURIComponent(target_snapshot || targetSnapshot)
|
|
97
|
+
|
|
98
|
+
// build request object
|
|
99
|
+
const request = {
|
|
100
|
+
method,
|
|
101
|
+
path,
|
|
102
|
+
body: body || '',
|
|
103
|
+
querystring
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return this.transport.request(request, options, callback)
|
|
107
|
+
}
|
|
108
|
+
|
|
61
109
|
SnapshotApi.prototype.create = function snapshotCreateApi (params, options, callback) {
|
|
62
110
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
63
111
|
|
package/api/api/transform.js
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
/* eslint no-unused-vars: 0 */
|
|
24
24
|
|
|
25
25
|
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
|
|
26
|
-
const acceptedQuerystring = ['force', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'from', 'size', 'allow_no_match', 'defer_validation', 'timeout', 'wait_for_completion', 'wait_for_checkpoint']
|
|
27
|
-
const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', allowNoMatch: 'allow_no_match', deferValidation: 'defer_validation', waitForCompletion: 'wait_for_completion', waitForCheckpoint: 'wait_for_checkpoint' }
|
|
26
|
+
const acceptedQuerystring = ['force', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'from', 'size', 'allow_no_match', 'exclude_generated', 'defer_validation', 'timeout', 'wait_for_completion', 'wait_for_checkpoint']
|
|
27
|
+
const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', allowNoMatch: 'allow_no_match', excludeGenerated: 'exclude_generated', deferValidation: 'defer_validation', waitForCompletion: 'wait_for_completion', waitForCheckpoint: 'wait_for_checkpoint' }
|
|
28
28
|
|
|
29
29
|
function TransformApi (transport, ConfigurationError) {
|
|
30
30
|
this.transport = transport
|
package/api/api/update.js
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
/* eslint no-unused-vars: 0 */
|
|
24
24
|
|
|
25
25
|
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
|
|
26
|
-
const acceptedQuerystring = ['wait_for_active_shards', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'lang', 'refresh', 'retry_on_conflict', 'routing', 'timeout', 'if_seq_no', 'if_primary_term', 'pretty', 'human', 'error_trace', 'source', 'filter_path']
|
|
27
|
-
const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', retryOnConflict: 'retry_on_conflict', ifSeqNo: 'if_seq_no', ifPrimaryTerm: 'if_primary_term', errorTrace: 'error_trace', filterPath: 'filter_path' }
|
|
26
|
+
const acceptedQuerystring = ['wait_for_active_shards', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'lang', 'refresh', 'retry_on_conflict', 'routing', 'timeout', 'if_seq_no', 'if_primary_term', 'require_alias', 'pretty', 'human', 'error_trace', 'source', 'filter_path']
|
|
27
|
+
const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', retryOnConflict: 'retry_on_conflict', ifSeqNo: 'if_seq_no', ifPrimaryTerm: 'if_primary_term', requireAlias: 'require_alias', errorTrace: 'error_trace', filterPath: 'filter_path' }
|
|
28
28
|
|
|
29
29
|
function updateApi (params, options, callback) {
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
package/api/api/watcher.js
CHANGED
|
@@ -230,6 +230,27 @@ WatcherApi.prototype.putWatch = function watcherPutWatchApi (params, options, ca
|
|
|
230
230
|
return this.transport.request(request, options, callback)
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
WatcherApi.prototype.queryWatches = function watcherQueryWatchesApi (params, options, callback) {
|
|
234
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
235
|
+
|
|
236
|
+
var { method, body, ...querystring } = params
|
|
237
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
238
|
+
|
|
239
|
+
var path = ''
|
|
240
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
241
|
+
path = '/' + '_watcher' + '/' + '_query' + '/' + 'watches'
|
|
242
|
+
|
|
243
|
+
// build request object
|
|
244
|
+
const request = {
|
|
245
|
+
method,
|
|
246
|
+
path,
|
|
247
|
+
body: body || '',
|
|
248
|
+
querystring
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
return this.transport.request(request, options, callback)
|
|
252
|
+
}
|
|
253
|
+
|
|
233
254
|
WatcherApi.prototype.start = function watcherStartApi (params, options, callback) {
|
|
234
255
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
235
256
|
|
|
@@ -305,7 +326,8 @@ Object.defineProperties(WatcherApi.prototype, {
|
|
|
305
326
|
delete_watch: { get () { return this.deleteWatch } },
|
|
306
327
|
execute_watch: { get () { return this.executeWatch } },
|
|
307
328
|
get_watch: { get () { return this.getWatch } },
|
|
308
|
-
put_watch: { get () { return this.putWatch } }
|
|
329
|
+
put_watch: { get () { return this.putWatch } },
|
|
330
|
+
query_watches: { get () { return this.queryWatches } }
|
|
309
331
|
})
|
|
310
332
|
|
|
311
333
|
module.exports = WatcherApi
|
package/api/index.js
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
3
|
+
* license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright
|
|
5
|
+
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
6
|
+
* the Apache License, Version 2.0 (the "License"); you may
|
|
7
|
+
* not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
4
19
|
|
|
5
20
|
'use strict'
|
|
6
21
|
|
|
@@ -53,6 +68,7 @@ const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
|
|
|
53
68
|
const AsyncSearchApi = require('./api/async_search')
|
|
54
69
|
const AutoscalingApi = require('./api/autoscaling')
|
|
55
70
|
const CcrApi = require('./api/ccr')
|
|
71
|
+
const closePointInTimeApi = require('./api/close_point_in_time')
|
|
56
72
|
const EnrichApi = require('./api/enrich')
|
|
57
73
|
const EqlApi = require('./api/eql')
|
|
58
74
|
const GraphApi = require('./api/graph')
|
|
@@ -61,6 +77,7 @@ const LicenseApi = require('./api/license')
|
|
|
61
77
|
const MigrationApi = require('./api/migration')
|
|
62
78
|
const MlApi = require('./api/ml')
|
|
63
79
|
const MonitoringApi = require('./api/monitoring')
|
|
80
|
+
const openPointInTimeApi = require('./api/open_point_in_time')
|
|
64
81
|
const RollupApi = require('./api/rollup')
|
|
65
82
|
const SearchableSnapshotsApi = require('./api/searchable_snapshots')
|
|
66
83
|
const SecurityApi = require('./api/security')
|
|
@@ -171,6 +188,8 @@ ESAPI.prototype.termvectors = termvectorsApi
|
|
|
171
188
|
ESAPI.prototype.update = updateApi
|
|
172
189
|
ESAPI.prototype.updateByQuery = updateByQueryApi
|
|
173
190
|
ESAPI.prototype.updateByQueryRethrottle = updateByQueryRethrottleApi
|
|
191
|
+
ESAPI.prototype.closePointInTime = closePointInTimeApi
|
|
192
|
+
ESAPI.prototype.openPointInTime = openPointInTimeApi
|
|
174
193
|
|
|
175
194
|
Object.defineProperties(ESAPI.prototype, {
|
|
176
195
|
cat: {
|
|
@@ -283,6 +302,7 @@ Object.defineProperties(ESAPI.prototype, {
|
|
|
283
302
|
return this[kCcr]
|
|
284
303
|
}
|
|
285
304
|
},
|
|
305
|
+
close_point_in_time: { get () { return this.closePointInTime } },
|
|
286
306
|
enrich: {
|
|
287
307
|
get () {
|
|
288
308
|
if (this[kEnrich] === null) {
|
|
@@ -347,6 +367,7 @@ Object.defineProperties(ESAPI.prototype, {
|
|
|
347
367
|
return this[kMonitoring]
|
|
348
368
|
}
|
|
349
369
|
},
|
|
370
|
+
open_point_in_time: { get () { return this.openPointInTime } },
|
|
350
371
|
rollup: {
|
|
351
372
|
get () {
|
|
352
373
|
if (this[kRollup] === null) {
|
package/api/kibana.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
3
|
+
* license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright
|
|
5
|
+
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
6
|
+
* the Apache License, Version 2.0 (the "License"); you may
|
|
7
|
+
* not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
4
19
|
|
|
5
20
|
/// <reference types="node" />
|
|
6
21
|
|
|
@@ -63,11 +78,12 @@ interface KibanaClient {
|
|
|
63
78
|
asyncSearch: {
|
|
64
79
|
delete<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AsyncSearchDelete, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
65
80
|
get<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AsyncSearchGet, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
81
|
+
status<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AsyncSearchStatus, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
66
82
|
submit<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.AsyncSearchSubmit<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
67
83
|
}
|
|
68
84
|
autoscaling: {
|
|
69
85
|
deleteAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingDeleteAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
70
|
-
|
|
86
|
+
getAutoscalingCapacity<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingCapacity, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
71
87
|
getAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
72
88
|
putAutoscalingPolicy<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingPutAutoscalingPolicy<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
73
89
|
}
|
|
@@ -115,6 +131,7 @@ interface KibanaClient {
|
|
|
115
131
|
unfollow<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CcrUnfollow, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
116
132
|
}
|
|
117
133
|
clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClearScroll<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
134
|
+
closePointInTime<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClosePointInTime<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
118
135
|
cluster: {
|
|
119
136
|
allocationExplain<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClusterAllocationExplain<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
120
137
|
deleteComponentTemplate<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.ClusterDeleteComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -212,7 +229,9 @@ interface KibanaClient {
|
|
|
212
229
|
getSettings<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesGetSettings, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
213
230
|
getTemplate<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesGetTemplate, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
214
231
|
getUpgrade<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesGetUpgrade, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
232
|
+
migrateToDataStream<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesMigrateToDataStream, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
215
233
|
open<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesOpen, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
234
|
+
promoteDataStream<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesPromoteDataStream, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
216
235
|
putAlias<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesPutAlias<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
217
236
|
putIndexTemplate<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesPutIndexTemplate<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
218
237
|
putMapping<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesPutMapping<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -309,12 +328,13 @@ interface KibanaClient {
|
|
|
309
328
|
startDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStartDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
310
329
|
startDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStartDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
311
330
|
stopDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
312
|
-
stopDatafeed<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed
|
|
331
|
+
stopDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
313
332
|
updateDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
314
333
|
updateDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
315
334
|
updateFilter<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateFilter<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
316
335
|
updateJob<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateJob<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
317
336
|
updateModelSnapshot<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateModelSnapshot<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
337
|
+
upgradeJobSnapshot<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpgradeJobSnapshot, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
318
338
|
validate<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlValidate<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
319
339
|
validateDetector<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlValidateDetector<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
320
340
|
}
|
|
@@ -331,6 +351,7 @@ interface KibanaClient {
|
|
|
331
351
|
stats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.NodesStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
332
352
|
usage<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.NodesUsage, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
333
353
|
}
|
|
354
|
+
openPointInTime<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.OpenPointInTime, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
334
355
|
ping<TResponse = boolean, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
335
356
|
putScript<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.PutScript<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
336
357
|
rankEval<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.RankEval<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -343,6 +364,7 @@ interface KibanaClient {
|
|
|
343
364
|
getRollupCaps<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.RollupGetRollupCaps, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
344
365
|
getRollupIndexCaps<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.RollupGetRollupIndexCaps, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
345
366
|
putJob<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.RollupPutJob<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
367
|
+
rollup<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.RollupRollup<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
346
368
|
rollupSearch<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.RollupRollupSearch<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
347
369
|
startJob<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.RollupStartJob, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
348
370
|
stopJob<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.RollupStopJob, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -361,6 +383,7 @@ interface KibanaClient {
|
|
|
361
383
|
security: {
|
|
362
384
|
authenticate<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityAuthenticate, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
363
385
|
changePassword<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityChangePassword<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
386
|
+
clearApiKeyCache<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityClearApiKeyCache, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
364
387
|
clearCachedPrivileges<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityClearCachedPrivileges, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
365
388
|
clearCachedRealms<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityClearCachedRealms, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
366
389
|
clearCachedRoles<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityClearCachedRoles, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -379,6 +402,7 @@ interface KibanaClient {
|
|
|
379
402
|
getToken<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetToken<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
380
403
|
getUser<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetUser, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
381
404
|
getUserPrivileges<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetUserPrivileges, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
405
|
+
grantApiKey<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGrantApiKey<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
382
406
|
hasPrivileges<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityHasPrivileges<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
383
407
|
invalidateApiKey<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityInvalidateApiKey<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
384
408
|
invalidateToken<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityInvalidateToken<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -400,6 +424,7 @@ interface KibanaClient {
|
|
|
400
424
|
}
|
|
401
425
|
snapshot: {
|
|
402
426
|
cleanupRepository<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SnapshotCleanupRepository, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
427
|
+
clone<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SnapshotClone<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
403
428
|
create<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SnapshotCreate<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
404
429
|
createRepository<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SnapshotCreateRepository<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
405
430
|
delete<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SnapshotDelete, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
@@ -445,6 +470,7 @@ interface KibanaClient {
|
|
|
445
470
|
executeWatch<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherExecuteWatch<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
446
471
|
getWatch<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherGetWatch, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
447
472
|
putWatch<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherPutWatch<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
473
|
+
queryWatches<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherQueryWatches<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
448
474
|
start<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherStart, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
449
475
|
stats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
|
450
476
|
stop<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.WatcherStop, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
package/api/requestParams.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
3
|
+
* license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright
|
|
5
|
+
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
6
|
+
* the Apache License, Version 2.0 (the "License"); you may
|
|
7
|
+
* not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
4
19
|
|
|
5
20
|
import { RequestBody, RequestNDBody } from '../lib/Transport'
|
|
6
21
|
|
|
@@ -24,6 +39,10 @@ export interface AsyncSearchGet extends Generic {
|
|
|
24
39
|
typed_keys?: boolean;
|
|
25
40
|
}
|
|
26
41
|
|
|
42
|
+
export interface AsyncSearchStatus extends Generic {
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
27
46
|
export interface AsyncSearchSubmit<T = RequestBody> extends Generic {
|
|
28
47
|
index?: string | string[];
|
|
29
48
|
_source_exclude?: string | string[];
|
|
@@ -76,7 +95,7 @@ export interface AutoscalingDeleteAutoscalingPolicy extends Generic {
|
|
|
76
95
|
name: string;
|
|
77
96
|
}
|
|
78
97
|
|
|
79
|
-
export interface
|
|
98
|
+
export interface AutoscalingGetAutoscalingCapacity extends Generic {
|
|
80
99
|
}
|
|
81
100
|
|
|
82
101
|
export interface AutoscalingGetAutoscalingPolicy extends Generic {
|
|
@@ -101,6 +120,7 @@ export interface Bulk<T = RequestNDBody> extends Generic {
|
|
|
101
120
|
_source_excludes?: string | string[];
|
|
102
121
|
_source_includes?: string | string[];
|
|
103
122
|
pipeline?: string;
|
|
123
|
+
require_alias?: boolean;
|
|
104
124
|
body: T;
|
|
105
125
|
}
|
|
106
126
|
|
|
@@ -202,6 +222,7 @@ export interface CatMlDataFrameAnalytics extends Generic {
|
|
|
202
222
|
|
|
203
223
|
export interface CatMlDatafeeds extends Generic {
|
|
204
224
|
datafeed_id?: string;
|
|
225
|
+
allow_no_match?: boolean;
|
|
205
226
|
allow_no_datafeeds?: boolean;
|
|
206
227
|
format?: string;
|
|
207
228
|
h?: string | string[];
|
|
@@ -213,6 +234,7 @@ export interface CatMlDatafeeds extends Generic {
|
|
|
213
234
|
|
|
214
235
|
export interface CatMlJobs extends Generic {
|
|
215
236
|
job_id?: string;
|
|
237
|
+
allow_no_match?: boolean;
|
|
216
238
|
allow_no_jobs?: boolean;
|
|
217
239
|
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
|
|
218
240
|
format?: string;
|
|
@@ -341,10 +363,10 @@ export interface CatSnapshots extends Generic {
|
|
|
341
363
|
|
|
342
364
|
export interface CatTasks extends Generic {
|
|
343
365
|
format?: string;
|
|
344
|
-
|
|
366
|
+
nodes?: string | string[];
|
|
345
367
|
actions?: string | string[];
|
|
346
368
|
detailed?: boolean;
|
|
347
|
-
|
|
369
|
+
parent_task_id?: string;
|
|
348
370
|
h?: string | string[];
|
|
349
371
|
help?: boolean;
|
|
350
372
|
s?: string | string[];
|
|
@@ -449,6 +471,10 @@ export interface ClearScroll<T = RequestBody> extends Generic {
|
|
|
449
471
|
body?: T;
|
|
450
472
|
}
|
|
451
473
|
|
|
474
|
+
export interface ClosePointInTime<T = RequestBody> extends Generic {
|
|
475
|
+
body?: T;
|
|
476
|
+
}
|
|
477
|
+
|
|
452
478
|
export interface ClusterAllocationExplain<T = RequestBody> extends Generic {
|
|
453
479
|
include_yes_decisions?: boolean;
|
|
454
480
|
include_disk_info?: boolean;
|
|
@@ -888,6 +914,7 @@ export interface Index<T = RequestBody> extends Generic {
|
|
|
888
914
|
if_seq_no?: number;
|
|
889
915
|
if_primary_term?: number;
|
|
890
916
|
pipeline?: string;
|
|
917
|
+
require_alias?: boolean;
|
|
891
918
|
body: T;
|
|
892
919
|
}
|
|
893
920
|
|
|
@@ -971,6 +998,7 @@ export interface IndicesDeleteAlias extends Generic {
|
|
|
971
998
|
|
|
972
999
|
export interface IndicesDeleteDataStream extends Generic {
|
|
973
1000
|
name: string | string[];
|
|
1001
|
+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
974
1002
|
}
|
|
975
1003
|
|
|
976
1004
|
export interface IndicesDeleteIndexTemplate extends Generic {
|
|
@@ -1086,6 +1114,7 @@ export interface IndicesGetAlias extends Generic {
|
|
|
1086
1114
|
|
|
1087
1115
|
export interface IndicesGetDataStream extends Generic {
|
|
1088
1116
|
name?: string | string[];
|
|
1117
|
+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
1089
1118
|
}
|
|
1090
1119
|
|
|
1091
1120
|
export interface IndicesGetFieldMapping extends Generic {
|
|
@@ -1145,6 +1174,10 @@ export interface IndicesGetUpgrade extends Generic {
|
|
|
1145
1174
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
1146
1175
|
}
|
|
1147
1176
|
|
|
1177
|
+
export interface IndicesMigrateToDataStream extends Generic {
|
|
1178
|
+
name: string;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1148
1181
|
export interface IndicesOpen extends Generic {
|
|
1149
1182
|
index: string | string[];
|
|
1150
1183
|
timeout?: string;
|
|
@@ -1155,6 +1188,10 @@ export interface IndicesOpen extends Generic {
|
|
|
1155
1188
|
wait_for_active_shards?: string;
|
|
1156
1189
|
}
|
|
1157
1190
|
|
|
1191
|
+
export interface IndicesPromoteDataStream extends Generic {
|
|
1192
|
+
name: string;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1158
1195
|
export interface IndicesPutAlias<T = RequestBody> extends Generic {
|
|
1159
1196
|
index: string | string[];
|
|
1160
1197
|
name: string;
|
|
@@ -1431,6 +1468,7 @@ export interface MigrationDeprecations extends Generic {
|
|
|
1431
1468
|
|
|
1432
1469
|
export interface MlCloseJob<T = RequestBody> extends Generic {
|
|
1433
1470
|
job_id: string;
|
|
1471
|
+
allow_no_match?: boolean;
|
|
1434
1472
|
allow_no_jobs?: boolean;
|
|
1435
1473
|
force?: boolean;
|
|
1436
1474
|
timeout?: string;
|
|
@@ -1588,6 +1626,7 @@ export interface MlGetDataFrameAnalytics extends Generic {
|
|
|
1588
1626
|
allow_no_match?: boolean;
|
|
1589
1627
|
from?: number;
|
|
1590
1628
|
size?: number;
|
|
1629
|
+
exclude_generated?: boolean;
|
|
1591
1630
|
}
|
|
1592
1631
|
|
|
1593
1632
|
export interface MlGetDataFrameAnalyticsStats extends Generic {
|
|
@@ -1595,16 +1634,20 @@ export interface MlGetDataFrameAnalyticsStats extends Generic {
|
|
|
1595
1634
|
allow_no_match?: boolean;
|
|
1596
1635
|
from?: number;
|
|
1597
1636
|
size?: number;
|
|
1637
|
+
verbose?: boolean;
|
|
1598
1638
|
}
|
|
1599
1639
|
|
|
1600
1640
|
export interface MlGetDatafeedStats extends Generic {
|
|
1601
1641
|
datafeed_id?: string;
|
|
1642
|
+
allow_no_match?: boolean;
|
|
1602
1643
|
allow_no_datafeeds?: boolean;
|
|
1603
1644
|
}
|
|
1604
1645
|
|
|
1605
1646
|
export interface MlGetDatafeeds extends Generic {
|
|
1606
1647
|
datafeed_id?: string;
|
|
1648
|
+
allow_no_match?: boolean;
|
|
1607
1649
|
allow_no_datafeeds?: boolean;
|
|
1650
|
+
exclude_generated?: boolean;
|
|
1608
1651
|
}
|
|
1609
1652
|
|
|
1610
1653
|
export interface MlGetFilters extends Generic {
|
|
@@ -1628,12 +1671,15 @@ export interface MlGetInfluencers<T = RequestBody> extends Generic {
|
|
|
1628
1671
|
|
|
1629
1672
|
export interface MlGetJobStats extends Generic {
|
|
1630
1673
|
job_id?: string;
|
|
1674
|
+
allow_no_match?: boolean;
|
|
1631
1675
|
allow_no_jobs?: boolean;
|
|
1632
1676
|
}
|
|
1633
1677
|
|
|
1634
1678
|
export interface MlGetJobs extends Generic {
|
|
1635
1679
|
job_id?: string;
|
|
1680
|
+
allow_no_match?: boolean;
|
|
1636
1681
|
allow_no_jobs?: boolean;
|
|
1682
|
+
exclude_generated?: boolean;
|
|
1637
1683
|
}
|
|
1638
1684
|
|
|
1639
1685
|
export interface MlGetModelSnapshots<T = RequestBody> extends Generic {
|
|
@@ -1656,6 +1702,7 @@ export interface MlGetOverallBuckets<T = RequestBody> extends Generic {
|
|
|
1656
1702
|
exclude_interim?: boolean;
|
|
1657
1703
|
start?: string;
|
|
1658
1704
|
end?: string;
|
|
1705
|
+
allow_no_match?: boolean;
|
|
1659
1706
|
allow_no_jobs?: boolean;
|
|
1660
1707
|
body?: T;
|
|
1661
1708
|
}
|
|
@@ -1676,12 +1723,13 @@ export interface MlGetRecords<T = RequestBody> extends Generic {
|
|
|
1676
1723
|
export interface MlGetTrainedModels extends Generic {
|
|
1677
1724
|
model_id?: string;
|
|
1678
1725
|
allow_no_match?: boolean;
|
|
1726
|
+
include?: string;
|
|
1679
1727
|
include_model_definition?: boolean;
|
|
1680
1728
|
decompress_definition?: boolean;
|
|
1681
1729
|
from?: number;
|
|
1682
1730
|
size?: number;
|
|
1683
1731
|
tags?: string | string[];
|
|
1684
|
-
|
|
1732
|
+
exclude_generated?: boolean;
|
|
1685
1733
|
}
|
|
1686
1734
|
|
|
1687
1735
|
export interface MlGetTrainedModelsStats extends Generic {
|
|
@@ -1787,11 +1835,13 @@ export interface MlStopDataFrameAnalytics<T = RequestBody> extends Generic {
|
|
|
1787
1835
|
body?: T;
|
|
1788
1836
|
}
|
|
1789
1837
|
|
|
1790
|
-
export interface MlStopDatafeed extends Generic {
|
|
1838
|
+
export interface MlStopDatafeed<T = RequestBody> extends Generic {
|
|
1791
1839
|
datafeed_id: string;
|
|
1840
|
+
allow_no_match?: boolean;
|
|
1792
1841
|
allow_no_datafeeds?: boolean;
|
|
1793
1842
|
force?: boolean;
|
|
1794
1843
|
timeout?: string;
|
|
1844
|
+
body?: T;
|
|
1795
1845
|
}
|
|
1796
1846
|
|
|
1797
1847
|
export interface MlUpdateDataFrameAnalytics<T = RequestBody> extends Generic {
|
|
@@ -1824,6 +1874,13 @@ export interface MlUpdateModelSnapshot<T = RequestBody> extends Generic {
|
|
|
1824
1874
|
body: T;
|
|
1825
1875
|
}
|
|
1826
1876
|
|
|
1877
|
+
export interface MlUpgradeJobSnapshot extends Generic {
|
|
1878
|
+
job_id: string;
|
|
1879
|
+
snapshot_id: string;
|
|
1880
|
+
timeout?: string;
|
|
1881
|
+
wait_for_completion?: boolean;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1827
1884
|
export interface MlValidate<T = RequestBody> extends Generic {
|
|
1828
1885
|
body: T;
|
|
1829
1886
|
}
|
|
@@ -1925,6 +1982,15 @@ export interface NodesUsage extends Generic {
|
|
|
1925
1982
|
timeout?: string;
|
|
1926
1983
|
}
|
|
1927
1984
|
|
|
1985
|
+
export interface OpenPointInTime extends Generic {
|
|
1986
|
+
index?: string | string[];
|
|
1987
|
+
preference?: string;
|
|
1988
|
+
routing?: string;
|
|
1989
|
+
ignore_unavailable?: boolean;
|
|
1990
|
+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
1991
|
+
keep_alive?: string;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1928
1994
|
export interface Ping extends Generic {
|
|
1929
1995
|
}
|
|
1930
1996
|
|
|
@@ -1988,6 +2054,12 @@ export interface RollupPutJob<T = RequestBody> extends Generic {
|
|
|
1988
2054
|
body: T;
|
|
1989
2055
|
}
|
|
1990
2056
|
|
|
2057
|
+
export interface RollupRollup<T = RequestBody> extends Generic {
|
|
2058
|
+
index: string;
|
|
2059
|
+
rollup_index: string;
|
|
2060
|
+
body: T;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
1991
2063
|
export interface RollupRollupSearch<T = RequestBody> extends Generic {
|
|
1992
2064
|
index: string | string[];
|
|
1993
2065
|
type?: string;
|
|
@@ -2128,6 +2200,10 @@ export interface SecurityChangePassword<T = RequestBody> extends Generic {
|
|
|
2128
2200
|
body: T;
|
|
2129
2201
|
}
|
|
2130
2202
|
|
|
2203
|
+
export interface SecurityClearApiKeyCache extends Generic {
|
|
2204
|
+
ids: string | string[];
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2131
2207
|
export interface SecurityClearCachedPrivileges extends Generic {
|
|
2132
2208
|
application: string | string[];
|
|
2133
2209
|
}
|
|
@@ -2194,11 +2270,11 @@ export interface SecurityGetPrivileges extends Generic {
|
|
|
2194
2270
|
}
|
|
2195
2271
|
|
|
2196
2272
|
export interface SecurityGetRole extends Generic {
|
|
2197
|
-
name?: string;
|
|
2273
|
+
name?: string | string[];
|
|
2198
2274
|
}
|
|
2199
2275
|
|
|
2200
2276
|
export interface SecurityGetRoleMapping extends Generic {
|
|
2201
|
-
name?: string;
|
|
2277
|
+
name?: string | string[];
|
|
2202
2278
|
}
|
|
2203
2279
|
|
|
2204
2280
|
export interface SecurityGetToken<T = RequestBody> extends Generic {
|
|
@@ -2212,6 +2288,11 @@ export interface SecurityGetUser extends Generic {
|
|
|
2212
2288
|
export interface SecurityGetUserPrivileges extends Generic {
|
|
2213
2289
|
}
|
|
2214
2290
|
|
|
2291
|
+
export interface SecurityGrantApiKey<T = RequestBody> extends Generic {
|
|
2292
|
+
refresh?: 'wait_for' | boolean;
|
|
2293
|
+
body: T;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2215
2296
|
export interface SecurityHasPrivileges<T = RequestBody> extends Generic {
|
|
2216
2297
|
user?: string;
|
|
2217
2298
|
body: T;
|
|
@@ -2286,6 +2367,14 @@ export interface SnapshotCleanupRepository extends Generic {
|
|
|
2286
2367
|
timeout?: string;
|
|
2287
2368
|
}
|
|
2288
2369
|
|
|
2370
|
+
export interface SnapshotClone<T = RequestBody> extends Generic {
|
|
2371
|
+
repository: string;
|
|
2372
|
+
snapshot: string;
|
|
2373
|
+
target_snapshot: string;
|
|
2374
|
+
master_timeout?: string;
|
|
2375
|
+
body: T;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2289
2378
|
export interface SnapshotCreate<T = RequestBody> extends Generic {
|
|
2290
2379
|
repository: string;
|
|
2291
2380
|
snapshot: string;
|
|
@@ -2417,6 +2506,7 @@ export interface TransformGetTransform extends Generic {
|
|
|
2417
2506
|
from?: number;
|
|
2418
2507
|
size?: number;
|
|
2419
2508
|
allow_no_match?: boolean;
|
|
2509
|
+
exclude_generated?: boolean;
|
|
2420
2510
|
}
|
|
2421
2511
|
|
|
2422
2512
|
export interface TransformGetTransformStats extends Generic {
|
|
@@ -2473,6 +2563,7 @@ export interface Update<T = RequestBody> extends Generic {
|
|
|
2473
2563
|
timeout?: string;
|
|
2474
2564
|
if_seq_no?: number;
|
|
2475
2565
|
if_primary_term?: number;
|
|
2566
|
+
require_alias?: boolean;
|
|
2476
2567
|
body: T;
|
|
2477
2568
|
}
|
|
2478
2569
|
|
|
@@ -2560,6 +2651,10 @@ export interface WatcherPutWatch<T = RequestBody> extends Generic {
|
|
|
2560
2651
|
body?: T;
|
|
2561
2652
|
}
|
|
2562
2653
|
|
|
2654
|
+
export interface WatcherQueryWatches<T = RequestBody> extends Generic {
|
|
2655
|
+
body?: T;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2563
2658
|
export interface WatcherStart extends Generic {
|
|
2564
2659
|
}
|
|
2565
2660
|
|