@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.
Files changed (87) hide show
  1. package/.eslintrc.json +9 -4
  2. package/ADMINS.md +13 -38
  3. package/CHANGELOG.md +24 -0
  4. package/COMPATIBILITY.md +4 -1
  5. package/MAINTAINERS.md +15 -75
  6. package/Makefile +2 -12
  7. package/README.md +4 -107
  8. package/USER_GUIDE.md +197 -0
  9. package/api/api/bulk.js +1 -2
  10. package/api/api/cat.js +1 -2
  11. package/api/api/clear_scroll.js +1 -2
  12. package/api/api/cluster.js +1 -2
  13. package/api/api/count.js +1 -2
  14. package/api/api/create.js +1 -2
  15. package/api/api/dangling_indices.js +1 -2
  16. package/api/api/delete.js +1 -2
  17. package/api/api/delete_by_query.js +1 -2
  18. package/api/api/delete_by_query_rethrottle.js +1 -2
  19. package/api/api/delete_script.js +1 -2
  20. package/api/api/exists.js +1 -2
  21. package/api/api/exists_source.js +1 -2
  22. package/api/api/explain.js +1 -2
  23. package/api/api/features.js +1 -2
  24. package/api/api/field_caps.js +1 -2
  25. package/api/api/get.js +1 -2
  26. package/api/api/get_script.js +1 -2
  27. package/api/api/get_script_context.js +1 -2
  28. package/api/api/get_script_languages.js +1 -2
  29. package/api/api/get_source.js +1 -2
  30. package/api/api/index.js +1 -2
  31. package/api/api/indices.js +1 -2
  32. package/api/api/info.js +1 -2
  33. package/api/api/ingest.js +1 -2
  34. package/api/api/mget.js +1 -2
  35. package/api/api/msearch.js +1 -2
  36. package/api/api/msearch_template.js +1 -2
  37. package/api/api/mtermvectors.js +1 -2
  38. package/api/api/nodes.js +1 -2
  39. package/api/api/ping.js +1 -2
  40. package/api/api/put_script.js +1 -2
  41. package/api/api/rank_eval.js +1 -2
  42. package/api/api/reindex.js +1 -2
  43. package/api/api/reindex_rethrottle.js +1 -2
  44. package/api/api/render_search_template.js +1 -2
  45. package/api/api/scripts_painless_execute.js +1 -2
  46. package/api/api/scroll.js +1 -2
  47. package/api/api/search.js +1 -2
  48. package/api/api/search_shards.js +1 -2
  49. package/api/api/search_template.js +1 -2
  50. package/api/api/shutdown.js +1 -2
  51. package/api/api/snapshot.js +1 -2
  52. package/api/api/tasks.js +1 -2
  53. package/api/api/terms_enum.js +1 -2
  54. package/api/api/termvectors.js +1 -2
  55. package/api/api/update.js +1 -2
  56. package/api/api/update_by_query.js +1 -2
  57. package/api/api/update_by_query_rethrottle.js +1 -2
  58. package/api/index.js +1 -2
  59. package/api/new.d.ts +1 -2
  60. package/api/opensearch_dashboards.d.ts +1 -2
  61. package/api/requestParams.d.ts +1 -2
  62. package/api/types.d.ts +1 -2
  63. package/api/utils.js +1 -2
  64. package/index.d.ts +445 -120
  65. package/index.js +2 -3
  66. package/index.mjs +1 -2
  67. package/jenkins/release.JenkinsFile +11 -0
  68. package/lib/Connection.d.ts +1 -2
  69. package/lib/Connection.js +5 -4
  70. package/lib/Helpers.d.ts +5 -4
  71. package/lib/Helpers.js +13 -17
  72. package/lib/Serializer.d.ts +1 -2
  73. package/lib/Serializer.js +1 -2
  74. package/lib/Transport.d.ts +10 -4
  75. package/lib/Transport.js +11 -6
  76. package/lib/aws/AwsSigv4Signer.js +167 -0
  77. package/lib/aws/errors.js +24 -0
  78. package/lib/aws/index.d.ts +39 -0
  79. package/lib/aws/index.js +19 -0
  80. package/lib/errors.d.ts +1 -2
  81. package/lib/errors.js +1 -2
  82. package/lib/pool/BaseConnectionPool.js +1 -2
  83. package/lib/pool/CloudConnectionPool.js +1 -2
  84. package/lib/pool/ConnectionPool.js +1 -2
  85. package/lib/pool/index.d.ts +1 -2
  86. package/lib/pool/index.js +1 -2
  87. 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>(params?: RequestParams.CatAliases, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
200
- aliases<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
201
- aliases<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatAliases, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
202
- aliases<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatAliases, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
203
- allocation<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatAllocation, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
204
- allocation<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
205
- allocation<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatAllocation, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
206
- allocation<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatAllocation, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
207
- cluster_manager<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatClusterManager, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
208
- cluster_manager<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
209
- cluster_manager<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatClusterManager, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
210
- cluster_manager<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatClusterManager, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
211
- count<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatCount, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
212
- count<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
213
- count<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatCount, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
214
- count<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatCount, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
215
- fielddata<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatFielddata, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
216
- fielddata<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
217
- fielddata<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatFielddata, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
218
- fielddata<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatFielddata, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
219
- health<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatHealth, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
220
- health<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
221
- health<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatHealth, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
222
- health<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatHealth, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
223
- help<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatHelp, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
224
- help<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
225
- help<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatHelp, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
226
- help<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatHelp, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
227
- indices<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatIndices, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
228
- indices<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
229
- indices<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatIndices, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
230
- indices<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatIndices, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
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
- * // TODO: delete cat.master when it is removed from OpenSearch
233
- * @deprecated use cat.cluster_manager instead
234
- */
235
- master<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatMaster, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
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
- * // TODO: delete cat.master when it is removed from OpenSearch
238
- * @deprecated use cat.cluster_manager instead
239
- */
240
- master<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
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
- * // TODO: delete cat.master when it is removed from OpenSearch
243
- * @deprecated use cat.cluster_manager instead
244
- */
245
- master<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatMaster, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
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
- * // TODO: delete cat.master when it is removed from OpenSearch
248
- * @deprecated use cat.cluster_manager instead
249
- */
250
- master<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatMaster, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
251
- nodeattrs<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatNodeattrs, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
252
- nodeattrs<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
253
- nodeattrs<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatNodeattrs, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
254
- nodeattrs<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatNodeattrs, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
255
- nodes<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatNodes, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
256
- nodes<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
257
- nodes<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatNodes, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
258
- nodes<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatNodes, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
259
- pending_tasks<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatPendingTasks, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
260
- pending_tasks<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
261
- pending_tasks<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatPendingTasks, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
262
- pending_tasks<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatPendingTasks, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
263
- pendingTasks<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatPendingTasks, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
264
- pendingTasks<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
265
- pendingTasks<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatPendingTasks, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
266
- pendingTasks<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatPendingTasks, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
267
- plugins<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatPlugins, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
268
- plugins<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
269
- plugins<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatPlugins, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
270
- plugins<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatPlugins, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
271
- recovery<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatRecovery, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
272
- recovery<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
273
- recovery<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatRecovery, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
274
- recovery<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatRecovery, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
275
- repositories<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatRepositories, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
276
- repositories<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
277
- repositories<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatRepositories, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
278
- repositories<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatRepositories, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
279
- segments<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatSegments, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
280
- segments<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
281
- segments<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatSegments, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
282
- segments<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatSegments, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
283
- shards<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatShards, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
284
- shards<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
285
- shards<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatShards, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
286
- shards<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatShards, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
287
- snapshots<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatSnapshots, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
288
- snapshots<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
289
- snapshots<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatSnapshots, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
290
- snapshots<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatSnapshots, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
291
- tasks<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatTasks, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
292
- tasks<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
293
- tasks<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatTasks, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
294
- tasks<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatTasks, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
295
- templates<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatTemplates, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
296
- templates<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
297
- templates<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatTemplates, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
298
- templates<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatTemplates, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
299
- thread_pool<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatThreadPool, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
300
- thread_pool<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
301
- thread_pool<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatThreadPool, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
302
- thread_pool<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatThreadPool, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
303
- threadPool<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CatThreadPool, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
304
- threadPool<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
305
- threadPool<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatThreadPool, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
306
- threadPool<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.CatThreadPool, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
307
- }
308
- clear_scroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClearScroll<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
309
- clear_scroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
310
- clear_scroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClearScroll<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
311
- clear_scroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClearScroll<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
312
- clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClearScroll<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
313
- clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
314
- clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClearScroll<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
315
- clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClearScroll<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
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>,