@opensearch-project/opensearch 1.0.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 (84) hide show
  1. package/.dockerignore +5 -0
  2. package/ADMINS.md +34 -0
  3. package/DEVELOPER_GUIDE.md +60 -0
  4. package/LICENSE.txt +201 -0
  5. package/MAINTAINERS.md +73 -0
  6. package/Makefile +27 -0
  7. package/NOTICE.txt +8 -0
  8. package/README.md +183 -0
  9. package/RELEASING.md +34 -0
  10. package/SECURITY.md +3 -0
  11. package/api/api/bulk.js +81 -0
  12. package/api/api/cat.js +525 -0
  13. package/api/api/clear_scroll.js +66 -0
  14. package/api/api/cluster.js +431 -0
  15. package/api/api/count.js +75 -0
  16. package/api/api/create.js +80 -0
  17. package/api/api/dangling_indices.js +126 -0
  18. package/api/api/delete.js +76 -0
  19. package/api/api/delete_by_query.js +82 -0
  20. package/api/api/delete_by_query_rethrottle.js +71 -0
  21. package/api/api/delete_script.js +67 -0
  22. package/api/api/exists.js +76 -0
  23. package/api/api/exists_source.js +85 -0
  24. package/api/api/explain.js +76 -0
  25. package/api/api/features.js +92 -0
  26. package/api/api/field_caps.js +66 -0
  27. package/api/api/get.js +76 -0
  28. package/api/api/get_script.js +67 -0
  29. package/api/api/get_script_context.js +61 -0
  30. package/api/api/get_script_languages.js +61 -0
  31. package/api/api/get_source.js +76 -0
  32. package/api/api/index.js +82 -0
  33. package/api/api/indices.js +1516 -0
  34. package/api/api/info.js +61 -0
  35. package/api/api/ingest.js +211 -0
  36. package/api/api/mget.js +81 -0
  37. package/api/api/msearch.js +81 -0
  38. package/api/api/msearch_template.js +81 -0
  39. package/api/api/mtermvectors.js +75 -0
  40. package/api/api/nodes.js +279 -0
  41. package/api/api/ping.js +61 -0
  42. package/api/api/put_script.js +82 -0
  43. package/api/api/rank_eval.js +72 -0
  44. package/api/api/reindex.js +67 -0
  45. package/api/api/reindex_rethrottle.js +71 -0
  46. package/api/api/render_search_template.js +66 -0
  47. package/api/api/scripts_painless_execute.js +61 -0
  48. package/api/api/scroll.js +66 -0
  49. package/api/api/search.js +75 -0
  50. package/api/api/search_shards.js +66 -0
  51. package/api/api/search_template.js +81 -0
  52. package/api/api/shutdown.js +135 -0
  53. package/api/api/snapshot.js +450 -0
  54. package/api/api/tasks.js +119 -0
  55. package/api/api/terms_enum.js +67 -0
  56. package/api/api/termvectors.js +78 -0
  57. package/api/api/update.js +80 -0
  58. package/api/api/update_by_query.js +78 -0
  59. package/api/api/update_by_query_rethrottle.js +71 -0
  60. package/api/index.js +254 -0
  61. package/api/new.d.ts +716 -0
  62. package/api/requestParams.d.ts +1583 -0
  63. package/api/types.d.ts +9481 -0
  64. package/api/utils.js +69 -0
  65. package/codecov.yml +14 -0
  66. package/index.d.ts +1210 -0
  67. package/index.js +338 -0
  68. package/index.mjs +40 -0
  69. package/lib/Connection.d.ts +107 -0
  70. package/lib/Connection.js +345 -0
  71. package/lib/Helpers.d.ts +135 -0
  72. package/lib/Helpers.js +779 -0
  73. package/lib/Serializer.d.ts +41 -0
  74. package/lib/Serializer.js +105 -0
  75. package/lib/Transport.d.ts +173 -0
  76. package/lib/Transport.js +646 -0
  77. package/lib/errors.d.ts +101 -0
  78. package/lib/errors.js +168 -0
  79. package/lib/pool/BaseConnectionPool.js +269 -0
  80. package/lib/pool/CloudConnectionPool.js +75 -0
  81. package/lib/pool/ConnectionPool.js +257 -0
  82. package/lib/pool/index.d.ts +215 -0
  83. package/lib/pool/index.js +41 -0
  84. package/package.json +102 -0
@@ -0,0 +1,1583 @@
1
+ /*
2
+ * SPDX-License-Identifier: Apache-2.0
3
+ *
4
+ * The OpenSearch Contributors require contributions made to
5
+ * this file be licensed under the Apache-2.0 license or a
6
+ * compatible open source license.
7
+ *
8
+ * Modifications Copyright OpenSearch Contributors. See
9
+ * GitHub history for details.
10
+ */
11
+
12
+ /*
13
+ * Licensed to Elasticsearch B.V. under one or more contributor
14
+ * license agreements. See the NOTICE file distributed with
15
+ * this work for additional information regarding copyright
16
+ * ownership. Elasticsearch B.V. licenses this file to you under
17
+ * the Apache License, Version 2.0 (the "License"); you may
18
+ * not use this file except in compliance with the License.
19
+ * You may obtain a copy of the License at
20
+ *
21
+ * http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing,
24
+ * software distributed under the License is distributed on an
25
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
26
+ * KIND, either express or implied. See the License for the
27
+ * specific language governing permissions and limitations
28
+ * under the License.
29
+ */
30
+
31
+ import { RequestBody, RequestNDBody } from '../lib/Transport'
32
+
33
+ export interface Generic {
34
+ method?: string;
35
+ filter_path?: string | string[];
36
+ pretty?: boolean;
37
+ human?: boolean;
38
+ error_trace?: boolean;
39
+ source?: string;
40
+ }
41
+ export interface Bulk<T = RequestNDBody> extends Generic {
42
+ index?: string;
43
+ type?: string;
44
+ _source_exclude?: string | string[];
45
+ _source_include?: string | string[];
46
+ wait_for_active_shards?: string;
47
+ refresh?: 'wait_for' | boolean;
48
+ routing?: string;
49
+ timeout?: string;
50
+ _source?: string | string[];
51
+ _source_excludes?: string | string[];
52
+ _source_includes?: string | string[];
53
+ pipeline?: string;
54
+ require_alias?: boolean;
55
+ body: T;
56
+ }
57
+
58
+ export interface CatAliases extends Generic {
59
+ name?: string | string[];
60
+ format?: string;
61
+ local?: boolean;
62
+ h?: string | string[];
63
+ help?: boolean;
64
+ s?: string | string[];
65
+ v?: boolean;
66
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
67
+ }
68
+
69
+ export interface CatAllocation extends Generic {
70
+ node_id?: string | string[];
71
+ format?: string;
72
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
73
+ local?: boolean;
74
+ master_timeout?: string;
75
+ h?: string | string[];
76
+ help?: boolean;
77
+ s?: string | string[];
78
+ v?: boolean;
79
+ }
80
+
81
+ export interface CatCount extends Generic {
82
+ index?: string | string[];
83
+ format?: string;
84
+ h?: string | string[];
85
+ help?: boolean;
86
+ s?: string | string[];
87
+ v?: boolean;
88
+ }
89
+
90
+ export interface CatFielddata extends Generic {
91
+ fields?: string | string[];
92
+ format?: string;
93
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
94
+ h?: string | string[];
95
+ help?: boolean;
96
+ s?: string | string[];
97
+ v?: boolean;
98
+ }
99
+
100
+ export interface CatHealth extends Generic {
101
+ format?: string;
102
+ h?: string | string[];
103
+ help?: boolean;
104
+ s?: string | string[];
105
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
106
+ ts?: boolean;
107
+ v?: boolean;
108
+ }
109
+
110
+ export interface CatHelp extends Generic {
111
+ help?: boolean;
112
+ s?: string | string[];
113
+ }
114
+
115
+ export interface CatIndices extends Generic {
116
+ index?: string | string[];
117
+ format?: string;
118
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
119
+ local?: boolean;
120
+ master_timeout?: string;
121
+ h?: string | string[];
122
+ health?: 'green' | 'yellow' | 'red';
123
+ help?: boolean;
124
+ pri?: boolean;
125
+ s?: string | string[];
126
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
127
+ v?: boolean;
128
+ include_unloaded_segments?: boolean;
129
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
130
+ }
131
+
132
+ export interface CatMaster extends Generic {
133
+ format?: string;
134
+ local?: boolean;
135
+ master_timeout?: string;
136
+ h?: string | string[];
137
+ help?: boolean;
138
+ s?: string | string[];
139
+ v?: boolean;
140
+ }
141
+
142
+ export interface CatNodeattrs extends Generic {
143
+ format?: string;
144
+ local?: boolean;
145
+ master_timeout?: string;
146
+ h?: string | string[];
147
+ help?: boolean;
148
+ s?: string | string[];
149
+ v?: boolean;
150
+ }
151
+
152
+ export interface CatNodes extends Generic {
153
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
154
+ format?: string;
155
+ full_id?: boolean;
156
+ local?: boolean;
157
+ master_timeout?: string;
158
+ h?: string | string[];
159
+ help?: boolean;
160
+ s?: string | string[];
161
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
162
+ v?: boolean;
163
+ include_unloaded_segments?: boolean;
164
+ }
165
+
166
+ export interface CatPendingTasks extends Generic {
167
+ format?: string;
168
+ local?: boolean;
169
+ master_timeout?: string;
170
+ h?: string | string[];
171
+ help?: boolean;
172
+ s?: string | string[];
173
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
174
+ v?: boolean;
175
+ }
176
+
177
+ export interface CatPlugins extends Generic {
178
+ format?: string;
179
+ local?: boolean;
180
+ master_timeout?: string;
181
+ h?: string | string[];
182
+ help?: boolean;
183
+ include_bootstrap?: boolean;
184
+ s?: string | string[];
185
+ v?: boolean;
186
+ }
187
+
188
+ export interface CatRecovery extends Generic {
189
+ index?: string | string[];
190
+ format?: string;
191
+ active_only?: boolean;
192
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
193
+ detailed?: boolean;
194
+ h?: string | string[];
195
+ help?: boolean;
196
+ s?: string | string[];
197
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
198
+ v?: boolean;
199
+ }
200
+
201
+ export interface CatRepositories extends Generic {
202
+ format?: string;
203
+ local?: boolean;
204
+ master_timeout?: string;
205
+ h?: string | string[];
206
+ help?: boolean;
207
+ s?: string | string[];
208
+ v?: boolean;
209
+ }
210
+
211
+ export interface CatSegments extends Generic {
212
+ index?: string | string[];
213
+ format?: string;
214
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
215
+ h?: string | string[];
216
+ help?: boolean;
217
+ s?: string | string[];
218
+ v?: boolean;
219
+ }
220
+
221
+ export interface CatShards extends Generic {
222
+ index?: string | string[];
223
+ format?: string;
224
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
225
+ local?: boolean;
226
+ master_timeout?: string;
227
+ h?: string | string[];
228
+ help?: boolean;
229
+ s?: string | string[];
230
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
231
+ v?: boolean;
232
+ }
233
+
234
+ export interface CatSnapshots extends Generic {
235
+ repository?: string | string[];
236
+ format?: string;
237
+ ignore_unavailable?: boolean;
238
+ master_timeout?: string;
239
+ h?: string | string[];
240
+ help?: boolean;
241
+ s?: string | string[];
242
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
243
+ v?: boolean;
244
+ }
245
+
246
+ export interface CatTasks extends Generic {
247
+ format?: string;
248
+ nodes?: string | string[];
249
+ actions?: string | string[];
250
+ detailed?: boolean;
251
+ parent_task_id?: string;
252
+ h?: string | string[];
253
+ help?: boolean;
254
+ s?: string | string[];
255
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
256
+ v?: boolean;
257
+ }
258
+
259
+ export interface CatTemplates extends Generic {
260
+ name?: string;
261
+ format?: string;
262
+ local?: boolean;
263
+ master_timeout?: string;
264
+ h?: string | string[];
265
+ help?: boolean;
266
+ s?: string | string[];
267
+ v?: boolean;
268
+ }
269
+
270
+ export interface CatThreadPool extends Generic {
271
+ thread_pool_patterns?: string | string[];
272
+ format?: string;
273
+ size?: '' | 'k' | 'm' | 'g' | 't' | 'p';
274
+ local?: boolean;
275
+ master_timeout?: string;
276
+ h?: string | string[];
277
+ help?: boolean;
278
+ s?: string | string[];
279
+ v?: boolean;
280
+ }
281
+
282
+ export interface ClearScroll<T = RequestBody> extends Generic {
283
+ scroll_id?: string | string[];
284
+ body?: T;
285
+ }
286
+
287
+ export interface ClusterAllocationExplain<T = RequestBody> extends Generic {
288
+ include_yes_decisions?: boolean;
289
+ include_disk_info?: boolean;
290
+ body?: T;
291
+ }
292
+
293
+ export interface ClusterDeleteComponentTemplate extends Generic {
294
+ name: string;
295
+ timeout?: string;
296
+ master_timeout?: string;
297
+ }
298
+
299
+ export interface ClusterDeleteVotingConfigExclusions extends Generic {
300
+ wait_for_removal?: boolean;
301
+ }
302
+
303
+ export interface ClusterExistsComponentTemplate extends Generic {
304
+ name: string;
305
+ master_timeout?: string;
306
+ local?: boolean;
307
+ }
308
+
309
+ export interface ClusterGetComponentTemplate extends Generic {
310
+ name?: string | string[];
311
+ master_timeout?: string;
312
+ local?: boolean;
313
+ }
314
+
315
+ export interface ClusterGetSettings extends Generic {
316
+ flat_settings?: boolean;
317
+ master_timeout?: string;
318
+ timeout?: string;
319
+ include_defaults?: boolean;
320
+ }
321
+
322
+ export interface ClusterHealth extends Generic {
323
+ index?: string | string[];
324
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
325
+ level?: 'cluster' | 'indices' | 'shards';
326
+ local?: boolean;
327
+ master_timeout?: string;
328
+ timeout?: string;
329
+ wait_for_active_shards?: string;
330
+ wait_for_nodes?: string;
331
+ wait_for_events?: 'immediate' | 'urgent' | 'high' | 'normal' | 'low' | 'languid';
332
+ wait_for_no_relocating_shards?: boolean;
333
+ wait_for_no_initializing_shards?: boolean;
334
+ wait_for_status?: 'green' | 'yellow' | 'red';
335
+ }
336
+
337
+ export interface ClusterPendingTasks extends Generic {
338
+ local?: boolean;
339
+ master_timeout?: string;
340
+ }
341
+
342
+ export interface ClusterPostVotingConfigExclusions extends Generic {
343
+ node_ids?: string;
344
+ node_names?: string;
345
+ timeout?: string;
346
+ }
347
+
348
+ export interface ClusterPutComponentTemplate<T = RequestBody> extends Generic {
349
+ name: string;
350
+ create?: boolean;
351
+ timeout?: string;
352
+ master_timeout?: string;
353
+ body: T;
354
+ }
355
+
356
+ export interface ClusterPutSettings<T = RequestBody> extends Generic {
357
+ flat_settings?: boolean;
358
+ master_timeout?: string;
359
+ timeout?: string;
360
+ body: T;
361
+ }
362
+
363
+ export interface ClusterRemoteInfo extends Generic {
364
+ }
365
+
366
+ export interface ClusterReroute<T = RequestBody> extends Generic {
367
+ dry_run?: boolean;
368
+ explain?: boolean;
369
+ retry_failed?: boolean;
370
+ metric?: string | string[];
371
+ master_timeout?: string;
372
+ timeout?: string;
373
+ body?: T;
374
+ }
375
+
376
+ export interface ClusterState extends Generic {
377
+ index?: string | string[];
378
+ metric?: string | string[];
379
+ local?: boolean;
380
+ master_timeout?: string;
381
+ flat_settings?: boolean;
382
+ wait_for_metadata_version?: number;
383
+ wait_for_timeout?: string;
384
+ ignore_unavailable?: boolean;
385
+ allow_no_indices?: boolean;
386
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
387
+ }
388
+
389
+ export interface ClusterStats extends Generic {
390
+ node_id?: string | string[];
391
+ flat_settings?: boolean;
392
+ timeout?: string;
393
+ }
394
+
395
+ export interface Count<T = RequestBody> extends Generic {
396
+ index?: string | string[];
397
+ type?: string | string[];
398
+ ignore_unavailable?: boolean;
399
+ ignore_throttled?: boolean;
400
+ allow_no_indices?: boolean;
401
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
402
+ min_score?: number;
403
+ preference?: string;
404
+ routing?: string | string[];
405
+ q?: string;
406
+ analyzer?: string;
407
+ analyze_wildcard?: boolean;
408
+ default_operator?: 'AND' | 'OR';
409
+ df?: string;
410
+ lenient?: boolean;
411
+ terminate_after?: number;
412
+ body?: T;
413
+ }
414
+
415
+ export interface Create<T = RequestBody> extends Generic {
416
+ id: string;
417
+ index: string;
418
+ type?: string;
419
+ wait_for_active_shards?: string;
420
+ refresh?: 'wait_for' | boolean;
421
+ routing?: string;
422
+ timeout?: string;
423
+ version?: number;
424
+ version_type?: 'internal' | 'external' | 'external_gte';
425
+ pipeline?: string;
426
+ body: T;
427
+ }
428
+
429
+ export interface DanglingIndicesDeleteDanglingIndex extends Generic {
430
+ index_uuid: string;
431
+ accept_data_loss?: boolean;
432
+ timeout?: string;
433
+ master_timeout?: string;
434
+ }
435
+
436
+ export interface DanglingIndicesImportDanglingIndex extends Generic {
437
+ index_uuid: string;
438
+ accept_data_loss?: boolean;
439
+ timeout?: string;
440
+ master_timeout?: string;
441
+ }
442
+
443
+ export interface DanglingIndicesListDanglingIndices extends Generic {
444
+ }
445
+
446
+ export interface Delete extends Generic {
447
+ id: string;
448
+ index: string;
449
+ type?: string;
450
+ wait_for_active_shards?: string;
451
+ refresh?: 'wait_for' | boolean;
452
+ routing?: string;
453
+ timeout?: string;
454
+ if_seq_no?: number;
455
+ if_primary_term?: number;
456
+ version?: number;
457
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
458
+ }
459
+
460
+ export interface DeleteByQuery<T = RequestBody> extends Generic {
461
+ index: string | string[];
462
+ type?: string | string[];
463
+ _source_exclude?: string | string[];
464
+ _source_include?: string | string[];
465
+ analyzer?: string;
466
+ analyze_wildcard?: boolean;
467
+ default_operator?: 'AND' | 'OR';
468
+ df?: string;
469
+ from?: number;
470
+ ignore_unavailable?: boolean;
471
+ allow_no_indices?: boolean;
472
+ conflicts?: 'abort' | 'proceed';
473
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
474
+ lenient?: boolean;
475
+ preference?: string;
476
+ q?: string;
477
+ routing?: string | string[];
478
+ scroll?: string;
479
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
480
+ search_timeout?: string;
481
+ size?: number;
482
+ max_docs?: number;
483
+ sort?: string | string[];
484
+ _source?: string | string[];
485
+ _source_excludes?: string | string[];
486
+ _source_includes?: string | string[];
487
+ terminate_after?: number;
488
+ stats?: string | string[];
489
+ version?: boolean;
490
+ request_cache?: boolean;
491
+ refresh?: boolean;
492
+ timeout?: string;
493
+ wait_for_active_shards?: string;
494
+ scroll_size?: number;
495
+ wait_for_completion?: boolean;
496
+ requests_per_second?: number;
497
+ slices?: number | string;
498
+ body: T;
499
+ }
500
+
501
+ export interface DeleteByQueryRethrottle extends Generic {
502
+ task_id: string;
503
+ requests_per_second: number;
504
+ }
505
+
506
+ export interface DeleteScript extends Generic {
507
+ id: string;
508
+ timeout?: string;
509
+ master_timeout?: string;
510
+ }
511
+
512
+ export interface Exists extends Generic {
513
+ id: string;
514
+ index: string;
515
+ type?: string;
516
+ _source_exclude?: string | string[];
517
+ _source_include?: string | string[];
518
+ stored_fields?: string | string[];
519
+ preference?: string;
520
+ realtime?: boolean;
521
+ refresh?: boolean;
522
+ routing?: string;
523
+ _source?: string | string[];
524
+ _source_excludes?: string | string[];
525
+ _source_includes?: string | string[];
526
+ version?: number;
527
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
528
+ }
529
+
530
+ export interface ExistsSource extends Generic {
531
+ id: string;
532
+ index: string;
533
+ type?: string;
534
+ _source_exclude?: string | string[];
535
+ _source_include?: string | string[];
536
+ preference?: string;
537
+ realtime?: boolean;
538
+ refresh?: boolean;
539
+ routing?: string;
540
+ _source?: string | string[];
541
+ _source_excludes?: string | string[];
542
+ _source_includes?: string | string[];
543
+ version?: number;
544
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
545
+ }
546
+
547
+ export interface Explain<T = RequestBody> extends Generic {
548
+ id: string;
549
+ index: string;
550
+ type?: string;
551
+ _source_exclude?: string | string[];
552
+ _source_include?: string | string[];
553
+ analyze_wildcard?: boolean;
554
+ analyzer?: string;
555
+ default_operator?: 'AND' | 'OR';
556
+ df?: string;
557
+ stored_fields?: string | string[];
558
+ lenient?: boolean;
559
+ preference?: string;
560
+ q?: string;
561
+ routing?: string;
562
+ _source?: string | string[];
563
+ _source_excludes?: string | string[];
564
+ _source_includes?: string | string[];
565
+ body?: T;
566
+ }
567
+
568
+ export interface FeaturesGetFeatures extends Generic {
569
+ master_timeout?: string;
570
+ }
571
+
572
+ export interface FeaturesResetFeatures extends Generic {
573
+ }
574
+
575
+ export interface FieldCaps<T = RequestBody> extends Generic {
576
+ index?: string | string[];
577
+ fields?: string | string[];
578
+ ignore_unavailable?: boolean;
579
+ allow_no_indices?: boolean;
580
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
581
+ include_unmapped?: boolean;
582
+ body?: T;
583
+ }
584
+
585
+ export interface Get extends Generic {
586
+ id: string;
587
+ index: string;
588
+ type?: string;
589
+ _source_exclude?: string | string[];
590
+ _source_include?: string | string[];
591
+ stored_fields?: string | string[];
592
+ preference?: string;
593
+ realtime?: boolean;
594
+ refresh?: boolean;
595
+ routing?: string;
596
+ _source?: string | string[];
597
+ _source_excludes?: string | string[];
598
+ _source_includes?: string | string[];
599
+ version?: number;
600
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
601
+ }
602
+
603
+ export interface GetScript extends Generic {
604
+ id: string;
605
+ master_timeout?: string;
606
+ }
607
+
608
+ export interface GetScriptContext extends Generic {
609
+ }
610
+
611
+ export interface GetScriptLanguages extends Generic {
612
+ }
613
+
614
+ export interface GetSource extends Generic {
615
+ id: string;
616
+ index: string;
617
+ type?: string;
618
+ _source_exclude?: string | string[];
619
+ _source_include?: string | string[];
620
+ preference?: string;
621
+ realtime?: boolean;
622
+ refresh?: boolean;
623
+ routing?: string;
624
+ _source?: string | string[];
625
+ _source_excludes?: string | string[];
626
+ _source_includes?: string | string[];
627
+ version?: number;
628
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
629
+ }
630
+
631
+ export interface Index<T = RequestBody> extends Generic {
632
+ id?: string;
633
+ index: string;
634
+ type?: string;
635
+ wait_for_active_shards?: string;
636
+ op_type?: 'index' | 'create';
637
+ refresh?: 'wait_for' | boolean;
638
+ routing?: string;
639
+ timeout?: string;
640
+ version?: number;
641
+ version_type?: 'internal' | 'external' | 'external_gte';
642
+ if_seq_no?: number;
643
+ if_primary_term?: number;
644
+ pipeline?: string;
645
+ require_alias?: boolean;
646
+ body: T;
647
+ }
648
+
649
+ export interface IndicesAddBlock extends Generic {
650
+ index: string | string[];
651
+ block: string;
652
+ timeout?: string;
653
+ master_timeout?: string;
654
+ ignore_unavailable?: boolean;
655
+ allow_no_indices?: boolean;
656
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
657
+ }
658
+
659
+ export interface IndicesAnalyze<T = RequestBody> extends Generic {
660
+ index?: string;
661
+ body?: T;
662
+ }
663
+
664
+ export interface IndicesClearCache extends Generic {
665
+ index?: string | string[];
666
+ fielddata?: boolean;
667
+ fields?: string | string[];
668
+ query?: boolean;
669
+ ignore_unavailable?: boolean;
670
+ allow_no_indices?: boolean;
671
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
672
+ request?: boolean;
673
+ }
674
+
675
+ export interface IndicesClone<T = RequestBody> extends Generic {
676
+ index: string;
677
+ target: string;
678
+ timeout?: string;
679
+ master_timeout?: string;
680
+ wait_for_active_shards?: string;
681
+ body?: T;
682
+ }
683
+
684
+ export interface IndicesClose extends Generic {
685
+ index: string | string[];
686
+ timeout?: string;
687
+ master_timeout?: string;
688
+ ignore_unavailable?: boolean;
689
+ allow_no_indices?: boolean;
690
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
691
+ wait_for_active_shards?: string;
692
+ }
693
+
694
+ export interface IndicesCreate<T = RequestBody> extends Generic {
695
+ index: string;
696
+ include_type_name?: boolean;
697
+ wait_for_active_shards?: string;
698
+ timeout?: string;
699
+ master_timeout?: string;
700
+ body?: T;
701
+ }
702
+
703
+ export interface IndicesDelete extends Generic {
704
+ index: string | string[];
705
+ timeout?: string;
706
+ master_timeout?: string;
707
+ ignore_unavailable?: boolean;
708
+ allow_no_indices?: boolean;
709
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
710
+ }
711
+
712
+ export interface IndicesDeleteAlias extends Generic {
713
+ index: string | string[];
714
+ name: string | string[];
715
+ timeout?: string;
716
+ master_timeout?: string;
717
+ }
718
+ export interface IndicesDeleteIndexTemplate extends Generic {
719
+ name: string;
720
+ timeout?: string;
721
+ master_timeout?: string;
722
+ }
723
+
724
+ export interface IndicesDeleteTemplate extends Generic {
725
+ name: string;
726
+ timeout?: string;
727
+ master_timeout?: string;
728
+ }
729
+
730
+ export interface IndicesDiskUsage extends Generic {
731
+ index: string;
732
+ run_expensive_tasks?: boolean;
733
+ flush?: boolean;
734
+ ignore_unavailable?: boolean;
735
+ allow_no_indices?: boolean;
736
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
737
+ }
738
+
739
+ export interface IndicesExists extends Generic {
740
+ index: string | string[];
741
+ local?: boolean;
742
+ ignore_unavailable?: boolean;
743
+ allow_no_indices?: boolean;
744
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
745
+ flat_settings?: boolean;
746
+ include_defaults?: boolean;
747
+ }
748
+
749
+ export interface IndicesExistsAlias extends Generic {
750
+ name: string | string[];
751
+ index?: string | string[];
752
+ ignore_unavailable?: boolean;
753
+ allow_no_indices?: boolean;
754
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
755
+ local?: boolean;
756
+ }
757
+
758
+ export interface IndicesExistsIndexTemplate extends Generic {
759
+ name: string;
760
+ flat_settings?: boolean;
761
+ master_timeout?: string;
762
+ local?: boolean;
763
+ }
764
+
765
+ export interface IndicesExistsTemplate extends Generic {
766
+ name: string | string[];
767
+ flat_settings?: boolean;
768
+ master_timeout?: string;
769
+ local?: boolean;
770
+ }
771
+
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
+ export interface IndicesFieldUsageStats extends Generic {
782
+ index: string;
783
+ fields?: string | string[];
784
+ ignore_unavailable?: boolean;
785
+ allow_no_indices?: boolean;
786
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
787
+ }
788
+
789
+ export interface IndicesFlush extends Generic {
790
+ index?: string | string[];
791
+ force?: boolean;
792
+ wait_if_ongoing?: boolean;
793
+ ignore_unavailable?: boolean;
794
+ allow_no_indices?: boolean;
795
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
796
+ }
797
+
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
+ export interface IndicesForcemerge extends Generic {
806
+ index?: string | string[];
807
+ flush?: boolean;
808
+ ignore_unavailable?: boolean;
809
+ allow_no_indices?: boolean;
810
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
811
+ max_num_segments?: number;
812
+ only_expunge_deletes?: boolean;
813
+ }
814
+
815
+ export interface IndicesGet extends Generic {
816
+ index: string | string[];
817
+ include_type_name?: boolean;
818
+ local?: boolean;
819
+ ignore_unavailable?: boolean;
820
+ allow_no_indices?: boolean;
821
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
822
+ flat_settings?: boolean;
823
+ include_defaults?: boolean;
824
+ master_timeout?: string;
825
+ }
826
+
827
+ export interface IndicesGetAlias extends Generic {
828
+ name?: string | string[];
829
+ index?: string | string[];
830
+ ignore_unavailable?: boolean;
831
+ allow_no_indices?: boolean;
832
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
833
+ local?: boolean;
834
+ }
835
+
836
+ export interface IndicesGetFieldMapping extends Generic {
837
+ fields: string | string[];
838
+ index?: string | string[];
839
+ type?: string | string[];
840
+ include_type_name?: boolean;
841
+ include_defaults?: boolean;
842
+ ignore_unavailable?: boolean;
843
+ allow_no_indices?: boolean;
844
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
845
+ local?: boolean;
846
+ }
847
+
848
+ export interface IndicesGetIndexTemplate extends Generic {
849
+ name?: string | string[];
850
+ flat_settings?: boolean;
851
+ master_timeout?: string;
852
+ local?: boolean;
853
+ }
854
+
855
+ export interface IndicesGetMapping extends Generic {
856
+ index?: string | string[];
857
+ type?: string | string[];
858
+ include_type_name?: boolean;
859
+ ignore_unavailable?: boolean;
860
+ allow_no_indices?: boolean;
861
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
862
+ master_timeout?: string;
863
+ local?: boolean;
864
+ }
865
+
866
+ export interface IndicesGetSettings extends Generic {
867
+ index?: string | string[];
868
+ name?: string | string[];
869
+ master_timeout?: string;
870
+ ignore_unavailable?: boolean;
871
+ allow_no_indices?: boolean;
872
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
873
+ flat_settings?: boolean;
874
+ local?: boolean;
875
+ include_defaults?: boolean;
876
+ }
877
+
878
+ export interface IndicesGetTemplate extends Generic {
879
+ name?: string | string[];
880
+ include_type_name?: boolean;
881
+ flat_settings?: boolean;
882
+ master_timeout?: string;
883
+ local?: boolean;
884
+ }
885
+
886
+ export interface IndicesGetUpgrade extends Generic {
887
+ index?: string | string[];
888
+ ignore_unavailable?: boolean;
889
+ allow_no_indices?: boolean;
890
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
891
+ }
892
+
893
+
894
+ export interface IndicesOpen extends Generic {
895
+ index: string | string[];
896
+ timeout?: string;
897
+ master_timeout?: string;
898
+ ignore_unavailable?: boolean;
899
+ allow_no_indices?: boolean;
900
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
901
+ wait_for_active_shards?: string;
902
+ }
903
+
904
+ export interface IndicesPutAlias<T = RequestBody> extends Generic {
905
+ index: string | string[];
906
+ name: string;
907
+ timeout?: string;
908
+ master_timeout?: string;
909
+ body?: T;
910
+ }
911
+
912
+ export interface IndicesPutIndexTemplate<T = RequestBody> extends Generic {
913
+ name: string;
914
+ create?: boolean;
915
+ cause?: string;
916
+ master_timeout?: string;
917
+ body: T;
918
+ }
919
+
920
+ export interface IndicesPutMapping<T = RequestBody> extends Generic {
921
+ index?: string | string[];
922
+ type?: string;
923
+ include_type_name?: boolean;
924
+ timeout?: string;
925
+ master_timeout?: string;
926
+ ignore_unavailable?: boolean;
927
+ allow_no_indices?: boolean;
928
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
929
+ write_index_only?: boolean;
930
+ body: T;
931
+ }
932
+
933
+ export interface IndicesPutSettings<T = RequestBody> extends Generic {
934
+ index?: string | string[];
935
+ master_timeout?: string;
936
+ timeout?: string;
937
+ preserve_existing?: boolean;
938
+ ignore_unavailable?: boolean;
939
+ allow_no_indices?: boolean;
940
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
941
+ flat_settings?: boolean;
942
+ body: T;
943
+ }
944
+
945
+ export interface IndicesPutTemplate<T = RequestBody> extends Generic {
946
+ name: string;
947
+ include_type_name?: boolean;
948
+ order?: number;
949
+ create?: boolean;
950
+ master_timeout?: string;
951
+ body: T;
952
+ }
953
+
954
+ export interface IndicesRecovery extends Generic {
955
+ index?: string | string[];
956
+ detailed?: boolean;
957
+ active_only?: boolean;
958
+ }
959
+
960
+ export interface IndicesRefresh extends Generic {
961
+ index?: string | string[];
962
+ ignore_unavailable?: boolean;
963
+ allow_no_indices?: boolean;
964
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
965
+ }
966
+
967
+ export interface IndicesResolveIndex extends Generic {
968
+ name: string | string[];
969
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
970
+ }
971
+
972
+ export interface IndicesRollover<T = RequestBody> extends Generic {
973
+ alias: string;
974
+ new_index?: string;
975
+ include_type_name?: boolean;
976
+ timeout?: string;
977
+ dry_run?: boolean;
978
+ master_timeout?: string;
979
+ wait_for_active_shards?: string;
980
+ body?: T;
981
+ }
982
+
983
+ export interface IndicesSegments extends Generic {
984
+ index?: string | string[];
985
+ ignore_unavailable?: boolean;
986
+ allow_no_indices?: boolean;
987
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
988
+ verbose?: boolean;
989
+ }
990
+
991
+ export interface IndicesShardStores extends Generic {
992
+ index?: string | string[];
993
+ status?: string | string[];
994
+ ignore_unavailable?: boolean;
995
+ allow_no_indices?: boolean;
996
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
997
+ }
998
+
999
+ export interface IndicesShrink<T = RequestBody> extends Generic {
1000
+ index: string;
1001
+ target: string;
1002
+ copy_settings?: boolean;
1003
+ timeout?: string;
1004
+ master_timeout?: string;
1005
+ wait_for_active_shards?: string;
1006
+ body?: T;
1007
+ }
1008
+
1009
+ export interface IndicesSimulateIndexTemplate<T = RequestBody> extends Generic {
1010
+ name: string;
1011
+ create?: boolean;
1012
+ cause?: string;
1013
+ master_timeout?: string;
1014
+ body?: T;
1015
+ }
1016
+
1017
+ export interface IndicesSimulateTemplate<T = RequestBody> extends Generic {
1018
+ name?: string;
1019
+ create?: boolean;
1020
+ cause?: string;
1021
+ master_timeout?: string;
1022
+ body?: T;
1023
+ }
1024
+
1025
+ export interface IndicesSplit<T = RequestBody> extends Generic {
1026
+ index: string;
1027
+ target: string;
1028
+ copy_settings?: boolean;
1029
+ timeout?: string;
1030
+ master_timeout?: string;
1031
+ wait_for_active_shards?: string;
1032
+ body?: T;
1033
+ }
1034
+
1035
+ export interface IndicesStats extends Generic {
1036
+ metric?: string | string[];
1037
+ index?: string | string[];
1038
+ completion_fields?: string | string[];
1039
+ fielddata_fields?: string | string[];
1040
+ fields?: string | string[];
1041
+ groups?: string | string[];
1042
+ level?: 'cluster' | 'indices' | 'shards';
1043
+ types?: string | string[];
1044
+ include_segment_file_sizes?: boolean;
1045
+ include_unloaded_segments?: boolean;
1046
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1047
+ forbid_closed_indices?: boolean;
1048
+ }
1049
+
1050
+ export interface IndicesUpdateAliases<T = RequestBody> extends Generic {
1051
+ timeout?: string;
1052
+ master_timeout?: string;
1053
+ body: T;
1054
+ }
1055
+
1056
+ export interface IndicesUpgrade extends Generic {
1057
+ index?: string | string[];
1058
+ allow_no_indices?: boolean;
1059
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1060
+ ignore_unavailable?: boolean;
1061
+ wait_for_completion?: boolean;
1062
+ only_ancient_segments?: boolean;
1063
+ }
1064
+
1065
+ export interface IndicesValidateQuery<T = RequestBody> extends Generic {
1066
+ index?: string | string[];
1067
+ type?: string | string[];
1068
+ explain?: boolean;
1069
+ ignore_unavailable?: boolean;
1070
+ allow_no_indices?: boolean;
1071
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1072
+ q?: string;
1073
+ analyzer?: string;
1074
+ analyze_wildcard?: boolean;
1075
+ default_operator?: 'AND' | 'OR';
1076
+ df?: string;
1077
+ lenient?: boolean;
1078
+ rewrite?: boolean;
1079
+ all_shards?: boolean;
1080
+ body?: T;
1081
+ }
1082
+
1083
+ export interface Info extends Generic {
1084
+ }
1085
+
1086
+ export interface IngestDeletePipeline extends Generic {
1087
+ id: string;
1088
+ master_timeout?: string;
1089
+ timeout?: string;
1090
+ }
1091
+
1092
+ export interface IngestGeoIpStats extends Generic {
1093
+ }
1094
+
1095
+ export interface IngestGetPipeline extends Generic {
1096
+ id?: string;
1097
+ summary?: boolean;
1098
+ master_timeout?: string;
1099
+ }
1100
+
1101
+ export interface IngestProcessorGrok extends Generic {
1102
+ }
1103
+
1104
+ export interface IngestPutPipeline<T = RequestBody> extends Generic {
1105
+ id: string;
1106
+ master_timeout?: string;
1107
+ timeout?: string;
1108
+ body: T;
1109
+ }
1110
+
1111
+ export interface IngestSimulate<T = RequestBody> extends Generic {
1112
+ id?: string;
1113
+ verbose?: boolean;
1114
+ body: T;
1115
+ }
1116
+
1117
+ export interface Mget<T = RequestBody> extends Generic {
1118
+ index?: string;
1119
+ type?: string;
1120
+ _source_exclude?: string | string[];
1121
+ _source_include?: string | string[];
1122
+ stored_fields?: string | string[];
1123
+ preference?: string;
1124
+ realtime?: boolean;
1125
+ refresh?: boolean;
1126
+ routing?: string;
1127
+ _source?: string | string[];
1128
+ _source_excludes?: string | string[];
1129
+ _source_includes?: string | string[];
1130
+ body: T;
1131
+ }
1132
+
1133
+ export interface Msearch<T = RequestNDBody> extends Generic {
1134
+ index?: string | string[];
1135
+ type?: string | string[];
1136
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1137
+ max_concurrent_searches?: number;
1138
+ typed_keys?: boolean;
1139
+ pre_filter_shard_size?: number;
1140
+ max_concurrent_shard_requests?: number;
1141
+ rest_total_hits_as_int?: boolean;
1142
+ ccs_minimize_roundtrips?: boolean;
1143
+ body: T;
1144
+ }
1145
+
1146
+ export interface MsearchTemplate<T = RequestNDBody> extends Generic {
1147
+ index?: string | string[];
1148
+ type?: string | string[];
1149
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1150
+ typed_keys?: boolean;
1151
+ max_concurrent_searches?: number;
1152
+ rest_total_hits_as_int?: boolean;
1153
+ ccs_minimize_roundtrips?: boolean;
1154
+ body: T;
1155
+ }
1156
+
1157
+ export interface Mtermvectors<T = RequestBody> extends Generic {
1158
+ index?: string;
1159
+ type?: string;
1160
+ ids?: string | string[];
1161
+ term_statistics?: boolean;
1162
+ field_statistics?: boolean;
1163
+ fields?: string | string[];
1164
+ offsets?: boolean;
1165
+ positions?: boolean;
1166
+ payloads?: boolean;
1167
+ preference?: string;
1168
+ routing?: string;
1169
+ realtime?: boolean;
1170
+ version?: number;
1171
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
1172
+ body?: T;
1173
+ }
1174
+
1175
+ export interface NodesClearMeteringArchive extends Generic {
1176
+ node_id: string | string[];
1177
+ max_archive_version: number;
1178
+ }
1179
+
1180
+ export interface NodesGetMeteringInfo extends Generic {
1181
+ node_id: string | string[];
1182
+ }
1183
+
1184
+ export interface NodesHotThreads extends Generic {
1185
+ node_id?: string | string[];
1186
+ interval?: string;
1187
+ snapshots?: number;
1188
+ threads?: number;
1189
+ ignore_idle_threads?: boolean;
1190
+ type?: 'cpu' | 'wait' | 'block';
1191
+ timeout?: string;
1192
+ }
1193
+
1194
+ export interface NodesInfo extends Generic {
1195
+ node_id?: string | string[];
1196
+ metric?: string | string[];
1197
+ flat_settings?: boolean;
1198
+ timeout?: string;
1199
+ }
1200
+
1201
+ export interface NodesReloadSecureSettings<T = RequestBody> extends Generic {
1202
+ node_id?: string | string[];
1203
+ timeout?: string;
1204
+ body?: T;
1205
+ }
1206
+
1207
+ export interface NodesStats extends Generic {
1208
+ node_id?: string | string[];
1209
+ metric?: string | string[];
1210
+ index_metric?: string | string[];
1211
+ completion_fields?: string | string[];
1212
+ fielddata_fields?: string | string[];
1213
+ fields?: string | string[];
1214
+ groups?: boolean;
1215
+ level?: 'indices' | 'node' | 'shards';
1216
+ types?: string | string[];
1217
+ timeout?: string;
1218
+ include_segment_file_sizes?: boolean;
1219
+ include_unloaded_segments?: boolean;
1220
+ }
1221
+
1222
+ export interface NodesUsage extends Generic {
1223
+ node_id?: string | string[];
1224
+ metric?: string | string[];
1225
+ timeout?: string;
1226
+ }
1227
+
1228
+ export interface Ping extends Generic {
1229
+ }
1230
+
1231
+ export interface PutScript<T = RequestBody> extends Generic {
1232
+ id: string;
1233
+ context?: string;
1234
+ timeout?: string;
1235
+ master_timeout?: string;
1236
+ body: T;
1237
+ }
1238
+
1239
+ export interface RankEval<T = RequestBody> extends Generic {
1240
+ index?: string | string[];
1241
+ ignore_unavailable?: boolean;
1242
+ allow_no_indices?: boolean;
1243
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1244
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1245
+ body: T;
1246
+ }
1247
+
1248
+ export interface Reindex<T = RequestBody> extends Generic {
1249
+ refresh?: boolean;
1250
+ timeout?: string;
1251
+ wait_for_active_shards?: string;
1252
+ wait_for_completion?: boolean;
1253
+ requests_per_second?: number;
1254
+ scroll?: string;
1255
+ slices?: number | string;
1256
+ max_docs?: number;
1257
+ body: T;
1258
+ }
1259
+
1260
+ export interface ReindexRethrottle extends Generic {
1261
+ task_id: string;
1262
+ requests_per_second: number;
1263
+ }
1264
+
1265
+ export interface RenderSearchTemplate<T = RequestBody> extends Generic {
1266
+ id?: string;
1267
+ body?: T;
1268
+ }
1269
+
1270
+ export interface ScriptsPainlessExecute<T = RequestBody> extends Generic {
1271
+ body?: T;
1272
+ }
1273
+
1274
+ export interface Scroll<T = RequestBody> extends Generic {
1275
+ scroll_id?: string;
1276
+ scroll?: string;
1277
+ rest_total_hits_as_int?: boolean;
1278
+ body?: T;
1279
+ }
1280
+
1281
+ export interface Search<T = RequestBody> extends Generic {
1282
+ index?: string | string[];
1283
+ type?: string | string[];
1284
+ _source_exclude?: string | string[];
1285
+ _source_include?: string | string[];
1286
+ analyzer?: string;
1287
+ analyze_wildcard?: boolean;
1288
+ ccs_minimize_roundtrips?: boolean;
1289
+ default_operator?: 'AND' | 'OR';
1290
+ df?: string;
1291
+ explain?: boolean;
1292
+ stored_fields?: string | string[];
1293
+ docvalue_fields?: string | string[];
1294
+ from?: number;
1295
+ ignore_unavailable?: boolean;
1296
+ ignore_throttled?: boolean;
1297
+ allow_no_indices?: boolean;
1298
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1299
+ lenient?: boolean;
1300
+ preference?: string;
1301
+ q?: string;
1302
+ routing?: string | string[];
1303
+ scroll?: string;
1304
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1305
+ size?: number;
1306
+ sort?: string | string[];
1307
+ _source?: string | string[];
1308
+ _source_excludes?: string | string[];
1309
+ _source_includes?: string | string[];
1310
+ terminate_after?: number;
1311
+ stats?: string | string[];
1312
+ suggest_field?: string;
1313
+ suggest_mode?: 'missing' | 'popular' | 'always';
1314
+ suggest_size?: number;
1315
+ suggest_text?: string;
1316
+ timeout?: string;
1317
+ track_scores?: boolean;
1318
+ track_total_hits?: boolean;
1319
+ allow_partial_search_results?: boolean;
1320
+ typed_keys?: boolean;
1321
+ version?: boolean;
1322
+ seq_no_primary_term?: boolean;
1323
+ request_cache?: boolean;
1324
+ batched_reduce_size?: number;
1325
+ max_concurrent_shard_requests?: number;
1326
+ pre_filter_shard_size?: number;
1327
+ rest_total_hits_as_int?: boolean;
1328
+ min_compatible_shard_node?: string;
1329
+ body?: T;
1330
+ }
1331
+
1332
+ export interface SearchShards extends Generic {
1333
+ index?: string | string[];
1334
+ preference?: string;
1335
+ routing?: string;
1336
+ local?: boolean;
1337
+ ignore_unavailable?: boolean;
1338
+ allow_no_indices?: boolean;
1339
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1340
+ }
1341
+
1342
+ export interface SearchTemplate<T = RequestBody> extends Generic {
1343
+ index?: string | string[];
1344
+ type?: string | string[];
1345
+ ignore_unavailable?: boolean;
1346
+ ignore_throttled?: boolean;
1347
+ allow_no_indices?: boolean;
1348
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1349
+ preference?: string;
1350
+ routing?: string | string[];
1351
+ scroll?: string;
1352
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1353
+ explain?: boolean;
1354
+ profile?: boolean;
1355
+ typed_keys?: boolean;
1356
+ rest_total_hits_as_int?: boolean;
1357
+ ccs_minimize_roundtrips?: boolean;
1358
+ body: T;
1359
+ }
1360
+
1361
+ export interface ShutdownDeleteNode extends Generic {
1362
+ node_id: string;
1363
+ }
1364
+
1365
+ export interface ShutdownGetNode extends Generic {
1366
+ node_id?: string;
1367
+ }
1368
+
1369
+ export interface ShutdownPutNode<T = RequestBody> extends Generic {
1370
+ node_id: string;
1371
+ body: T;
1372
+ }
1373
+
1374
+ export interface SnapshotCleanupRepository extends Generic {
1375
+ repository: string;
1376
+ master_timeout?: string;
1377
+ timeout?: string;
1378
+ }
1379
+
1380
+ export interface SnapshotClone<T = RequestBody> extends Generic {
1381
+ repository: string;
1382
+ snapshot: string;
1383
+ target_snapshot: string;
1384
+ master_timeout?: string;
1385
+ body: T;
1386
+ }
1387
+
1388
+ export interface SnapshotCreate<T = RequestBody> extends Generic {
1389
+ repository: string;
1390
+ snapshot: string;
1391
+ master_timeout?: string;
1392
+ wait_for_completion?: boolean;
1393
+ body?: T;
1394
+ }
1395
+
1396
+ export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
1397
+ repository: string;
1398
+ master_timeout?: string;
1399
+ timeout?: string;
1400
+ verify?: boolean;
1401
+ body: T;
1402
+ }
1403
+
1404
+ export interface SnapshotDelete extends Generic {
1405
+ repository: string;
1406
+ snapshot: string;
1407
+ master_timeout?: string;
1408
+ }
1409
+
1410
+ export interface SnapshotDeleteRepository extends Generic {
1411
+ repository: string | string[];
1412
+ master_timeout?: string;
1413
+ timeout?: string;
1414
+ }
1415
+
1416
+ export interface SnapshotGet extends Generic {
1417
+ repository: string;
1418
+ snapshot: string | string[];
1419
+ master_timeout?: string;
1420
+ ignore_unavailable?: boolean;
1421
+ index_details?: boolean;
1422
+ include_repository?: boolean;
1423
+ verbose?: boolean;
1424
+ }
1425
+
1426
+ export interface SnapshotGetRepository extends Generic {
1427
+ repository?: string | string[];
1428
+ master_timeout?: string;
1429
+ local?: boolean;
1430
+ }
1431
+
1432
+ export interface SnapshotRepositoryAnalyze extends Generic {
1433
+ repository: string;
1434
+ blob_count?: number;
1435
+ concurrency?: number;
1436
+ read_node_count?: number;
1437
+ early_read_node_count?: number;
1438
+ seed?: number;
1439
+ rare_action_probability?: number;
1440
+ max_blob_size?: string;
1441
+ max_total_data_size?: string;
1442
+ timeout?: string;
1443
+ detailed?: boolean;
1444
+ rarely_abort_writes?: boolean;
1445
+ }
1446
+
1447
+ export interface SnapshotRestore<T = RequestBody> extends Generic {
1448
+ repository: string;
1449
+ snapshot: string;
1450
+ master_timeout?: string;
1451
+ wait_for_completion?: boolean;
1452
+ body?: T;
1453
+ }
1454
+
1455
+ export interface SnapshotStatus extends Generic {
1456
+ repository?: string;
1457
+ snapshot?: string | string[];
1458
+ master_timeout?: string;
1459
+ ignore_unavailable?: boolean;
1460
+ }
1461
+
1462
+ export interface SnapshotVerifyRepository extends Generic {
1463
+ repository: string;
1464
+ master_timeout?: string;
1465
+ timeout?: string;
1466
+ }
1467
+
1468
+ export interface TasksCancel extends Generic {
1469
+ task_id?: string;
1470
+ nodes?: string | string[];
1471
+ actions?: string | string[];
1472
+ parent_task_id?: string;
1473
+ wait_for_completion?: boolean;
1474
+ }
1475
+
1476
+ export interface TasksGet extends Generic {
1477
+ task_id: string;
1478
+ wait_for_completion?: boolean;
1479
+ timeout?: string;
1480
+ }
1481
+
1482
+ export interface TasksList extends Generic {
1483
+ nodes?: string | string[];
1484
+ actions?: string | string[];
1485
+ detailed?: boolean;
1486
+ parent_task_id?: string;
1487
+ wait_for_completion?: boolean;
1488
+ group_by?: 'nodes' | 'parents' | 'none';
1489
+ timeout?: string;
1490
+ }
1491
+
1492
+ export interface TermsEnum<T = RequestBody> extends Generic {
1493
+ index: string | string[];
1494
+ body?: T;
1495
+ }
1496
+
1497
+ export interface Termvectors<T = RequestBody> extends Generic {
1498
+ index: string;
1499
+ id?: string;
1500
+ type?: string;
1501
+ term_statistics?: boolean;
1502
+ field_statistics?: boolean;
1503
+ fields?: string | string[];
1504
+ offsets?: boolean;
1505
+ positions?: boolean;
1506
+ payloads?: boolean;
1507
+ preference?: string;
1508
+ routing?: string;
1509
+ realtime?: boolean;
1510
+ version?: number;
1511
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
1512
+ body?: T;
1513
+ }
1514
+
1515
+ export interface Update<T = RequestBody> extends Generic {
1516
+ id: string;
1517
+ index: string;
1518
+ type?: string;
1519
+ _source_exclude?: string | string[];
1520
+ _source_include?: string | string[];
1521
+ wait_for_active_shards?: string;
1522
+ _source?: string | string[];
1523
+ _source_excludes?: string | string[];
1524
+ _source_includes?: string | string[];
1525
+ lang?: string;
1526
+ refresh?: 'wait_for' | boolean;
1527
+ retry_on_conflict?: number;
1528
+ routing?: string;
1529
+ timeout?: string;
1530
+ if_seq_no?: number;
1531
+ if_primary_term?: number;
1532
+ require_alias?: boolean;
1533
+ body: T;
1534
+ }
1535
+
1536
+ export interface UpdateByQuery<T = RequestBody> extends Generic {
1537
+ index: string | string[];
1538
+ type?: string | string[];
1539
+ _source_exclude?: string | string[];
1540
+ _source_include?: string | string[];
1541
+ analyzer?: string;
1542
+ analyze_wildcard?: boolean;
1543
+ default_operator?: 'AND' | 'OR';
1544
+ df?: string;
1545
+ from?: number;
1546
+ ignore_unavailable?: boolean;
1547
+ allow_no_indices?: boolean;
1548
+ conflicts?: 'abort' | 'proceed';
1549
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1550
+ lenient?: boolean;
1551
+ pipeline?: string;
1552
+ preference?: string;
1553
+ q?: string;
1554
+ routing?: string | string[];
1555
+ scroll?: string;
1556
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1557
+ search_timeout?: string;
1558
+ size?: number;
1559
+ max_docs?: number;
1560
+ sort?: string | string[];
1561
+ _source?: string | string[];
1562
+ _source_excludes?: string | string[];
1563
+ _source_includes?: string | string[];
1564
+ terminate_after?: number;
1565
+ stats?: string | string[];
1566
+ version?: boolean;
1567
+ version_type?: boolean;
1568
+ request_cache?: boolean;
1569
+ refresh?: boolean;
1570
+ timeout?: string;
1571
+ wait_for_active_shards?: string;
1572
+ scroll_size?: number;
1573
+ wait_for_completion?: boolean;
1574
+ requests_per_second?: number;
1575
+ slices?: number | string;
1576
+ body?: T;
1577
+ }
1578
+
1579
+ export interface UpdateByQueryRethrottle extends Generic {
1580
+ task_id: string;
1581
+ requests_per_second: number;
1582
+ }
1583
+