@opensearch-project/opensearch 2.0.0 → 2.1.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/.eslintrc.json +9 -4
- package/ADMINS.md +13 -38
- package/CHANGELOG.md +24 -0
- package/COMPATIBILITY.md +4 -1
- package/MAINTAINERS.md +15 -75
- package/Makefile +2 -12
- package/README.md +4 -107
- package/USER_GUIDE.md +197 -0
- package/api/api/bulk.js +1 -2
- package/api/api/cat.js +1 -2
- package/api/api/clear_scroll.js +1 -2
- package/api/api/cluster.js +1 -2
- package/api/api/count.js +1 -2
- package/api/api/create.js +1 -2
- package/api/api/dangling_indices.js +1 -2
- package/api/api/delete.js +1 -2
- package/api/api/delete_by_query.js +1 -2
- package/api/api/delete_by_query_rethrottle.js +1 -2
- package/api/api/delete_script.js +1 -2
- package/api/api/exists.js +1 -2
- package/api/api/exists_source.js +1 -2
- package/api/api/explain.js +1 -2
- package/api/api/features.js +1 -2
- package/api/api/field_caps.js +1 -2
- package/api/api/get.js +1 -2
- package/api/api/get_script.js +1 -2
- package/api/api/get_script_context.js +1 -2
- package/api/api/get_script_languages.js +1 -2
- package/api/api/get_source.js +1 -2
- package/api/api/index.js +1 -2
- package/api/api/indices.js +1 -2
- package/api/api/info.js +1 -2
- package/api/api/ingest.js +1 -2
- package/api/api/mget.js +1 -2
- package/api/api/msearch.js +1 -2
- package/api/api/msearch_template.js +1 -2
- package/api/api/mtermvectors.js +1 -2
- package/api/api/nodes.js +1 -2
- package/api/api/ping.js +1 -2
- package/api/api/put_script.js +1 -2
- package/api/api/rank_eval.js +1 -2
- package/api/api/reindex.js +1 -2
- package/api/api/reindex_rethrottle.js +1 -2
- package/api/api/render_search_template.js +1 -2
- package/api/api/scripts_painless_execute.js +1 -2
- package/api/api/scroll.js +1 -2
- package/api/api/search.js +1 -2
- package/api/api/search_shards.js +1 -2
- package/api/api/search_template.js +1 -2
- package/api/api/shutdown.js +1 -2
- package/api/api/snapshot.js +1 -2
- package/api/api/tasks.js +1 -2
- package/api/api/terms_enum.js +1 -2
- package/api/api/termvectors.js +1 -2
- package/api/api/update.js +1 -2
- package/api/api/update_by_query.js +1 -2
- package/api/api/update_by_query_rethrottle.js +1 -2
- package/api/index.js +1 -2
- package/api/new.d.ts +1 -2
- package/api/opensearch_dashboards.d.ts +1 -2
- package/api/requestParams.d.ts +1 -2
- package/api/types.d.ts +1 -2
- package/api/utils.js +1 -2
- package/index.d.ts +445 -120
- package/index.js +2 -3
- package/index.mjs +1 -2
- package/jenkins/release.JenkinsFile +11 -0
- package/lib/Connection.d.ts +1 -2
- package/lib/Connection.js +5 -4
- package/lib/Helpers.d.ts +5 -4
- package/lib/Helpers.js +13 -17
- package/lib/Serializer.d.ts +1 -2
- package/lib/Serializer.js +1 -2
- package/lib/Transport.d.ts +10 -4
- package/lib/Transport.js +11 -6
- package/lib/aws/AwsSigv4Signer.js +167 -0
- package/lib/aws/errors.js +24 -0
- package/lib/aws/index.d.ts +39 -0
- package/lib/aws/index.js +19 -0
- package/lib/errors.d.ts +1 -2
- package/lib/errors.js +1 -2
- package/lib/pool/BaseConnectionPool.js +1 -2
- package/lib/pool/CloudConnectionPool.js +1 -2
- package/lib/pool/ConnectionPool.js +1 -2
- package/lib/pool/index.d.ts +1 -2
- package/lib/pool/index.js +1 -2
- package/package.json +27 -10
package/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
|
@@ -45,6 +44,7 @@ import Transport, {
|
|
|
45
44
|
RequestBody,
|
|
46
45
|
RequestNDBody,
|
|
47
46
|
Context,
|
|
47
|
+
MemoryCircuitBreakerOptions,
|
|
48
48
|
} from './lib/Transport';
|
|
49
49
|
import { URL } from 'url';
|
|
50
50
|
import Connection, { AgentOptions, agentFn } from './lib/Connection';
|
|
@@ -91,7 +91,7 @@ interface NodeOptions {
|
|
|
91
91
|
ssl?: TlsConnectionOptions;
|
|
92
92
|
headers?: Record<string, any>;
|
|
93
93
|
roles?: {
|
|
94
|
-
cluster_manager?: boolean
|
|
94
|
+
cluster_manager?: boolean;
|
|
95
95
|
/**
|
|
96
96
|
* @deprecated use cluster_manager instead
|
|
97
97
|
*/
|
|
@@ -137,10 +137,7 @@ interface ClientOptions {
|
|
|
137
137
|
password?: string;
|
|
138
138
|
};
|
|
139
139
|
disablePrototypePoisoningProtection?: boolean | 'proto' | 'constructor';
|
|
140
|
-
memoryCircuitBreaker?:
|
|
141
|
-
enabled: boolean;
|
|
142
|
-
maxPercentage: number;
|
|
143
|
-
};
|
|
140
|
+
memoryCircuitBreaker?: MemoryCircuitBreakerOptions;
|
|
144
141
|
}
|
|
145
142
|
|
|
146
143
|
declare class Client {
|
|
@@ -196,123 +193,451 @@ declare class Client {
|
|
|
196
193
|
callback: callbackFn<TResponse, TContext>
|
|
197
194
|
): TransportRequestCallback;
|
|
198
195
|
cat: {
|
|
199
|
-
aliases<TResponse = Record<string, any>, TContext = Context>(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
196
|
+
aliases<TResponse = Record<string, any>, TContext = Context>(
|
|
197
|
+
params?: RequestParams.CatAliases,
|
|
198
|
+
options?: TransportRequestOptions
|
|
199
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
200
|
+
aliases<TResponse = Record<string, any>, TContext = Context>(
|
|
201
|
+
callback: callbackFn<TResponse, TContext>
|
|
202
|
+
): TransportRequestCallback;
|
|
203
|
+
aliases<TResponse = Record<string, any>, TContext = Context>(
|
|
204
|
+
params: RequestParams.CatAliases,
|
|
205
|
+
callback: callbackFn<TResponse, TContext>
|
|
206
|
+
): TransportRequestCallback;
|
|
207
|
+
aliases<TResponse = Record<string, any>, TContext = Context>(
|
|
208
|
+
params: RequestParams.CatAliases,
|
|
209
|
+
options: TransportRequestOptions,
|
|
210
|
+
callback: callbackFn<TResponse, TContext>
|
|
211
|
+
): TransportRequestCallback;
|
|
212
|
+
allocation<TResponse = Record<string, any>, TContext = Context>(
|
|
213
|
+
params?: RequestParams.CatAllocation,
|
|
214
|
+
options?: TransportRequestOptions
|
|
215
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
216
|
+
allocation<TResponse = Record<string, any>, TContext = Context>(
|
|
217
|
+
callback: callbackFn<TResponse, TContext>
|
|
218
|
+
): TransportRequestCallback;
|
|
219
|
+
allocation<TResponse = Record<string, any>, TContext = Context>(
|
|
220
|
+
params: RequestParams.CatAllocation,
|
|
221
|
+
callback: callbackFn<TResponse, TContext>
|
|
222
|
+
): TransportRequestCallback;
|
|
223
|
+
allocation<TResponse = Record<string, any>, TContext = Context>(
|
|
224
|
+
params: RequestParams.CatAllocation,
|
|
225
|
+
options: TransportRequestOptions,
|
|
226
|
+
callback: callbackFn<TResponse, TContext>
|
|
227
|
+
): TransportRequestCallback;
|
|
228
|
+
cluster_manager<TResponse = Record<string, any>, TContext = Context>(
|
|
229
|
+
params?: RequestParams.CatClusterManager,
|
|
230
|
+
options?: TransportRequestOptions
|
|
231
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
232
|
+
cluster_manager<TResponse = Record<string, any>, TContext = Context>(
|
|
233
|
+
callback: callbackFn<TResponse, TContext>
|
|
234
|
+
): TransportRequestCallback;
|
|
235
|
+
cluster_manager<TResponse = Record<string, any>, TContext = Context>(
|
|
236
|
+
params: RequestParams.CatClusterManager,
|
|
237
|
+
callback: callbackFn<TResponse, TContext>
|
|
238
|
+
): TransportRequestCallback;
|
|
239
|
+
cluster_manager<TResponse = Record<string, any>, TContext = Context>(
|
|
240
|
+
params: RequestParams.CatClusterManager,
|
|
241
|
+
options: TransportRequestOptions,
|
|
242
|
+
callback: callbackFn<TResponse, TContext>
|
|
243
|
+
): TransportRequestCallback;
|
|
244
|
+
count<TResponse = Record<string, any>, TContext = Context>(
|
|
245
|
+
params?: RequestParams.CatCount,
|
|
246
|
+
options?: TransportRequestOptions
|
|
247
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
248
|
+
count<TResponse = Record<string, any>, TContext = Context>(
|
|
249
|
+
callback: callbackFn<TResponse, TContext>
|
|
250
|
+
): TransportRequestCallback;
|
|
251
|
+
count<TResponse = Record<string, any>, TContext = Context>(
|
|
252
|
+
params: RequestParams.CatCount,
|
|
253
|
+
callback: callbackFn<TResponse, TContext>
|
|
254
|
+
): TransportRequestCallback;
|
|
255
|
+
count<TResponse = Record<string, any>, TContext = Context>(
|
|
256
|
+
params: RequestParams.CatCount,
|
|
257
|
+
options: TransportRequestOptions,
|
|
258
|
+
callback: callbackFn<TResponse, TContext>
|
|
259
|
+
): TransportRequestCallback;
|
|
260
|
+
fielddata<TResponse = Record<string, any>, TContext = Context>(
|
|
261
|
+
params?: RequestParams.CatFielddata,
|
|
262
|
+
options?: TransportRequestOptions
|
|
263
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
264
|
+
fielddata<TResponse = Record<string, any>, TContext = Context>(
|
|
265
|
+
callback: callbackFn<TResponse, TContext>
|
|
266
|
+
): TransportRequestCallback;
|
|
267
|
+
fielddata<TResponse = Record<string, any>, TContext = Context>(
|
|
268
|
+
params: RequestParams.CatFielddata,
|
|
269
|
+
callback: callbackFn<TResponse, TContext>
|
|
270
|
+
): TransportRequestCallback;
|
|
271
|
+
fielddata<TResponse = Record<string, any>, TContext = Context>(
|
|
272
|
+
params: RequestParams.CatFielddata,
|
|
273
|
+
options: TransportRequestOptions,
|
|
274
|
+
callback: callbackFn<TResponse, TContext>
|
|
275
|
+
): TransportRequestCallback;
|
|
276
|
+
health<TResponse = Record<string, any>, TContext = Context>(
|
|
277
|
+
params?: RequestParams.CatHealth,
|
|
278
|
+
options?: TransportRequestOptions
|
|
279
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
280
|
+
health<TResponse = Record<string, any>, TContext = Context>(
|
|
281
|
+
callback: callbackFn<TResponse, TContext>
|
|
282
|
+
): TransportRequestCallback;
|
|
283
|
+
health<TResponse = Record<string, any>, TContext = Context>(
|
|
284
|
+
params: RequestParams.CatHealth,
|
|
285
|
+
callback: callbackFn<TResponse, TContext>
|
|
286
|
+
): TransportRequestCallback;
|
|
287
|
+
health<TResponse = Record<string, any>, TContext = Context>(
|
|
288
|
+
params: RequestParams.CatHealth,
|
|
289
|
+
options: TransportRequestOptions,
|
|
290
|
+
callback: callbackFn<TResponse, TContext>
|
|
291
|
+
): TransportRequestCallback;
|
|
292
|
+
help<TResponse = Record<string, any>, TContext = Context>(
|
|
293
|
+
params?: RequestParams.CatHelp,
|
|
294
|
+
options?: TransportRequestOptions
|
|
295
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
296
|
+
help<TResponse = Record<string, any>, TContext = Context>(
|
|
297
|
+
callback: callbackFn<TResponse, TContext>
|
|
298
|
+
): TransportRequestCallback;
|
|
299
|
+
help<TResponse = Record<string, any>, TContext = Context>(
|
|
300
|
+
params: RequestParams.CatHelp,
|
|
301
|
+
callback: callbackFn<TResponse, TContext>
|
|
302
|
+
): TransportRequestCallback;
|
|
303
|
+
help<TResponse = Record<string, any>, TContext = Context>(
|
|
304
|
+
params: RequestParams.CatHelp,
|
|
305
|
+
options: TransportRequestOptions,
|
|
306
|
+
callback: callbackFn<TResponse, TContext>
|
|
307
|
+
): TransportRequestCallback;
|
|
308
|
+
indices<TResponse = Record<string, any>, TContext = Context>(
|
|
309
|
+
params?: RequestParams.CatIndices,
|
|
310
|
+
options?: TransportRequestOptions
|
|
311
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
312
|
+
indices<TResponse = Record<string, any>, TContext = Context>(
|
|
313
|
+
callback: callbackFn<TResponse, TContext>
|
|
314
|
+
): TransportRequestCallback;
|
|
315
|
+
indices<TResponse = Record<string, any>, TContext = Context>(
|
|
316
|
+
params: RequestParams.CatIndices,
|
|
317
|
+
callback: callbackFn<TResponse, TContext>
|
|
318
|
+
): TransportRequestCallback;
|
|
319
|
+
indices<TResponse = Record<string, any>, TContext = Context>(
|
|
320
|
+
params: RequestParams.CatIndices,
|
|
321
|
+
options: TransportRequestOptions,
|
|
322
|
+
callback: callbackFn<TResponse, TContext>
|
|
323
|
+
): TransportRequestCallback;
|
|
231
324
|
/**
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
master<TResponse = Record<string, any>, TContext = Context>(
|
|
325
|
+
* // TODO: delete cat.master when it is removed from OpenSearch
|
|
326
|
+
* @deprecated use cat.cluster_manager instead
|
|
327
|
+
*/
|
|
328
|
+
master<TResponse = Record<string, any>, TContext = Context>(
|
|
329
|
+
params?: RequestParams.CatMaster,
|
|
330
|
+
options?: TransportRequestOptions
|
|
331
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
236
332
|
/**
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
master<TResponse = Record<string, any>, TContext = Context>(
|
|
333
|
+
* // TODO: delete cat.master when it is removed from OpenSearch
|
|
334
|
+
* @deprecated use cat.cluster_manager instead
|
|
335
|
+
*/
|
|
336
|
+
master<TResponse = Record<string, any>, TContext = Context>(
|
|
337
|
+
callback: callbackFn<TResponse, TContext>
|
|
338
|
+
): TransportRequestCallback;
|
|
241
339
|
/**
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
master<TResponse = Record<string, any>, TContext = Context>(
|
|
340
|
+
* // TODO: delete cat.master when it is removed from OpenSearch
|
|
341
|
+
* @deprecated use cat.cluster_manager instead
|
|
342
|
+
*/
|
|
343
|
+
master<TResponse = Record<string, any>, TContext = Context>(
|
|
344
|
+
params: RequestParams.CatMaster,
|
|
345
|
+
callback: callbackFn<TResponse, TContext>
|
|
346
|
+
): TransportRequestCallback;
|
|
246
347
|
/**
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
master<TResponse = Record<string, any>, TContext = Context>(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
348
|
+
* // TODO: delete cat.master when it is removed from OpenSearch
|
|
349
|
+
* @deprecated use cat.cluster_manager instead
|
|
350
|
+
*/
|
|
351
|
+
master<TResponse = Record<string, any>, TContext = Context>(
|
|
352
|
+
params: RequestParams.CatMaster,
|
|
353
|
+
options: TransportRequestOptions,
|
|
354
|
+
callback: callbackFn<TResponse, TContext>
|
|
355
|
+
): TransportRequestCallback;
|
|
356
|
+
nodeattrs<TResponse = Record<string, any>, TContext = Context>(
|
|
357
|
+
params?: RequestParams.CatNodeattrs,
|
|
358
|
+
options?: TransportRequestOptions
|
|
359
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
360
|
+
nodeattrs<TResponse = Record<string, any>, TContext = Context>(
|
|
361
|
+
callback: callbackFn<TResponse, TContext>
|
|
362
|
+
): TransportRequestCallback;
|
|
363
|
+
nodeattrs<TResponse = Record<string, any>, TContext = Context>(
|
|
364
|
+
params: RequestParams.CatNodeattrs,
|
|
365
|
+
callback: callbackFn<TResponse, TContext>
|
|
366
|
+
): TransportRequestCallback;
|
|
367
|
+
nodeattrs<TResponse = Record<string, any>, TContext = Context>(
|
|
368
|
+
params: RequestParams.CatNodeattrs,
|
|
369
|
+
options: TransportRequestOptions,
|
|
370
|
+
callback: callbackFn<TResponse, TContext>
|
|
371
|
+
): TransportRequestCallback;
|
|
372
|
+
nodes<TResponse = Record<string, any>, TContext = Context>(
|
|
373
|
+
params?: RequestParams.CatNodes,
|
|
374
|
+
options?: TransportRequestOptions
|
|
375
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
376
|
+
nodes<TResponse = Record<string, any>, TContext = Context>(
|
|
377
|
+
callback: callbackFn<TResponse, TContext>
|
|
378
|
+
): TransportRequestCallback;
|
|
379
|
+
nodes<TResponse = Record<string, any>, TContext = Context>(
|
|
380
|
+
params: RequestParams.CatNodes,
|
|
381
|
+
callback: callbackFn<TResponse, TContext>
|
|
382
|
+
): TransportRequestCallback;
|
|
383
|
+
nodes<TResponse = Record<string, any>, TContext = Context>(
|
|
384
|
+
params: RequestParams.CatNodes,
|
|
385
|
+
options: TransportRequestOptions,
|
|
386
|
+
callback: callbackFn<TResponse, TContext>
|
|
387
|
+
): TransportRequestCallback;
|
|
388
|
+
pending_tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
389
|
+
params?: RequestParams.CatPendingTasks,
|
|
390
|
+
options?: TransportRequestOptions
|
|
391
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
392
|
+
pending_tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
393
|
+
callback: callbackFn<TResponse, TContext>
|
|
394
|
+
): TransportRequestCallback;
|
|
395
|
+
pending_tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
396
|
+
params: RequestParams.CatPendingTasks,
|
|
397
|
+
callback: callbackFn<TResponse, TContext>
|
|
398
|
+
): TransportRequestCallback;
|
|
399
|
+
pending_tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
400
|
+
params: RequestParams.CatPendingTasks,
|
|
401
|
+
options: TransportRequestOptions,
|
|
402
|
+
callback: callbackFn<TResponse, TContext>
|
|
403
|
+
): TransportRequestCallback;
|
|
404
|
+
pendingTasks<TResponse = Record<string, any>, TContext = Context>(
|
|
405
|
+
params?: RequestParams.CatPendingTasks,
|
|
406
|
+
options?: TransportRequestOptions
|
|
407
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
408
|
+
pendingTasks<TResponse = Record<string, any>, TContext = Context>(
|
|
409
|
+
callback: callbackFn<TResponse, TContext>
|
|
410
|
+
): TransportRequestCallback;
|
|
411
|
+
pendingTasks<TResponse = Record<string, any>, TContext = Context>(
|
|
412
|
+
params: RequestParams.CatPendingTasks,
|
|
413
|
+
callback: callbackFn<TResponse, TContext>
|
|
414
|
+
): TransportRequestCallback;
|
|
415
|
+
pendingTasks<TResponse = Record<string, any>, TContext = Context>(
|
|
416
|
+
params: RequestParams.CatPendingTasks,
|
|
417
|
+
options: TransportRequestOptions,
|
|
418
|
+
callback: callbackFn<TResponse, TContext>
|
|
419
|
+
): TransportRequestCallback;
|
|
420
|
+
plugins<TResponse = Record<string, any>, TContext = Context>(
|
|
421
|
+
params?: RequestParams.CatPlugins,
|
|
422
|
+
options?: TransportRequestOptions
|
|
423
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
424
|
+
plugins<TResponse = Record<string, any>, TContext = Context>(
|
|
425
|
+
callback: callbackFn<TResponse, TContext>
|
|
426
|
+
): TransportRequestCallback;
|
|
427
|
+
plugins<TResponse = Record<string, any>, TContext = Context>(
|
|
428
|
+
params: RequestParams.CatPlugins,
|
|
429
|
+
callback: callbackFn<TResponse, TContext>
|
|
430
|
+
): TransportRequestCallback;
|
|
431
|
+
plugins<TResponse = Record<string, any>, TContext = Context>(
|
|
432
|
+
params: RequestParams.CatPlugins,
|
|
433
|
+
options: TransportRequestOptions,
|
|
434
|
+
callback: callbackFn<TResponse, TContext>
|
|
435
|
+
): TransportRequestCallback;
|
|
436
|
+
recovery<TResponse = Record<string, any>, TContext = Context>(
|
|
437
|
+
params?: RequestParams.CatRecovery,
|
|
438
|
+
options?: TransportRequestOptions
|
|
439
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
440
|
+
recovery<TResponse = Record<string, any>, TContext = Context>(
|
|
441
|
+
callback: callbackFn<TResponse, TContext>
|
|
442
|
+
): TransportRequestCallback;
|
|
443
|
+
recovery<TResponse = Record<string, any>, TContext = Context>(
|
|
444
|
+
params: RequestParams.CatRecovery,
|
|
445
|
+
callback: callbackFn<TResponse, TContext>
|
|
446
|
+
): TransportRequestCallback;
|
|
447
|
+
recovery<TResponse = Record<string, any>, TContext = Context>(
|
|
448
|
+
params: RequestParams.CatRecovery,
|
|
449
|
+
options: TransportRequestOptions,
|
|
450
|
+
callback: callbackFn<TResponse, TContext>
|
|
451
|
+
): TransportRequestCallback;
|
|
452
|
+
repositories<TResponse = Record<string, any>, TContext = Context>(
|
|
453
|
+
params?: RequestParams.CatRepositories,
|
|
454
|
+
options?: TransportRequestOptions
|
|
455
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
456
|
+
repositories<TResponse = Record<string, any>, TContext = Context>(
|
|
457
|
+
callback: callbackFn<TResponse, TContext>
|
|
458
|
+
): TransportRequestCallback;
|
|
459
|
+
repositories<TResponse = Record<string, any>, TContext = Context>(
|
|
460
|
+
params: RequestParams.CatRepositories,
|
|
461
|
+
callback: callbackFn<TResponse, TContext>
|
|
462
|
+
): TransportRequestCallback;
|
|
463
|
+
repositories<TResponse = Record<string, any>, TContext = Context>(
|
|
464
|
+
params: RequestParams.CatRepositories,
|
|
465
|
+
options: TransportRequestOptions,
|
|
466
|
+
callback: callbackFn<TResponse, TContext>
|
|
467
|
+
): TransportRequestCallback;
|
|
468
|
+
segments<TResponse = Record<string, any>, TContext = Context>(
|
|
469
|
+
params?: RequestParams.CatSegments,
|
|
470
|
+
options?: TransportRequestOptions
|
|
471
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
472
|
+
segments<TResponse = Record<string, any>, TContext = Context>(
|
|
473
|
+
callback: callbackFn<TResponse, TContext>
|
|
474
|
+
): TransportRequestCallback;
|
|
475
|
+
segments<TResponse = Record<string, any>, TContext = Context>(
|
|
476
|
+
params: RequestParams.CatSegments,
|
|
477
|
+
callback: callbackFn<TResponse, TContext>
|
|
478
|
+
): TransportRequestCallback;
|
|
479
|
+
segments<TResponse = Record<string, any>, TContext = Context>(
|
|
480
|
+
params: RequestParams.CatSegments,
|
|
481
|
+
options: TransportRequestOptions,
|
|
482
|
+
callback: callbackFn<TResponse, TContext>
|
|
483
|
+
): TransportRequestCallback;
|
|
484
|
+
shards<TResponse = Record<string, any>, TContext = Context>(
|
|
485
|
+
params?: RequestParams.CatShards,
|
|
486
|
+
options?: TransportRequestOptions
|
|
487
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
488
|
+
shards<TResponse = Record<string, any>, TContext = Context>(
|
|
489
|
+
callback: callbackFn<TResponse, TContext>
|
|
490
|
+
): TransportRequestCallback;
|
|
491
|
+
shards<TResponse = Record<string, any>, TContext = Context>(
|
|
492
|
+
params: RequestParams.CatShards,
|
|
493
|
+
callback: callbackFn<TResponse, TContext>
|
|
494
|
+
): TransportRequestCallback;
|
|
495
|
+
shards<TResponse = Record<string, any>, TContext = Context>(
|
|
496
|
+
params: RequestParams.CatShards,
|
|
497
|
+
options: TransportRequestOptions,
|
|
498
|
+
callback: callbackFn<TResponse, TContext>
|
|
499
|
+
): TransportRequestCallback;
|
|
500
|
+
snapshots<TResponse = Record<string, any>, TContext = Context>(
|
|
501
|
+
params?: RequestParams.CatSnapshots,
|
|
502
|
+
options?: TransportRequestOptions
|
|
503
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
504
|
+
snapshots<TResponse = Record<string, any>, TContext = Context>(
|
|
505
|
+
callback: callbackFn<TResponse, TContext>
|
|
506
|
+
): TransportRequestCallback;
|
|
507
|
+
snapshots<TResponse = Record<string, any>, TContext = Context>(
|
|
508
|
+
params: RequestParams.CatSnapshots,
|
|
509
|
+
callback: callbackFn<TResponse, TContext>
|
|
510
|
+
): TransportRequestCallback;
|
|
511
|
+
snapshots<TResponse = Record<string, any>, TContext = Context>(
|
|
512
|
+
params: RequestParams.CatSnapshots,
|
|
513
|
+
options: TransportRequestOptions,
|
|
514
|
+
callback: callbackFn<TResponse, TContext>
|
|
515
|
+
): TransportRequestCallback;
|
|
516
|
+
tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
517
|
+
params?: RequestParams.CatTasks,
|
|
518
|
+
options?: TransportRequestOptions
|
|
519
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
520
|
+
tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
521
|
+
callback: callbackFn<TResponse, TContext>
|
|
522
|
+
): TransportRequestCallback;
|
|
523
|
+
tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
524
|
+
params: RequestParams.CatTasks,
|
|
525
|
+
callback: callbackFn<TResponse, TContext>
|
|
526
|
+
): TransportRequestCallback;
|
|
527
|
+
tasks<TResponse = Record<string, any>, TContext = Context>(
|
|
528
|
+
params: RequestParams.CatTasks,
|
|
529
|
+
options: TransportRequestOptions,
|
|
530
|
+
callback: callbackFn<TResponse, TContext>
|
|
531
|
+
): TransportRequestCallback;
|
|
532
|
+
templates<TResponse = Record<string, any>, TContext = Context>(
|
|
533
|
+
params?: RequestParams.CatTemplates,
|
|
534
|
+
options?: TransportRequestOptions
|
|
535
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
536
|
+
templates<TResponse = Record<string, any>, TContext = Context>(
|
|
537
|
+
callback: callbackFn<TResponse, TContext>
|
|
538
|
+
): TransportRequestCallback;
|
|
539
|
+
templates<TResponse = Record<string, any>, TContext = Context>(
|
|
540
|
+
params: RequestParams.CatTemplates,
|
|
541
|
+
callback: callbackFn<TResponse, TContext>
|
|
542
|
+
): TransportRequestCallback;
|
|
543
|
+
templates<TResponse = Record<string, any>, TContext = Context>(
|
|
544
|
+
params: RequestParams.CatTemplates,
|
|
545
|
+
options: TransportRequestOptions,
|
|
546
|
+
callback: callbackFn<TResponse, TContext>
|
|
547
|
+
): TransportRequestCallback;
|
|
548
|
+
thread_pool<TResponse = Record<string, any>, TContext = Context>(
|
|
549
|
+
params?: RequestParams.CatThreadPool,
|
|
550
|
+
options?: TransportRequestOptions
|
|
551
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
552
|
+
thread_pool<TResponse = Record<string, any>, TContext = Context>(
|
|
553
|
+
callback: callbackFn<TResponse, TContext>
|
|
554
|
+
): TransportRequestCallback;
|
|
555
|
+
thread_pool<TResponse = Record<string, any>, TContext = Context>(
|
|
556
|
+
params: RequestParams.CatThreadPool,
|
|
557
|
+
callback: callbackFn<TResponse, TContext>
|
|
558
|
+
): TransportRequestCallback;
|
|
559
|
+
thread_pool<TResponse = Record<string, any>, TContext = Context>(
|
|
560
|
+
params: RequestParams.CatThreadPool,
|
|
561
|
+
options: TransportRequestOptions,
|
|
562
|
+
callback: callbackFn<TResponse, TContext>
|
|
563
|
+
): TransportRequestCallback;
|
|
564
|
+
threadPool<TResponse = Record<string, any>, TContext = Context>(
|
|
565
|
+
params?: RequestParams.CatThreadPool,
|
|
566
|
+
options?: TransportRequestOptions
|
|
567
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
568
|
+
threadPool<TResponse = Record<string, any>, TContext = Context>(
|
|
569
|
+
callback: callbackFn<TResponse, TContext>
|
|
570
|
+
): TransportRequestCallback;
|
|
571
|
+
threadPool<TResponse = Record<string, any>, TContext = Context>(
|
|
572
|
+
params: RequestParams.CatThreadPool,
|
|
573
|
+
callback: callbackFn<TResponse, TContext>
|
|
574
|
+
): TransportRequestCallback;
|
|
575
|
+
threadPool<TResponse = Record<string, any>, TContext = Context>(
|
|
576
|
+
params: RequestParams.CatThreadPool,
|
|
577
|
+
options: TransportRequestOptions,
|
|
578
|
+
callback: callbackFn<TResponse, TContext>
|
|
579
|
+
): TransportRequestCallback;
|
|
580
|
+
};
|
|
581
|
+
clear_scroll<
|
|
582
|
+
TResponse = Record<string, any>,
|
|
583
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
584
|
+
TContext = Context
|
|
585
|
+
>(
|
|
586
|
+
params?: RequestParams.ClearScroll<TRequestBody>,
|
|
587
|
+
options?: TransportRequestOptions
|
|
588
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
589
|
+
clear_scroll<
|
|
590
|
+
TResponse = Record<string, any>,
|
|
591
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
592
|
+
TContext = Context
|
|
593
|
+
>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback;
|
|
594
|
+
clear_scroll<
|
|
595
|
+
TResponse = Record<string, any>,
|
|
596
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
597
|
+
TContext = Context
|
|
598
|
+
>(
|
|
599
|
+
params: RequestParams.ClearScroll<TRequestBody>,
|
|
600
|
+
callback: callbackFn<TResponse, TContext>
|
|
601
|
+
): TransportRequestCallback;
|
|
602
|
+
clear_scroll<
|
|
603
|
+
TResponse = Record<string, any>,
|
|
604
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
605
|
+
TContext = Context
|
|
606
|
+
>(
|
|
607
|
+
params: RequestParams.ClearScroll<TRequestBody>,
|
|
608
|
+
options: TransportRequestOptions,
|
|
609
|
+
callback: callbackFn<TResponse, TContext>
|
|
610
|
+
): TransportRequestCallback;
|
|
611
|
+
clearScroll<
|
|
612
|
+
TResponse = Record<string, any>,
|
|
613
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
614
|
+
TContext = Context
|
|
615
|
+
>(
|
|
616
|
+
params?: RequestParams.ClearScroll<TRequestBody>,
|
|
617
|
+
options?: TransportRequestOptions
|
|
618
|
+
): TransportRequestPromise<ApiResponse<TResponse, TContext>>;
|
|
619
|
+
clearScroll<
|
|
620
|
+
TResponse = Record<string, any>,
|
|
621
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
622
|
+
TContext = Context
|
|
623
|
+
>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback;
|
|
624
|
+
clearScroll<
|
|
625
|
+
TResponse = Record<string, any>,
|
|
626
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
627
|
+
TContext = Context
|
|
628
|
+
>(
|
|
629
|
+
params: RequestParams.ClearScroll<TRequestBody>,
|
|
630
|
+
callback: callbackFn<TResponse, TContext>
|
|
631
|
+
): TransportRequestCallback;
|
|
632
|
+
clearScroll<
|
|
633
|
+
TResponse = Record<string, any>,
|
|
634
|
+
TRequestBody extends RequestBody = Record<string, any>,
|
|
635
|
+
TContext = Context
|
|
636
|
+
>(
|
|
637
|
+
params: RequestParams.ClearScroll<TRequestBody>,
|
|
638
|
+
options: TransportRequestOptions,
|
|
639
|
+
callback: callbackFn<TResponse, TContext>
|
|
640
|
+
): TransportRequestCallback;
|
|
316
641
|
cluster: {
|
|
317
642
|
allocation_explain<
|
|
318
643
|
TResponse = Record<string, any>,
|