@opensearch-project/opensearch 1.1.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/.eslintignore +2 -0
- package/.eslintrc.json +31 -0
- package/.prettierrc.json +5 -0
- package/.whitesource +15 -0
- package/ADMINS.md +13 -31
- package/CHANGELOG.md +24 -0
- package/COMPATIBILITY.md +27 -0
- package/DEVELOPER_GUIDE.md +22 -5
- package/MAINTAINERS.md +15 -70
- package/Makefile +2 -12
- package/README.md +19 -123
- package/RELEASING.md +3 -3
- package/SECURITY.md +1 -1
- package/USER_GUIDE.md +197 -0
- package/api/api/bulk.js +54 -28
- package/api/api/cat.js +355 -266
- package/api/api/clear_scroll.js +18 -19
- package/api/api/cluster.js +367 -221
- package/api/api/count.js +56 -26
- package/api/api/create.js +51 -26
- package/api/api/dangling_indices.js +96 -53
- package/api/api/delete.js +50 -24
- package/api/api/delete_by_query.js +89 -27
- package/api/api/delete_by_query_rethrottle.js +34 -21
- package/api/api/delete_script.js +32 -19
- package/api/api/exists.js +56 -24
- package/api/api/exists_source.js +61 -29
- package/api/api/explain.js +61 -24
- package/api/api/features.js +57 -37
- package/api/api/field_caps.js +37 -20
- package/api/api/get.js +56 -24
- package/api/api/get_script.js +31 -19
- package/api/api/get_script_context.js +16 -17
- package/api/api/get_script_languages.js +16 -17
- package/api/api/get_source.js +56 -24
- package/api/api/index.js +61 -30
- package/api/api/indices.js +1069 -859
- package/api/api/info.js +16 -17
- package/api/api/ingest.js +133 -98
- package/api/api/mget.js +51 -28
- package/api/api/msearch.js +50 -28
- package/api/api/msearch_template.js +54 -28
- package/api/api/mtermvectors.js +49 -26
- package/api/api/nodes.js +282 -156
- package/api/api/ping.js +16 -17
- package/api/api/put_script.js +41 -27
- package/api/api/rank_eval.js +38 -22
- package/api/api/reindex.js +39 -19
- package/api/api/reindex_rethrottle.js +33 -21
- package/api/api/render_search_template.js +19 -20
- package/api/api/scripts_painless_execute.js +16 -17
- package/api/api/scroll.js +32 -19
- package/api/api/search.js +109 -26
- package/api/api/search_shards.js +37 -20
- package/api/api/search_template.js +65 -28
- package/api/api/shutdown.js +67 -56
- package/api/api/snapshot.js +348 -226
- package/api/api/tasks.js +66 -48
- package/api/api/terms_enum.js +18 -19
- package/api/api/termvectors.js +58 -28
- package/api/api/update.js +65 -26
- package/api/api/update_by_query.js +90 -25
- package/api/api/update_by_query_rethrottle.js +34 -21
- package/api/index.js +268 -181
- package/api/new.d.ts +2043 -531
- package/api/opensearch_dashboards.d.ts +240 -238
- package/api/requestParams.d.ts +302 -71
- package/api/types.d.ts +6205 -5721
- package/api/utils.js +23 -24
- package/codecov.yml +2 -2
- package/index.d.ts +5203 -1037
- package/index.js +154 -143
- package/index.mjs +10 -11
- package/jenkins/release.JenkinsFile +11 -0
- package/lib/Connection.d.ts +38 -28
- package/lib/Connection.js +166 -170
- package/lib/Helpers.d.ts +108 -68
- package/lib/Helpers.js +401 -378
- package/lib/Serializer.d.ts +3 -4
- package/lib/Serializer.js +40 -41
- package/lib/Transport.d.ts +39 -15
- package/lib/Transport.js +381 -337
- 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 +26 -9
- package/lib/errors.js +76 -73
- package/lib/pool/BaseConnectionPool.js +101 -99
- package/lib/pool/CloudConnectionPool.js +17 -18
- package/lib/pool/ConnectionPool.js +106 -107
- package/lib/pool/index.d.ts +9 -8
- package/lib/pool/index.js +7 -8
- package/package.json +37 -15
package/api/requestParams.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
|
/*
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
* under the License.
|
|
29
28
|
*/
|
|
30
29
|
|
|
31
|
-
import { RequestBody, RequestNDBody } from '../lib/Transport'
|
|
30
|
+
import { RequestBody, RequestNDBody } from '../lib/Transport';
|
|
32
31
|
|
|
33
32
|
export interface Generic {
|
|
34
33
|
method?: string;
|
|
@@ -40,7 +39,6 @@ export interface Generic {
|
|
|
40
39
|
}
|
|
41
40
|
export interface Bulk<T = RequestNDBody> extends Generic {
|
|
42
41
|
index?: string;
|
|
43
|
-
type?: string;
|
|
44
42
|
_source_exclude?: string | string[];
|
|
45
43
|
_source_include?: string | string[];
|
|
46
44
|
wait_for_active_shards?: string;
|
|
@@ -71,6 +69,10 @@ export interface CatAllocation extends Generic {
|
|
|
71
69
|
format?: string;
|
|
72
70
|
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
|
|
73
71
|
local?: boolean;
|
|
72
|
+
cluster_manager_timeout?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated use cluster_manager_timeout instead
|
|
75
|
+
*/
|
|
74
76
|
master_timeout?: string;
|
|
75
77
|
h?: string | string[];
|
|
76
78
|
help?: boolean;
|
|
@@ -117,6 +119,10 @@ export interface CatIndices extends Generic {
|
|
|
117
119
|
format?: string;
|
|
118
120
|
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
|
|
119
121
|
local?: boolean;
|
|
122
|
+
cluster_manager_timeout?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated use cluster_manager_timeout instead
|
|
125
|
+
*/
|
|
120
126
|
master_timeout?: string;
|
|
121
127
|
h?: string | string[];
|
|
122
128
|
health?: 'green' | 'yellow' | 'red';
|
|
@@ -129,9 +135,27 @@ export interface CatIndices extends Generic {
|
|
|
129
135
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
130
136
|
}
|
|
131
137
|
|
|
138
|
+
export interface CatClusterManager extends Generic {
|
|
139
|
+
format?: string;
|
|
140
|
+
local?: boolean;
|
|
141
|
+
cluster_manager_timeout?: string;
|
|
142
|
+
h?: string | string[];
|
|
143
|
+
help?: boolean;
|
|
144
|
+
s?: string | string[];
|
|
145
|
+
v?: boolean;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* // TODO: delete CatMaster interface when it is removed from OpenSearch
|
|
150
|
+
* @deprecated use CatClusterManager instead
|
|
151
|
+
*/
|
|
132
152
|
export interface CatMaster extends Generic {
|
|
133
153
|
format?: string;
|
|
134
154
|
local?: boolean;
|
|
155
|
+
cluster_manager_timeout?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated use cluster_manager_timeout instead
|
|
158
|
+
*/
|
|
135
159
|
master_timeout?: string;
|
|
136
160
|
h?: string | string[];
|
|
137
161
|
help?: boolean;
|
|
@@ -142,6 +166,10 @@ export interface CatMaster extends Generic {
|
|
|
142
166
|
export interface CatNodeattrs extends Generic {
|
|
143
167
|
format?: string;
|
|
144
168
|
local?: boolean;
|
|
169
|
+
cluster_manager_timeout?: string;
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated use cluster_manager_timeout instead
|
|
172
|
+
*/
|
|
145
173
|
master_timeout?: string;
|
|
146
174
|
h?: string | string[];
|
|
147
175
|
help?: boolean;
|
|
@@ -154,6 +182,10 @@ export interface CatNodes extends Generic {
|
|
|
154
182
|
format?: string;
|
|
155
183
|
full_id?: boolean;
|
|
156
184
|
local?: boolean;
|
|
185
|
+
cluster_manager_timeout?: string;
|
|
186
|
+
/**
|
|
187
|
+
* @deprecated use cluster_manager_timeout instead
|
|
188
|
+
*/
|
|
157
189
|
master_timeout?: string;
|
|
158
190
|
h?: string | string[];
|
|
159
191
|
help?: boolean;
|
|
@@ -166,6 +198,10 @@ export interface CatNodes extends Generic {
|
|
|
166
198
|
export interface CatPendingTasks extends Generic {
|
|
167
199
|
format?: string;
|
|
168
200
|
local?: boolean;
|
|
201
|
+
cluster_manager_timeout?: string;
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated use cluster_manager_timeout instead
|
|
204
|
+
*/
|
|
169
205
|
master_timeout?: string;
|
|
170
206
|
h?: string | string[];
|
|
171
207
|
help?: boolean;
|
|
@@ -177,6 +213,10 @@ export interface CatPendingTasks extends Generic {
|
|
|
177
213
|
export interface CatPlugins extends Generic {
|
|
178
214
|
format?: string;
|
|
179
215
|
local?: boolean;
|
|
216
|
+
cluster_manager_timeout?: string;
|
|
217
|
+
/**
|
|
218
|
+
* @deprecated use cluster_manager_timeout instead
|
|
219
|
+
*/
|
|
180
220
|
master_timeout?: string;
|
|
181
221
|
h?: string | string[];
|
|
182
222
|
help?: boolean;
|
|
@@ -201,6 +241,10 @@ export interface CatRecovery extends Generic {
|
|
|
201
241
|
export interface CatRepositories extends Generic {
|
|
202
242
|
format?: string;
|
|
203
243
|
local?: boolean;
|
|
244
|
+
cluster_manager_timeout?: string;
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated use cluster_manager_timeout instead
|
|
247
|
+
*/
|
|
204
248
|
master_timeout?: string;
|
|
205
249
|
h?: string | string[];
|
|
206
250
|
help?: boolean;
|
|
@@ -223,6 +267,10 @@ export interface CatShards extends Generic {
|
|
|
223
267
|
format?: string;
|
|
224
268
|
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
|
|
225
269
|
local?: boolean;
|
|
270
|
+
cluster_manager_timeout?: string;
|
|
271
|
+
/**
|
|
272
|
+
* @deprecated use cluster_manager_timeout instead
|
|
273
|
+
*/
|
|
226
274
|
master_timeout?: string;
|
|
227
275
|
h?: string | string[];
|
|
228
276
|
help?: boolean;
|
|
@@ -235,6 +283,10 @@ export interface CatSnapshots extends Generic {
|
|
|
235
283
|
repository?: string | string[];
|
|
236
284
|
format?: string;
|
|
237
285
|
ignore_unavailable?: boolean;
|
|
286
|
+
cluster_manager_timeout?: string;
|
|
287
|
+
/**
|
|
288
|
+
* @deprecated use cluster_manager_timeout instead
|
|
289
|
+
*/
|
|
238
290
|
master_timeout?: string;
|
|
239
291
|
h?: string | string[];
|
|
240
292
|
help?: boolean;
|
|
@@ -260,6 +312,10 @@ export interface CatTemplates extends Generic {
|
|
|
260
312
|
name?: string;
|
|
261
313
|
format?: string;
|
|
262
314
|
local?: boolean;
|
|
315
|
+
cluster_manager_timeout?: string;
|
|
316
|
+
/**
|
|
317
|
+
* @deprecated use cluster_manager_timeout instead
|
|
318
|
+
*/
|
|
263
319
|
master_timeout?: string;
|
|
264
320
|
h?: string | string[];
|
|
265
321
|
help?: boolean;
|
|
@@ -272,6 +328,10 @@ export interface CatThreadPool extends Generic {
|
|
|
272
328
|
format?: string;
|
|
273
329
|
size?: '' | 'k' | 'm' | 'g' | 't' | 'p';
|
|
274
330
|
local?: boolean;
|
|
331
|
+
cluster_manager_timeout?: string;
|
|
332
|
+
/**
|
|
333
|
+
* @deprecated use cluster_manager_timeout instead
|
|
334
|
+
*/
|
|
275
335
|
master_timeout?: string;
|
|
276
336
|
h?: string | string[];
|
|
277
337
|
help?: boolean;
|
|
@@ -293,6 +353,10 @@ export interface ClusterAllocationExplain<T = RequestBody> extends Generic {
|
|
|
293
353
|
export interface ClusterDeleteComponentTemplate extends Generic {
|
|
294
354
|
name: string;
|
|
295
355
|
timeout?: string;
|
|
356
|
+
cluster_manager_timeout?: string;
|
|
357
|
+
/**
|
|
358
|
+
* @deprecated use cluster_manager_timeout instead
|
|
359
|
+
*/
|
|
296
360
|
master_timeout?: string;
|
|
297
361
|
}
|
|
298
362
|
|
|
@@ -302,18 +366,30 @@ export interface ClusterDeleteVotingConfigExclusions extends Generic {
|
|
|
302
366
|
|
|
303
367
|
export interface ClusterExistsComponentTemplate extends Generic {
|
|
304
368
|
name: string;
|
|
369
|
+
cluster_manager_timeout?: string;
|
|
370
|
+
/**
|
|
371
|
+
* @deprecated use cluster_manager_timeout instead
|
|
372
|
+
*/
|
|
305
373
|
master_timeout?: string;
|
|
306
374
|
local?: boolean;
|
|
307
375
|
}
|
|
308
376
|
|
|
309
377
|
export interface ClusterGetComponentTemplate extends Generic {
|
|
310
378
|
name?: string | string[];
|
|
379
|
+
cluster_manager_timeout?: string;
|
|
380
|
+
/**
|
|
381
|
+
* @deprecated use cluster_manager_timeout instead
|
|
382
|
+
*/
|
|
311
383
|
master_timeout?: string;
|
|
312
384
|
local?: boolean;
|
|
313
385
|
}
|
|
314
386
|
|
|
315
387
|
export interface ClusterGetSettings extends Generic {
|
|
316
388
|
flat_settings?: boolean;
|
|
389
|
+
cluster_manager_timeout?: string;
|
|
390
|
+
/**
|
|
391
|
+
* @deprecated use cluster_manager_timeout instead
|
|
392
|
+
*/
|
|
317
393
|
master_timeout?: string;
|
|
318
394
|
timeout?: string;
|
|
319
395
|
include_defaults?: boolean;
|
|
@@ -324,6 +400,10 @@ export interface ClusterHealth extends Generic {
|
|
|
324
400
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
325
401
|
level?: 'cluster' | 'indices' | 'shards';
|
|
326
402
|
local?: boolean;
|
|
403
|
+
cluster_manager_timeout?: string;
|
|
404
|
+
/**
|
|
405
|
+
* @deprecated use cluster_manager_timeout instead
|
|
406
|
+
*/
|
|
327
407
|
master_timeout?: string;
|
|
328
408
|
timeout?: string;
|
|
329
409
|
wait_for_active_shards?: string;
|
|
@@ -336,6 +416,10 @@ export interface ClusterHealth extends Generic {
|
|
|
336
416
|
|
|
337
417
|
export interface ClusterPendingTasks extends Generic {
|
|
338
418
|
local?: boolean;
|
|
419
|
+
cluster_manager_timeout?: string;
|
|
420
|
+
/**
|
|
421
|
+
* @deprecated use cluster_manager_timeout instead
|
|
422
|
+
*/
|
|
339
423
|
master_timeout?: string;
|
|
340
424
|
}
|
|
341
425
|
|
|
@@ -349,25 +433,36 @@ export interface ClusterPutComponentTemplate<T = RequestBody> extends Generic {
|
|
|
349
433
|
name: string;
|
|
350
434
|
create?: boolean;
|
|
351
435
|
timeout?: string;
|
|
436
|
+
cluster_manager_timeout?: string;
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated use cluster_manager_timeout instead
|
|
439
|
+
*/
|
|
352
440
|
master_timeout?: string;
|
|
353
441
|
body: T;
|
|
354
442
|
}
|
|
355
443
|
|
|
356
444
|
export interface ClusterPutSettings<T = RequestBody> extends Generic {
|
|
357
445
|
flat_settings?: boolean;
|
|
446
|
+
cluster_manager_timeout?: string;
|
|
447
|
+
/**
|
|
448
|
+
* @deprecated use cluster_manager_timeout instead
|
|
449
|
+
*/
|
|
358
450
|
master_timeout?: string;
|
|
359
451
|
timeout?: string;
|
|
360
452
|
body: T;
|
|
361
453
|
}
|
|
362
454
|
|
|
363
|
-
export interface ClusterRemoteInfo extends Generic {
|
|
364
|
-
}
|
|
455
|
+
export interface ClusterRemoteInfo extends Generic { }
|
|
365
456
|
|
|
366
457
|
export interface ClusterReroute<T = RequestBody> extends Generic {
|
|
367
458
|
dry_run?: boolean;
|
|
368
459
|
explain?: boolean;
|
|
369
460
|
retry_failed?: boolean;
|
|
370
461
|
metric?: string | string[];
|
|
462
|
+
cluster_manager_timeout?: string;
|
|
463
|
+
/**
|
|
464
|
+
* @deprecated use cluster_manager_timeout instead
|
|
465
|
+
*/
|
|
371
466
|
master_timeout?: string;
|
|
372
467
|
timeout?: string;
|
|
373
468
|
body?: T;
|
|
@@ -377,6 +472,10 @@ export interface ClusterState extends Generic {
|
|
|
377
472
|
index?: string | string[];
|
|
378
473
|
metric?: string | string[];
|
|
379
474
|
local?: boolean;
|
|
475
|
+
cluster_manager_timeout?: string;
|
|
476
|
+
/**
|
|
477
|
+
* @deprecated use cluster_manager_timeout instead
|
|
478
|
+
*/
|
|
380
479
|
master_timeout?: string;
|
|
381
480
|
flat_settings?: boolean;
|
|
382
481
|
wait_for_metadata_version?: number;
|
|
@@ -394,7 +493,6 @@ export interface ClusterStats extends Generic {
|
|
|
394
493
|
|
|
395
494
|
export interface Count<T = RequestBody> extends Generic {
|
|
396
495
|
index?: string | string[];
|
|
397
|
-
type?: string | string[];
|
|
398
496
|
ignore_unavailable?: boolean;
|
|
399
497
|
ignore_throttled?: boolean;
|
|
400
498
|
allow_no_indices?: boolean;
|
|
@@ -415,7 +513,6 @@ export interface Count<T = RequestBody> extends Generic {
|
|
|
415
513
|
export interface Create<T = RequestBody> extends Generic {
|
|
416
514
|
id: string;
|
|
417
515
|
index: string;
|
|
418
|
-
type?: string;
|
|
419
516
|
wait_for_active_shards?: string;
|
|
420
517
|
refresh?: 'wait_for' | boolean;
|
|
421
518
|
routing?: string;
|
|
@@ -430,6 +527,10 @@ export interface DanglingIndicesDeleteDanglingIndex extends Generic {
|
|
|
430
527
|
index_uuid: string;
|
|
431
528
|
accept_data_loss?: boolean;
|
|
432
529
|
timeout?: string;
|
|
530
|
+
cluster_manager_timeout?: string;
|
|
531
|
+
/**
|
|
532
|
+
* @deprecated use cluster_manager_timeout instead
|
|
533
|
+
*/
|
|
433
534
|
master_timeout?: string;
|
|
434
535
|
}
|
|
435
536
|
|
|
@@ -437,16 +538,18 @@ export interface DanglingIndicesImportDanglingIndex extends Generic {
|
|
|
437
538
|
index_uuid: string;
|
|
438
539
|
accept_data_loss?: boolean;
|
|
439
540
|
timeout?: string;
|
|
541
|
+
cluster_manager_timeout?: string;
|
|
542
|
+
/**
|
|
543
|
+
* @deprecated use cluster_manager_timeout instead
|
|
544
|
+
*/
|
|
440
545
|
master_timeout?: string;
|
|
441
546
|
}
|
|
442
547
|
|
|
443
|
-
export interface DanglingIndicesListDanglingIndices extends Generic {
|
|
444
|
-
}
|
|
548
|
+
export interface DanglingIndicesListDanglingIndices extends Generic { }
|
|
445
549
|
|
|
446
550
|
export interface Delete extends Generic {
|
|
447
551
|
id: string;
|
|
448
552
|
index: string;
|
|
449
|
-
type?: string;
|
|
450
553
|
wait_for_active_shards?: string;
|
|
451
554
|
refresh?: 'wait_for' | boolean;
|
|
452
555
|
routing?: string;
|
|
@@ -459,7 +562,6 @@ export interface Delete extends Generic {
|
|
|
459
562
|
|
|
460
563
|
export interface DeleteByQuery<T = RequestBody> extends Generic {
|
|
461
564
|
index: string | string[];
|
|
462
|
-
type?: string | string[];
|
|
463
565
|
_source_exclude?: string | string[];
|
|
464
566
|
_source_include?: string | string[];
|
|
465
567
|
analyzer?: string;
|
|
@@ -506,13 +608,16 @@ export interface DeleteByQueryRethrottle extends Generic {
|
|
|
506
608
|
export interface DeleteScript extends Generic {
|
|
507
609
|
id: string;
|
|
508
610
|
timeout?: string;
|
|
611
|
+
cluster_manager_timeout?: string;
|
|
612
|
+
/**
|
|
613
|
+
* @deprecated use cluster_manager_timeout instead
|
|
614
|
+
*/
|
|
509
615
|
master_timeout?: string;
|
|
510
616
|
}
|
|
511
617
|
|
|
512
618
|
export interface Exists extends Generic {
|
|
513
619
|
id: string;
|
|
514
620
|
index: string;
|
|
515
|
-
type?: string;
|
|
516
621
|
_source_exclude?: string | string[];
|
|
517
622
|
_source_include?: string | string[];
|
|
518
623
|
stored_fields?: string | string[];
|
|
@@ -530,7 +635,6 @@ export interface Exists extends Generic {
|
|
|
530
635
|
export interface ExistsSource extends Generic {
|
|
531
636
|
id: string;
|
|
532
637
|
index: string;
|
|
533
|
-
type?: string;
|
|
534
638
|
_source_exclude?: string | string[];
|
|
535
639
|
_source_include?: string | string[];
|
|
536
640
|
preference?: string;
|
|
@@ -547,7 +651,6 @@ export interface ExistsSource extends Generic {
|
|
|
547
651
|
export interface Explain<T = RequestBody> extends Generic {
|
|
548
652
|
id: string;
|
|
549
653
|
index: string;
|
|
550
|
-
type?: string;
|
|
551
654
|
_source_exclude?: string | string[];
|
|
552
655
|
_source_include?: string | string[];
|
|
553
656
|
analyze_wildcard?: boolean;
|
|
@@ -566,11 +669,14 @@ export interface Explain<T = RequestBody> extends Generic {
|
|
|
566
669
|
}
|
|
567
670
|
|
|
568
671
|
export interface FeaturesGetFeatures extends Generic {
|
|
672
|
+
cluster_manager_timeout?: string;
|
|
673
|
+
/**
|
|
674
|
+
* @deprecated use cluster_manager_timeout instead
|
|
675
|
+
*/
|
|
569
676
|
master_timeout?: string;
|
|
570
677
|
}
|
|
571
678
|
|
|
572
|
-
export interface FeaturesResetFeatures extends Generic {
|
|
573
|
-
}
|
|
679
|
+
export interface FeaturesResetFeatures extends Generic { }
|
|
574
680
|
|
|
575
681
|
export interface FieldCaps<T = RequestBody> extends Generic {
|
|
576
682
|
index?: string | string[];
|
|
@@ -585,7 +691,6 @@ export interface FieldCaps<T = RequestBody> extends Generic {
|
|
|
585
691
|
export interface Get extends Generic {
|
|
586
692
|
id: string;
|
|
587
693
|
index: string;
|
|
588
|
-
type?: string;
|
|
589
694
|
_source_exclude?: string | string[];
|
|
590
695
|
_source_include?: string | string[];
|
|
591
696
|
stored_fields?: string | string[];
|
|
@@ -602,19 +707,20 @@ export interface Get extends Generic {
|
|
|
602
707
|
|
|
603
708
|
export interface GetScript extends Generic {
|
|
604
709
|
id: string;
|
|
710
|
+
cluster_manager_timeout?: string;
|
|
711
|
+
/**
|
|
712
|
+
* @deprecated use cluster_manager_timeout instead
|
|
713
|
+
*/
|
|
605
714
|
master_timeout?: string;
|
|
606
715
|
}
|
|
607
716
|
|
|
608
|
-
export interface GetScriptContext extends Generic {
|
|
609
|
-
}
|
|
717
|
+
export interface GetScriptContext extends Generic { }
|
|
610
718
|
|
|
611
|
-
export interface GetScriptLanguages extends Generic {
|
|
612
|
-
}
|
|
719
|
+
export interface GetScriptLanguages extends Generic { }
|
|
613
720
|
|
|
614
721
|
export interface GetSource extends Generic {
|
|
615
722
|
id: string;
|
|
616
723
|
index: string;
|
|
617
|
-
type?: string;
|
|
618
724
|
_source_exclude?: string | string[];
|
|
619
725
|
_source_include?: string | string[];
|
|
620
726
|
preference?: string;
|
|
@@ -631,7 +737,6 @@ export interface GetSource extends Generic {
|
|
|
631
737
|
export interface Index<T = RequestBody> extends Generic {
|
|
632
738
|
id?: string;
|
|
633
739
|
index: string;
|
|
634
|
-
type?: string;
|
|
635
740
|
wait_for_active_shards?: string;
|
|
636
741
|
op_type?: 'index' | 'create';
|
|
637
742
|
refresh?: 'wait_for' | boolean;
|
|
@@ -650,6 +755,10 @@ export interface IndicesAddBlock extends Generic {
|
|
|
650
755
|
index: string | string[];
|
|
651
756
|
block: string;
|
|
652
757
|
timeout?: string;
|
|
758
|
+
cluster_manager_timeout?: string;
|
|
759
|
+
/**
|
|
760
|
+
* @deprecated use cluster_manager_timeout instead
|
|
761
|
+
*/
|
|
653
762
|
master_timeout?: string;
|
|
654
763
|
ignore_unavailable?: boolean;
|
|
655
764
|
allow_no_indices?: boolean;
|
|
@@ -676,6 +785,10 @@ export interface IndicesClone<T = RequestBody> extends Generic {
|
|
|
676
785
|
index: string;
|
|
677
786
|
target: string;
|
|
678
787
|
timeout?: string;
|
|
788
|
+
cluster_manager_timeout?: string;
|
|
789
|
+
/**
|
|
790
|
+
* @deprecated use cluster_manager_timeout instead
|
|
791
|
+
*/
|
|
679
792
|
master_timeout?: string;
|
|
680
793
|
wait_for_active_shards?: string;
|
|
681
794
|
body?: T;
|
|
@@ -684,6 +797,10 @@ export interface IndicesClone<T = RequestBody> extends Generic {
|
|
|
684
797
|
export interface IndicesClose extends Generic {
|
|
685
798
|
index: string | string[];
|
|
686
799
|
timeout?: string;
|
|
800
|
+
cluster_manager_timeout?: string;
|
|
801
|
+
/**
|
|
802
|
+
* @deprecated use cluster_manager_timeout instead
|
|
803
|
+
*/
|
|
687
804
|
master_timeout?: string;
|
|
688
805
|
ignore_unavailable?: boolean;
|
|
689
806
|
allow_no_indices?: boolean;
|
|
@@ -693,9 +810,12 @@ export interface IndicesClose extends Generic {
|
|
|
693
810
|
|
|
694
811
|
export interface IndicesCreate<T = RequestBody> extends Generic {
|
|
695
812
|
index: string;
|
|
696
|
-
include_type_name?: boolean;
|
|
697
813
|
wait_for_active_shards?: string;
|
|
698
814
|
timeout?: string;
|
|
815
|
+
cluster_manager_timeout?: string;
|
|
816
|
+
/**
|
|
817
|
+
* @deprecated use cluster_manager_timeout instead
|
|
818
|
+
*/
|
|
699
819
|
master_timeout?: string;
|
|
700
820
|
body?: T;
|
|
701
821
|
}
|
|
@@ -703,6 +823,10 @@ export interface IndicesCreate<T = RequestBody> extends Generic {
|
|
|
703
823
|
export interface IndicesDelete extends Generic {
|
|
704
824
|
index: string | string[];
|
|
705
825
|
timeout?: string;
|
|
826
|
+
cluster_manager_timeout?: string;
|
|
827
|
+
/**
|
|
828
|
+
* @deprecated use cluster_manager_timeout instead
|
|
829
|
+
*/
|
|
706
830
|
master_timeout?: string;
|
|
707
831
|
ignore_unavailable?: boolean;
|
|
708
832
|
allow_no_indices?: boolean;
|
|
@@ -713,17 +837,30 @@ export interface IndicesDeleteAlias extends Generic {
|
|
|
713
837
|
index: string | string[];
|
|
714
838
|
name: string | string[];
|
|
715
839
|
timeout?: string;
|
|
840
|
+
cluster_manager_timeout?: string;
|
|
841
|
+
/**
|
|
842
|
+
* @deprecated use cluster_manager_timeout instead
|
|
843
|
+
*/
|
|
716
844
|
master_timeout?: string;
|
|
717
845
|
}
|
|
846
|
+
|
|
718
847
|
export interface IndicesDeleteIndexTemplate extends Generic {
|
|
719
848
|
name: string;
|
|
720
849
|
timeout?: string;
|
|
850
|
+
cluster_manager_timeout?: string;
|
|
851
|
+
/**
|
|
852
|
+
* @deprecated use cluster_manager_timeout instead
|
|
853
|
+
*/
|
|
721
854
|
master_timeout?: string;
|
|
722
855
|
}
|
|
723
856
|
|
|
724
857
|
export interface IndicesDeleteTemplate extends Generic {
|
|
725
858
|
name: string;
|
|
726
859
|
timeout?: string;
|
|
860
|
+
cluster_manager_timeout?: string;
|
|
861
|
+
/**
|
|
862
|
+
* @deprecated use cluster_manager_timeout instead
|
|
863
|
+
*/
|
|
727
864
|
master_timeout?: string;
|
|
728
865
|
}
|
|
729
866
|
|
|
@@ -758,6 +895,10 @@ export interface IndicesExistsAlias extends Generic {
|
|
|
758
895
|
export interface IndicesExistsIndexTemplate extends Generic {
|
|
759
896
|
name: string;
|
|
760
897
|
flat_settings?: boolean;
|
|
898
|
+
cluster_manager_timeout?: string;
|
|
899
|
+
/**
|
|
900
|
+
* @deprecated use cluster_manager_timeout instead
|
|
901
|
+
*/
|
|
761
902
|
master_timeout?: string;
|
|
762
903
|
local?: boolean;
|
|
763
904
|
}
|
|
@@ -765,19 +906,14 @@ export interface IndicesExistsIndexTemplate extends Generic {
|
|
|
765
906
|
export interface IndicesExistsTemplate extends Generic {
|
|
766
907
|
name: string | string[];
|
|
767
908
|
flat_settings?: boolean;
|
|
909
|
+
cluster_manager_timeout?: string;
|
|
910
|
+
/**
|
|
911
|
+
* @deprecated use cluster_manager_timeout instead
|
|
912
|
+
*/
|
|
768
913
|
master_timeout?: string;
|
|
769
914
|
local?: boolean;
|
|
770
915
|
}
|
|
771
916
|
|
|
772
|
-
export interface IndicesExistsType extends Generic {
|
|
773
|
-
index: string | string[];
|
|
774
|
-
type: string | string[];
|
|
775
|
-
ignore_unavailable?: boolean;
|
|
776
|
-
allow_no_indices?: boolean;
|
|
777
|
-
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
778
|
-
local?: boolean;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
917
|
export interface IndicesFieldUsageStats extends Generic {
|
|
782
918
|
index: string;
|
|
783
919
|
fields?: string | string[];
|
|
@@ -795,13 +931,6 @@ export interface IndicesFlush extends Generic {
|
|
|
795
931
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
796
932
|
}
|
|
797
933
|
|
|
798
|
-
export interface IndicesFlushSynced extends Generic {
|
|
799
|
-
index?: string | string[];
|
|
800
|
-
ignore_unavailable?: boolean;
|
|
801
|
-
allow_no_indices?: boolean;
|
|
802
|
-
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
|
|
803
|
-
}
|
|
804
|
-
|
|
805
934
|
export interface IndicesForcemerge extends Generic {
|
|
806
935
|
index?: string | string[];
|
|
807
936
|
flush?: boolean;
|
|
@@ -814,13 +943,16 @@ export interface IndicesForcemerge extends Generic {
|
|
|
814
943
|
|
|
815
944
|
export interface IndicesGet extends Generic {
|
|
816
945
|
index: string | string[];
|
|
817
|
-
include_type_name?: boolean;
|
|
818
946
|
local?: boolean;
|
|
819
947
|
ignore_unavailable?: boolean;
|
|
820
948
|
allow_no_indices?: boolean;
|
|
821
949
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
822
950
|
flat_settings?: boolean;
|
|
823
951
|
include_defaults?: boolean;
|
|
952
|
+
cluster_manager_timeout?: string;
|
|
953
|
+
/**
|
|
954
|
+
* @deprecated use cluster_manager_timeout instead
|
|
955
|
+
*/
|
|
824
956
|
master_timeout?: string;
|
|
825
957
|
}
|
|
826
958
|
|
|
@@ -836,8 +968,6 @@ export interface IndicesGetAlias extends Generic {
|
|
|
836
968
|
export interface IndicesGetFieldMapping extends Generic {
|
|
837
969
|
fields: string | string[];
|
|
838
970
|
index?: string | string[];
|
|
839
|
-
type?: string | string[];
|
|
840
|
-
include_type_name?: boolean;
|
|
841
971
|
include_defaults?: boolean;
|
|
842
972
|
ignore_unavailable?: boolean;
|
|
843
973
|
allow_no_indices?: boolean;
|
|
@@ -848,17 +978,23 @@ export interface IndicesGetFieldMapping extends Generic {
|
|
|
848
978
|
export interface IndicesGetIndexTemplate extends Generic {
|
|
849
979
|
name?: string | string[];
|
|
850
980
|
flat_settings?: boolean;
|
|
981
|
+
cluster_manager_timeout?: string;
|
|
982
|
+
/**
|
|
983
|
+
* @deprecated use cluster_manager_timeout instead
|
|
984
|
+
*/
|
|
851
985
|
master_timeout?: string;
|
|
852
986
|
local?: boolean;
|
|
853
987
|
}
|
|
854
988
|
|
|
855
989
|
export interface IndicesGetMapping extends Generic {
|
|
856
990
|
index?: string | string[];
|
|
857
|
-
type?: string | string[];
|
|
858
|
-
include_type_name?: boolean;
|
|
859
991
|
ignore_unavailable?: boolean;
|
|
860
992
|
allow_no_indices?: boolean;
|
|
861
993
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
994
|
+
cluster_manager_timeout?: string;
|
|
995
|
+
/**
|
|
996
|
+
* @deprecated use cluster_manager_timeout instead
|
|
997
|
+
*/
|
|
862
998
|
master_timeout?: string;
|
|
863
999
|
local?: boolean;
|
|
864
1000
|
}
|
|
@@ -866,6 +1002,10 @@ export interface IndicesGetMapping extends Generic {
|
|
|
866
1002
|
export interface IndicesGetSettings extends Generic {
|
|
867
1003
|
index?: string | string[];
|
|
868
1004
|
name?: string | string[];
|
|
1005
|
+
cluster_manager_timeout?: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1008
|
+
*/
|
|
869
1009
|
master_timeout?: string;
|
|
870
1010
|
ignore_unavailable?: boolean;
|
|
871
1011
|
allow_no_indices?: boolean;
|
|
@@ -877,8 +1017,11 @@ export interface IndicesGetSettings extends Generic {
|
|
|
877
1017
|
|
|
878
1018
|
export interface IndicesGetTemplate extends Generic {
|
|
879
1019
|
name?: string | string[];
|
|
880
|
-
include_type_name?: boolean;
|
|
881
1020
|
flat_settings?: boolean;
|
|
1021
|
+
cluster_manager_timeout?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1024
|
+
*/
|
|
882
1025
|
master_timeout?: string;
|
|
883
1026
|
local?: boolean;
|
|
884
1027
|
}
|
|
@@ -890,10 +1033,13 @@ export interface IndicesGetUpgrade extends Generic {
|
|
|
890
1033
|
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
891
1034
|
}
|
|
892
1035
|
|
|
893
|
-
|
|
894
1036
|
export interface IndicesOpen extends Generic {
|
|
895
1037
|
index: string | string[];
|
|
896
1038
|
timeout?: string;
|
|
1039
|
+
cluster_manager_timeout?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1042
|
+
*/
|
|
897
1043
|
master_timeout?: string;
|
|
898
1044
|
ignore_unavailable?: boolean;
|
|
899
1045
|
allow_no_indices?: boolean;
|
|
@@ -905,6 +1051,10 @@ export interface IndicesPutAlias<T = RequestBody> extends Generic {
|
|
|
905
1051
|
index: string | string[];
|
|
906
1052
|
name: string;
|
|
907
1053
|
timeout?: string;
|
|
1054
|
+
cluster_manager_timeout?: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1057
|
+
*/
|
|
908
1058
|
master_timeout?: string;
|
|
909
1059
|
body?: T;
|
|
910
1060
|
}
|
|
@@ -913,15 +1063,21 @@ export interface IndicesPutIndexTemplate<T = RequestBody> extends Generic {
|
|
|
913
1063
|
name: string;
|
|
914
1064
|
create?: boolean;
|
|
915
1065
|
cause?: string;
|
|
1066
|
+
cluster_manager_timeout?: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1069
|
+
*/
|
|
916
1070
|
master_timeout?: string;
|
|
917
1071
|
body: T;
|
|
918
1072
|
}
|
|
919
1073
|
|
|
920
1074
|
export interface IndicesPutMapping<T = RequestBody> extends Generic {
|
|
921
1075
|
index?: string | string[];
|
|
922
|
-
type?: string;
|
|
923
|
-
include_type_name?: boolean;
|
|
924
1076
|
timeout?: string;
|
|
1077
|
+
cluster_manager_timeout?: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1080
|
+
*/
|
|
925
1081
|
master_timeout?: string;
|
|
926
1082
|
ignore_unavailable?: boolean;
|
|
927
1083
|
allow_no_indices?: boolean;
|
|
@@ -932,6 +1088,10 @@ export interface IndicesPutMapping<T = RequestBody> extends Generic {
|
|
|
932
1088
|
|
|
933
1089
|
export interface IndicesPutSettings<T = RequestBody> extends Generic {
|
|
934
1090
|
index?: string | string[];
|
|
1091
|
+
cluster_manager_timeout?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1094
|
+
*/
|
|
935
1095
|
master_timeout?: string;
|
|
936
1096
|
timeout?: string;
|
|
937
1097
|
preserve_existing?: boolean;
|
|
@@ -944,9 +1104,12 @@ export interface IndicesPutSettings<T = RequestBody> extends Generic {
|
|
|
944
1104
|
|
|
945
1105
|
export interface IndicesPutTemplate<T = RequestBody> extends Generic {
|
|
946
1106
|
name: string;
|
|
947
|
-
include_type_name?: boolean;
|
|
948
1107
|
order?: number;
|
|
949
1108
|
create?: boolean;
|
|
1109
|
+
cluster_manager_timeout?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1112
|
+
*/
|
|
950
1113
|
master_timeout?: string;
|
|
951
1114
|
body: T;
|
|
952
1115
|
}
|
|
@@ -972,9 +1135,12 @@ export interface IndicesResolveIndex extends Generic {
|
|
|
972
1135
|
export interface IndicesRollover<T = RequestBody> extends Generic {
|
|
973
1136
|
alias: string;
|
|
974
1137
|
new_index?: string;
|
|
975
|
-
include_type_name?: boolean;
|
|
976
1138
|
timeout?: string;
|
|
977
1139
|
dry_run?: boolean;
|
|
1140
|
+
cluster_manager_timeout?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1143
|
+
*/
|
|
978
1144
|
master_timeout?: string;
|
|
979
1145
|
wait_for_active_shards?: string;
|
|
980
1146
|
body?: T;
|
|
@@ -1001,6 +1167,10 @@ export interface IndicesShrink<T = RequestBody> extends Generic {
|
|
|
1001
1167
|
target: string;
|
|
1002
1168
|
copy_settings?: boolean;
|
|
1003
1169
|
timeout?: string;
|
|
1170
|
+
cluster_manager_timeout?: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1173
|
+
*/
|
|
1004
1174
|
master_timeout?: string;
|
|
1005
1175
|
wait_for_active_shards?: string;
|
|
1006
1176
|
body?: T;
|
|
@@ -1010,6 +1180,10 @@ export interface IndicesSimulateIndexTemplate<T = RequestBody> extends Generic {
|
|
|
1010
1180
|
name: string;
|
|
1011
1181
|
create?: boolean;
|
|
1012
1182
|
cause?: string;
|
|
1183
|
+
cluster_manager_timeout?: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1186
|
+
*/
|
|
1013
1187
|
master_timeout?: string;
|
|
1014
1188
|
body?: T;
|
|
1015
1189
|
}
|
|
@@ -1018,6 +1192,10 @@ export interface IndicesSimulateTemplate<T = RequestBody> extends Generic {
|
|
|
1018
1192
|
name?: string;
|
|
1019
1193
|
create?: boolean;
|
|
1020
1194
|
cause?: string;
|
|
1195
|
+
cluster_manager_timeout?: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1198
|
+
*/
|
|
1021
1199
|
master_timeout?: string;
|
|
1022
1200
|
body?: T;
|
|
1023
1201
|
}
|
|
@@ -1027,6 +1205,10 @@ export interface IndicesSplit<T = RequestBody> extends Generic {
|
|
|
1027
1205
|
target: string;
|
|
1028
1206
|
copy_settings?: boolean;
|
|
1029
1207
|
timeout?: string;
|
|
1208
|
+
cluster_manager_timeout?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1211
|
+
*/
|
|
1030
1212
|
master_timeout?: string;
|
|
1031
1213
|
wait_for_active_shards?: string;
|
|
1032
1214
|
body?: T;
|
|
@@ -1049,6 +1231,10 @@ export interface IndicesStats extends Generic {
|
|
|
1049
1231
|
|
|
1050
1232
|
export interface IndicesUpdateAliases<T = RequestBody> extends Generic {
|
|
1051
1233
|
timeout?: string;
|
|
1234
|
+
cluster_manager_timeout?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1237
|
+
*/
|
|
1052
1238
|
master_timeout?: string;
|
|
1053
1239
|
body: T;
|
|
1054
1240
|
}
|
|
@@ -1064,7 +1250,6 @@ export interface IndicesUpgrade extends Generic {
|
|
|
1064
1250
|
|
|
1065
1251
|
export interface IndicesValidateQuery<T = RequestBody> extends Generic {
|
|
1066
1252
|
index?: string | string[];
|
|
1067
|
-
type?: string | string[];
|
|
1068
1253
|
explain?: boolean;
|
|
1069
1254
|
ignore_unavailable?: boolean;
|
|
1070
1255
|
allow_no_indices?: boolean;
|
|
@@ -1080,29 +1265,38 @@ export interface IndicesValidateQuery<T = RequestBody> extends Generic {
|
|
|
1080
1265
|
body?: T;
|
|
1081
1266
|
}
|
|
1082
1267
|
|
|
1083
|
-
export interface Info extends Generic {
|
|
1084
|
-
}
|
|
1268
|
+
export interface Info extends Generic { }
|
|
1085
1269
|
|
|
1086
1270
|
export interface IngestDeletePipeline extends Generic {
|
|
1087
1271
|
id: string;
|
|
1272
|
+
cluster_manager_timeout?: string;
|
|
1273
|
+
/**
|
|
1274
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1275
|
+
*/
|
|
1088
1276
|
master_timeout?: string;
|
|
1089
1277
|
timeout?: string;
|
|
1090
1278
|
}
|
|
1091
1279
|
|
|
1092
|
-
export interface IngestGeoIpStats extends Generic {
|
|
1093
|
-
}
|
|
1280
|
+
export interface IngestGeoIpStats extends Generic { }
|
|
1094
1281
|
|
|
1095
1282
|
export interface IngestGetPipeline extends Generic {
|
|
1096
1283
|
id?: string;
|
|
1097
1284
|
summary?: boolean;
|
|
1285
|
+
cluster_manager_timeout?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1288
|
+
*/
|
|
1098
1289
|
master_timeout?: string;
|
|
1099
1290
|
}
|
|
1100
1291
|
|
|
1101
|
-
export interface IngestProcessorGrok extends Generic {
|
|
1102
|
-
}
|
|
1292
|
+
export interface IngestProcessorGrok extends Generic { }
|
|
1103
1293
|
|
|
1104
1294
|
export interface IngestPutPipeline<T = RequestBody> extends Generic {
|
|
1105
1295
|
id: string;
|
|
1296
|
+
cluster_manager_timeout?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1299
|
+
*/
|
|
1106
1300
|
master_timeout?: string;
|
|
1107
1301
|
timeout?: string;
|
|
1108
1302
|
body: T;
|
|
@@ -1116,7 +1310,6 @@ export interface IngestSimulate<T = RequestBody> extends Generic {
|
|
|
1116
1310
|
|
|
1117
1311
|
export interface Mget<T = RequestBody> extends Generic {
|
|
1118
1312
|
index?: string;
|
|
1119
|
-
type?: string;
|
|
1120
1313
|
_source_exclude?: string | string[];
|
|
1121
1314
|
_source_include?: string | string[];
|
|
1122
1315
|
stored_fields?: string | string[];
|
|
@@ -1132,7 +1325,6 @@ export interface Mget<T = RequestBody> extends Generic {
|
|
|
1132
1325
|
|
|
1133
1326
|
export interface Msearch<T = RequestNDBody> extends Generic {
|
|
1134
1327
|
index?: string | string[];
|
|
1135
|
-
type?: string | string[];
|
|
1136
1328
|
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
|
|
1137
1329
|
max_concurrent_searches?: number;
|
|
1138
1330
|
typed_keys?: boolean;
|
|
@@ -1145,7 +1337,6 @@ export interface Msearch<T = RequestNDBody> extends Generic {
|
|
|
1145
1337
|
|
|
1146
1338
|
export interface MsearchTemplate<T = RequestNDBody> extends Generic {
|
|
1147
1339
|
index?: string | string[];
|
|
1148
|
-
type?: string | string[];
|
|
1149
1340
|
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
|
|
1150
1341
|
typed_keys?: boolean;
|
|
1151
1342
|
max_concurrent_searches?: number;
|
|
@@ -1156,7 +1347,6 @@ export interface MsearchTemplate<T = RequestNDBody> extends Generic {
|
|
|
1156
1347
|
|
|
1157
1348
|
export interface Mtermvectors<T = RequestBody> extends Generic {
|
|
1158
1349
|
index?: string;
|
|
1159
|
-
type?: string;
|
|
1160
1350
|
ids?: string | string[];
|
|
1161
1351
|
term_statistics?: boolean;
|
|
1162
1352
|
field_statistics?: boolean;
|
|
@@ -1225,13 +1415,16 @@ export interface NodesUsage extends Generic {
|
|
|
1225
1415
|
timeout?: string;
|
|
1226
1416
|
}
|
|
1227
1417
|
|
|
1228
|
-
export interface Ping extends Generic {
|
|
1229
|
-
}
|
|
1418
|
+
export interface Ping extends Generic { }
|
|
1230
1419
|
|
|
1231
1420
|
export interface PutScript<T = RequestBody> extends Generic {
|
|
1232
1421
|
id: string;
|
|
1233
1422
|
context?: string;
|
|
1234
1423
|
timeout?: string;
|
|
1424
|
+
cluster_manager_timeout?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1427
|
+
*/
|
|
1235
1428
|
master_timeout?: string;
|
|
1236
1429
|
body: T;
|
|
1237
1430
|
}
|
|
@@ -1280,7 +1473,6 @@ export interface Scroll<T = RequestBody> extends Generic {
|
|
|
1280
1473
|
|
|
1281
1474
|
export interface Search<T = RequestBody> extends Generic {
|
|
1282
1475
|
index?: string | string[];
|
|
1283
|
-
type?: string | string[];
|
|
1284
1476
|
_source_exclude?: string | string[];
|
|
1285
1477
|
_source_include?: string | string[];
|
|
1286
1478
|
analyzer?: string;
|
|
@@ -1341,7 +1533,6 @@ export interface SearchShards extends Generic {
|
|
|
1341
1533
|
|
|
1342
1534
|
export interface SearchTemplate<T = RequestBody> extends Generic {
|
|
1343
1535
|
index?: string | string[];
|
|
1344
|
-
type?: string | string[];
|
|
1345
1536
|
ignore_unavailable?: boolean;
|
|
1346
1537
|
ignore_throttled?: boolean;
|
|
1347
1538
|
allow_no_indices?: boolean;
|
|
@@ -1373,6 +1564,10 @@ export interface ShutdownPutNode<T = RequestBody> extends Generic {
|
|
|
1373
1564
|
|
|
1374
1565
|
export interface SnapshotCleanupRepository extends Generic {
|
|
1375
1566
|
repository: string;
|
|
1567
|
+
cluster_manager_timeout?: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1570
|
+
*/
|
|
1376
1571
|
master_timeout?: string;
|
|
1377
1572
|
timeout?: string;
|
|
1378
1573
|
}
|
|
@@ -1381,6 +1576,10 @@ export interface SnapshotClone<T = RequestBody> extends Generic {
|
|
|
1381
1576
|
repository: string;
|
|
1382
1577
|
snapshot: string;
|
|
1383
1578
|
target_snapshot: string;
|
|
1579
|
+
cluster_manager_timeout?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1582
|
+
*/
|
|
1384
1583
|
master_timeout?: string;
|
|
1385
1584
|
body: T;
|
|
1386
1585
|
}
|
|
@@ -1388,6 +1587,10 @@ export interface SnapshotClone<T = RequestBody> extends Generic {
|
|
|
1388
1587
|
export interface SnapshotCreate<T = RequestBody> extends Generic {
|
|
1389
1588
|
repository: string;
|
|
1390
1589
|
snapshot: string;
|
|
1590
|
+
cluster_manager_timeout?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1593
|
+
*/
|
|
1391
1594
|
master_timeout?: string;
|
|
1392
1595
|
wait_for_completion?: boolean;
|
|
1393
1596
|
body?: T;
|
|
@@ -1395,6 +1598,10 @@ export interface SnapshotCreate<T = RequestBody> extends Generic {
|
|
|
1395
1598
|
|
|
1396
1599
|
export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
|
|
1397
1600
|
repository: string;
|
|
1601
|
+
cluster_manager_timeout?: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1604
|
+
*/
|
|
1398
1605
|
master_timeout?: string;
|
|
1399
1606
|
timeout?: string;
|
|
1400
1607
|
verify?: boolean;
|
|
@@ -1404,11 +1611,19 @@ export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
|
|
|
1404
1611
|
export interface SnapshotDelete extends Generic {
|
|
1405
1612
|
repository: string;
|
|
1406
1613
|
snapshot: string;
|
|
1614
|
+
cluster_manager_timeout?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1617
|
+
*/
|
|
1407
1618
|
master_timeout?: string;
|
|
1408
1619
|
}
|
|
1409
1620
|
|
|
1410
1621
|
export interface SnapshotDeleteRepository extends Generic {
|
|
1411
1622
|
repository: string | string[];
|
|
1623
|
+
cluster_manager_timeout?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1626
|
+
*/
|
|
1412
1627
|
master_timeout?: string;
|
|
1413
1628
|
timeout?: string;
|
|
1414
1629
|
}
|
|
@@ -1416,6 +1631,10 @@ export interface SnapshotDeleteRepository extends Generic {
|
|
|
1416
1631
|
export interface SnapshotGet extends Generic {
|
|
1417
1632
|
repository: string;
|
|
1418
1633
|
snapshot: string | string[];
|
|
1634
|
+
cluster_manager_timeout?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1637
|
+
*/
|
|
1419
1638
|
master_timeout?: string;
|
|
1420
1639
|
ignore_unavailable?: boolean;
|
|
1421
1640
|
index_details?: boolean;
|
|
@@ -1425,6 +1644,10 @@ export interface SnapshotGet extends Generic {
|
|
|
1425
1644
|
|
|
1426
1645
|
export interface SnapshotGetRepository extends Generic {
|
|
1427
1646
|
repository?: string | string[];
|
|
1647
|
+
cluster_manager_timeout?: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1650
|
+
*/
|
|
1428
1651
|
master_timeout?: string;
|
|
1429
1652
|
local?: boolean;
|
|
1430
1653
|
}
|
|
@@ -1447,6 +1670,10 @@ export interface SnapshotRepositoryAnalyze extends Generic {
|
|
|
1447
1670
|
export interface SnapshotRestore<T = RequestBody> extends Generic {
|
|
1448
1671
|
repository: string;
|
|
1449
1672
|
snapshot: string;
|
|
1673
|
+
cluster_manager_timeout?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1676
|
+
*/
|
|
1450
1677
|
master_timeout?: string;
|
|
1451
1678
|
wait_for_completion?: boolean;
|
|
1452
1679
|
body?: T;
|
|
@@ -1455,12 +1682,20 @@ export interface SnapshotRestore<T = RequestBody> extends Generic {
|
|
|
1455
1682
|
export interface SnapshotStatus extends Generic {
|
|
1456
1683
|
repository?: string;
|
|
1457
1684
|
snapshot?: string | string[];
|
|
1685
|
+
cluster_manager_timeout?: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1688
|
+
*/
|
|
1458
1689
|
master_timeout?: string;
|
|
1459
1690
|
ignore_unavailable?: boolean;
|
|
1460
1691
|
}
|
|
1461
1692
|
|
|
1462
1693
|
export interface SnapshotVerifyRepository extends Generic {
|
|
1463
1694
|
repository: string;
|
|
1695
|
+
cluster_manager_timeout?: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* @deprecated use cluster_manager_timeout instead
|
|
1698
|
+
*/
|
|
1464
1699
|
master_timeout?: string;
|
|
1465
1700
|
timeout?: string;
|
|
1466
1701
|
}
|
|
@@ -1497,7 +1732,6 @@ export interface TermsEnum<T = RequestBody> extends Generic {
|
|
|
1497
1732
|
export interface Termvectors<T = RequestBody> extends Generic {
|
|
1498
1733
|
index: string;
|
|
1499
1734
|
id?: string;
|
|
1500
|
-
type?: string;
|
|
1501
1735
|
term_statistics?: boolean;
|
|
1502
1736
|
field_statistics?: boolean;
|
|
1503
1737
|
fields?: string | string[];
|
|
@@ -1515,7 +1749,6 @@ export interface Termvectors<T = RequestBody> extends Generic {
|
|
|
1515
1749
|
export interface Update<T = RequestBody> extends Generic {
|
|
1516
1750
|
id: string;
|
|
1517
1751
|
index: string;
|
|
1518
|
-
type?: string;
|
|
1519
1752
|
_source_exclude?: string | string[];
|
|
1520
1753
|
_source_include?: string | string[];
|
|
1521
1754
|
wait_for_active_shards?: string;
|
|
@@ -1535,7 +1768,6 @@ export interface Update<T = RequestBody> extends Generic {
|
|
|
1535
1768
|
|
|
1536
1769
|
export interface UpdateByQuery<T = RequestBody> extends Generic {
|
|
1537
1770
|
index: string | string[];
|
|
1538
|
-
type?: string | string[];
|
|
1539
1771
|
_source_exclude?: string | string[];
|
|
1540
1772
|
_source_include?: string | string[];
|
|
1541
1773
|
analyzer?: string;
|
|
@@ -1580,4 +1812,3 @@ export interface UpdateByQueryRethrottle extends Generic {
|
|
|
1580
1812
|
task_id: string;
|
|
1581
1813
|
requests_per_second: number;
|
|
1582
1814
|
}
|
|
1583
|
-
|