@elastic/elasticsearch 8.14.0 → 8.14.1

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 (183) hide show
  1. package/lib/api/api/async_search.js +28 -4
  2. package/lib/api/api/async_search.js.map +1 -1
  3. package/lib/api/api/autoscaling.js +25 -4
  4. package/lib/api/api/autoscaling.js.map +1 -1
  5. package/lib/api/api/bulk.js +7 -1
  6. package/lib/api/api/bulk.js.map +1 -1
  7. package/lib/api/api/cat.js +155 -26
  8. package/lib/api/api/cat.js.map +1 -1
  9. package/lib/api/api/ccr.js +88 -13
  10. package/lib/api/api/ccr.js.map +1 -1
  11. package/lib/api/api/clear_scroll.js +7 -1
  12. package/lib/api/api/clear_scroll.js.map +1 -1
  13. package/lib/api/api/close_point_in_time.js +4 -1
  14. package/lib/api/api/close_point_in_time.js.map +1 -1
  15. package/lib/api/api/cluster.js +89 -16
  16. package/lib/api/api/cluster.js.map +1 -1
  17. package/lib/api/api/connector.d.ts +231 -0
  18. package/lib/api/api/connector.js +980 -0
  19. package/lib/api/api/connector.js.map +1 -0
  20. package/lib/api/api/count.js +7 -1
  21. package/lib/api/api/count.js.map +1 -1
  22. package/lib/api/api/create.js +8 -1
  23. package/lib/api/api/create.js.map +1 -1
  24. package/lib/api/api/dangling_indices.js +18 -3
  25. package/lib/api/api/dangling_indices.js.map +1 -1
  26. package/lib/api/api/delete.js +8 -1
  27. package/lib/api/api/delete.js.map +1 -1
  28. package/lib/api/api/delete_by_query.js +7 -1
  29. package/lib/api/api/delete_by_query.js.map +1 -1
  30. package/lib/api/api/delete_by_query_rethrottle.js +7 -1
  31. package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
  32. package/lib/api/api/delete_script.js +7 -1
  33. package/lib/api/api/delete_script.js.map +1 -1
  34. package/lib/api/api/enrich.js +32 -5
  35. package/lib/api/api/enrich.js.map +1 -1
  36. package/lib/api/api/eql.js +28 -4
  37. package/lib/api/api/eql.js.map +1 -1
  38. package/lib/api/api/esql.d.ts +14 -0
  39. package/lib/api/api/esql.js +47 -1
  40. package/lib/api/api/esql.js.map +1 -1
  41. package/lib/api/api/exists.js +8 -1
  42. package/lib/api/api/exists.js.map +1 -1
  43. package/lib/api/api/exists_source.js +8 -1
  44. package/lib/api/api/exists_source.js.map +1 -1
  45. package/lib/api/api/explain.js +8 -1
  46. package/lib/api/api/explain.js.map +1 -1
  47. package/lib/api/api/features.js +8 -2
  48. package/lib/api/api/features.js.map +1 -1
  49. package/lib/api/api/field_caps.js +7 -1
  50. package/lib/api/api/field_caps.js.map +1 -1
  51. package/lib/api/api/fleet.js +39 -6
  52. package/lib/api/api/fleet.js.map +1 -1
  53. package/lib/api/api/get.js +8 -1
  54. package/lib/api/api/get.js.map +1 -1
  55. package/lib/api/api/get_script.js +7 -1
  56. package/lib/api/api/get_script.js.map +1 -1
  57. package/lib/api/api/get_script_context.js +4 -1
  58. package/lib/api/api/get_script_context.js.map +1 -1
  59. package/lib/api/api/get_script_languages.js +4 -1
  60. package/lib/api/api/get_script_languages.js.map +1 -1
  61. package/lib/api/api/get_source.js +8 -1
  62. package/lib/api/api/get_source.js.map +1 -1
  63. package/lib/api/api/graph.js +7 -1
  64. package/lib/api/api/graph.js.map +1 -1
  65. package/lib/api/api/health_report.js +7 -1
  66. package/lib/api/api/health_report.js.map +1 -1
  67. package/lib/api/api/ilm.js +65 -11
  68. package/lib/api/api/ilm.js.map +1 -1
  69. package/lib/api/api/index.js +8 -1
  70. package/lib/api/api/index.js.map +1 -1
  71. package/lib/api/api/indices.js +420 -59
  72. package/lib/api/api/indices.js.map +1 -1
  73. package/lib/api/api/inference.js +37 -5
  74. package/lib/api/api/inference.js.map +1 -1
  75. package/lib/api/api/info.js +4 -1
  76. package/lib/api/api/info.js.map +1 -1
  77. package/lib/api/api/ingest.js +36 -6
  78. package/lib/api/api/ingest.js.map +1 -1
  79. package/lib/api/api/knn_search.js +7 -1
  80. package/lib/api/api/knn_search.js.map +1 -1
  81. package/lib/api/api/license.js +28 -7
  82. package/lib/api/api/license.js.map +1 -1
  83. package/lib/api/api/logstash.js +21 -3
  84. package/lib/api/api/logstash.js.map +1 -1
  85. package/lib/api/api/mget.js +7 -1
  86. package/lib/api/api/mget.js.map +1 -1
  87. package/lib/api/api/migration.js +15 -3
  88. package/lib/api/api/migration.js.map +1 -1
  89. package/lib/api/api/ml.js +508 -73
  90. package/lib/api/api/ml.js.map +1 -1
  91. package/lib/api/api/monitoring.js +7 -1
  92. package/lib/api/api/monitoring.js.map +1 -1
  93. package/lib/api/api/msearch.js +7 -1
  94. package/lib/api/api/msearch.js.map +1 -1
  95. package/lib/api/api/msearch_template.js +7 -1
  96. package/lib/api/api/msearch_template.js.map +1 -1
  97. package/lib/api/api/mtermvectors.js +7 -1
  98. package/lib/api/api/mtermvectors.js.map +1 -1
  99. package/lib/api/api/nodes.js +54 -7
  100. package/lib/api/api/nodes.js.map +1 -1
  101. package/lib/api/api/open_point_in_time.js +7 -1
  102. package/lib/api/api/open_point_in_time.js.map +1 -1
  103. package/lib/api/api/ping.js +4 -1
  104. package/lib/api/api/ping.js.map +1 -1
  105. package/lib/api/api/profiling.d.ts +39 -0
  106. package/lib/api/api/profiling.js +113 -0
  107. package/lib/api/api/profiling.js.map +1 -0
  108. package/lib/api/api/put_script.js +8 -1
  109. package/lib/api/api/put_script.js.map +1 -1
  110. package/lib/api/api/query_ruleset.js +25 -4
  111. package/lib/api/api/query_ruleset.js.map +1 -1
  112. package/lib/api/api/rank_eval.js +7 -1
  113. package/lib/api/api/rank_eval.js.map +1 -1
  114. package/lib/api/api/reindex.js +4 -1
  115. package/lib/api/api/reindex.js.map +1 -1
  116. package/lib/api/api/reindex_rethrottle.js +7 -1
  117. package/lib/api/api/reindex_rethrottle.js.map +1 -1
  118. package/lib/api/api/render_search_template.js +7 -1
  119. package/lib/api/api/render_search_template.js.map +1 -1
  120. package/lib/api/api/rollup.js +56 -8
  121. package/lib/api/api/rollup.js.map +1 -1
  122. package/lib/api/api/scripts_painless_execute.js +4 -1
  123. package/lib/api/api/scripts_painless_execute.js.map +1 -1
  124. package/lib/api/api/scroll.js +7 -1
  125. package/lib/api/api/scroll.js.map +1 -1
  126. package/lib/api/api/search.js +7 -1
  127. package/lib/api/api/search.js.map +1 -1
  128. package/lib/api/api/search_application.js +68 -10
  129. package/lib/api/api/search_application.js.map +1 -1
  130. package/lib/api/api/search_mvt.js +11 -1
  131. package/lib/api/api/search_mvt.js.map +1 -1
  132. package/lib/api/api/search_shards.js +7 -1
  133. package/lib/api/api/search_shards.js.map +1 -1
  134. package/lib/api/api/search_template.js +7 -1
  135. package/lib/api/api/search_template.js.map +1 -1
  136. package/lib/api/api/searchable_snapshots.js +29 -4
  137. package/lib/api/api/searchable_snapshots.js.map +1 -1
  138. package/lib/api/api/security.d.ts +7 -0
  139. package/lib/api/api/security.js +359 -59
  140. package/lib/api/api/security.js.map +1 -1
  141. package/lib/api/api/shutdown.js +21 -3
  142. package/lib/api/api/shutdown.js.map +1 -1
  143. package/lib/api/api/simulate.d.ts +18 -0
  144. package/lib/api/api/simulate.js +64 -0
  145. package/lib/api/api/simulate.js.map +1 -0
  146. package/lib/api/api/slm.js +48 -9
  147. package/lib/api/api/slm.js.map +1 -1
  148. package/lib/api/api/snapshot.js +91 -12
  149. package/lib/api/api/snapshot.js.map +1 -1
  150. package/lib/api/api/sql.js +33 -6
  151. package/lib/api/api/sql.js.map +1 -1
  152. package/lib/api/api/ssl.js +4 -1
  153. package/lib/api/api/ssl.js.map +1 -1
  154. package/lib/api/api/synonyms.js +49 -7
  155. package/lib/api/api/synonyms.js.map +1 -1
  156. package/lib/api/api/tasks.js +18 -3
  157. package/lib/api/api/tasks.js.map +1 -1
  158. package/lib/api/api/terms_enum.js +7 -1
  159. package/lib/api/api/terms_enum.js.map +1 -1
  160. package/lib/api/api/termvectors.js +8 -1
  161. package/lib/api/api/termvectors.js.map +1 -1
  162. package/lib/api/api/text_structure.d.ts +14 -0
  163. package/lib/api/api/text_structure.js +48 -2
  164. package/lib/api/api/text_structure.js.map +1 -1
  165. package/lib/api/api/transform.js +74 -11
  166. package/lib/api/api/transform.js.map +1 -1
  167. package/lib/api/api/update.js +8 -1
  168. package/lib/api/api/update.js.map +1 -1
  169. package/lib/api/api/update_by_query.d.ts +1 -1
  170. package/lib/api/api/update_by_query.js +7 -1
  171. package/lib/api/api/update_by_query.js.map +1 -1
  172. package/lib/api/api/update_by_query_rethrottle.js +7 -1
  173. package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
  174. package/lib/api/api/watcher.js +77 -13
  175. package/lib/api/api/watcher.js.map +1 -1
  176. package/lib/api/api/xpack.js +8 -2
  177. package/lib/api/api/xpack.js.map +1 -1
  178. package/lib/api/index.d.ts +12 -0
  179. package/lib/api/index.js +38 -2
  180. package/lib/api/index.js.map +1 -1
  181. package/lib/api/types.d.ts +14 -9
  182. package/lib/api/typesWithBodyKey.d.ts +14 -9
  183. package/package.json +2 -2
@@ -43,7 +43,14 @@ class Indices {
43
43
  }
44
44
  const method = 'PUT';
45
45
  const path = `/${encodeURIComponent(params.index.toString())}/_block/${encodeURIComponent(params.block.toString())}`;
46
- return await this.transport.request({ path, method, querystring, body }, options);
46
+ const meta = {
47
+ name: 'indices.add_block',
48
+ pathParts: {
49
+ index: params.index,
50
+ block: params.block
51
+ }
52
+ };
53
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
47
54
  }
48
55
  async analyze(params, options) {
49
56
  const acceptedPath = ['index'];
@@ -83,7 +90,13 @@ class Indices {
83
90
  method = body != null ? 'POST' : 'GET';
84
91
  path = '/_analyze';
85
92
  }
86
- return await this.transport.request({ path, method, querystring, body }, options);
93
+ const meta = {
94
+ name: 'indices.analyze',
95
+ pathParts: {
96
+ index: params.index
97
+ }
98
+ };
99
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
87
100
  }
88
101
  async clearCache(params, options) {
89
102
  const acceptedPath = ['index'];
@@ -109,7 +122,13 @@ class Indices {
109
122
  method = 'POST';
110
123
  path = '/_cache/clear';
111
124
  }
112
- return await this.transport.request({ path, method, querystring, body }, options);
125
+ const meta = {
126
+ name: 'indices.clear_cache',
127
+ pathParts: {
128
+ index: params.index
129
+ }
130
+ };
131
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
113
132
  }
114
133
  async clone(params, options) {
115
134
  const acceptedPath = ['index', 'target'];
@@ -140,7 +159,14 @@ class Indices {
140
159
  }
141
160
  const method = 'PUT';
142
161
  const path = `/${encodeURIComponent(params.index.toString())}/_clone/${encodeURIComponent(params.target.toString())}`;
143
- return await this.transport.request({ path, method, querystring, body }, options);
162
+ const meta = {
163
+ name: 'indices.clone',
164
+ pathParts: {
165
+ index: params.index,
166
+ target: params.target
167
+ }
168
+ };
169
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
144
170
  }
145
171
  async close(params, options) {
146
172
  const acceptedPath = ['index'];
@@ -157,7 +183,13 @@ class Indices {
157
183
  }
158
184
  const method = 'POST';
159
185
  const path = `/${encodeURIComponent(params.index.toString())}/_close`;
160
- return await this.transport.request({ path, method, querystring, body }, options);
186
+ const meta = {
187
+ name: 'indices.close',
188
+ pathParts: {
189
+ index: params.index
190
+ }
191
+ };
192
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
161
193
  }
162
194
  async create(params, options) {
163
195
  const acceptedPath = ['index'];
@@ -188,7 +220,13 @@ class Indices {
188
220
  }
189
221
  const method = 'PUT';
190
222
  const path = `/${encodeURIComponent(params.index.toString())}`;
191
- return await this.transport.request({ path, method, querystring, body }, options);
223
+ const meta = {
224
+ name: 'indices.create',
225
+ pathParts: {
226
+ index: params.index
227
+ }
228
+ };
229
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
192
230
  }
193
231
  async createDataStream(params, options) {
194
232
  const acceptedPath = ['name'];
@@ -205,7 +243,13 @@ class Indices {
205
243
  }
206
244
  const method = 'PUT';
207
245
  const path = `/_data_stream/${encodeURIComponent(params.name.toString())}`;
208
- return await this.transport.request({ path, method, querystring, body }, options);
246
+ const meta = {
247
+ name: 'indices.create_data_stream',
248
+ pathParts: {
249
+ name: params.name
250
+ }
251
+ };
252
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
209
253
  }
210
254
  async dataStreamsStats(params, options) {
211
255
  const acceptedPath = ['name'];
@@ -231,7 +275,13 @@ class Indices {
231
275
  method = 'GET';
232
276
  path = '/_data_stream/_stats';
233
277
  }
234
- return await this.transport.request({ path, method, querystring, body }, options);
278
+ const meta = {
279
+ name: 'indices.data_streams_stats',
280
+ pathParts: {
281
+ name: params.name
282
+ }
283
+ };
284
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
235
285
  }
236
286
  async delete(params, options) {
237
287
  const acceptedPath = ['index'];
@@ -248,7 +298,13 @@ class Indices {
248
298
  }
249
299
  const method = 'DELETE';
250
300
  const path = `/${encodeURIComponent(params.index.toString())}`;
251
- return await this.transport.request({ path, method, querystring, body }, options);
301
+ const meta = {
302
+ name: 'indices.delete',
303
+ pathParts: {
304
+ index: params.index
305
+ }
306
+ };
307
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
252
308
  }
253
309
  async deleteAlias(params, options) {
254
310
  const acceptedPath = ['index', 'name'];
@@ -273,7 +329,14 @@ class Indices {
273
329
  method = 'DELETE';
274
330
  path = `/${encodeURIComponent(params.index.toString())}/_aliases/${encodeURIComponent(params.name.toString())}`;
275
331
  }
276
- return await this.transport.request({ path, method, querystring, body }, options);
332
+ const meta = {
333
+ name: 'indices.delete_alias',
334
+ pathParts: {
335
+ index: params.index,
336
+ name: params.name
337
+ }
338
+ };
339
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
277
340
  }
278
341
  async deleteDataLifecycle(params, options) {
279
342
  const acceptedPath = ['name'];
@@ -290,7 +353,13 @@ class Indices {
290
353
  }
291
354
  const method = 'DELETE';
292
355
  const path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`;
293
- return await this.transport.request({ path, method, querystring, body }, options);
356
+ const meta = {
357
+ name: 'indices.delete_data_lifecycle',
358
+ pathParts: {
359
+ name: params.name
360
+ }
361
+ };
362
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
294
363
  }
295
364
  async deleteDataStream(params, options) {
296
365
  const acceptedPath = ['name'];
@@ -307,7 +376,13 @@ class Indices {
307
376
  }
308
377
  const method = 'DELETE';
309
378
  const path = `/_data_stream/${encodeURIComponent(params.name.toString())}`;
310
- return await this.transport.request({ path, method, querystring, body }, options);
379
+ const meta = {
380
+ name: 'indices.delete_data_stream',
381
+ pathParts: {
382
+ name: params.name
383
+ }
384
+ };
385
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
311
386
  }
312
387
  async deleteIndexTemplate(params, options) {
313
388
  const acceptedPath = ['name'];
@@ -324,7 +399,13 @@ class Indices {
324
399
  }
325
400
  const method = 'DELETE';
326
401
  const path = `/_index_template/${encodeURIComponent(params.name.toString())}`;
327
- return await this.transport.request({ path, method, querystring, body }, options);
402
+ const meta = {
403
+ name: 'indices.delete_index_template',
404
+ pathParts: {
405
+ name: params.name
406
+ }
407
+ };
408
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
328
409
  }
329
410
  async deleteTemplate(params, options) {
330
411
  const acceptedPath = ['name'];
@@ -341,7 +422,13 @@ class Indices {
341
422
  }
342
423
  const method = 'DELETE';
343
424
  const path = `/_template/${encodeURIComponent(params.name.toString())}`;
344
- return await this.transport.request({ path, method, querystring, body }, options);
425
+ const meta = {
426
+ name: 'indices.delete_template',
427
+ pathParts: {
428
+ name: params.name
429
+ }
430
+ };
431
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
345
432
  }
346
433
  async diskUsage(params, options) {
347
434
  const acceptedPath = ['index'];
@@ -358,7 +445,13 @@ class Indices {
358
445
  }
359
446
  const method = 'POST';
360
447
  const path = `/${encodeURIComponent(params.index.toString())}/_disk_usage`;
361
- return await this.transport.request({ path, method, querystring, body }, options);
448
+ const meta = {
449
+ name: 'indices.disk_usage',
450
+ pathParts: {
451
+ index: params.index
452
+ }
453
+ };
454
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
362
455
  }
363
456
  async downsample(params, options) {
364
457
  var _a;
@@ -382,7 +475,14 @@ class Indices {
382
475
  }
383
476
  const method = 'POST';
384
477
  const path = `/${encodeURIComponent(params.index.toString())}/_downsample/${encodeURIComponent(params.target_index.toString())}`;
385
- return await this.transport.request({ path, method, querystring, body }, options);
478
+ const meta = {
479
+ name: 'indices.downsample',
480
+ pathParts: {
481
+ index: params.index,
482
+ target_index: params.target_index
483
+ }
484
+ };
485
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
386
486
  }
387
487
  async exists(params, options) {
388
488
  const acceptedPath = ['index'];
@@ -399,7 +499,13 @@ class Indices {
399
499
  }
400
500
  const method = 'HEAD';
401
501
  const path = `/${encodeURIComponent(params.index.toString())}`;
402
- return await this.transport.request({ path, method, querystring, body }, options);
502
+ const meta = {
503
+ name: 'indices.exists',
504
+ pathParts: {
505
+ index: params.index
506
+ }
507
+ };
508
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
403
509
  }
404
510
  async existsAlias(params, options) {
405
511
  const acceptedPath = ['name', 'index'];
@@ -424,7 +530,14 @@ class Indices {
424
530
  method = 'HEAD';
425
531
  path = `/_alias/${encodeURIComponent(params.name.toString())}`;
426
532
  }
427
- return await this.transport.request({ path, method, querystring, body }, options);
533
+ const meta = {
534
+ name: 'indices.exists_alias',
535
+ pathParts: {
536
+ name: params.name,
537
+ index: params.index
538
+ }
539
+ };
540
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
428
541
  }
429
542
  async existsIndexTemplate(params, options) {
430
543
  const acceptedPath = ['name'];
@@ -441,7 +554,13 @@ class Indices {
441
554
  }
442
555
  const method = 'HEAD';
443
556
  const path = `/_index_template/${encodeURIComponent(params.name.toString())}`;
444
- return await this.transport.request({ path, method, querystring, body }, options);
557
+ const meta = {
558
+ name: 'indices.exists_index_template',
559
+ pathParts: {
560
+ name: params.name
561
+ }
562
+ };
563
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
445
564
  }
446
565
  async existsTemplate(params, options) {
447
566
  const acceptedPath = ['name'];
@@ -458,7 +577,13 @@ class Indices {
458
577
  }
459
578
  const method = 'HEAD';
460
579
  const path = `/_template/${encodeURIComponent(params.name.toString())}`;
461
- return await this.transport.request({ path, method, querystring, body }, options);
580
+ const meta = {
581
+ name: 'indices.exists_template',
582
+ pathParts: {
583
+ name: params.name
584
+ }
585
+ };
586
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
462
587
  }
463
588
  async explainDataLifecycle(params, options) {
464
589
  const acceptedPath = ['index'];
@@ -475,7 +600,13 @@ class Indices {
475
600
  }
476
601
  const method = 'GET';
477
602
  const path = `/${encodeURIComponent(params.index.toString())}/_lifecycle/explain`;
478
- return await this.transport.request({ path, method, querystring, body }, options);
603
+ const meta = {
604
+ name: 'indices.explain_data_lifecycle',
605
+ pathParts: {
606
+ index: params.index
607
+ }
608
+ };
609
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
479
610
  }
480
611
  async fieldUsageStats(params, options) {
481
612
  const acceptedPath = ['index'];
@@ -492,7 +623,13 @@ class Indices {
492
623
  }
493
624
  const method = 'GET';
494
625
  const path = `/${encodeURIComponent(params.index.toString())}/_field_usage_stats`;
495
- return await this.transport.request({ path, method, querystring, body }, options);
626
+ const meta = {
627
+ name: 'indices.field_usage_stats',
628
+ pathParts: {
629
+ index: params.index
630
+ }
631
+ };
632
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
496
633
  }
497
634
  async flush(params, options) {
498
635
  const acceptedPath = ['index'];
@@ -518,7 +655,13 @@ class Indices {
518
655
  method = body != null ? 'POST' : 'GET';
519
656
  path = '/_flush';
520
657
  }
521
- return await this.transport.request({ path, method, querystring, body }, options);
658
+ const meta = {
659
+ name: 'indices.flush',
660
+ pathParts: {
661
+ index: params.index
662
+ }
663
+ };
664
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
522
665
  }
523
666
  async forcemerge(params, options) {
524
667
  const acceptedPath = ['index'];
@@ -544,7 +687,13 @@ class Indices {
544
687
  method = 'POST';
545
688
  path = '/_forcemerge';
546
689
  }
547
- return await this.transport.request({ path, method, querystring, body }, options);
690
+ const meta = {
691
+ name: 'indices.forcemerge',
692
+ pathParts: {
693
+ index: params.index
694
+ }
695
+ };
696
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
548
697
  }
549
698
  async get(params, options) {
550
699
  const acceptedPath = ['index'];
@@ -561,7 +710,13 @@ class Indices {
561
710
  }
562
711
  const method = 'GET';
563
712
  const path = `/${encodeURIComponent(params.index.toString())}`;
564
- return await this.transport.request({ path, method, querystring, body }, options);
713
+ const meta = {
714
+ name: 'indices.get',
715
+ pathParts: {
716
+ index: params.index
717
+ }
718
+ };
719
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
565
720
  }
566
721
  async getAlias(params, options) {
567
722
  const acceptedPath = ['name', 'index'];
@@ -595,7 +750,14 @@ class Indices {
595
750
  method = 'GET';
596
751
  path = '/_alias';
597
752
  }
598
- return await this.transport.request({ path, method, querystring, body }, options);
753
+ const meta = {
754
+ name: 'indices.get_alias',
755
+ pathParts: {
756
+ name: params.name,
757
+ index: params.index
758
+ }
759
+ };
760
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
599
761
  }
600
762
  async getDataLifecycle(params, options) {
601
763
  const acceptedPath = ['name'];
@@ -612,7 +774,13 @@ class Indices {
612
774
  }
613
775
  const method = 'GET';
614
776
  const path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`;
615
- return await this.transport.request({ path, method, querystring, body }, options);
777
+ const meta = {
778
+ name: 'indices.get_data_lifecycle',
779
+ pathParts: {
780
+ name: params.name
781
+ }
782
+ };
783
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
616
784
  }
617
785
  async getDataStream(params, options) {
618
786
  const acceptedPath = ['name'];
@@ -638,7 +806,13 @@ class Indices {
638
806
  method = 'GET';
639
807
  path = '/_data_stream';
640
808
  }
641
- return await this.transport.request({ path, method, querystring, body }, options);
809
+ const meta = {
810
+ name: 'indices.get_data_stream',
811
+ pathParts: {
812
+ name: params.name
813
+ }
814
+ };
815
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
642
816
  }
643
817
  async getFieldMapping(params, options) {
644
818
  const acceptedPath = ['fields', 'index'];
@@ -663,7 +837,14 @@ class Indices {
663
837
  method = 'GET';
664
838
  path = `/_mapping/field/${encodeURIComponent(params.fields.toString())}`;
665
839
  }
666
- return await this.transport.request({ path, method, querystring, body }, options);
840
+ const meta = {
841
+ name: 'indices.get_field_mapping',
842
+ pathParts: {
843
+ fields: params.fields,
844
+ index: params.index
845
+ }
846
+ };
847
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
667
848
  }
668
849
  async getIndexTemplate(params, options) {
669
850
  const acceptedPath = ['name'];
@@ -689,7 +870,13 @@ class Indices {
689
870
  method = 'GET';
690
871
  path = '/_index_template';
691
872
  }
692
- return await this.transport.request({ path, method, querystring, body }, options);
873
+ const meta = {
874
+ name: 'indices.get_index_template',
875
+ pathParts: {
876
+ name: params.name
877
+ }
878
+ };
879
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
693
880
  }
694
881
  async getMapping(params, options) {
695
882
  const acceptedPath = ['index'];
@@ -715,7 +902,13 @@ class Indices {
715
902
  method = 'GET';
716
903
  path = '/_mapping';
717
904
  }
718
- return await this.transport.request({ path, method, querystring, body }, options);
905
+ const meta = {
906
+ name: 'indices.get_mapping',
907
+ pathParts: {
908
+ index: params.index
909
+ }
910
+ };
911
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
719
912
  }
720
913
  async getSettings(params, options) {
721
914
  const acceptedPath = ['index', 'name'];
@@ -749,7 +942,14 @@ class Indices {
749
942
  method = 'GET';
750
943
  path = '/_settings';
751
944
  }
752
- return await this.transport.request({ path, method, querystring, body }, options);
945
+ const meta = {
946
+ name: 'indices.get_settings',
947
+ pathParts: {
948
+ index: params.index,
949
+ name: params.name
950
+ }
951
+ };
952
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
753
953
  }
754
954
  async getTemplate(params, options) {
755
955
  const acceptedPath = ['name'];
@@ -775,7 +975,13 @@ class Indices {
775
975
  method = 'GET';
776
976
  path = '/_template';
777
977
  }
778
- return await this.transport.request({ path, method, querystring, body }, options);
978
+ const meta = {
979
+ name: 'indices.get_template',
980
+ pathParts: {
981
+ name: params.name
982
+ }
983
+ };
984
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
779
985
  }
780
986
  async migrateToDataStream(params, options) {
781
987
  const acceptedPath = ['name'];
@@ -792,7 +998,13 @@ class Indices {
792
998
  }
793
999
  const method = 'POST';
794
1000
  const path = `/_data_stream/_migrate/${encodeURIComponent(params.name.toString())}`;
795
- return await this.transport.request({ path, method, querystring, body }, options);
1001
+ const meta = {
1002
+ name: 'indices.migrate_to_data_stream',
1003
+ pathParts: {
1004
+ name: params.name
1005
+ }
1006
+ };
1007
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
796
1008
  }
797
1009
  async modifyDataStream(params, options) {
798
1010
  const acceptedPath = [];
@@ -823,7 +1035,10 @@ class Indices {
823
1035
  }
824
1036
  const method = 'POST';
825
1037
  const path = '/_data_stream/_modify';
826
- return await this.transport.request({ path, method, querystring, body }, options);
1038
+ const meta = {
1039
+ name: 'indices.modify_data_stream'
1040
+ };
1041
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
827
1042
  }
828
1043
  async open(params, options) {
829
1044
  const acceptedPath = ['index'];
@@ -840,7 +1055,13 @@ class Indices {
840
1055
  }
841
1056
  const method = 'POST';
842
1057
  const path = `/${encodeURIComponent(params.index.toString())}/_open`;
843
- return await this.transport.request({ path, method, querystring, body }, options);
1058
+ const meta = {
1059
+ name: 'indices.open',
1060
+ pathParts: {
1061
+ index: params.index
1062
+ }
1063
+ };
1064
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
844
1065
  }
845
1066
  async promoteDataStream(params, options) {
846
1067
  const acceptedPath = ['name'];
@@ -857,7 +1078,13 @@ class Indices {
857
1078
  }
858
1079
  const method = 'POST';
859
1080
  const path = `/_data_stream/_promote/${encodeURIComponent(params.name.toString())}`;
860
- return await this.transport.request({ path, method, querystring, body }, options);
1081
+ const meta = {
1082
+ name: 'indices.promote_data_stream',
1083
+ pathParts: {
1084
+ name: params.name
1085
+ }
1086
+ };
1087
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
861
1088
  }
862
1089
  async putAlias(params, options) {
863
1090
  const acceptedPath = ['index', 'name'];
@@ -896,7 +1123,14 @@ class Indices {
896
1123
  method = 'PUT';
897
1124
  path = `/${encodeURIComponent(params.index.toString())}/_aliases/${encodeURIComponent(params.name.toString())}`;
898
1125
  }
899
- return await this.transport.request({ path, method, querystring, body }, options);
1126
+ const meta = {
1127
+ name: 'indices.put_alias',
1128
+ pathParts: {
1129
+ index: params.index,
1130
+ name: params.name
1131
+ }
1132
+ };
1133
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
900
1134
  }
901
1135
  async putDataLifecycle(params, options) {
902
1136
  const acceptedPath = ['name'];
@@ -927,7 +1161,13 @@ class Indices {
927
1161
  }
928
1162
  const method = 'PUT';
929
1163
  const path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`;
930
- return await this.transport.request({ path, method, querystring, body }, options);
1164
+ const meta = {
1165
+ name: 'indices.put_data_lifecycle',
1166
+ pathParts: {
1167
+ name: params.name
1168
+ }
1169
+ };
1170
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
931
1171
  }
932
1172
  async putIndexTemplate(params, options) {
933
1173
  const acceptedPath = ['name'];
@@ -958,7 +1198,13 @@ class Indices {
958
1198
  }
959
1199
  const method = 'PUT';
960
1200
  const path = `/_index_template/${encodeURIComponent(params.name.toString())}`;
961
- return await this.transport.request({ path, method, querystring, body }, options);
1201
+ const meta = {
1202
+ name: 'indices.put_index_template',
1203
+ pathParts: {
1204
+ name: params.name
1205
+ }
1206
+ };
1207
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
962
1208
  }
963
1209
  async putMapping(params, options) {
964
1210
  const acceptedPath = ['index'];
@@ -989,7 +1235,13 @@ class Indices {
989
1235
  }
990
1236
  const method = 'PUT';
991
1237
  const path = `/${encodeURIComponent(params.index.toString())}/_mapping`;
992
- return await this.transport.request({ path, method, querystring, body }, options);
1238
+ const meta = {
1239
+ name: 'indices.put_mapping',
1240
+ pathParts: {
1241
+ index: params.index
1242
+ }
1243
+ };
1244
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
993
1245
  }
994
1246
  async putSettings(params, options) {
995
1247
  var _a;
@@ -1021,7 +1273,13 @@ class Indices {
1021
1273
  method = 'PUT';
1022
1274
  path = '/_settings';
1023
1275
  }
1024
- return await this.transport.request({ path, method, querystring, body }, options);
1276
+ const meta = {
1277
+ name: 'indices.put_settings',
1278
+ pathParts: {
1279
+ index: params.index
1280
+ }
1281
+ };
1282
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1025
1283
  }
1026
1284
  async putTemplate(params, options) {
1027
1285
  const acceptedPath = ['name'];
@@ -1052,7 +1310,13 @@ class Indices {
1052
1310
  }
1053
1311
  const method = 'PUT';
1054
1312
  const path = `/_template/${encodeURIComponent(params.name.toString())}`;
1055
- return await this.transport.request({ path, method, querystring, body }, options);
1313
+ const meta = {
1314
+ name: 'indices.put_template',
1315
+ pathParts: {
1316
+ name: params.name
1317
+ }
1318
+ };
1319
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1056
1320
  }
1057
1321
  async recovery(params, options) {
1058
1322
  const acceptedPath = ['index'];
@@ -1078,7 +1342,13 @@ class Indices {
1078
1342
  method = 'GET';
1079
1343
  path = '/_recovery';
1080
1344
  }
1081
- return await this.transport.request({ path, method, querystring, body }, options);
1345
+ const meta = {
1346
+ name: 'indices.recovery',
1347
+ pathParts: {
1348
+ index: params.index
1349
+ }
1350
+ };
1351
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1082
1352
  }
1083
1353
  async refresh(params, options) {
1084
1354
  const acceptedPath = ['index'];
@@ -1104,7 +1374,13 @@ class Indices {
1104
1374
  method = body != null ? 'POST' : 'GET';
1105
1375
  path = '/_refresh';
1106
1376
  }
1107
- return await this.transport.request({ path, method, querystring, body }, options);
1377
+ const meta = {
1378
+ name: 'indices.refresh',
1379
+ pathParts: {
1380
+ index: params.index
1381
+ }
1382
+ };
1383
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1108
1384
  }
1109
1385
  async reloadSearchAnalyzers(params, options) {
1110
1386
  const acceptedPath = ['index'];
@@ -1121,7 +1397,13 @@ class Indices {
1121
1397
  }
1122
1398
  const method = body != null ? 'POST' : 'GET';
1123
1399
  const path = `/${encodeURIComponent(params.index.toString())}/_reload_search_analyzers`;
1124
- return await this.transport.request({ path, method, querystring, body }, options);
1400
+ const meta = {
1401
+ name: 'indices.reload_search_analyzers',
1402
+ pathParts: {
1403
+ index: params.index
1404
+ }
1405
+ };
1406
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1125
1407
  }
1126
1408
  async resolveCluster(params, options) {
1127
1409
  const acceptedPath = ['name'];
@@ -1138,7 +1420,13 @@ class Indices {
1138
1420
  }
1139
1421
  const method = 'GET';
1140
1422
  const path = `/_resolve/cluster/${encodeURIComponent(params.name.toString())}`;
1141
- return await this.transport.request({ path, method, querystring, body }, options);
1423
+ const meta = {
1424
+ name: 'indices.resolve_cluster',
1425
+ pathParts: {
1426
+ name: params.name
1427
+ }
1428
+ };
1429
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1142
1430
  }
1143
1431
  async resolveIndex(params, options) {
1144
1432
  const acceptedPath = ['name'];
@@ -1155,7 +1443,13 @@ class Indices {
1155
1443
  }
1156
1444
  const method = 'GET';
1157
1445
  const path = `/_resolve/index/${encodeURIComponent(params.name.toString())}`;
1158
- return await this.transport.request({ path, method, querystring, body }, options);
1446
+ const meta = {
1447
+ name: 'indices.resolve_index',
1448
+ pathParts: {
1449
+ name: params.name
1450
+ }
1451
+ };
1452
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1159
1453
  }
1160
1454
  async rollover(params, options) {
1161
1455
  const acceptedPath = ['alias', 'new_index'];
@@ -1194,7 +1488,14 @@ class Indices {
1194
1488
  method = 'POST';
1195
1489
  path = `/${encodeURIComponent(params.alias.toString())}/_rollover`;
1196
1490
  }
1197
- return await this.transport.request({ path, method, querystring, body }, options);
1491
+ const meta = {
1492
+ name: 'indices.rollover',
1493
+ pathParts: {
1494
+ alias: params.alias,
1495
+ new_index: params.new_index
1496
+ }
1497
+ };
1498
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1198
1499
  }
1199
1500
  async segments(params, options) {
1200
1501
  const acceptedPath = ['index'];
@@ -1220,7 +1521,13 @@ class Indices {
1220
1521
  method = 'GET';
1221
1522
  path = '/_segments';
1222
1523
  }
1223
- return await this.transport.request({ path, method, querystring, body }, options);
1524
+ const meta = {
1525
+ name: 'indices.segments',
1526
+ pathParts: {
1527
+ index: params.index
1528
+ }
1529
+ };
1530
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1224
1531
  }
1225
1532
  async shardStores(params, options) {
1226
1533
  const acceptedPath = ['index'];
@@ -1246,7 +1553,13 @@ class Indices {
1246
1553
  method = 'GET';
1247
1554
  path = '/_shard_stores';
1248
1555
  }
1249
- return await this.transport.request({ path, method, querystring, body }, options);
1556
+ const meta = {
1557
+ name: 'indices.shard_stores',
1558
+ pathParts: {
1559
+ index: params.index
1560
+ }
1561
+ };
1562
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1250
1563
  }
1251
1564
  async shrink(params, options) {
1252
1565
  const acceptedPath = ['index', 'target'];
@@ -1277,7 +1590,14 @@ class Indices {
1277
1590
  }
1278
1591
  const method = 'PUT';
1279
1592
  const path = `/${encodeURIComponent(params.index.toString())}/_shrink/${encodeURIComponent(params.target.toString())}`;
1280
- return await this.transport.request({ path, method, querystring, body }, options);
1593
+ const meta = {
1594
+ name: 'indices.shrink',
1595
+ pathParts: {
1596
+ index: params.index,
1597
+ target: params.target
1598
+ }
1599
+ };
1600
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1281
1601
  }
1282
1602
  async simulateIndexTemplate(params, options) {
1283
1603
  const acceptedPath = ['name'];
@@ -1294,7 +1614,13 @@ class Indices {
1294
1614
  }
1295
1615
  const method = 'POST';
1296
1616
  const path = `/_index_template/_simulate_index/${encodeURIComponent(params.name.toString())}`;
1297
- return await this.transport.request({ path, method, querystring, body }, options);
1617
+ const meta = {
1618
+ name: 'indices.simulate_index_template',
1619
+ pathParts: {
1620
+ name: params.name
1621
+ }
1622
+ };
1623
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1298
1624
  }
1299
1625
  async simulateTemplate(params, options) {
1300
1626
  const acceptedPath = ['name'];
@@ -1334,7 +1660,13 @@ class Indices {
1334
1660
  method = 'POST';
1335
1661
  path = '/_index_template/_simulate';
1336
1662
  }
1337
- return await this.transport.request({ path, method, querystring, body }, options);
1663
+ const meta = {
1664
+ name: 'indices.simulate_template',
1665
+ pathParts: {
1666
+ name: params.name
1667
+ }
1668
+ };
1669
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1338
1670
  }
1339
1671
  async split(params, options) {
1340
1672
  const acceptedPath = ['index', 'target'];
@@ -1365,7 +1697,14 @@ class Indices {
1365
1697
  }
1366
1698
  const method = 'PUT';
1367
1699
  const path = `/${encodeURIComponent(params.index.toString())}/_split/${encodeURIComponent(params.target.toString())}`;
1368
- return await this.transport.request({ path, method, querystring, body }, options);
1700
+ const meta = {
1701
+ name: 'indices.split',
1702
+ pathParts: {
1703
+ index: params.index,
1704
+ target: params.target
1705
+ }
1706
+ };
1707
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1369
1708
  }
1370
1709
  async stats(params, options) {
1371
1710
  const acceptedPath = ['metric', 'index'];
@@ -1399,7 +1738,14 @@ class Indices {
1399
1738
  method = 'GET';
1400
1739
  path = '/_stats';
1401
1740
  }
1402
- return await this.transport.request({ path, method, querystring, body }, options);
1741
+ const meta = {
1742
+ name: 'indices.stats',
1743
+ pathParts: {
1744
+ metric: params.metric,
1745
+ index: params.index
1746
+ }
1747
+ };
1748
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1403
1749
  }
1404
1750
  async unfreeze(params, options) {
1405
1751
  const acceptedPath = ['index'];
@@ -1416,7 +1762,13 @@ class Indices {
1416
1762
  }
1417
1763
  const method = 'POST';
1418
1764
  const path = `/${encodeURIComponent(params.index.toString())}/_unfreeze`;
1419
- return await this.transport.request({ path, method, querystring, body }, options);
1765
+ const meta = {
1766
+ name: 'indices.unfreeze',
1767
+ pathParts: {
1768
+ index: params.index
1769
+ }
1770
+ };
1771
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1420
1772
  }
1421
1773
  async updateAliases(params, options) {
1422
1774
  const acceptedPath = [];
@@ -1448,7 +1800,10 @@ class Indices {
1448
1800
  }
1449
1801
  const method = 'POST';
1450
1802
  const path = '/_aliases';
1451
- return await this.transport.request({ path, method, querystring, body }, options);
1803
+ const meta = {
1804
+ name: 'indices.update_aliases'
1805
+ };
1806
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1452
1807
  }
1453
1808
  async validateQuery(params, options) {
1454
1809
  const acceptedPath = ['index'];
@@ -1488,7 +1843,13 @@ class Indices {
1488
1843
  method = body != null ? 'POST' : 'GET';
1489
1844
  path = '/_validate/query';
1490
1845
  }
1491
- return await this.transport.request({ path, method, querystring, body }, options);
1846
+ const meta = {
1847
+ name: 'indices.validate_query',
1848
+ pathParts: {
1849
+ index: params.index
1850
+ }
1851
+ };
1852
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
1492
1853
  }
1493
1854
  }
1494
1855
  exports.default = Indices;