@elastic/elasticsearch 7.15.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 (103) hide show
  1. package/.dockerignore +5 -0
  2. package/LICENSE +202 -0
  3. package/README.md +232 -0
  4. package/api/api/async_search.js +141 -0
  5. package/api/api/autoscaling.js +147 -0
  6. package/api/api/bulk.js +70 -0
  7. package/api/api/cat.js +648 -0
  8. package/api/api/ccr.js +403 -0
  9. package/api/api/clear_scroll.js +55 -0
  10. package/api/api/close_point_in_time.js +50 -0
  11. package/api/api/cluster.js +420 -0
  12. package/api/api/count.js +64 -0
  13. package/api/api/create.js +69 -0
  14. package/api/api/dangling_indices.js +115 -0
  15. package/api/api/delete.js +65 -0
  16. package/api/api/delete_by_query.js +71 -0
  17. package/api/api/delete_by_query_rethrottle.js +60 -0
  18. package/api/api/delete_script.js +56 -0
  19. package/api/api/enrich.js +173 -0
  20. package/api/api/eql.js +150 -0
  21. package/api/api/exists.js +65 -0
  22. package/api/api/exists_source.js +74 -0
  23. package/api/api/explain.js +65 -0
  24. package/api/api/features.js +81 -0
  25. package/api/api/field_caps.js +55 -0
  26. package/api/api/fleet.js +65 -0
  27. package/api/api/get.js +65 -0
  28. package/api/api/get_script.js +56 -0
  29. package/api/api/get_script_context.js +50 -0
  30. package/api/api/get_script_languages.js +50 -0
  31. package/api/api/get_source.js +65 -0
  32. package/api/api/graph.js +72 -0
  33. package/api/api/ilm.js +317 -0
  34. package/api/api/index.js +71 -0
  35. package/api/api/indices.js +1753 -0
  36. package/api/api/info.js +50 -0
  37. package/api/api/ingest.js +200 -0
  38. package/api/api/license.js +188 -0
  39. package/api/api/logstash.js +125 -0
  40. package/api/api/mget.js +70 -0
  41. package/api/api/migration.js +60 -0
  42. package/api/api/ml.js +2010 -0
  43. package/api/api/monitoring.js +66 -0
  44. package/api/api/msearch.js +70 -0
  45. package/api/api/msearch_template.js +70 -0
  46. package/api/api/mtermvectors.js +64 -0
  47. package/api/api/nodes.js +268 -0
  48. package/api/api/open_point_in_time.js +56 -0
  49. package/api/api/ping.js +50 -0
  50. package/api/api/put_script.js +71 -0
  51. package/api/api/rank_eval.js +61 -0
  52. package/api/api/reindex.js +56 -0
  53. package/api/api/reindex_rethrottle.js +60 -0
  54. package/api/api/render_search_template.js +55 -0
  55. package/api/api/rollup.js +319 -0
  56. package/api/api/scripts_painless_execute.js +50 -0
  57. package/api/api/scroll.js +55 -0
  58. package/api/api/search.js +64 -0
  59. package/api/api/search_mvt.js +87 -0
  60. package/api/api/search_shards.js +55 -0
  61. package/api/api/search_template.js +70 -0
  62. package/api/api/searchable_snapshots.js +186 -0
  63. package/api/api/security.js +1261 -0
  64. package/api/api/shutdown.js +124 -0
  65. package/api/api/slm.js +256 -0
  66. package/api/api/snapshot.js +439 -0
  67. package/api/api/sql.js +203 -0
  68. package/api/api/ssl.js +55 -0
  69. package/api/api/tasks.js +108 -0
  70. package/api/api/terms_enum.js +56 -0
  71. package/api/api/termvectors.js +67 -0
  72. package/api/api/text_structure.js +65 -0
  73. package/api/api/transform.js +268 -0
  74. package/api/api/update.js +69 -0
  75. package/api/api/update_by_query.js +67 -0
  76. package/api/api/update_by_query_rethrottle.js +60 -0
  77. package/api/api/watcher.js +333 -0
  78. package/api/api/xpack.js +76 -0
  79. package/api/index.js +508 -0
  80. package/api/new.d.ts +1585 -0
  81. package/api/requestParams.d.ts +2920 -0
  82. package/api/types.d.ts +15420 -0
  83. package/api/utils.js +58 -0
  84. package/codecov.yml +14 -0
  85. package/index.d.ts +2991 -0
  86. package/index.js +349 -0
  87. package/index.mjs +29 -0
  88. package/lib/Connection.d.ts +99 -0
  89. package/lib/Connection.js +392 -0
  90. package/lib/Helpers.d.ts +124 -0
  91. package/lib/Helpers.js +770 -0
  92. package/lib/Serializer.d.ts +30 -0
  93. package/lib/Serializer.js +94 -0
  94. package/lib/Transport.d.ts +162 -0
  95. package/lib/Transport.js +689 -0
  96. package/lib/errors.d.ts +90 -0
  97. package/lib/errors.js +159 -0
  98. package/lib/pool/BaseConnectionPool.js +262 -0
  99. package/lib/pool/CloudConnectionPool.js +64 -0
  100. package/lib/pool/ConnectionPool.js +246 -0
  101. package/lib/pool/index.d.ts +220 -0
  102. package/lib/pool/index.js +30 -0
  103. package/package.json +106 -0
@@ -0,0 +1,2920 @@
1
+ /*
2
+ * Licensed to Elasticsearch B.V. under one or more contributor
3
+ * license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright
5
+ * ownership. Elasticsearch B.V. licenses this file to you under
6
+ * the Apache License, Version 2.0 (the "License"); you may
7
+ * not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ import { RequestBody, RequestNDBody } from '../lib/Transport'
21
+
22
+ export interface Generic {
23
+ method?: string;
24
+ filter_path?: string | string[];
25
+ pretty?: boolean;
26
+ human?: boolean;
27
+ error_trace?: boolean;
28
+ source?: string;
29
+ }
30
+
31
+ export interface AsyncSearchDelete extends Generic {
32
+ id: string;
33
+ }
34
+
35
+ export interface AsyncSearchGet extends Generic {
36
+ id: string;
37
+ wait_for_completion_timeout?: string;
38
+ keep_alive?: string;
39
+ typed_keys?: boolean;
40
+ }
41
+
42
+ export interface AsyncSearchStatus extends Generic {
43
+ id: string;
44
+ }
45
+
46
+ export interface AsyncSearchSubmit<T = RequestBody> extends Generic {
47
+ index?: string | string[];
48
+ _source_exclude?: string | string[];
49
+ _source_include?: string | string[];
50
+ wait_for_completion_timeout?: string;
51
+ keep_on_completion?: boolean;
52
+ keep_alive?: string;
53
+ batched_reduce_size?: number;
54
+ request_cache?: boolean;
55
+ analyzer?: string;
56
+ analyze_wildcard?: boolean;
57
+ default_operator?: 'AND' | 'OR';
58
+ df?: string;
59
+ explain?: boolean;
60
+ stored_fields?: string | string[];
61
+ docvalue_fields?: string | string[];
62
+ from?: number;
63
+ ignore_unavailable?: boolean;
64
+ ignore_throttled?: boolean;
65
+ allow_no_indices?: boolean;
66
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
67
+ lenient?: boolean;
68
+ preference?: string;
69
+ q?: string;
70
+ routing?: string | string[];
71
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
72
+ size?: number;
73
+ sort?: string | string[];
74
+ _source?: string | string[];
75
+ _source_excludes?: string | string[];
76
+ _source_includes?: string | string[];
77
+ terminate_after?: number;
78
+ stats?: string | string[];
79
+ suggest_field?: string;
80
+ suggest_mode?: 'missing' | 'popular' | 'always';
81
+ suggest_size?: number;
82
+ suggest_text?: string;
83
+ timeout?: string;
84
+ track_scores?: boolean;
85
+ track_total_hits?: boolean;
86
+ allow_partial_search_results?: boolean;
87
+ typed_keys?: boolean;
88
+ version?: boolean;
89
+ seq_no_primary_term?: boolean;
90
+ max_concurrent_shard_requests?: number;
91
+ body?: T;
92
+ }
93
+
94
+ export interface AutoscalingDeleteAutoscalingPolicy extends Generic {
95
+ name: string;
96
+ }
97
+
98
+ export interface AutoscalingGetAutoscalingCapacity extends Generic {
99
+ }
100
+
101
+ export interface AutoscalingGetAutoscalingPolicy extends Generic {
102
+ name: string;
103
+ }
104
+
105
+ export interface AutoscalingPutAutoscalingPolicy<T = RequestBody> extends Generic {
106
+ name: string;
107
+ body: T;
108
+ }
109
+
110
+ export interface Bulk<T = RequestNDBody> extends Generic {
111
+ index?: string;
112
+ type?: string;
113
+ _source_exclude?: string | string[];
114
+ _source_include?: string | string[];
115
+ wait_for_active_shards?: string;
116
+ refresh?: 'wait_for' | boolean;
117
+ routing?: string;
118
+ timeout?: string;
119
+ _source?: string | string[];
120
+ _source_excludes?: string | string[];
121
+ _source_includes?: string | string[];
122
+ pipeline?: string;
123
+ require_alias?: boolean;
124
+ body: T;
125
+ }
126
+
127
+ export interface CatAliases extends Generic {
128
+ name?: string | string[];
129
+ format?: string;
130
+ local?: boolean;
131
+ h?: string | string[];
132
+ help?: boolean;
133
+ s?: string | string[];
134
+ v?: boolean;
135
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
136
+ }
137
+
138
+ export interface CatAllocation extends Generic {
139
+ node_id?: string | string[];
140
+ format?: string;
141
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
142
+ local?: boolean;
143
+ master_timeout?: string;
144
+ h?: string | string[];
145
+ help?: boolean;
146
+ s?: string | string[];
147
+ v?: boolean;
148
+ }
149
+
150
+ export interface CatCount extends Generic {
151
+ index?: string | string[];
152
+ format?: string;
153
+ h?: string | string[];
154
+ help?: boolean;
155
+ s?: string | string[];
156
+ v?: boolean;
157
+ }
158
+
159
+ export interface CatFielddata extends Generic {
160
+ fields?: string | string[];
161
+ format?: string;
162
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
163
+ h?: string | string[];
164
+ help?: boolean;
165
+ s?: string | string[];
166
+ v?: boolean;
167
+ }
168
+
169
+ export interface CatHealth extends Generic {
170
+ format?: string;
171
+ h?: string | string[];
172
+ help?: boolean;
173
+ s?: string | string[];
174
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
175
+ ts?: boolean;
176
+ v?: boolean;
177
+ }
178
+
179
+ export interface CatHelp extends Generic {
180
+ help?: boolean;
181
+ s?: string | string[];
182
+ }
183
+
184
+ export interface CatIndices extends Generic {
185
+ index?: string | string[];
186
+ format?: string;
187
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
188
+ local?: boolean;
189
+ master_timeout?: string;
190
+ h?: string | string[];
191
+ health?: 'green' | 'yellow' | 'red';
192
+ help?: boolean;
193
+ pri?: boolean;
194
+ s?: string | string[];
195
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
196
+ v?: boolean;
197
+ include_unloaded_segments?: boolean;
198
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
199
+ }
200
+
201
+ export interface CatMaster 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 CatMlDataFrameAnalytics extends Generic {
212
+ id?: string;
213
+ allow_no_match?: boolean;
214
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
215
+ format?: string;
216
+ h?: string | string[];
217
+ help?: boolean;
218
+ s?: string | string[];
219
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
220
+ v?: boolean;
221
+ }
222
+
223
+ export interface CatMlDatafeeds extends Generic {
224
+ datafeed_id?: string;
225
+ allow_no_match?: boolean;
226
+ allow_no_datafeeds?: boolean;
227
+ format?: string;
228
+ h?: string | string[];
229
+ help?: boolean;
230
+ s?: string | string[];
231
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
232
+ v?: boolean;
233
+ }
234
+
235
+ export interface CatMlJobs extends Generic {
236
+ job_id?: string;
237
+ allow_no_match?: boolean;
238
+ allow_no_jobs?: boolean;
239
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
240
+ format?: string;
241
+ h?: string | string[];
242
+ help?: boolean;
243
+ s?: string | string[];
244
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
245
+ v?: boolean;
246
+ }
247
+
248
+ export interface CatMlTrainedModels extends Generic {
249
+ model_id?: string;
250
+ allow_no_match?: boolean;
251
+ from?: number;
252
+ size?: number;
253
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
254
+ format?: string;
255
+ h?: string | string[];
256
+ help?: boolean;
257
+ s?: string | string[];
258
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
259
+ v?: boolean;
260
+ }
261
+
262
+ export interface CatNodeattrs extends Generic {
263
+ format?: string;
264
+ local?: boolean;
265
+ master_timeout?: string;
266
+ h?: string | string[];
267
+ help?: boolean;
268
+ s?: string | string[];
269
+ v?: boolean;
270
+ }
271
+
272
+ export interface CatNodes extends Generic {
273
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
274
+ format?: string;
275
+ full_id?: boolean;
276
+ local?: boolean;
277
+ master_timeout?: string;
278
+ h?: string | string[];
279
+ help?: boolean;
280
+ s?: string | string[];
281
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
282
+ v?: boolean;
283
+ include_unloaded_segments?: boolean;
284
+ }
285
+
286
+ export interface CatPendingTasks extends Generic {
287
+ format?: string;
288
+ local?: boolean;
289
+ master_timeout?: string;
290
+ h?: string | string[];
291
+ help?: boolean;
292
+ s?: string | string[];
293
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
294
+ v?: boolean;
295
+ }
296
+
297
+ export interface CatPlugins extends Generic {
298
+ format?: string;
299
+ local?: boolean;
300
+ master_timeout?: string;
301
+ h?: string | string[];
302
+ help?: boolean;
303
+ include_bootstrap?: boolean;
304
+ s?: string | string[];
305
+ v?: boolean;
306
+ }
307
+
308
+ export interface CatRecovery extends Generic {
309
+ index?: string | string[];
310
+ format?: string;
311
+ active_only?: boolean;
312
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
313
+ detailed?: boolean;
314
+ h?: string | string[];
315
+ help?: boolean;
316
+ s?: string | string[];
317
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
318
+ v?: boolean;
319
+ }
320
+
321
+ export interface CatRepositories extends Generic {
322
+ format?: string;
323
+ local?: boolean;
324
+ master_timeout?: string;
325
+ h?: string | string[];
326
+ help?: boolean;
327
+ s?: string | string[];
328
+ v?: boolean;
329
+ }
330
+
331
+ export interface CatSegments extends Generic {
332
+ index?: string | string[];
333
+ format?: string;
334
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
335
+ h?: string | string[];
336
+ help?: boolean;
337
+ s?: string | string[];
338
+ v?: boolean;
339
+ }
340
+
341
+ export interface CatShards extends Generic {
342
+ index?: string | string[];
343
+ format?: string;
344
+ bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
345
+ local?: boolean;
346
+ master_timeout?: string;
347
+ h?: string | string[];
348
+ help?: boolean;
349
+ s?: string | string[];
350
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
351
+ v?: boolean;
352
+ }
353
+
354
+ export interface CatSnapshots extends Generic {
355
+ repository?: string | string[];
356
+ format?: string;
357
+ ignore_unavailable?: boolean;
358
+ master_timeout?: string;
359
+ h?: string | string[];
360
+ help?: boolean;
361
+ s?: string | string[];
362
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
363
+ v?: boolean;
364
+ }
365
+
366
+ export interface CatTasks extends Generic {
367
+ format?: string;
368
+ nodes?: string | string[];
369
+ actions?: string | string[];
370
+ detailed?: boolean;
371
+ parent_task_id?: string;
372
+ h?: string | string[];
373
+ help?: boolean;
374
+ s?: string | string[];
375
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
376
+ v?: boolean;
377
+ }
378
+
379
+ export interface CatTemplates extends Generic {
380
+ name?: string;
381
+ format?: string;
382
+ local?: boolean;
383
+ master_timeout?: string;
384
+ h?: string | string[];
385
+ help?: boolean;
386
+ s?: string | string[];
387
+ v?: boolean;
388
+ }
389
+
390
+ export interface CatThreadPool extends Generic {
391
+ thread_pool_patterns?: string | string[];
392
+ format?: string;
393
+ size?: '' | 'k' | 'm' | 'g' | 't' | 'p';
394
+ local?: boolean;
395
+ master_timeout?: string;
396
+ h?: string | string[];
397
+ help?: boolean;
398
+ s?: string | string[];
399
+ v?: boolean;
400
+ }
401
+
402
+ export interface CatTransforms extends Generic {
403
+ transform_id?: string;
404
+ from?: number;
405
+ size?: number;
406
+ allow_no_match?: boolean;
407
+ format?: string;
408
+ h?: string | string[];
409
+ help?: boolean;
410
+ s?: string | string[];
411
+ time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
412
+ v?: boolean;
413
+ }
414
+
415
+ export interface CcrDeleteAutoFollowPattern extends Generic {
416
+ name: string;
417
+ }
418
+
419
+ export interface CcrFollow<T = RequestBody> extends Generic {
420
+ index: string;
421
+ wait_for_active_shards?: string;
422
+ body: T;
423
+ }
424
+
425
+ export interface CcrFollowInfo extends Generic {
426
+ index: string | string[];
427
+ }
428
+
429
+ export interface CcrFollowStats extends Generic {
430
+ index: string | string[];
431
+ }
432
+
433
+ export interface CcrForgetFollower<T = RequestBody> extends Generic {
434
+ index: string;
435
+ body: T;
436
+ }
437
+
438
+ export interface CcrGetAutoFollowPattern extends Generic {
439
+ name?: string;
440
+ }
441
+
442
+ export interface CcrPauseAutoFollowPattern extends Generic {
443
+ name: string;
444
+ }
445
+
446
+ export interface CcrPauseFollow extends Generic {
447
+ index: string;
448
+ }
449
+
450
+ export interface CcrPutAutoFollowPattern<T = RequestBody> extends Generic {
451
+ name: string;
452
+ body: T;
453
+ }
454
+
455
+ export interface CcrResumeAutoFollowPattern extends Generic {
456
+ name: string;
457
+ }
458
+
459
+ export interface CcrResumeFollow<T = RequestBody> extends Generic {
460
+ index: string;
461
+ body?: T;
462
+ }
463
+
464
+ export interface CcrStats extends Generic {
465
+ }
466
+
467
+ export interface CcrUnfollow extends Generic {
468
+ index: string;
469
+ }
470
+
471
+ export interface ClearScroll<T = RequestBody> extends Generic {
472
+ scroll_id?: string | string[];
473
+ body?: T;
474
+ }
475
+
476
+ export interface ClosePointInTime<T = RequestBody> extends Generic {
477
+ body?: T;
478
+ }
479
+
480
+ export interface ClusterAllocationExplain<T = RequestBody> extends Generic {
481
+ include_yes_decisions?: boolean;
482
+ include_disk_info?: boolean;
483
+ body?: T;
484
+ }
485
+
486
+ export interface ClusterDeleteComponentTemplate extends Generic {
487
+ name: string;
488
+ timeout?: string;
489
+ master_timeout?: string;
490
+ }
491
+
492
+ export interface ClusterDeleteVotingConfigExclusions extends Generic {
493
+ wait_for_removal?: boolean;
494
+ }
495
+
496
+ export interface ClusterExistsComponentTemplate extends Generic {
497
+ name: string;
498
+ master_timeout?: string;
499
+ local?: boolean;
500
+ }
501
+
502
+ export interface ClusterGetComponentTemplate extends Generic {
503
+ name?: string | string[];
504
+ master_timeout?: string;
505
+ local?: boolean;
506
+ }
507
+
508
+ export interface ClusterGetSettings extends Generic {
509
+ flat_settings?: boolean;
510
+ master_timeout?: string;
511
+ timeout?: string;
512
+ include_defaults?: boolean;
513
+ }
514
+
515
+ export interface ClusterHealth extends Generic {
516
+ index?: string | string[];
517
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
518
+ level?: 'cluster' | 'indices' | 'shards';
519
+ local?: boolean;
520
+ master_timeout?: string;
521
+ timeout?: string;
522
+ wait_for_active_shards?: string;
523
+ wait_for_nodes?: string;
524
+ wait_for_events?: 'immediate' | 'urgent' | 'high' | 'normal' | 'low' | 'languid';
525
+ wait_for_no_relocating_shards?: boolean;
526
+ wait_for_no_initializing_shards?: boolean;
527
+ wait_for_status?: 'green' | 'yellow' | 'red';
528
+ }
529
+
530
+ export interface ClusterPendingTasks extends Generic {
531
+ local?: boolean;
532
+ master_timeout?: string;
533
+ }
534
+
535
+ export interface ClusterPostVotingConfigExclusions extends Generic {
536
+ node_ids?: string;
537
+ node_names?: string;
538
+ timeout?: string;
539
+ }
540
+
541
+ export interface ClusterPutComponentTemplate<T = RequestBody> extends Generic {
542
+ name: string;
543
+ create?: boolean;
544
+ timeout?: string;
545
+ master_timeout?: string;
546
+ body: T;
547
+ }
548
+
549
+ export interface ClusterPutSettings<T = RequestBody> extends Generic {
550
+ flat_settings?: boolean;
551
+ master_timeout?: string;
552
+ timeout?: string;
553
+ body: T;
554
+ }
555
+
556
+ export interface ClusterRemoteInfo extends Generic {
557
+ }
558
+
559
+ export interface ClusterReroute<T = RequestBody> extends Generic {
560
+ dry_run?: boolean;
561
+ explain?: boolean;
562
+ retry_failed?: boolean;
563
+ metric?: string | string[];
564
+ master_timeout?: string;
565
+ timeout?: string;
566
+ body?: T;
567
+ }
568
+
569
+ export interface ClusterState extends Generic {
570
+ index?: string | string[];
571
+ metric?: string | string[];
572
+ local?: boolean;
573
+ master_timeout?: string;
574
+ flat_settings?: boolean;
575
+ wait_for_metadata_version?: number;
576
+ wait_for_timeout?: string;
577
+ ignore_unavailable?: boolean;
578
+ allow_no_indices?: boolean;
579
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
580
+ }
581
+
582
+ export interface ClusterStats extends Generic {
583
+ node_id?: string | string[];
584
+ flat_settings?: boolean;
585
+ timeout?: string;
586
+ }
587
+
588
+ export interface Count<T = RequestBody> extends Generic {
589
+ index?: string | string[];
590
+ type?: string | string[];
591
+ ignore_unavailable?: boolean;
592
+ ignore_throttled?: boolean;
593
+ allow_no_indices?: boolean;
594
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
595
+ min_score?: number;
596
+ preference?: string;
597
+ routing?: string | string[];
598
+ q?: string;
599
+ analyzer?: string;
600
+ analyze_wildcard?: boolean;
601
+ default_operator?: 'AND' | 'OR';
602
+ df?: string;
603
+ lenient?: boolean;
604
+ terminate_after?: number;
605
+ body?: T;
606
+ }
607
+
608
+ export interface Create<T = RequestBody> extends Generic {
609
+ id: string;
610
+ index: string;
611
+ type?: string;
612
+ wait_for_active_shards?: string;
613
+ refresh?: 'wait_for' | boolean;
614
+ routing?: string;
615
+ timeout?: string;
616
+ version?: number;
617
+ version_type?: 'internal' | 'external' | 'external_gte';
618
+ pipeline?: string;
619
+ body: T;
620
+ }
621
+
622
+ export interface DanglingIndicesDeleteDanglingIndex extends Generic {
623
+ index_uuid: string;
624
+ accept_data_loss?: boolean;
625
+ timeout?: string;
626
+ master_timeout?: string;
627
+ }
628
+
629
+ export interface DanglingIndicesImportDanglingIndex extends Generic {
630
+ index_uuid: string;
631
+ accept_data_loss?: boolean;
632
+ timeout?: string;
633
+ master_timeout?: string;
634
+ }
635
+
636
+ export interface DanglingIndicesListDanglingIndices extends Generic {
637
+ }
638
+
639
+ export interface Delete extends Generic {
640
+ id: string;
641
+ index: string;
642
+ type?: string;
643
+ wait_for_active_shards?: string;
644
+ refresh?: 'wait_for' | boolean;
645
+ routing?: string;
646
+ timeout?: string;
647
+ if_seq_no?: number;
648
+ if_primary_term?: number;
649
+ version?: number;
650
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
651
+ }
652
+
653
+ export interface DeleteByQuery<T = RequestBody> extends Generic {
654
+ index: string | string[];
655
+ type?: string | string[];
656
+ _source_exclude?: string | string[];
657
+ _source_include?: string | string[];
658
+ analyzer?: string;
659
+ analyze_wildcard?: boolean;
660
+ default_operator?: 'AND' | 'OR';
661
+ df?: string;
662
+ from?: number;
663
+ ignore_unavailable?: boolean;
664
+ allow_no_indices?: boolean;
665
+ conflicts?: 'abort' | 'proceed';
666
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
667
+ lenient?: boolean;
668
+ preference?: string;
669
+ q?: string;
670
+ routing?: string | string[];
671
+ scroll?: string;
672
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
673
+ search_timeout?: string;
674
+ size?: number;
675
+ max_docs?: number;
676
+ sort?: string | string[];
677
+ _source?: string | string[];
678
+ _source_excludes?: string | string[];
679
+ _source_includes?: string | string[];
680
+ terminate_after?: number;
681
+ stats?: string | string[];
682
+ version?: boolean;
683
+ request_cache?: boolean;
684
+ refresh?: boolean;
685
+ timeout?: string;
686
+ wait_for_active_shards?: string;
687
+ scroll_size?: number;
688
+ wait_for_completion?: boolean;
689
+ requests_per_second?: number;
690
+ slices?: number|string;
691
+ body: T;
692
+ }
693
+
694
+ export interface DeleteByQueryRethrottle extends Generic {
695
+ task_id: string;
696
+ requests_per_second: number;
697
+ }
698
+
699
+ export interface DeleteScript extends Generic {
700
+ id: string;
701
+ timeout?: string;
702
+ master_timeout?: string;
703
+ }
704
+
705
+ export interface EnrichDeletePolicy extends Generic {
706
+ name: string;
707
+ }
708
+
709
+ export interface EnrichExecutePolicy extends Generic {
710
+ name: string;
711
+ wait_for_completion?: boolean;
712
+ }
713
+
714
+ export interface EnrichGetPolicy extends Generic {
715
+ name?: string | string[];
716
+ }
717
+
718
+ export interface EnrichPutPolicy<T = RequestBody> extends Generic {
719
+ name: string;
720
+ body: T;
721
+ }
722
+
723
+ export interface EnrichStats extends Generic {
724
+ }
725
+
726
+ export interface EqlDelete extends Generic {
727
+ id: string;
728
+ }
729
+
730
+ export interface EqlGet extends Generic {
731
+ id: string;
732
+ wait_for_completion_timeout?: string;
733
+ keep_alive?: string;
734
+ }
735
+
736
+ export interface EqlGetStatus extends Generic {
737
+ id: string;
738
+ }
739
+
740
+ export interface EqlSearch<T = RequestBody> extends Generic {
741
+ index: string;
742
+ wait_for_completion_timeout?: string;
743
+ keep_on_completion?: boolean;
744
+ keep_alive?: string;
745
+ body: T;
746
+ }
747
+
748
+ export interface Exists extends Generic {
749
+ id: string;
750
+ index: string;
751
+ type?: string;
752
+ _source_exclude?: string | string[];
753
+ _source_include?: string | string[];
754
+ stored_fields?: string | string[];
755
+ preference?: string;
756
+ realtime?: boolean;
757
+ refresh?: boolean;
758
+ routing?: string;
759
+ _source?: string | string[];
760
+ _source_excludes?: string | string[];
761
+ _source_includes?: string | string[];
762
+ version?: number;
763
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
764
+ }
765
+
766
+ export interface ExistsSource extends Generic {
767
+ id: string;
768
+ index: string;
769
+ type?: string;
770
+ _source_exclude?: string | string[];
771
+ _source_include?: string | string[];
772
+ preference?: string;
773
+ realtime?: boolean;
774
+ refresh?: boolean;
775
+ routing?: string;
776
+ _source?: string | string[];
777
+ _source_excludes?: string | string[];
778
+ _source_includes?: string | string[];
779
+ version?: number;
780
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
781
+ }
782
+
783
+ export interface Explain<T = RequestBody> extends Generic {
784
+ id: string;
785
+ index: string;
786
+ type?: string;
787
+ _source_exclude?: string | string[];
788
+ _source_include?: string | string[];
789
+ analyze_wildcard?: boolean;
790
+ analyzer?: string;
791
+ default_operator?: 'AND' | 'OR';
792
+ df?: string;
793
+ stored_fields?: string | string[];
794
+ lenient?: boolean;
795
+ preference?: string;
796
+ q?: string;
797
+ routing?: string;
798
+ _source?: string | string[];
799
+ _source_excludes?: string | string[];
800
+ _source_includes?: string | string[];
801
+ body?: T;
802
+ }
803
+
804
+ export interface FeaturesGetFeatures extends Generic {
805
+ master_timeout?: string;
806
+ }
807
+
808
+ export interface FeaturesResetFeatures extends Generic {
809
+ }
810
+
811
+ export interface FieldCaps<T = RequestBody> extends Generic {
812
+ index?: string | string[];
813
+ fields?: string | string[];
814
+ ignore_unavailable?: boolean;
815
+ allow_no_indices?: boolean;
816
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
817
+ include_unmapped?: boolean;
818
+ body?: T;
819
+ }
820
+
821
+ export interface FleetGlobalCheckpoints extends Generic {
822
+ index: string;
823
+ wait_for_advance?: boolean;
824
+ wait_for_index?: boolean;
825
+ checkpoints?: string | string[];
826
+ timeout?: string;
827
+ }
828
+
829
+ export interface Get extends Generic {
830
+ id: string;
831
+ index: string;
832
+ type?: string;
833
+ _source_exclude?: string | string[];
834
+ _source_include?: string | string[];
835
+ stored_fields?: string | string[];
836
+ preference?: string;
837
+ realtime?: boolean;
838
+ refresh?: boolean;
839
+ routing?: string;
840
+ _source?: string | string[];
841
+ _source_excludes?: string | string[];
842
+ _source_includes?: string | string[];
843
+ version?: number;
844
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
845
+ }
846
+
847
+ export interface GetScript extends Generic {
848
+ id: string;
849
+ master_timeout?: string;
850
+ }
851
+
852
+ export interface GetScriptContext extends Generic {
853
+ }
854
+
855
+ export interface GetScriptLanguages extends Generic {
856
+ }
857
+
858
+ export interface GetSource extends Generic {
859
+ id: string;
860
+ index: string;
861
+ type?: string;
862
+ _source_exclude?: string | string[];
863
+ _source_include?: string | string[];
864
+ preference?: string;
865
+ realtime?: boolean;
866
+ refresh?: boolean;
867
+ routing?: string;
868
+ _source?: string | string[];
869
+ _source_excludes?: string | string[];
870
+ _source_includes?: string | string[];
871
+ version?: number;
872
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
873
+ }
874
+
875
+ export interface GraphExplore<T = RequestBody> extends Generic {
876
+ index: string | string[];
877
+ type?: string | string[];
878
+ routing?: string;
879
+ timeout?: string;
880
+ body?: T;
881
+ }
882
+
883
+ export interface IlmDeleteLifecycle extends Generic {
884
+ policy: string;
885
+ }
886
+
887
+ export interface IlmExplainLifecycle extends Generic {
888
+ index: string;
889
+ only_managed?: boolean;
890
+ only_errors?: boolean;
891
+ }
892
+
893
+ export interface IlmGetLifecycle extends Generic {
894
+ policy?: string;
895
+ }
896
+
897
+ export interface IlmGetStatus extends Generic {
898
+ }
899
+
900
+ export interface IlmMigrateToDataTiers<T = RequestBody> extends Generic {
901
+ dry_run?: boolean;
902
+ body?: T;
903
+ }
904
+
905
+ export interface IlmMoveToStep<T = RequestBody> extends Generic {
906
+ index: string;
907
+ body?: T;
908
+ }
909
+
910
+ export interface IlmPutLifecycle<T = RequestBody> extends Generic {
911
+ policy: string;
912
+ body?: T;
913
+ }
914
+
915
+ export interface IlmRemovePolicy extends Generic {
916
+ index: string;
917
+ }
918
+
919
+ export interface IlmRetry extends Generic {
920
+ index: string;
921
+ }
922
+
923
+ export interface IlmStart extends Generic {
924
+ }
925
+
926
+ export interface IlmStop extends Generic {
927
+ }
928
+
929
+ export interface Index<T = RequestBody> extends Generic {
930
+ id?: string;
931
+ index: string;
932
+ type?: string;
933
+ wait_for_active_shards?: string;
934
+ op_type?: 'index' | 'create';
935
+ refresh?: 'wait_for' | boolean;
936
+ routing?: string;
937
+ timeout?: string;
938
+ version?: number;
939
+ version_type?: 'internal' | 'external' | 'external_gte';
940
+ if_seq_no?: number;
941
+ if_primary_term?: number;
942
+ pipeline?: string;
943
+ require_alias?: boolean;
944
+ body: T;
945
+ }
946
+
947
+ export interface IndicesAddBlock extends Generic {
948
+ index: string | string[];
949
+ block: string;
950
+ timeout?: string;
951
+ master_timeout?: string;
952
+ ignore_unavailable?: boolean;
953
+ allow_no_indices?: boolean;
954
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
955
+ }
956
+
957
+ export interface IndicesAnalyze<T = RequestBody> extends Generic {
958
+ index?: string;
959
+ body?: T;
960
+ }
961
+
962
+ export interface IndicesClearCache extends Generic {
963
+ index?: string | string[];
964
+ fielddata?: boolean;
965
+ fields?: string | string[];
966
+ query?: boolean;
967
+ ignore_unavailable?: boolean;
968
+ allow_no_indices?: boolean;
969
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
970
+ request?: boolean;
971
+ }
972
+
973
+ export interface IndicesClone<T = RequestBody> extends Generic {
974
+ index: string;
975
+ target: string;
976
+ timeout?: string;
977
+ master_timeout?: string;
978
+ wait_for_active_shards?: string;
979
+ body?: T;
980
+ }
981
+
982
+ export interface IndicesClose extends Generic {
983
+ index: string | string[];
984
+ timeout?: string;
985
+ master_timeout?: string;
986
+ ignore_unavailable?: boolean;
987
+ allow_no_indices?: boolean;
988
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
989
+ wait_for_active_shards?: string;
990
+ }
991
+
992
+ export interface IndicesCreate<T = RequestBody> extends Generic {
993
+ index: string;
994
+ include_type_name?: boolean;
995
+ wait_for_active_shards?: string;
996
+ timeout?: string;
997
+ master_timeout?: string;
998
+ body?: T;
999
+ }
1000
+
1001
+ export interface IndicesCreateDataStream extends Generic {
1002
+ name: string;
1003
+ }
1004
+
1005
+ export interface IndicesDataStreamsStats extends Generic {
1006
+ name?: string | string[];
1007
+ }
1008
+
1009
+ export interface IndicesDelete extends Generic {
1010
+ index: string | string[];
1011
+ timeout?: string;
1012
+ master_timeout?: string;
1013
+ ignore_unavailable?: boolean;
1014
+ allow_no_indices?: boolean;
1015
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1016
+ }
1017
+
1018
+ export interface IndicesDeleteAlias extends Generic {
1019
+ index: string | string[];
1020
+ name: string | string[];
1021
+ timeout?: string;
1022
+ master_timeout?: string;
1023
+ }
1024
+
1025
+ export interface IndicesDeleteDataStream extends Generic {
1026
+ name: string | string[];
1027
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1028
+ }
1029
+
1030
+ export interface IndicesDeleteIndexTemplate extends Generic {
1031
+ name: string;
1032
+ timeout?: string;
1033
+ master_timeout?: string;
1034
+ }
1035
+
1036
+ export interface IndicesDeleteTemplate extends Generic {
1037
+ name: string;
1038
+ timeout?: string;
1039
+ master_timeout?: string;
1040
+ }
1041
+
1042
+ export interface IndicesDiskUsage extends Generic {
1043
+ index: string;
1044
+ run_expensive_tasks?: boolean;
1045
+ flush?: boolean;
1046
+ ignore_unavailable?: boolean;
1047
+ allow_no_indices?: boolean;
1048
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1049
+ }
1050
+
1051
+ export interface IndicesExists extends Generic {
1052
+ index: string | string[];
1053
+ local?: boolean;
1054
+ ignore_unavailable?: boolean;
1055
+ allow_no_indices?: boolean;
1056
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1057
+ flat_settings?: boolean;
1058
+ include_defaults?: boolean;
1059
+ }
1060
+
1061
+ export interface IndicesExistsAlias extends Generic {
1062
+ name: string | string[];
1063
+ index?: string | string[];
1064
+ ignore_unavailable?: boolean;
1065
+ allow_no_indices?: boolean;
1066
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1067
+ local?: boolean;
1068
+ }
1069
+
1070
+ export interface IndicesExistsIndexTemplate extends Generic {
1071
+ name: string;
1072
+ flat_settings?: boolean;
1073
+ master_timeout?: string;
1074
+ local?: boolean;
1075
+ }
1076
+
1077
+ export interface IndicesExistsTemplate extends Generic {
1078
+ name: string | string[];
1079
+ flat_settings?: boolean;
1080
+ master_timeout?: string;
1081
+ local?: boolean;
1082
+ }
1083
+
1084
+ export interface IndicesExistsType extends Generic {
1085
+ index: string | string[];
1086
+ type: string | string[];
1087
+ ignore_unavailable?: boolean;
1088
+ allow_no_indices?: boolean;
1089
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1090
+ local?: boolean;
1091
+ }
1092
+
1093
+ export interface IndicesFieldUsageStats extends Generic {
1094
+ index: string;
1095
+ fields?: string | string[];
1096
+ ignore_unavailable?: boolean;
1097
+ allow_no_indices?: boolean;
1098
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1099
+ }
1100
+
1101
+ export interface IndicesFlush extends Generic {
1102
+ index?: string | string[];
1103
+ force?: boolean;
1104
+ wait_if_ongoing?: boolean;
1105
+ ignore_unavailable?: boolean;
1106
+ allow_no_indices?: boolean;
1107
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1108
+ }
1109
+
1110
+ export interface IndicesFlushSynced extends Generic {
1111
+ index?: string | string[];
1112
+ ignore_unavailable?: boolean;
1113
+ allow_no_indices?: boolean;
1114
+ expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
1115
+ }
1116
+
1117
+ export interface IndicesForcemerge extends Generic {
1118
+ index?: string | string[];
1119
+ flush?: boolean;
1120
+ ignore_unavailable?: boolean;
1121
+ allow_no_indices?: boolean;
1122
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1123
+ max_num_segments?: number;
1124
+ only_expunge_deletes?: boolean;
1125
+ }
1126
+
1127
+ export interface IndicesFreeze extends Generic {
1128
+ index: string;
1129
+ timeout?: string;
1130
+ master_timeout?: string;
1131
+ ignore_unavailable?: boolean;
1132
+ allow_no_indices?: boolean;
1133
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1134
+ wait_for_active_shards?: string;
1135
+ }
1136
+
1137
+ export interface IndicesGet extends Generic {
1138
+ index: string | string[];
1139
+ include_type_name?: boolean;
1140
+ local?: boolean;
1141
+ ignore_unavailable?: boolean;
1142
+ allow_no_indices?: boolean;
1143
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1144
+ flat_settings?: boolean;
1145
+ include_defaults?: boolean;
1146
+ master_timeout?: string;
1147
+ }
1148
+
1149
+ export interface IndicesGetAlias extends Generic {
1150
+ name?: string | string[];
1151
+ index?: string | string[];
1152
+ ignore_unavailable?: boolean;
1153
+ allow_no_indices?: boolean;
1154
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1155
+ local?: boolean;
1156
+ }
1157
+
1158
+ export interface IndicesGetDataStream extends Generic {
1159
+ name?: string | string[];
1160
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1161
+ }
1162
+
1163
+ export interface IndicesGetFieldMapping extends Generic {
1164
+ fields: string | string[];
1165
+ index?: string | string[];
1166
+ type?: string | string[];
1167
+ include_type_name?: boolean;
1168
+ include_defaults?: boolean;
1169
+ ignore_unavailable?: boolean;
1170
+ allow_no_indices?: boolean;
1171
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1172
+ local?: boolean;
1173
+ }
1174
+
1175
+ export interface IndicesGetIndexTemplate extends Generic {
1176
+ name?: string | string[];
1177
+ flat_settings?: boolean;
1178
+ master_timeout?: string;
1179
+ local?: boolean;
1180
+ }
1181
+
1182
+ export interface IndicesGetMapping extends Generic {
1183
+ index?: string | string[];
1184
+ type?: string | string[];
1185
+ include_type_name?: boolean;
1186
+ ignore_unavailable?: boolean;
1187
+ allow_no_indices?: boolean;
1188
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1189
+ master_timeout?: string;
1190
+ local?: boolean;
1191
+ }
1192
+
1193
+ export interface IndicesGetSettings extends Generic {
1194
+ index?: string | string[];
1195
+ name?: string | string[];
1196
+ master_timeout?: string;
1197
+ ignore_unavailable?: boolean;
1198
+ allow_no_indices?: boolean;
1199
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1200
+ flat_settings?: boolean;
1201
+ local?: boolean;
1202
+ include_defaults?: boolean;
1203
+ }
1204
+
1205
+ export interface IndicesGetTemplate extends Generic {
1206
+ name?: string | string[];
1207
+ include_type_name?: boolean;
1208
+ flat_settings?: boolean;
1209
+ master_timeout?: string;
1210
+ local?: boolean;
1211
+ }
1212
+
1213
+ export interface IndicesGetUpgrade extends Generic {
1214
+ index?: string | string[];
1215
+ ignore_unavailable?: boolean;
1216
+ allow_no_indices?: boolean;
1217
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1218
+ }
1219
+
1220
+ export interface IndicesMigrateToDataStream extends Generic {
1221
+ name: string;
1222
+ }
1223
+
1224
+ export interface IndicesOpen extends Generic {
1225
+ index: string | string[];
1226
+ timeout?: string;
1227
+ master_timeout?: string;
1228
+ ignore_unavailable?: boolean;
1229
+ allow_no_indices?: boolean;
1230
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1231
+ wait_for_active_shards?: string;
1232
+ }
1233
+
1234
+ export interface IndicesPromoteDataStream extends Generic {
1235
+ name: string;
1236
+ }
1237
+
1238
+ export interface IndicesPutAlias<T = RequestBody> extends Generic {
1239
+ index: string | string[];
1240
+ name: string;
1241
+ timeout?: string;
1242
+ master_timeout?: string;
1243
+ body?: T;
1244
+ }
1245
+
1246
+ export interface IndicesPutIndexTemplate<T = RequestBody> extends Generic {
1247
+ name: string;
1248
+ create?: boolean;
1249
+ cause?: string;
1250
+ master_timeout?: string;
1251
+ body: T;
1252
+ }
1253
+
1254
+ export interface IndicesPutMapping<T = RequestBody> extends Generic {
1255
+ index?: string | string[];
1256
+ type?: string;
1257
+ include_type_name?: boolean;
1258
+ timeout?: string;
1259
+ master_timeout?: string;
1260
+ ignore_unavailable?: boolean;
1261
+ allow_no_indices?: boolean;
1262
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1263
+ write_index_only?: boolean;
1264
+ body: T;
1265
+ }
1266
+
1267
+ export interface IndicesPutSettings<T = RequestBody> extends Generic {
1268
+ index?: string | string[];
1269
+ master_timeout?: string;
1270
+ timeout?: string;
1271
+ preserve_existing?: boolean;
1272
+ ignore_unavailable?: boolean;
1273
+ allow_no_indices?: boolean;
1274
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1275
+ flat_settings?: boolean;
1276
+ body: T;
1277
+ }
1278
+
1279
+ export interface IndicesPutTemplate<T = RequestBody> extends Generic {
1280
+ name: string;
1281
+ include_type_name?: boolean;
1282
+ order?: number;
1283
+ create?: boolean;
1284
+ master_timeout?: string;
1285
+ body: T;
1286
+ }
1287
+
1288
+ export interface IndicesRecovery extends Generic {
1289
+ index?: string | string[];
1290
+ detailed?: boolean;
1291
+ active_only?: boolean;
1292
+ }
1293
+
1294
+ export interface IndicesRefresh extends Generic {
1295
+ index?: string | string[];
1296
+ ignore_unavailable?: boolean;
1297
+ allow_no_indices?: boolean;
1298
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1299
+ }
1300
+
1301
+ export interface IndicesReloadSearchAnalyzers extends Generic {
1302
+ index: string | string[];
1303
+ ignore_unavailable?: boolean;
1304
+ allow_no_indices?: boolean;
1305
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1306
+ }
1307
+
1308
+ export interface IndicesResolveIndex extends Generic {
1309
+ name: string | string[];
1310
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1311
+ }
1312
+
1313
+ export interface IndicesRollover<T = RequestBody> extends Generic {
1314
+ alias: string;
1315
+ new_index?: string;
1316
+ include_type_name?: boolean;
1317
+ timeout?: string;
1318
+ dry_run?: boolean;
1319
+ master_timeout?: string;
1320
+ wait_for_active_shards?: string;
1321
+ body?: T;
1322
+ }
1323
+
1324
+ export interface IndicesSegments extends Generic {
1325
+ index?: string | string[];
1326
+ ignore_unavailable?: boolean;
1327
+ allow_no_indices?: boolean;
1328
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1329
+ verbose?: boolean;
1330
+ }
1331
+
1332
+ export interface IndicesShardStores extends Generic {
1333
+ index?: string | string[];
1334
+ status?: string | string[];
1335
+ ignore_unavailable?: boolean;
1336
+ allow_no_indices?: boolean;
1337
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1338
+ }
1339
+
1340
+ export interface IndicesShrink<T = RequestBody> extends Generic {
1341
+ index: string;
1342
+ target: string;
1343
+ copy_settings?: boolean;
1344
+ timeout?: string;
1345
+ master_timeout?: string;
1346
+ wait_for_active_shards?: string;
1347
+ body?: T;
1348
+ }
1349
+
1350
+ export interface IndicesSimulateIndexTemplate<T = RequestBody> extends Generic {
1351
+ name: string;
1352
+ create?: boolean;
1353
+ cause?: string;
1354
+ master_timeout?: string;
1355
+ body?: T;
1356
+ }
1357
+
1358
+ export interface IndicesSimulateTemplate<T = RequestBody> extends Generic {
1359
+ name?: string;
1360
+ create?: boolean;
1361
+ cause?: string;
1362
+ master_timeout?: string;
1363
+ body?: T;
1364
+ }
1365
+
1366
+ export interface IndicesSplit<T = RequestBody> extends Generic {
1367
+ index: string;
1368
+ target: string;
1369
+ copy_settings?: boolean;
1370
+ timeout?: string;
1371
+ master_timeout?: string;
1372
+ wait_for_active_shards?: string;
1373
+ body?: T;
1374
+ }
1375
+
1376
+ export interface IndicesStats extends Generic {
1377
+ metric?: string | string[];
1378
+ index?: string | string[];
1379
+ completion_fields?: string | string[];
1380
+ fielddata_fields?: string | string[];
1381
+ fields?: string | string[];
1382
+ groups?: string | string[];
1383
+ level?: 'cluster' | 'indices' | 'shards';
1384
+ types?: string | string[];
1385
+ include_segment_file_sizes?: boolean;
1386
+ include_unloaded_segments?: boolean;
1387
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1388
+ forbid_closed_indices?: boolean;
1389
+ }
1390
+
1391
+ export interface IndicesUnfreeze extends Generic {
1392
+ index: string;
1393
+ timeout?: string;
1394
+ master_timeout?: string;
1395
+ ignore_unavailable?: boolean;
1396
+ allow_no_indices?: boolean;
1397
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1398
+ wait_for_active_shards?: string;
1399
+ }
1400
+
1401
+ export interface IndicesUpdateAliases<T = RequestBody> extends Generic {
1402
+ timeout?: string;
1403
+ master_timeout?: string;
1404
+ body: T;
1405
+ }
1406
+
1407
+ export interface IndicesUpgrade extends Generic {
1408
+ index?: string | string[];
1409
+ allow_no_indices?: boolean;
1410
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1411
+ ignore_unavailable?: boolean;
1412
+ wait_for_completion?: boolean;
1413
+ only_ancient_segments?: boolean;
1414
+ }
1415
+
1416
+ export interface IndicesValidateQuery<T = RequestBody> extends Generic {
1417
+ index?: string | string[];
1418
+ type?: string | string[];
1419
+ explain?: boolean;
1420
+ ignore_unavailable?: boolean;
1421
+ allow_no_indices?: boolean;
1422
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1423
+ q?: string;
1424
+ analyzer?: string;
1425
+ analyze_wildcard?: boolean;
1426
+ default_operator?: 'AND' | 'OR';
1427
+ df?: string;
1428
+ lenient?: boolean;
1429
+ rewrite?: boolean;
1430
+ all_shards?: boolean;
1431
+ body?: T;
1432
+ }
1433
+
1434
+ export interface Info extends Generic {
1435
+ }
1436
+
1437
+ export interface IngestDeletePipeline extends Generic {
1438
+ id: string;
1439
+ master_timeout?: string;
1440
+ timeout?: string;
1441
+ }
1442
+
1443
+ export interface IngestGeoIpStats extends Generic {
1444
+ }
1445
+
1446
+ export interface IngestGetPipeline extends Generic {
1447
+ id?: string;
1448
+ summary?: boolean;
1449
+ master_timeout?: string;
1450
+ }
1451
+
1452
+ export interface IngestProcessorGrok extends Generic {
1453
+ }
1454
+
1455
+ export interface IngestPutPipeline<T = RequestBody> extends Generic {
1456
+ id: string;
1457
+ master_timeout?: string;
1458
+ timeout?: string;
1459
+ body: T;
1460
+ }
1461
+
1462
+ export interface IngestSimulate<T = RequestBody> extends Generic {
1463
+ id?: string;
1464
+ verbose?: boolean;
1465
+ body: T;
1466
+ }
1467
+
1468
+ export interface LicenseDelete extends Generic {
1469
+ }
1470
+
1471
+ export interface LicenseGet extends Generic {
1472
+ local?: boolean;
1473
+ accept_enterprise?: boolean;
1474
+ }
1475
+
1476
+ export interface LicenseGetBasicStatus extends Generic {
1477
+ }
1478
+
1479
+ export interface LicenseGetTrialStatus extends Generic {
1480
+ }
1481
+
1482
+ export interface LicensePost<T = RequestBody> extends Generic {
1483
+ acknowledge?: boolean;
1484
+ body?: T;
1485
+ }
1486
+
1487
+ export interface LicensePostStartBasic extends Generic {
1488
+ acknowledge?: boolean;
1489
+ }
1490
+
1491
+ export interface LicensePostStartTrial extends Generic {
1492
+ type?: string;
1493
+ acknowledge?: boolean;
1494
+ }
1495
+
1496
+ export interface LogstashDeletePipeline extends Generic {
1497
+ id: string;
1498
+ }
1499
+
1500
+ export interface LogstashGetPipeline extends Generic {
1501
+ id: string;
1502
+ }
1503
+
1504
+ export interface LogstashPutPipeline<T = RequestBody> extends Generic {
1505
+ id: string;
1506
+ body: T;
1507
+ }
1508
+
1509
+ export interface Mget<T = RequestBody> extends Generic {
1510
+ index?: string;
1511
+ type?: string;
1512
+ _source_exclude?: string | string[];
1513
+ _source_include?: string | string[];
1514
+ stored_fields?: string | string[];
1515
+ preference?: string;
1516
+ realtime?: boolean;
1517
+ refresh?: boolean;
1518
+ routing?: string;
1519
+ _source?: string | string[];
1520
+ _source_excludes?: string | string[];
1521
+ _source_includes?: string | string[];
1522
+ body: T;
1523
+ }
1524
+
1525
+ export interface MigrationDeprecations extends Generic {
1526
+ index?: string;
1527
+ }
1528
+
1529
+ export interface MlCloseJob<T = RequestBody> extends Generic {
1530
+ job_id: string;
1531
+ allow_no_match?: boolean;
1532
+ allow_no_jobs?: boolean;
1533
+ force?: boolean;
1534
+ timeout?: string;
1535
+ body?: T;
1536
+ }
1537
+
1538
+ export interface MlDeleteCalendar extends Generic {
1539
+ calendar_id: string;
1540
+ }
1541
+
1542
+ export interface MlDeleteCalendarEvent extends Generic {
1543
+ calendar_id: string;
1544
+ event_id: string;
1545
+ }
1546
+
1547
+ export interface MlDeleteCalendarJob extends Generic {
1548
+ calendar_id: string;
1549
+ job_id: string;
1550
+ }
1551
+
1552
+ export interface MlDeleteDataFrameAnalytics extends Generic {
1553
+ id: string;
1554
+ force?: boolean;
1555
+ timeout?: string;
1556
+ }
1557
+
1558
+ export interface MlDeleteDatafeed extends Generic {
1559
+ datafeed_id: string;
1560
+ force?: boolean;
1561
+ }
1562
+
1563
+ export interface MlDeleteExpiredData<T = RequestBody> extends Generic {
1564
+ job_id?: string;
1565
+ requests_per_second?: number;
1566
+ timeout?: string;
1567
+ body?: T;
1568
+ }
1569
+
1570
+ export interface MlDeleteFilter extends Generic {
1571
+ filter_id: string;
1572
+ }
1573
+
1574
+ export interface MlDeleteForecast extends Generic {
1575
+ job_id: string;
1576
+ forecast_id?: string;
1577
+ allow_no_forecasts?: boolean;
1578
+ timeout?: string;
1579
+ }
1580
+
1581
+ export interface MlDeleteJob extends Generic {
1582
+ job_id: string;
1583
+ force?: boolean;
1584
+ wait_for_completion?: boolean;
1585
+ }
1586
+
1587
+ export interface MlDeleteModelSnapshot extends Generic {
1588
+ job_id: string;
1589
+ snapshot_id: string;
1590
+ }
1591
+
1592
+ export interface MlDeleteTrainedModel extends Generic {
1593
+ model_id: string;
1594
+ }
1595
+
1596
+ export interface MlDeleteTrainedModelAlias extends Generic {
1597
+ model_alias: string;
1598
+ model_id: string;
1599
+ }
1600
+
1601
+ export interface MlEstimateModelMemory<T = RequestBody> extends Generic {
1602
+ body: T;
1603
+ }
1604
+
1605
+ export interface MlEvaluateDataFrame<T = RequestBody> extends Generic {
1606
+ body: T;
1607
+ }
1608
+
1609
+ export interface MlExplainDataFrameAnalytics<T = RequestBody> extends Generic {
1610
+ id?: string;
1611
+ body?: T;
1612
+ }
1613
+
1614
+ export interface MlFindFileStructure<T = RequestNDBody> extends Generic {
1615
+ lines_to_sample?: number;
1616
+ line_merge_size_limit?: number;
1617
+ timeout?: string;
1618
+ charset?: string;
1619
+ format?: 'ndjson' | 'xml' | 'delimited' | 'semi_structured_text';
1620
+ has_header_row?: boolean;
1621
+ column_names?: string | string[];
1622
+ delimiter?: string;
1623
+ quote?: string;
1624
+ should_trim_fields?: boolean;
1625
+ grok_pattern?: string;
1626
+ timestamp_field?: string;
1627
+ timestamp_format?: string;
1628
+ explain?: boolean;
1629
+ body: T;
1630
+ }
1631
+
1632
+ export interface MlFlushJob<T = RequestBody> extends Generic {
1633
+ job_id: string;
1634
+ calc_interim?: boolean;
1635
+ start?: string;
1636
+ end?: string;
1637
+ advance_time?: string;
1638
+ skip_time?: string;
1639
+ body?: T;
1640
+ }
1641
+
1642
+ export interface MlForecast extends Generic {
1643
+ job_id: string;
1644
+ duration?: string;
1645
+ expires_in?: string;
1646
+ max_model_memory?: string;
1647
+ }
1648
+
1649
+ export interface MlGetBuckets<T = RequestBody> extends Generic {
1650
+ job_id: string;
1651
+ timestamp?: string;
1652
+ expand?: boolean;
1653
+ exclude_interim?: boolean;
1654
+ from?: number;
1655
+ size?: number;
1656
+ start?: string;
1657
+ end?: string;
1658
+ anomaly_score?: number;
1659
+ sort?: string;
1660
+ desc?: boolean;
1661
+ body?: T;
1662
+ }
1663
+
1664
+ export interface MlGetCalendarEvents extends Generic {
1665
+ calendar_id: string;
1666
+ job_id?: string;
1667
+ start?: string;
1668
+ end?: string;
1669
+ from?: number;
1670
+ size?: number;
1671
+ }
1672
+
1673
+ export interface MlGetCalendars<T = RequestBody> extends Generic {
1674
+ calendar_id?: string;
1675
+ from?: number;
1676
+ size?: number;
1677
+ body?: T;
1678
+ }
1679
+
1680
+ export interface MlGetCategories<T = RequestBody> extends Generic {
1681
+ job_id: string;
1682
+ category_id?: number;
1683
+ from?: number;
1684
+ size?: number;
1685
+ partition_field_value?: string;
1686
+ body?: T;
1687
+ }
1688
+
1689
+ export interface MlGetDataFrameAnalytics extends Generic {
1690
+ id?: string;
1691
+ allow_no_match?: boolean;
1692
+ from?: number;
1693
+ size?: number;
1694
+ exclude_generated?: boolean;
1695
+ }
1696
+
1697
+ export interface MlGetDataFrameAnalyticsStats extends Generic {
1698
+ id?: string;
1699
+ allow_no_match?: boolean;
1700
+ from?: number;
1701
+ size?: number;
1702
+ verbose?: boolean;
1703
+ }
1704
+
1705
+ export interface MlGetDatafeedStats extends Generic {
1706
+ datafeed_id?: string;
1707
+ allow_no_match?: boolean;
1708
+ allow_no_datafeeds?: boolean;
1709
+ }
1710
+
1711
+ export interface MlGetDatafeeds extends Generic {
1712
+ datafeed_id?: string;
1713
+ allow_no_match?: boolean;
1714
+ allow_no_datafeeds?: boolean;
1715
+ exclude_generated?: boolean;
1716
+ }
1717
+
1718
+ export interface MlGetFilters extends Generic {
1719
+ filter_id?: string;
1720
+ from?: number;
1721
+ size?: number;
1722
+ }
1723
+
1724
+ export interface MlGetInfluencers<T = RequestBody> extends Generic {
1725
+ job_id: string;
1726
+ exclude_interim?: boolean;
1727
+ from?: number;
1728
+ size?: number;
1729
+ start?: string;
1730
+ end?: string;
1731
+ influencer_score?: number;
1732
+ sort?: string;
1733
+ desc?: boolean;
1734
+ body?: T;
1735
+ }
1736
+
1737
+ export interface MlGetJobStats extends Generic {
1738
+ job_id?: string;
1739
+ allow_no_match?: boolean;
1740
+ allow_no_jobs?: boolean;
1741
+ }
1742
+
1743
+ export interface MlGetJobs extends Generic {
1744
+ job_id?: string;
1745
+ allow_no_match?: boolean;
1746
+ allow_no_jobs?: boolean;
1747
+ exclude_generated?: boolean;
1748
+ }
1749
+
1750
+ export interface MlGetModelSnapshots<T = RequestBody> extends Generic {
1751
+ job_id: string;
1752
+ snapshot_id?: string;
1753
+ from?: number;
1754
+ size?: number;
1755
+ start?: string;
1756
+ end?: string;
1757
+ sort?: string;
1758
+ desc?: boolean;
1759
+ body?: T;
1760
+ }
1761
+
1762
+ export interface MlGetOverallBuckets<T = RequestBody> extends Generic {
1763
+ job_id: string;
1764
+ top_n?: number;
1765
+ bucket_span?: string;
1766
+ overall_score?: number;
1767
+ exclude_interim?: boolean;
1768
+ start?: string;
1769
+ end?: string;
1770
+ allow_no_match?: boolean;
1771
+ allow_no_jobs?: boolean;
1772
+ body?: T;
1773
+ }
1774
+
1775
+ export interface MlGetRecords<T = RequestBody> extends Generic {
1776
+ job_id: string;
1777
+ exclude_interim?: boolean;
1778
+ from?: number;
1779
+ size?: number;
1780
+ start?: string;
1781
+ end?: string;
1782
+ record_score?: number;
1783
+ sort?: string;
1784
+ desc?: boolean;
1785
+ body?: T;
1786
+ }
1787
+
1788
+ export interface MlGetTrainedModels extends Generic {
1789
+ model_id?: string;
1790
+ allow_no_match?: boolean;
1791
+ include?: string;
1792
+ include_model_definition?: boolean;
1793
+ decompress_definition?: boolean;
1794
+ from?: number;
1795
+ size?: number;
1796
+ tags?: string | string[];
1797
+ exclude_generated?: boolean;
1798
+ }
1799
+
1800
+ export interface MlGetTrainedModelsStats extends Generic {
1801
+ model_id?: string;
1802
+ allow_no_match?: boolean;
1803
+ from?: number;
1804
+ size?: number;
1805
+ }
1806
+
1807
+ export interface MlInfo extends Generic {
1808
+ }
1809
+
1810
+ export interface MlOpenJob extends Generic {
1811
+ job_id: string;
1812
+ }
1813
+
1814
+ export interface MlPostCalendarEvents<T = RequestBody> extends Generic {
1815
+ calendar_id: string;
1816
+ body: T;
1817
+ }
1818
+
1819
+ export interface MlPostData<T = RequestNDBody> extends Generic {
1820
+ job_id: string;
1821
+ reset_start?: string;
1822
+ reset_end?: string;
1823
+ body: T;
1824
+ }
1825
+
1826
+ export interface MlPreviewDataFrameAnalytics<T = RequestBody> extends Generic {
1827
+ id?: string;
1828
+ body?: T;
1829
+ }
1830
+
1831
+ export interface MlPreviewDatafeed<T = RequestBody> extends Generic {
1832
+ datafeed_id?: string;
1833
+ body?: T;
1834
+ }
1835
+
1836
+ export interface MlPutCalendar<T = RequestBody> extends Generic {
1837
+ calendar_id: string;
1838
+ body?: T;
1839
+ }
1840
+
1841
+ export interface MlPutCalendarJob extends Generic {
1842
+ calendar_id: string;
1843
+ job_id: string;
1844
+ }
1845
+
1846
+ export interface MlPutDataFrameAnalytics<T = RequestBody> extends Generic {
1847
+ id: string;
1848
+ body: T;
1849
+ }
1850
+
1851
+ export interface MlPutDatafeed<T = RequestBody> extends Generic {
1852
+ datafeed_id: string;
1853
+ ignore_unavailable?: boolean;
1854
+ allow_no_indices?: boolean;
1855
+ ignore_throttled?: boolean;
1856
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1857
+ body: T;
1858
+ }
1859
+
1860
+ export interface MlPutFilter<T = RequestBody> extends Generic {
1861
+ filter_id: string;
1862
+ body: T;
1863
+ }
1864
+
1865
+ export interface MlPutJob<T = RequestBody> extends Generic {
1866
+ job_id: string;
1867
+ ignore_unavailable?: boolean;
1868
+ allow_no_indices?: boolean;
1869
+ ignore_throttled?: boolean;
1870
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1871
+ body: T;
1872
+ }
1873
+
1874
+ export interface MlPutTrainedModel<T = RequestBody> extends Generic {
1875
+ model_id: string;
1876
+ body: T;
1877
+ }
1878
+
1879
+ export interface MlPutTrainedModelAlias extends Generic {
1880
+ model_alias: string;
1881
+ model_id: string;
1882
+ reassign?: boolean;
1883
+ }
1884
+
1885
+ export interface MlResetJob extends Generic {
1886
+ job_id: string;
1887
+ wait_for_completion?: boolean;
1888
+ }
1889
+
1890
+ export interface MlRevertModelSnapshot<T = RequestBody> extends Generic {
1891
+ job_id: string;
1892
+ snapshot_id: string;
1893
+ delete_intervening_results?: boolean;
1894
+ body?: T;
1895
+ }
1896
+
1897
+ export interface MlSetUpgradeMode extends Generic {
1898
+ enabled?: boolean;
1899
+ timeout?: string;
1900
+ }
1901
+
1902
+ export interface MlStartDataFrameAnalytics<T = RequestBody> extends Generic {
1903
+ id: string;
1904
+ timeout?: string;
1905
+ body?: T;
1906
+ }
1907
+
1908
+ export interface MlStartDatafeed<T = RequestBody> extends Generic {
1909
+ datafeed_id: string;
1910
+ start?: string;
1911
+ end?: string;
1912
+ timeout?: string;
1913
+ body?: T;
1914
+ }
1915
+
1916
+ export interface MlStopDataFrameAnalytics<T = RequestBody> extends Generic {
1917
+ id: string;
1918
+ allow_no_match?: boolean;
1919
+ force?: boolean;
1920
+ timeout?: string;
1921
+ body?: T;
1922
+ }
1923
+
1924
+ export interface MlStopDatafeed<T = RequestBody> extends Generic {
1925
+ datafeed_id: string;
1926
+ allow_no_match?: boolean;
1927
+ allow_no_datafeeds?: boolean;
1928
+ force?: boolean;
1929
+ timeout?: string;
1930
+ body?: T;
1931
+ }
1932
+
1933
+ export interface MlUpdateDataFrameAnalytics<T = RequestBody> extends Generic {
1934
+ id: string;
1935
+ body: T;
1936
+ }
1937
+
1938
+ export interface MlUpdateDatafeed<T = RequestBody> extends Generic {
1939
+ datafeed_id: string;
1940
+ ignore_unavailable?: boolean;
1941
+ allow_no_indices?: boolean;
1942
+ ignore_throttled?: boolean;
1943
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
1944
+ body: T;
1945
+ }
1946
+
1947
+ export interface MlUpdateFilter<T = RequestBody> extends Generic {
1948
+ filter_id: string;
1949
+ body: T;
1950
+ }
1951
+
1952
+ export interface MlUpdateJob<T = RequestBody> extends Generic {
1953
+ job_id: string;
1954
+ body: T;
1955
+ }
1956
+
1957
+ export interface MlUpdateModelSnapshot<T = RequestBody> extends Generic {
1958
+ job_id: string;
1959
+ snapshot_id: string;
1960
+ body: T;
1961
+ }
1962
+
1963
+ export interface MlUpgradeJobSnapshot extends Generic {
1964
+ job_id: string;
1965
+ snapshot_id: string;
1966
+ timeout?: string;
1967
+ wait_for_completion?: boolean;
1968
+ }
1969
+
1970
+ export interface MlValidate<T = RequestBody> extends Generic {
1971
+ body: T;
1972
+ }
1973
+
1974
+ export interface MlValidateDetector<T = RequestBody> extends Generic {
1975
+ body: T;
1976
+ }
1977
+
1978
+ export interface MonitoringBulk<T = RequestNDBody> extends Generic {
1979
+ type?: string;
1980
+ system_id?: string;
1981
+ system_api_version?: string;
1982
+ interval?: string;
1983
+ body: T;
1984
+ }
1985
+
1986
+ export interface Msearch<T = RequestNDBody> extends Generic {
1987
+ index?: string | string[];
1988
+ type?: string | string[];
1989
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1990
+ max_concurrent_searches?: number;
1991
+ typed_keys?: boolean;
1992
+ pre_filter_shard_size?: number;
1993
+ max_concurrent_shard_requests?: number;
1994
+ rest_total_hits_as_int?: boolean;
1995
+ ccs_minimize_roundtrips?: boolean;
1996
+ body: T;
1997
+ }
1998
+
1999
+ export interface MsearchTemplate<T = RequestNDBody> extends Generic {
2000
+ index?: string | string[];
2001
+ type?: string | string[];
2002
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
2003
+ typed_keys?: boolean;
2004
+ max_concurrent_searches?: number;
2005
+ rest_total_hits_as_int?: boolean;
2006
+ ccs_minimize_roundtrips?: boolean;
2007
+ body: T;
2008
+ }
2009
+
2010
+ export interface Mtermvectors<T = RequestBody> extends Generic {
2011
+ index?: string;
2012
+ type?: string;
2013
+ ids?: string | string[];
2014
+ term_statistics?: boolean;
2015
+ field_statistics?: boolean;
2016
+ fields?: string | string[];
2017
+ offsets?: boolean;
2018
+ positions?: boolean;
2019
+ payloads?: boolean;
2020
+ preference?: string;
2021
+ routing?: string;
2022
+ realtime?: boolean;
2023
+ version?: number;
2024
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
2025
+ body?: T;
2026
+ }
2027
+
2028
+ export interface NodesClearRepositoriesMeteringArchive extends Generic {
2029
+ node_id: string | string[];
2030
+ max_archive_version: number;
2031
+ }
2032
+
2033
+ export interface NodesGetRepositoriesMeteringInfo extends Generic {
2034
+ node_id: string | string[];
2035
+ }
2036
+
2037
+ export interface NodesHotThreads extends Generic {
2038
+ node_id?: string | string[];
2039
+ interval?: string;
2040
+ snapshots?: number;
2041
+ threads?: number;
2042
+ ignore_idle_threads?: boolean;
2043
+ type?: 'cpu' | 'wait' | 'block';
2044
+ timeout?: string;
2045
+ }
2046
+
2047
+ export interface NodesInfo extends Generic {
2048
+ node_id?: string | string[];
2049
+ metric?: string | string[];
2050
+ flat_settings?: boolean;
2051
+ timeout?: string;
2052
+ }
2053
+
2054
+ export interface NodesReloadSecureSettings<T = RequestBody> extends Generic {
2055
+ node_id?: string | string[];
2056
+ timeout?: string;
2057
+ body?: T;
2058
+ }
2059
+
2060
+ export interface NodesStats extends Generic {
2061
+ node_id?: string | string[];
2062
+ metric?: string | string[];
2063
+ index_metric?: string | string[];
2064
+ completion_fields?: string | string[];
2065
+ fielddata_fields?: string | string[];
2066
+ fields?: string | string[];
2067
+ groups?: boolean;
2068
+ level?: 'indices' | 'node' | 'shards';
2069
+ types?: string | string[];
2070
+ timeout?: string;
2071
+ include_segment_file_sizes?: boolean;
2072
+ include_unloaded_segments?: boolean;
2073
+ }
2074
+
2075
+ export interface NodesUsage extends Generic {
2076
+ node_id?: string | string[];
2077
+ metric?: string | string[];
2078
+ timeout?: string;
2079
+ }
2080
+
2081
+ export interface OpenPointInTime extends Generic {
2082
+ index: string | string[];
2083
+ preference?: string;
2084
+ routing?: string;
2085
+ ignore_unavailable?: boolean;
2086
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
2087
+ keep_alive?: string;
2088
+ }
2089
+
2090
+ export interface Ping extends Generic {
2091
+ }
2092
+
2093
+ export interface PutScript<T = RequestBody> extends Generic {
2094
+ id: string;
2095
+ context?: string;
2096
+ timeout?: string;
2097
+ master_timeout?: string;
2098
+ body: T;
2099
+ }
2100
+
2101
+ export interface RankEval<T = RequestBody> extends Generic {
2102
+ index?: string | string[];
2103
+ ignore_unavailable?: boolean;
2104
+ allow_no_indices?: boolean;
2105
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
2106
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
2107
+ body: T;
2108
+ }
2109
+
2110
+ export interface Reindex<T = RequestBody> extends Generic {
2111
+ refresh?: boolean;
2112
+ timeout?: string;
2113
+ wait_for_active_shards?: string;
2114
+ wait_for_completion?: boolean;
2115
+ requests_per_second?: number;
2116
+ scroll?: string;
2117
+ slices?: number|string;
2118
+ max_docs?: number;
2119
+ body: T;
2120
+ }
2121
+
2122
+ export interface ReindexRethrottle extends Generic {
2123
+ task_id: string;
2124
+ requests_per_second: number;
2125
+ }
2126
+
2127
+ export interface RenderSearchTemplate<T = RequestBody> extends Generic {
2128
+ id?: string;
2129
+ body?: T;
2130
+ }
2131
+
2132
+ export interface RollupDeleteJob extends Generic {
2133
+ id: string;
2134
+ }
2135
+
2136
+ export interface RollupGetJobs extends Generic {
2137
+ id?: string;
2138
+ }
2139
+
2140
+ export interface RollupGetRollupCaps extends Generic {
2141
+ id?: string;
2142
+ }
2143
+
2144
+ export interface RollupGetRollupIndexCaps extends Generic {
2145
+ index: string;
2146
+ }
2147
+
2148
+ export interface RollupPutJob<T = RequestBody> extends Generic {
2149
+ id: string;
2150
+ body: T;
2151
+ }
2152
+
2153
+ export interface RollupRollup<T = RequestBody> extends Generic {
2154
+ index: string;
2155
+ rollup_index: string;
2156
+ body: T;
2157
+ }
2158
+
2159
+ export interface RollupRollupSearch<T = RequestBody> extends Generic {
2160
+ index: string | string[];
2161
+ type?: string;
2162
+ typed_keys?: boolean;
2163
+ rest_total_hits_as_int?: boolean;
2164
+ body: T;
2165
+ }
2166
+
2167
+ export interface RollupStartJob extends Generic {
2168
+ id: string;
2169
+ }
2170
+
2171
+ export interface RollupStopJob extends Generic {
2172
+ id: string;
2173
+ wait_for_completion?: boolean;
2174
+ timeout?: string;
2175
+ }
2176
+
2177
+ export interface ScriptsPainlessExecute<T = RequestBody> extends Generic {
2178
+ body?: T;
2179
+ }
2180
+
2181
+ export interface Scroll<T = RequestBody> extends Generic {
2182
+ scroll_id?: string;
2183
+ scroll?: string;
2184
+ rest_total_hits_as_int?: boolean;
2185
+ body?: T;
2186
+ }
2187
+
2188
+ export interface Search<T = RequestBody> extends Generic {
2189
+ index?: string | string[];
2190
+ type?: string | string[];
2191
+ _source_exclude?: string | string[];
2192
+ _source_include?: string | string[];
2193
+ analyzer?: string;
2194
+ analyze_wildcard?: boolean;
2195
+ ccs_minimize_roundtrips?: boolean;
2196
+ default_operator?: 'AND' | 'OR';
2197
+ df?: string;
2198
+ explain?: boolean;
2199
+ stored_fields?: string | string[];
2200
+ docvalue_fields?: string | string[];
2201
+ from?: number;
2202
+ ignore_unavailable?: boolean;
2203
+ ignore_throttled?: boolean;
2204
+ allow_no_indices?: boolean;
2205
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
2206
+ lenient?: boolean;
2207
+ preference?: string;
2208
+ q?: string;
2209
+ routing?: string | string[];
2210
+ scroll?: string;
2211
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
2212
+ size?: number;
2213
+ sort?: string | string[];
2214
+ _source?: string | string[];
2215
+ _source_excludes?: string | string[];
2216
+ _source_includes?: string | string[];
2217
+ terminate_after?: number;
2218
+ stats?: string | string[];
2219
+ suggest_field?: string;
2220
+ suggest_mode?: 'missing' | 'popular' | 'always';
2221
+ suggest_size?: number;
2222
+ suggest_text?: string;
2223
+ timeout?: string;
2224
+ track_scores?: boolean;
2225
+ track_total_hits?: boolean;
2226
+ allow_partial_search_results?: boolean;
2227
+ typed_keys?: boolean;
2228
+ version?: boolean;
2229
+ seq_no_primary_term?: boolean;
2230
+ request_cache?: boolean;
2231
+ batched_reduce_size?: number;
2232
+ max_concurrent_shard_requests?: number;
2233
+ pre_filter_shard_size?: number;
2234
+ rest_total_hits_as_int?: boolean;
2235
+ min_compatible_shard_node?: string;
2236
+ body?: T;
2237
+ }
2238
+
2239
+ export interface SearchMvt<T = RequestBody> extends Generic {
2240
+ index: string | string[];
2241
+ field: string;
2242
+ zoom: number;
2243
+ x: number;
2244
+ y: number;
2245
+ exact_bounds?: boolean;
2246
+ extent?: number;
2247
+ grid_precision?: number;
2248
+ grid_type?: 'grid' | 'point';
2249
+ size?: number;
2250
+ body?: T;
2251
+ }
2252
+
2253
+ export interface SearchShards extends Generic {
2254
+ index?: string | string[];
2255
+ preference?: string;
2256
+ routing?: string;
2257
+ local?: boolean;
2258
+ ignore_unavailable?: boolean;
2259
+ allow_no_indices?: boolean;
2260
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
2261
+ }
2262
+
2263
+ export interface SearchTemplate<T = RequestBody> extends Generic {
2264
+ index?: string | string[];
2265
+ type?: string | string[];
2266
+ ignore_unavailable?: boolean;
2267
+ ignore_throttled?: boolean;
2268
+ allow_no_indices?: boolean;
2269
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
2270
+ preference?: string;
2271
+ routing?: string | string[];
2272
+ scroll?: string;
2273
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
2274
+ explain?: boolean;
2275
+ profile?: boolean;
2276
+ typed_keys?: boolean;
2277
+ rest_total_hits_as_int?: boolean;
2278
+ ccs_minimize_roundtrips?: boolean;
2279
+ body: T;
2280
+ }
2281
+
2282
+ export interface SearchableSnapshotsCacheStats extends Generic {
2283
+ node_id?: string | string[];
2284
+ }
2285
+
2286
+ export interface SearchableSnapshotsClearCache extends Generic {
2287
+ index?: string | string[];
2288
+ ignore_unavailable?: boolean;
2289
+ allow_no_indices?: boolean;
2290
+ expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
2291
+ }
2292
+
2293
+ export interface SearchableSnapshotsMount<T = RequestBody> extends Generic {
2294
+ repository: string;
2295
+ snapshot: string;
2296
+ master_timeout?: string;
2297
+ wait_for_completion?: boolean;
2298
+ storage?: string;
2299
+ body: T;
2300
+ }
2301
+
2302
+ export interface SearchableSnapshotsRepositoryStats extends Generic {
2303
+ repository: string;
2304
+ }
2305
+
2306
+ export interface SearchableSnapshotsStats extends Generic {
2307
+ index?: string | string[];
2308
+ level?: 'cluster' | 'indices' | 'shards';
2309
+ }
2310
+
2311
+ export interface SecurityAuthenticate extends Generic {
2312
+ }
2313
+
2314
+ export interface SecurityChangePassword<T = RequestBody> extends Generic {
2315
+ username?: string;
2316
+ refresh?: 'wait_for' | boolean;
2317
+ body: T;
2318
+ }
2319
+
2320
+ export interface SecurityClearApiKeyCache extends Generic {
2321
+ ids: string | string[];
2322
+ }
2323
+
2324
+ export interface SecurityClearCachedPrivileges extends Generic {
2325
+ application: string | string[];
2326
+ }
2327
+
2328
+ export interface SecurityClearCachedRealms extends Generic {
2329
+ realms: string | string[];
2330
+ usernames?: string | string[];
2331
+ }
2332
+
2333
+ export interface SecurityClearCachedRoles extends Generic {
2334
+ name: string | string[];
2335
+ }
2336
+
2337
+ export interface SecurityClearCachedServiceTokens extends Generic {
2338
+ namespace: string;
2339
+ service: string;
2340
+ name: string | string[];
2341
+ }
2342
+
2343
+ export interface SecurityCreateApiKey<T = RequestBody> extends Generic {
2344
+ refresh?: 'wait_for' | boolean;
2345
+ body: T;
2346
+ }
2347
+
2348
+ export interface SecurityCreateServiceToken extends Generic {
2349
+ namespace: string;
2350
+ service: string;
2351
+ name?: string;
2352
+ refresh?: 'wait_for' | boolean;
2353
+ }
2354
+
2355
+ export interface SecurityDeletePrivileges extends Generic {
2356
+ application: string;
2357
+ name: string;
2358
+ refresh?: 'wait_for' | boolean;
2359
+ }
2360
+
2361
+ export interface SecurityDeleteRole extends Generic {
2362
+ name: string;
2363
+ refresh?: 'wait_for' | boolean;
2364
+ }
2365
+
2366
+ export interface SecurityDeleteRoleMapping extends Generic {
2367
+ name: string;
2368
+ refresh?: 'wait_for' | boolean;
2369
+ }
2370
+
2371
+ export interface SecurityDeleteServiceToken extends Generic {
2372
+ namespace: string;
2373
+ service: string;
2374
+ name: string;
2375
+ refresh?: 'wait_for' | boolean;
2376
+ }
2377
+
2378
+ export interface SecurityDeleteUser extends Generic {
2379
+ username: string;
2380
+ refresh?: 'wait_for' | boolean;
2381
+ }
2382
+
2383
+ export interface SecurityDisableUser extends Generic {
2384
+ username: string;
2385
+ refresh?: 'wait_for' | boolean;
2386
+ }
2387
+
2388
+ export interface SecurityEnableUser extends Generic {
2389
+ username: string;
2390
+ refresh?: 'wait_for' | boolean;
2391
+ }
2392
+
2393
+ export interface SecurityGetApiKey extends Generic {
2394
+ id?: string;
2395
+ name?: string;
2396
+ username?: string;
2397
+ realm_name?: string;
2398
+ owner?: boolean;
2399
+ }
2400
+
2401
+ export interface SecurityGetBuiltinPrivileges extends Generic {
2402
+ }
2403
+
2404
+ export interface SecurityGetPrivileges extends Generic {
2405
+ application?: string;
2406
+ name?: string;
2407
+ }
2408
+
2409
+ export interface SecurityGetRole extends Generic {
2410
+ name?: string | string[];
2411
+ }
2412
+
2413
+ export interface SecurityGetRoleMapping extends Generic {
2414
+ name?: string | string[];
2415
+ }
2416
+
2417
+ export interface SecurityGetServiceAccounts extends Generic {
2418
+ namespace?: string;
2419
+ service?: string;
2420
+ }
2421
+
2422
+ export interface SecurityGetServiceCredentials extends Generic {
2423
+ namespace: string;
2424
+ service: string;
2425
+ }
2426
+
2427
+ export interface SecurityGetToken<T = RequestBody> extends Generic {
2428
+ body: T;
2429
+ }
2430
+
2431
+ export interface SecurityGetUser extends Generic {
2432
+ username?: string | string[];
2433
+ }
2434
+
2435
+ export interface SecurityGetUserPrivileges extends Generic {
2436
+ }
2437
+
2438
+ export interface SecurityGrantApiKey<T = RequestBody> extends Generic {
2439
+ refresh?: 'wait_for' | boolean;
2440
+ body: T;
2441
+ }
2442
+
2443
+ export interface SecurityHasPrivileges<T = RequestBody> extends Generic {
2444
+ user?: string;
2445
+ body: T;
2446
+ }
2447
+
2448
+ export interface SecurityInvalidateApiKey<T = RequestBody> extends Generic {
2449
+ body: T;
2450
+ }
2451
+
2452
+ export interface SecurityInvalidateToken<T = RequestBody> extends Generic {
2453
+ body: T;
2454
+ }
2455
+
2456
+ export interface SecurityPutPrivileges<T = RequestBody> extends Generic {
2457
+ refresh?: 'wait_for' | boolean;
2458
+ body: T;
2459
+ }
2460
+
2461
+ export interface SecurityPutRole<T = RequestBody> extends Generic {
2462
+ name: string;
2463
+ refresh?: 'wait_for' | boolean;
2464
+ body: T;
2465
+ }
2466
+
2467
+ export interface SecurityPutRoleMapping<T = RequestBody> extends Generic {
2468
+ name: string;
2469
+ refresh?: 'wait_for' | boolean;
2470
+ body: T;
2471
+ }
2472
+
2473
+ export interface SecurityPutUser<T = RequestBody> extends Generic {
2474
+ username: string;
2475
+ refresh?: 'wait_for' | boolean;
2476
+ body: T;
2477
+ }
2478
+
2479
+ export interface SecurityQueryApiKeys<T = RequestBody> extends Generic {
2480
+ body?: T;
2481
+ }
2482
+
2483
+ export interface SecuritySamlAuthenticate<T = RequestBody> extends Generic {
2484
+ body: T;
2485
+ }
2486
+
2487
+ export interface SecuritySamlCompleteLogout<T = RequestBody> extends Generic {
2488
+ body: T;
2489
+ }
2490
+
2491
+ export interface SecuritySamlInvalidate<T = RequestBody> extends Generic {
2492
+ body: T;
2493
+ }
2494
+
2495
+ export interface SecuritySamlLogout<T = RequestBody> extends Generic {
2496
+ body: T;
2497
+ }
2498
+
2499
+ export interface SecuritySamlPrepareAuthentication<T = RequestBody> extends Generic {
2500
+ body: T;
2501
+ }
2502
+
2503
+ export interface SecuritySamlServiceProviderMetadata extends Generic {
2504
+ realm_name: string;
2505
+ }
2506
+
2507
+ export interface ShutdownDeleteNode extends Generic {
2508
+ node_id: string;
2509
+ }
2510
+
2511
+ export interface ShutdownGetNode extends Generic {
2512
+ node_id?: string;
2513
+ }
2514
+
2515
+ export interface ShutdownPutNode<T = RequestBody> extends Generic {
2516
+ node_id: string;
2517
+ body: T;
2518
+ }
2519
+
2520
+ export interface SlmDeleteLifecycle extends Generic {
2521
+ policy_id: string;
2522
+ }
2523
+
2524
+ export interface SlmExecuteLifecycle extends Generic {
2525
+ policy_id: string;
2526
+ }
2527
+
2528
+ export interface SlmExecuteRetention extends Generic {
2529
+ }
2530
+
2531
+ export interface SlmGetLifecycle extends Generic {
2532
+ policy_id?: string | string[];
2533
+ }
2534
+
2535
+ export interface SlmGetStats extends Generic {
2536
+ }
2537
+
2538
+ export interface SlmGetStatus extends Generic {
2539
+ }
2540
+
2541
+ export interface SlmPutLifecycle<T = RequestBody> extends Generic {
2542
+ policy_id: string;
2543
+ body?: T;
2544
+ }
2545
+
2546
+ export interface SlmStart extends Generic {
2547
+ }
2548
+
2549
+ export interface SlmStop extends Generic {
2550
+ }
2551
+
2552
+ export interface SnapshotCleanupRepository extends Generic {
2553
+ repository: string;
2554
+ master_timeout?: string;
2555
+ timeout?: string;
2556
+ }
2557
+
2558
+ export interface SnapshotClone<T = RequestBody> extends Generic {
2559
+ repository: string;
2560
+ snapshot: string;
2561
+ target_snapshot: string;
2562
+ master_timeout?: string;
2563
+ body: T;
2564
+ }
2565
+
2566
+ export interface SnapshotCreate<T = RequestBody> extends Generic {
2567
+ repository: string;
2568
+ snapshot: string;
2569
+ master_timeout?: string;
2570
+ wait_for_completion?: boolean;
2571
+ body?: T;
2572
+ }
2573
+
2574
+ export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
2575
+ repository: string;
2576
+ master_timeout?: string;
2577
+ timeout?: string;
2578
+ verify?: boolean;
2579
+ body: T;
2580
+ }
2581
+
2582
+ export interface SnapshotDelete extends Generic {
2583
+ repository: string;
2584
+ snapshot: string;
2585
+ master_timeout?: string;
2586
+ }
2587
+
2588
+ export interface SnapshotDeleteRepository extends Generic {
2589
+ repository: string | string[];
2590
+ master_timeout?: string;
2591
+ timeout?: string;
2592
+ }
2593
+
2594
+ export interface SnapshotGet extends Generic {
2595
+ repository: string;
2596
+ snapshot: string | string[];
2597
+ master_timeout?: string;
2598
+ ignore_unavailable?: boolean;
2599
+ index_details?: boolean;
2600
+ include_repository?: boolean;
2601
+ verbose?: boolean;
2602
+ }
2603
+
2604
+ export interface SnapshotGetRepository extends Generic {
2605
+ repository?: string | string[];
2606
+ master_timeout?: string;
2607
+ local?: boolean;
2608
+ }
2609
+
2610
+ export interface SnapshotRepositoryAnalyze extends Generic {
2611
+ repository: string;
2612
+ blob_count?: number;
2613
+ concurrency?: number;
2614
+ read_node_count?: number;
2615
+ early_read_node_count?: number;
2616
+ seed?: number;
2617
+ rare_action_probability?: number;
2618
+ max_blob_size?: string;
2619
+ max_total_data_size?: string;
2620
+ timeout?: string;
2621
+ detailed?: boolean;
2622
+ rarely_abort_writes?: boolean;
2623
+ }
2624
+
2625
+ export interface SnapshotRestore<T = RequestBody> extends Generic {
2626
+ repository: string;
2627
+ snapshot: string;
2628
+ master_timeout?: string;
2629
+ wait_for_completion?: boolean;
2630
+ body?: T;
2631
+ }
2632
+
2633
+ export interface SnapshotStatus extends Generic {
2634
+ repository?: string;
2635
+ snapshot?: string | string[];
2636
+ master_timeout?: string;
2637
+ ignore_unavailable?: boolean;
2638
+ }
2639
+
2640
+ export interface SnapshotVerifyRepository extends Generic {
2641
+ repository: string;
2642
+ master_timeout?: string;
2643
+ timeout?: string;
2644
+ }
2645
+
2646
+ export interface SqlClearCursor<T = RequestBody> extends Generic {
2647
+ body: T;
2648
+ }
2649
+
2650
+ export interface SqlDeleteAsync extends Generic {
2651
+ id: string;
2652
+ }
2653
+
2654
+ export interface SqlGetAsync extends Generic {
2655
+ id: string;
2656
+ delimiter?: string;
2657
+ format?: string;
2658
+ keep_alive?: string;
2659
+ wait_for_completion_timeout?: string;
2660
+ }
2661
+
2662
+ export interface SqlGetAsyncStatus extends Generic {
2663
+ id: string;
2664
+ }
2665
+
2666
+ export interface SqlQuery<T = RequestBody> extends Generic {
2667
+ format?: string;
2668
+ body: T;
2669
+ }
2670
+
2671
+ export interface SqlTranslate<T = RequestBody> extends Generic {
2672
+ body: T;
2673
+ }
2674
+
2675
+ export interface SslCertificates extends Generic {
2676
+ }
2677
+
2678
+ export interface TasksCancel extends Generic {
2679
+ task_id?: string;
2680
+ nodes?: string | string[];
2681
+ actions?: string | string[];
2682
+ parent_task_id?: string;
2683
+ wait_for_completion?: boolean;
2684
+ }
2685
+
2686
+ export interface TasksGet extends Generic {
2687
+ task_id: string;
2688
+ wait_for_completion?: boolean;
2689
+ timeout?: string;
2690
+ }
2691
+
2692
+ export interface TasksList extends Generic {
2693
+ nodes?: string | string[];
2694
+ actions?: string | string[];
2695
+ detailed?: boolean;
2696
+ parent_task_id?: string;
2697
+ wait_for_completion?: boolean;
2698
+ group_by?: 'nodes' | 'parents' | 'none';
2699
+ timeout?: string;
2700
+ }
2701
+
2702
+ export interface TermsEnum<T = RequestBody> extends Generic {
2703
+ index: string | string[];
2704
+ body?: T;
2705
+ }
2706
+
2707
+ export interface Termvectors<T = RequestBody> extends Generic {
2708
+ index: string;
2709
+ id?: string;
2710
+ type?: string;
2711
+ term_statistics?: boolean;
2712
+ field_statistics?: boolean;
2713
+ fields?: string | string[];
2714
+ offsets?: boolean;
2715
+ positions?: boolean;
2716
+ payloads?: boolean;
2717
+ preference?: string;
2718
+ routing?: string;
2719
+ realtime?: boolean;
2720
+ version?: number;
2721
+ version_type?: 'internal' | 'external' | 'external_gte' | 'force';
2722
+ body?: T;
2723
+ }
2724
+
2725
+ export interface TextStructureFindStructure<T = RequestNDBody> extends Generic {
2726
+ lines_to_sample?: number;
2727
+ line_merge_size_limit?: number;
2728
+ timeout?: string;
2729
+ charset?: string;
2730
+ format?: 'ndjson' | 'xml' | 'delimited' | 'semi_structured_text';
2731
+ has_header_row?: boolean;
2732
+ column_names?: string | string[];
2733
+ delimiter?: string;
2734
+ quote?: string;
2735
+ should_trim_fields?: boolean;
2736
+ grok_pattern?: string;
2737
+ timestamp_field?: string;
2738
+ timestamp_format?: string;
2739
+ explain?: boolean;
2740
+ body: T;
2741
+ }
2742
+
2743
+ export interface TransformDeleteTransform extends Generic {
2744
+ transform_id: string;
2745
+ force?: boolean;
2746
+ }
2747
+
2748
+ export interface TransformGetTransform extends Generic {
2749
+ transform_id?: string;
2750
+ from?: number;
2751
+ size?: number;
2752
+ allow_no_match?: boolean;
2753
+ exclude_generated?: boolean;
2754
+ }
2755
+
2756
+ export interface TransformGetTransformStats extends Generic {
2757
+ transform_id: string;
2758
+ from?: number;
2759
+ size?: number;
2760
+ allow_no_match?: boolean;
2761
+ }
2762
+
2763
+ export interface TransformPreviewTransform<T = RequestBody> extends Generic {
2764
+ body: T;
2765
+ }
2766
+
2767
+ export interface TransformPutTransform<T = RequestBody> extends Generic {
2768
+ transform_id: string;
2769
+ defer_validation?: boolean;
2770
+ body: T;
2771
+ }
2772
+
2773
+ export interface TransformStartTransform extends Generic {
2774
+ transform_id: string;
2775
+ timeout?: string;
2776
+ }
2777
+
2778
+ export interface TransformStopTransform extends Generic {
2779
+ transform_id: string;
2780
+ force?: boolean;
2781
+ wait_for_completion?: boolean;
2782
+ timeout?: string;
2783
+ allow_no_match?: boolean;
2784
+ wait_for_checkpoint?: boolean;
2785
+ }
2786
+
2787
+ export interface TransformUpdateTransform<T = RequestBody> extends Generic {
2788
+ transform_id: string;
2789
+ defer_validation?: boolean;
2790
+ body: T;
2791
+ }
2792
+
2793
+ export interface Update<T = RequestBody> extends Generic {
2794
+ id: string;
2795
+ index: string;
2796
+ type?: string;
2797
+ _source_exclude?: string | string[];
2798
+ _source_include?: string | string[];
2799
+ wait_for_active_shards?: string;
2800
+ _source?: string | string[];
2801
+ _source_excludes?: string | string[];
2802
+ _source_includes?: string | string[];
2803
+ lang?: string;
2804
+ refresh?: 'wait_for' | boolean;
2805
+ retry_on_conflict?: number;
2806
+ routing?: string;
2807
+ timeout?: string;
2808
+ if_seq_no?: number;
2809
+ if_primary_term?: number;
2810
+ require_alias?: boolean;
2811
+ body: T;
2812
+ }
2813
+
2814
+ export interface UpdateByQuery<T = RequestBody> extends Generic {
2815
+ index: string | string[];
2816
+ type?: string | string[];
2817
+ _source_exclude?: string | string[];
2818
+ _source_include?: string | string[];
2819
+ analyzer?: string;
2820
+ analyze_wildcard?: boolean;
2821
+ default_operator?: 'AND' | 'OR';
2822
+ df?: string;
2823
+ from?: number;
2824
+ ignore_unavailable?: boolean;
2825
+ allow_no_indices?: boolean;
2826
+ conflicts?: 'abort' | 'proceed';
2827
+ expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
2828
+ lenient?: boolean;
2829
+ pipeline?: string;
2830
+ preference?: string;
2831
+ q?: string;
2832
+ routing?: string | string[];
2833
+ scroll?: string;
2834
+ search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
2835
+ search_timeout?: string;
2836
+ size?: number;
2837
+ max_docs?: number;
2838
+ sort?: string | string[];
2839
+ _source?: string | string[];
2840
+ _source_excludes?: string | string[];
2841
+ _source_includes?: string | string[];
2842
+ terminate_after?: number;
2843
+ stats?: string | string[];
2844
+ version?: boolean;
2845
+ version_type?: boolean;
2846
+ request_cache?: boolean;
2847
+ refresh?: boolean;
2848
+ timeout?: string;
2849
+ wait_for_active_shards?: string;
2850
+ scroll_size?: number;
2851
+ wait_for_completion?: boolean;
2852
+ requests_per_second?: number;
2853
+ slices?: number|string;
2854
+ body?: T;
2855
+ }
2856
+
2857
+ export interface UpdateByQueryRethrottle extends Generic {
2858
+ task_id: string;
2859
+ requests_per_second: number;
2860
+ }
2861
+
2862
+ export interface WatcherAckWatch extends Generic {
2863
+ watch_id: string;
2864
+ action_id?: string | string[];
2865
+ }
2866
+
2867
+ export interface WatcherActivateWatch extends Generic {
2868
+ watch_id: string;
2869
+ }
2870
+
2871
+ export interface WatcherDeactivateWatch extends Generic {
2872
+ watch_id: string;
2873
+ }
2874
+
2875
+ export interface WatcherDeleteWatch extends Generic {
2876
+ id: string;
2877
+ }
2878
+
2879
+ export interface WatcherExecuteWatch<T = RequestBody> extends Generic {
2880
+ id?: string;
2881
+ debug?: boolean;
2882
+ body?: T;
2883
+ }
2884
+
2885
+ export interface WatcherGetWatch extends Generic {
2886
+ id: string;
2887
+ }
2888
+
2889
+ export interface WatcherPutWatch<T = RequestBody> extends Generic {
2890
+ id: string;
2891
+ active?: boolean;
2892
+ version?: number;
2893
+ if_seq_no?: number;
2894
+ if_primary_term?: number;
2895
+ body?: T;
2896
+ }
2897
+
2898
+ export interface WatcherQueryWatches<T = RequestBody> extends Generic {
2899
+ body?: T;
2900
+ }
2901
+
2902
+ export interface WatcherStart extends Generic {
2903
+ }
2904
+
2905
+ export interface WatcherStats extends Generic {
2906
+ metric?: string | string[];
2907
+ emit_stacktraces?: boolean;
2908
+ }
2909
+
2910
+ export interface WatcherStop extends Generic {
2911
+ }
2912
+
2913
+ export interface XpackInfo extends Generic {
2914
+ categories?: string | string[];
2915
+ accept_enterprise?: boolean;
2916
+ }
2917
+
2918
+ export interface XpackUsage extends Generic {
2919
+ master_timeout?: string;
2920
+ }