@opensearch-project/opensearch 3.0.0-beta.6 → 3.0.0-beta.8

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 (866) hide show
  1. package/{lib/OpenSearchAPI.d.ts → api/OpenSearchApi.d.ts} +338 -10
  2. package/api/OpenSearchApi.js +198 -0
  3. package/api/_core/bulk.d.ts +9 -8
  4. package/api/_core/bulk.js +5 -4
  5. package/api/_core/bulkStream.d.ts +52 -0
  6. package/api/_core/bulkStream.js +61 -0
  7. package/api/_core/clearScroll.d.ts +8 -7
  8. package/api/_core/clearScroll.js +6 -5
  9. package/api/_core/count.d.ts +11 -9
  10. package/api/_core/count.js +8 -7
  11. package/api/_core/create.d.ts +7 -6
  12. package/api/_core/create.js +4 -3
  13. package/api/_core/createPit.d.ts +8 -7
  14. package/api/_core/createPit.js +7 -6
  15. package/api/_core/delete.d.ts +7 -6
  16. package/api/_core/delete.js +4 -3
  17. package/api/_core/deleteAllPits.d.ts +6 -5
  18. package/api/_core/deleteAllPits.js +4 -3
  19. package/api/_core/deleteByQuery.d.ts +10 -24
  20. package/api/_core/deleteByQuery.js +12 -11
  21. package/api/_core/deleteByQueryRethrottle.d.ts +6 -5
  22. package/api/_core/deleteByQueryRethrottle.js +4 -3
  23. package/api/_core/deletePit.d.ts +8 -7
  24. package/api/_core/deletePit.js +4 -3
  25. package/api/_core/deleteScript.d.ts +6 -5
  26. package/api/_core/deleteScript.js +5 -4
  27. package/api/_core/exists.d.ts +9 -8
  28. package/api/_core/exists.js +6 -5
  29. package/api/_core/existsSource.d.ts +9 -8
  30. package/api/_core/existsSource.js +7 -6
  31. package/api/_core/explain.d.ts +10 -9
  32. package/api/_core/explain.js +5 -4
  33. package/api/_core/fieldCaps.d.ts +8 -9
  34. package/api/_core/fieldCaps.js +10 -9
  35. package/api/_core/get.d.ts +9 -8
  36. package/api/_core/get.js +7 -6
  37. package/api/_core/getAllPits.d.ts +6 -5
  38. package/api/_core/getAllPits.js +4 -3
  39. package/api/_core/getScript.d.ts +7 -6
  40. package/api/_core/getScript.js +4 -3
  41. package/api/_core/getScriptContext.d.ts +6 -5
  42. package/api/_core/getScriptContext.js +4 -3
  43. package/api/_core/getScriptLanguages.d.ts +6 -5
  44. package/api/_core/getScriptLanguages.js +4 -3
  45. package/api/_core/getSource.d.ts +9 -8
  46. package/api/_core/getSource.js +8 -7
  47. package/api/_core/index.d.ts +7 -6
  48. package/api/_core/index.js +5 -4
  49. package/api/_core/info.d.ts +6 -5
  50. package/api/_core/info.js +4 -3
  51. package/api/_core/mget.d.ts +11 -10
  52. package/api/_core/mget.js +7 -6
  53. package/api/_core/msearch.d.ts +6 -5
  54. package/api/_core/msearch.js +8 -7
  55. package/api/_core/msearchTemplate.d.ts +7 -6
  56. package/api/_core/msearchTemplate.js +6 -5
  57. package/api/_core/mtermvectors.d.ts +9 -8
  58. package/api/_core/mtermvectors.js +7 -6
  59. package/api/_core/ping.d.ts +4 -3
  60. package/api/_core/ping.js +4 -3
  61. package/api/_core/putScript.d.ts +7 -6
  62. package/api/_core/putScript.js +7 -6
  63. package/api/_core/rankEval.d.ts +9 -8
  64. package/api/_core/rankEval.js +9 -8
  65. package/api/_core/reindex.d.ts +9 -23
  66. package/api/_core/reindex.js +6 -5
  67. package/api/_core/reindexRethrottle.d.ts +7 -6
  68. package/api/_core/reindexRethrottle.js +4 -3
  69. package/api/_core/renderSearchTemplate.d.ts +8 -7
  70. package/api/_core/renderSearchTemplate.js +6 -5
  71. package/api/_core/scriptsPainlessExecute.d.ts +9 -8
  72. package/api/_core/scriptsPainlessExecute.js +4 -3
  73. package/api/_core/scroll.d.ts +7 -6
  74. package/api/_core/scroll.js +6 -5
  75. package/api/_core/search.d.ts +10 -12
  76. package/api/_core/search.js +13 -12
  77. package/api/_core/searchShards.d.ts +8 -7
  78. package/api/_core/searchShards.js +8 -7
  79. package/api/_core/searchTemplate.d.ts +9 -8
  80. package/api/_core/searchTemplate.js +10 -9
  81. package/api/_core/termvectors.d.ts +9 -8
  82. package/api/_core/termvectors.js +6 -5
  83. package/api/_core/update.d.ts +9 -8
  84. package/api/_core/update.js +7 -6
  85. package/api/_core/updateByQuery.d.ts +10 -24
  86. package/api/_core/updateByQuery.js +12 -11
  87. package/api/_core/updateByQueryRethrottle.d.ts +7 -6
  88. package/api/_core/updateByQueryRethrottle.js +4 -3
  89. package/api/_types/_common.aggregations.d.ts +198 -195
  90. package/api/_types/_common.analysis.d.ts +120 -92
  91. package/api/_types/_common.d.ts +237 -190
  92. package/api/_types/_common.mapping.d.ts +122 -170
  93. package/api/_types/_common.query_dsl.d.ts +149 -99
  94. package/api/_types/_core._common.d.ts +7 -6
  95. package/api/_types/_core.bulk.d.ts +12 -11
  96. package/api/_types/_core.explain.d.ts +7 -6
  97. package/api/_types/_core.field_caps.d.ts +4 -8
  98. package/api/_types/_core.get.d.ts +4 -3
  99. package/api/_types/_core.get_script_context.d.ts +6 -5
  100. package/api/_types/_core.get_script_languages.d.ts +4 -3
  101. package/api/_types/_core.mget.d.ts +6 -5
  102. package/api/_types/_core.msearch.d.ts +10 -11
  103. package/api/_types/_core.msearch_template.d.ts +5 -4
  104. package/api/_types/_core.mtermvectors.d.ts +5 -4
  105. package/api/_types/_core.rank_eval.d.ts +16 -15
  106. package/api/_types/_core.reindex.d.ts +6 -7
  107. package/api/_types/_core.reindex_rethrottle.d.ts +6 -5
  108. package/api/_types/_core.scripts_painless_execute.d.ts +4 -3
  109. package/api/_types/_core.search.d.ts +44 -42
  110. package/api/_types/_core.search_shards.d.ts +4 -3
  111. package/api/_types/_core.termvectors.d.ts +8 -7
  112. package/api/_types/_core.update.d.ts +4 -3
  113. package/api/_types/_core.update_by_query_rethrottle.d.ts +4 -3
  114. package/api/_types/_global.d.ts +4 -3
  115. package/api/_types/asynchronous_search._common.d.ts +85 -0
  116. package/api/_types/cat._common.d.ts +8 -6
  117. package/api/_types/cat.aliases.d.ts +4 -3
  118. package/api/_types/cat.allocation.d.ts +9 -8
  119. package/api/_types/cat.cluster_manager.d.ts +4 -3
  120. package/api/_types/cat.count.d.ts +4 -3
  121. package/api/_types/cat.fielddata.d.ts +4 -3
  122. package/api/_types/cat.health.d.ts +5 -4
  123. package/api/_types/cat.indices.d.ts +134 -129
  124. package/api/_types/cat.master.d.ts +4 -3
  125. package/api/_types/cat.nodeattrs.d.ts +4 -3
  126. package/api/_types/cat.nodes.d.ts +18 -10
  127. package/api/_types/cat.pending_tasks.d.ts +4 -3
  128. package/api/_types/cat.plugins.d.ts +4 -3
  129. package/api/_types/cat.recovery.d.ts +9 -8
  130. package/api/_types/cat.repositories.d.ts +4 -3
  131. package/api/_types/cat.segments.d.ts +6 -5
  132. package/api/_types/cat.shards.d.ts +81 -71
  133. package/api/_types/cat.snapshots.d.ts +4 -3
  134. package/api/_types/cat.tasks.d.ts +4 -3
  135. package/api/_types/cat.templates.d.ts +4 -3
  136. package/api/_types/cat.thread_pool.d.ts +5 -3
  137. package/api/_types/cluster._common.d.ts +7 -7
  138. package/api/_types/cluster.allocation_explain.d.ts +23 -19
  139. package/api/_types/cluster.decommission_awareness.d.ts +21 -0
  140. package/api/_types/cluster.health.d.ts +20 -6
  141. package/api/_types/cluster.pending_tasks.d.ts +4 -3
  142. package/api/_types/cluster.remote_info.d.ts +5 -4
  143. package/api/_types/cluster.reroute.d.ts +13 -10
  144. package/api/_types/cluster.state.d.ts +3 -2
  145. package/api/_types/cluster.stats.d.ts +103 -103
  146. package/api/_types/{snapshot.get.d.ts → cluster.weighted_routing.d.ts} +13 -7
  147. package/api/_types/dangling_indices.list_dangling_indices.d.ts +4 -3
  148. package/api/_types/flow_framework.common.d.ts +195 -0
  149. package/api/_types/flow_framework.errors.d.ts +116 -0
  150. package/api/_types/indices._common.d.ts +205 -214
  151. package/api/_types/indices.add_block.d.ts +4 -3
  152. package/api/_types/indices.analyze.d.ts +9 -8
  153. package/api/_types/indices.close.d.ts +5 -4
  154. package/api/_types/indices.data_streams_stats.d.ts +6 -5
  155. package/api/_types/indices.get_alias.d.ts +4 -3
  156. package/api/_types/indices.get_field_mapping.d.ts +4 -3
  157. package/api/_types/indices.get_index_template.d.ts +5 -4
  158. package/api/_types/indices.get_mapping.d.ts +4 -3
  159. package/api/_types/indices.put_index_template.d.ts +5 -5
  160. package/api/_types/indices.recovery.d.ts +28 -23
  161. package/api/_types/indices.resolve_index.d.ts +6 -5
  162. package/api/_types/indices.rollover.d.ts +12 -11
  163. package/api/_types/indices.segments.d.ts +12 -8
  164. package/api/_types/indices.shard_stores.d.ts +9 -8
  165. package/api/_types/indices.simulate_template.d.ts +6 -5
  166. package/api/_types/indices.stats.d.ts +36 -73
  167. package/api/_types/indices.update_aliases.d.ts +7 -6
  168. package/api/_types/indices.validate_query.d.ts +4 -3
  169. package/api/_types/ingest._common.d.ts +42 -41
  170. package/api/_types/ingest.simulate.d.ts +7 -6
  171. package/api/_types/insights._common.d.ts +95 -0
  172. package/api/_types/ism._common.d.ts +259 -0
  173. package/api/_types/knn._common.d.ts +3 -2
  174. package/api/_types/ml._common.d.ts +143 -14
  175. package/api/_types/nodes._common.d.ts +205 -164
  176. package/api/_types/nodes.info.d.ts +79 -78
  177. package/api/_types/nodes.reload_secure_settings.d.ts +5 -4
  178. package/api/_types/nodes.stats.d.ts +5 -4
  179. package/api/_types/nodes.usage.d.ts +5 -4
  180. package/api/_types/notifications._common.d.ts +24 -23
  181. package/api/_types/observability._common.d.ts +117 -0
  182. package/api/_types/query._common.d.ts +71 -0
  183. package/api/_types/remote_store._common.d.ts +5 -4
  184. package/api/_types/replication._common.d.ts +143 -0
  185. package/api/_types/rollups._common.d.ts +18 -17
  186. package/api/_types/search_pipeline._common.d.ts +112 -14
  187. package/api/_types/security._common.d.ts +124 -101
  188. package/api/_types/snapshot._common.d.ts +19 -31
  189. package/api/_types/snapshot.cleanup_repository.d.ts +4 -3
  190. package/api/_types/snapshot.restore.d.ts +4 -3
  191. package/api/_types/snapshot.verify_repository.d.ts +4 -3
  192. package/api/_types/sql._common.d.ts +21 -20
  193. package/api/_types/tasks._common.d.ts +25 -16
  194. package/api/_types/transforms._common.d.ts +19 -18
  195. package/api/_types/wlm._common.d.ts +53 -0
  196. package/api/asynchronousSearch/_api.js +29 -0
  197. package/api/asynchronousSearch/delete.d.ts +31 -0
  198. package/api/asynchronousSearch/delete.js +49 -0
  199. package/api/asynchronousSearch/get.d.ts +30 -0
  200. package/api/asynchronousSearch/get.js +49 -0
  201. package/api/asynchronousSearch/search.d.ts +34 -0
  202. package/api/asynchronousSearch/search.js +51 -0
  203. package/api/asynchronousSearch/stats.d.ts +28 -0
  204. package/api/asynchronousSearch/stats.js +45 -0
  205. package/api/cat/_api.js +16 -3
  206. package/api/cat/aliases.d.ts +7 -6
  207. package/api/cat/aliases.js +8 -7
  208. package/api/cat/allPitSegments.d.ts +8 -7
  209. package/api/cat/allPitSegments.js +5 -4
  210. package/api/cat/allocation.d.ts +8 -7
  211. package/api/cat/allocation.js +7 -6
  212. package/api/cat/clusterManager.d.ts +7 -6
  213. package/api/cat/clusterManager.js +6 -5
  214. package/api/cat/count.d.ts +7 -6
  215. package/api/cat/count.js +8 -7
  216. package/api/cat/fielddata.d.ts +8 -7
  217. package/api/cat/fielddata.js +6 -5
  218. package/api/cat/health.d.ts +7 -6
  219. package/api/cat/health.js +6 -5
  220. package/api/cat/help.d.ts +4 -3
  221. package/api/cat/help.js +4 -3
  222. package/api/cat/indices.d.ts +8 -7
  223. package/api/cat/indices.js +12 -11
  224. package/api/cat/master.d.ts +7 -6
  225. package/api/cat/master.js +6 -5
  226. package/api/cat/nodeattrs.d.ts +7 -6
  227. package/api/cat/nodeattrs.js +6 -5
  228. package/api/cat/nodes.d.ts +8 -7
  229. package/api/cat/nodes.js +6 -5
  230. package/api/cat/pendingTasks.d.ts +7 -6
  231. package/api/cat/pendingTasks.js +6 -5
  232. package/api/cat/pitSegments.d.ts +9 -8
  233. package/api/cat/pitSegments.js +5 -4
  234. package/api/cat/plugins.d.ts +7 -6
  235. package/api/cat/plugins.js +6 -5
  236. package/api/cat/recovery.d.ts +8 -7
  237. package/api/cat/recovery.js +7 -6
  238. package/api/cat/repositories.d.ts +7 -6
  239. package/api/cat/repositories.js +6 -5
  240. package/api/cat/segmentReplication.d.ts +8 -7
  241. package/api/cat/segmentReplication.js +10 -9
  242. package/api/cat/segments.d.ts +8 -7
  243. package/api/cat/segments.js +8 -7
  244. package/api/cat/shards.d.ts +8 -7
  245. package/api/cat/shards.js +8 -7
  246. package/api/cat/snapshots.d.ts +7 -6
  247. package/api/cat/snapshots.js +7 -6
  248. package/api/cat/tasks.d.ts +7 -6
  249. package/api/cat/tasks.js +5 -4
  250. package/api/cat/templates.d.ts +7 -6
  251. package/api/cat/templates.js +7 -6
  252. package/api/cat/threadPool.d.ts +7 -6
  253. package/api/cat/threadPool.js +8 -7
  254. package/api/cluster/_api.js +38 -3
  255. package/api/cluster/allocationExplain.d.ts +9 -8
  256. package/api/cluster/allocationExplain.js +6 -5
  257. package/api/cluster/deleteComponentTemplate.d.ts +6 -5
  258. package/api/cluster/deleteComponentTemplate.js +5 -4
  259. package/api/cluster/deleteDecommissionAwareness.d.ts +6 -4
  260. package/api/cluster/deleteDecommissionAwareness.js +4 -3
  261. package/api/cluster/deleteVotingConfigExclusions.d.ts +5 -4
  262. package/api/cluster/deleteVotingConfigExclusions.js +5 -4
  263. package/api/cluster/deleteWeightedRouting.d.ts +10 -5
  264. package/api/cluster/deleteWeightedRouting.js +7 -4
  265. package/api/cluster/existsComponentTemplate.d.ts +6 -5
  266. package/api/cluster/existsComponentTemplate.js +6 -5
  267. package/api/cluster/getComponentTemplate.d.ts +8 -7
  268. package/api/cluster/getComponentTemplate.js +7 -6
  269. package/api/cluster/getDecommissionAwareness.d.ts +7 -5
  270. package/api/cluster/getDecommissionAwareness.js +4 -3
  271. package/api/cluster/getSettings.d.ts +10 -9
  272. package/api/cluster/getSettings.js +5 -4
  273. package/api/cluster/getWeightedRouting.d.ts +7 -5
  274. package/api/cluster/getWeightedRouting.js +4 -3
  275. package/api/cluster/health.d.ts +7 -6
  276. package/api/cluster/health.js +10 -9
  277. package/api/cluster/pendingTasks.d.ts +8 -7
  278. package/api/cluster/pendingTasks.js +6 -5
  279. package/api/cluster/postVotingConfigExclusions.d.ts +6 -5
  280. package/api/cluster/postVotingConfigExclusions.js +4 -3
  281. package/api/cluster/putComponentTemplate.d.ts +7 -6
  282. package/api/cluster/putComponentTemplate.js +6 -5
  283. package/api/cluster/putDecommissionAwareness.d.ts +7 -5
  284. package/api/cluster/putDecommissionAwareness.js +4 -3
  285. package/api/cluster/putSettings.d.ts +8 -7
  286. package/api/cluster/putSettings.js +5 -4
  287. package/api/cluster/putWeightedRouting.d.ts +7 -4
  288. package/api/cluster/putWeightedRouting.js +5 -3
  289. package/api/cluster/remoteInfo.d.ts +5 -4
  290. package/api/cluster/remoteInfo.js +4 -3
  291. package/api/cluster/reroute.d.ts +10 -9
  292. package/api/cluster/reroute.js +8 -7
  293. package/api/cluster/state.d.ts +7 -6
  294. package/api/cluster/state.js +9 -8
  295. package/api/cluster/stats.d.ts +9 -6
  296. package/api/cluster/stats.js +19 -5
  297. package/api/danglingIndices/_api.js +12 -5
  298. package/api/danglingIndices/deleteDanglingIndex.d.ts +6 -5
  299. package/api/danglingIndices/deleteDanglingIndex.js +4 -3
  300. package/api/danglingIndices/importDanglingIndex.d.ts +6 -5
  301. package/api/danglingIndices/importDanglingIndex.js +4 -3
  302. package/api/danglingIndices/listDanglingIndices.d.ts +6 -5
  303. package/api/danglingIndices/listDanglingIndices.js +5 -4
  304. package/api/flowFramework/_api.js +41 -0
  305. package/api/flowFramework/create.d.ts +37 -0
  306. package/api/flowFramework/create.js +52 -0
  307. package/api/flowFramework/delete.d.ts +31 -0
  308. package/api/flowFramework/delete.js +50 -0
  309. package/api/flowFramework/deprovision.d.ts +31 -0
  310. package/api/flowFramework/deprovision.js +50 -0
  311. package/api/flowFramework/get.d.ts +30 -0
  312. package/api/flowFramework/get.js +49 -0
  313. package/api/flowFramework/getStatus.d.ts +31 -0
  314. package/api/flowFramework/getStatus.js +50 -0
  315. package/api/flowFramework/getSteps.d.ts +30 -0
  316. package/api/flowFramework/getSteps.js +47 -0
  317. package/api/flowFramework/provision.d.ts +31 -0
  318. package/api/flowFramework/provision.js +50 -0
  319. package/api/flowFramework/search.d.ts +30 -0
  320. package/api/flowFramework/search.js +47 -0
  321. package/api/flowFramework/searchState.d.ts +30 -0
  322. package/api/flowFramework/searchState.js +47 -0
  323. package/api/flowFramework/update.d.ts +38 -0
  324. package/api/flowFramework/update.js +55 -0
  325. package/api/http/_api.js +4 -3
  326. package/api/http/connect.js +3 -2
  327. package/api/http/delete.js +3 -2
  328. package/api/http/get.js +3 -2
  329. package/api/http/head.js +3 -2
  330. package/api/http/options.js +3 -2
  331. package/api/http/patch.js +3 -2
  332. package/api/http/post.js +3 -2
  333. package/api/http/put.js +3 -2
  334. package/api/http/trace.js +3 -2
  335. package/api/index.d.ts +141 -6
  336. package/api/indices/_api.js +64 -3
  337. package/api/indices/addBlock.d.ts +7 -6
  338. package/api/indices/addBlock.js +8 -7
  339. package/api/indices/analyze.d.ts +8 -7
  340. package/api/indices/analyze.js +5 -4
  341. package/api/indices/clearCache.d.ts +6 -5
  342. package/api/indices/clearCache.js +9 -8
  343. package/api/indices/clone.d.ts +8 -7
  344. package/api/indices/clone.js +5 -4
  345. package/api/indices/close.d.ts +7 -6
  346. package/api/indices/close.js +6 -5
  347. package/api/indices/create.d.ts +9 -8
  348. package/api/indices/create.js +5 -4
  349. package/api/indices/createDataStream.d.ts +6 -5
  350. package/api/indices/createDataStream.js +4 -3
  351. package/api/indices/dataStreamsStats.d.ts +9 -8
  352. package/api/indices/dataStreamsStats.js +5 -4
  353. package/api/indices/delete.d.ts +6 -5
  354. package/api/indices/delete.js +7 -6
  355. package/api/indices/deleteAlias.d.ts +6 -5
  356. package/api/indices/deleteAlias.js +6 -5
  357. package/api/indices/deleteDataStream.d.ts +6 -5
  358. package/api/indices/deleteDataStream.js +4 -3
  359. package/api/indices/deleteIndexTemplate.d.ts +6 -5
  360. package/api/indices/deleteIndexTemplate.js +5 -4
  361. package/api/indices/deleteTemplate.d.ts +6 -5
  362. package/api/indices/deleteTemplate.js +5 -4
  363. package/api/indices/exists.d.ts +6 -5
  364. package/api/indices/exists.js +6 -5
  365. package/api/indices/existsAlias.d.ts +6 -5
  366. package/api/indices/existsAlias.js +8 -7
  367. package/api/indices/existsIndexTemplate.d.ts +6 -5
  368. package/api/indices/existsIndexTemplate.js +5 -4
  369. package/api/indices/existsTemplate.d.ts +6 -5
  370. package/api/indices/existsTemplate.js +5 -4
  371. package/api/indices/flush.d.ts +6 -5
  372. package/api/indices/flush.js +8 -7
  373. package/api/indices/forcemerge.d.ts +7 -6
  374. package/api/indices/forcemerge.js +10 -9
  375. package/api/indices/get.d.ts +6 -5
  376. package/api/indices/get.js +12 -11
  377. package/api/indices/getAlias.d.ts +6 -5
  378. package/api/indices/getAlias.js +7 -6
  379. package/api/indices/getDataStream.d.ts +7 -6
  380. package/api/indices/getDataStream.js +5 -4
  381. package/api/indices/getFieldMapping.d.ts +6 -5
  382. package/api/indices/getFieldMapping.js +7 -6
  383. package/api/indices/getIndexTemplate.d.ts +7 -6
  384. package/api/indices/getIndexTemplate.js +8 -7
  385. package/api/indices/getMapping.d.ts +6 -5
  386. package/api/indices/getMapping.js +9 -8
  387. package/api/indices/getSettings.d.ts +6 -5
  388. package/api/indices/getSettings.js +10 -9
  389. package/api/indices/getTemplate.d.ts +6 -5
  390. package/api/indices/getTemplate.js +6 -5
  391. package/api/indices/getUpgrade.d.ts +6 -5
  392. package/api/indices/getUpgrade.js +9 -8
  393. package/api/indices/open.d.ts +6 -5
  394. package/api/indices/open.js +7 -6
  395. package/api/indices/putAlias.d.ts +7 -6
  396. package/api/indices/putAlias.js +7 -6
  397. package/api/indices/putIndexTemplate.d.ts +7 -6
  398. package/api/indices/putIndexTemplate.js +5 -4
  399. package/api/indices/putMapping.d.ts +7 -7
  400. package/api/indices/putMapping.js +7 -6
  401. package/api/indices/putSettings.d.ts +6 -5
  402. package/api/indices/putSettings.js +9 -8
  403. package/api/indices/putTemplate.d.ts +8 -7
  404. package/api/indices/putTemplate.js +6 -5
  405. package/api/indices/recovery.d.ts +6 -5
  406. package/api/indices/recovery.js +6 -5
  407. package/api/indices/refresh.d.ts +6 -5
  408. package/api/indices/refresh.js +8 -7
  409. package/api/indices/resolveIndex.d.ts +7 -6
  410. package/api/indices/resolveIndex.js +6 -5
  411. package/api/indices/rollover.d.ts +9 -8
  412. package/api/indices/rollover.js +6 -5
  413. package/api/indices/segments.d.ts +7 -6
  414. package/api/indices/segments.js +7 -6
  415. package/api/indices/shardStores.d.ts +8 -7
  416. package/api/indices/shardStores.js +9 -8
  417. package/api/indices/shrink.d.ts +8 -7
  418. package/api/indices/shrink.js +5 -4
  419. package/api/indices/simulateIndexTemplate.d.ts +7 -6
  420. package/api/indices/simulateIndexTemplate.js +5 -4
  421. package/api/indices/simulateTemplate.d.ts +7 -6
  422. package/api/indices/simulateTemplate.js +7 -6
  423. package/api/indices/split.d.ts +8 -7
  424. package/api/indices/split.js +5 -4
  425. package/api/indices/stats.d.ts +9 -8
  426. package/api/indices/stats.js +9 -8
  427. package/api/indices/updateAliases.d.ts +7 -6
  428. package/api/indices/updateAliases.js +5 -4
  429. package/api/indices/upgrade.d.ts +6 -5
  430. package/api/indices/upgrade.js +10 -9
  431. package/api/indices/validateQuery.d.ts +9 -8
  432. package/api/indices/validateQuery.js +7 -6
  433. package/api/ingest/_api.js +12 -3
  434. package/api/ingest/deletePipeline.d.ts +6 -5
  435. package/api/ingest/deletePipeline.js +5 -4
  436. package/api/ingest/getPipeline.d.ts +6 -5
  437. package/api/ingest/getPipeline.js +6 -5
  438. package/api/ingest/processorGrok.d.ts +5 -4
  439. package/api/ingest/processorGrok.js +4 -3
  440. package/api/ingest/putPipeline.d.ts +7 -6
  441. package/api/ingest/putPipeline.js +5 -4
  442. package/api/ingest/simulate.d.ts +9 -8
  443. package/api/ingest/simulate.js +5 -4
  444. package/api/insights/_api.js +28 -0
  445. package/api/insights/topQueries.d.ts +30 -0
  446. package/api/insights/topQueries.js +48 -0
  447. package/api/ism/_api.js +61 -0
  448. package/api/ism/addPolicy.d.ts +32 -0
  449. package/api/ism/addPolicy.js +49 -0
  450. package/api/ism/changePolicy.d.ts +32 -0
  451. package/api/ism/changePolicy.js +49 -0
  452. package/api/ism/deletePolicy.d.ts +30 -0
  453. package/api/ism/deletePolicy.js +49 -0
  454. package/api/ism/existsPolicy.d.ts +29 -0
  455. package/api/ism/existsPolicy.js +49 -0
  456. package/api/ism/explainPolicy.d.ts +34 -0
  457. package/api/ism/explainPolicy.js +49 -0
  458. package/api/ism/getPolicies.d.ts +28 -0
  459. package/api/ism/getPolicies.js +45 -0
  460. package/api/ism/getPolicy.d.ts +30 -0
  461. package/api/ism/getPolicy.js +49 -0
  462. package/api/ism/putPolicies.d.ts +34 -0
  463. package/api/ism/putPolicies.js +51 -0
  464. package/api/ism/putPolicy.d.ts +34 -0
  465. package/api/ism/putPolicy.js +52 -0
  466. package/api/ism/refreshSearchAnalyzers.d.ts +31 -0
  467. package/api/ism/refreshSearchAnalyzers.js +49 -0
  468. package/api/ism/removePolicy.d.ts +31 -0
  469. package/api/ism/removePolicy.js +48 -0
  470. package/api/ism/retryIndex.d.ts +32 -0
  471. package/api/ism/retryIndex.js +49 -0
  472. package/api/knn/_api.js +12 -3
  473. package/api/knn/deleteModel.d.ts +5 -4
  474. package/api/knn/deleteModel.js +4 -3
  475. package/api/knn/getModel.d.ts +5 -4
  476. package/api/knn/getModel.js +4 -3
  477. package/api/knn/searchModels.d.ts +7 -6
  478. package/api/knn/searchModels.js +19 -18
  479. package/api/knn/stats.d.ts +6 -5
  480. package/api/knn/stats.js +5 -4
  481. package/api/knn/trainModel.d.ts +13 -7
  482. package/api/knn/trainModel.js +5 -4
  483. package/api/knn/warmup.d.ts +5 -4
  484. package/api/knn/warmup.js +5 -4
  485. package/api/list/_api.js +28 -0
  486. package/api/list/help.d.ts +27 -0
  487. package/api/list/help.js +45 -0
  488. package/api/list/indices.d.ts +51 -0
  489. package/api/list/indices.js +65 -0
  490. package/api/list/shards.d.ts +47 -0
  491. package/api/list/shards.js +61 -0
  492. package/api/ml/_api.js +39 -3
  493. package/api/ml/createConnector.d.ts +32 -0
  494. package/api/ml/createConnector.js +47 -0
  495. package/api/ml/deleteAgent.d.ts +30 -0
  496. package/api/ml/deleteAgent.js +49 -0
  497. package/api/ml/deleteConnector.d.ts +30 -0
  498. package/api/ml/deleteConnector.js +49 -0
  499. package/api/ml/deleteModel.d.ts +7 -6
  500. package/api/ml/deleteModel.js +4 -3
  501. package/api/ml/deleteModelGroup.d.ts +7 -6
  502. package/api/ml/deleteModelGroup.js +4 -3
  503. package/api/ml/deleteTask.d.ts +30 -0
  504. package/api/ml/deleteTask.js +49 -0
  505. package/api/ml/deployModel.d.ts +33 -0
  506. package/api/ml/deployModel.js +49 -0
  507. package/api/ml/getModelGroup.d.ts +5 -4
  508. package/api/ml/getModelGroup.js +4 -3
  509. package/api/ml/getTask.d.ts +5 -4
  510. package/api/ml/getTask.js +4 -3
  511. package/api/ml/registerAgents.d.ts +32 -0
  512. package/api/ml/registerAgents.js +47 -0
  513. package/api/ml/registerModel.d.ts +10 -7
  514. package/api/ml/registerModel.js +4 -3
  515. package/api/ml/registerModelGroup.d.ts +6 -5
  516. package/api/ml/registerModelGroup.js +4 -3
  517. package/api/ml/searchModels.d.ts +5 -4
  518. package/api/ml/searchModels.js +4 -3
  519. package/api/ml/undeployModel.d.ts +30 -0
  520. package/api/ml/undeployModel.js +49 -0
  521. package/api/nodes/_api.js +8 -3
  522. package/api/nodes/hotThreads.d.ts +6 -5
  523. package/api/nodes/hotThreads.js +7 -6
  524. package/api/nodes/info.d.ts +6 -5
  525. package/api/nodes/info.js +6 -5
  526. package/api/nodes/reloadSecureSettings.d.ts +7 -6
  527. package/api/nodes/reloadSecureSettings.js +5 -4
  528. package/api/nodes/stats.d.ts +6 -5
  529. package/api/nodes/stats.js +7 -6
  530. package/api/nodes/usage.d.ts +6 -5
  531. package/api/nodes/usage.js +5 -4
  532. package/api/notifications/_api.js +22 -3
  533. package/api/notifications/createConfig.d.ts +6 -5
  534. package/api/notifications/createConfig.js +4 -3
  535. package/api/notifications/deleteConfig.d.ts +5 -4
  536. package/api/notifications/deleteConfig.js +4 -3
  537. package/api/notifications/deleteConfigs.d.ts +5 -4
  538. package/api/notifications/deleteConfigs.js +4 -3
  539. package/api/notifications/getConfig.d.ts +5 -4
  540. package/api/notifications/getConfig.js +4 -3
  541. package/api/notifications/getConfigs.d.ts +8 -5
  542. package/api/notifications/getConfigs.js +8 -5
  543. package/api/notifications/listChannels.d.ts +5 -4
  544. package/api/notifications/listChannels.js +4 -3
  545. package/api/notifications/listFeatures.d.ts +5 -4
  546. package/api/notifications/listFeatures.js +4 -3
  547. package/api/notifications/sendTest.d.ts +6 -5
  548. package/api/notifications/sendTest.js +4 -3
  549. package/api/notifications/updateConfig.d.ts +6 -5
  550. package/api/notifications/updateConfig.js +4 -3
  551. package/api/observability/_api.js +46 -0
  552. package/api/observability/createObject.d.ts +32 -0
  553. package/api/observability/createObject.js +47 -0
  554. package/api/observability/deleteObject.d.ts +31 -0
  555. package/api/observability/deleteObject.js +49 -0
  556. package/api/observability/deleteObjects.d.ts +32 -0
  557. package/api/observability/deleteObjects.js +48 -0
  558. package/api/observability/getLocalstats.d.ts +27 -0
  559. package/api/observability/getLocalstats.js +45 -0
  560. package/api/observability/getObject.d.ts +30 -0
  561. package/api/observability/getObject.js +49 -0
  562. package/api/observability/listObjects.d.ts +28 -0
  563. package/api/observability/listObjects.js +45 -0
  564. package/api/observability/updateObject.d.ts +33 -0
  565. package/api/observability/updateObject.js +50 -0
  566. package/api/ppl/_api.js +8 -3
  567. package/api/ppl/explain.d.ts +5 -4
  568. package/api/ppl/explain.js +5 -4
  569. package/api/ppl/getStats.d.ts +5 -4
  570. package/api/ppl/getStats.js +5 -4
  571. package/api/ppl/postStats.d.ts +5 -4
  572. package/api/ppl/postStats.js +5 -4
  573. package/api/ppl/query.d.ts +5 -4
  574. package/api/ppl/query.js +5 -4
  575. package/api/query/_api.js +40 -0
  576. package/api/query/datasourceDelete.d.ts +29 -0
  577. package/api/query/datasourceDelete.js +49 -0
  578. package/api/query/datasourceRetrieve.d.ts +30 -0
  579. package/api/query/datasourceRetrieve.js +49 -0
  580. package/api/query/datasourcesCreate.d.ts +30 -0
  581. package/api/query/datasourcesCreate.js +47 -0
  582. package/api/query/datasourcesList.d.ts +28 -0
  583. package/api/query/datasourcesList.js +45 -0
  584. package/api/query/datasourcesUpdate.d.ts +30 -0
  585. package/api/query/datasourcesUpdate.js +47 -0
  586. package/api/remoteStore/_api.js +6 -5
  587. package/api/remoteStore/restore.d.ts +8 -7
  588. package/api/remoteStore/restore.js +4 -3
  589. package/api/replication/_api.js +48 -0
  590. package/api/replication/autofollowStats.d.ts +28 -0
  591. package/api/replication/autofollowStats.js +45 -0
  592. package/api/replication/createReplicationRule.d.ts +31 -0
  593. package/api/replication/createReplicationRule.js +47 -0
  594. package/api/replication/deleteReplicationRule.d.ts +31 -0
  595. package/api/replication/deleteReplicationRule.js +47 -0
  596. package/api/replication/followerStats.d.ts +28 -0
  597. package/api/replication/followerStats.js +45 -0
  598. package/api/replication/leaderStats.d.ts +28 -0
  599. package/api/replication/leaderStats.js +45 -0
  600. package/api/replication/pause.d.ts +33 -0
  601. package/api/replication/pause.js +50 -0
  602. package/api/replication/resume.d.ts +33 -0
  603. package/api/replication/resume.js +50 -0
  604. package/api/replication/start.d.ts +32 -0
  605. package/api/replication/start.js +50 -0
  606. package/api/replication/status.d.ts +31 -0
  607. package/api/replication/status.js +49 -0
  608. package/api/replication/stop.d.ts +33 -0
  609. package/api/replication/stop.js +50 -0
  610. package/api/replication/updateSettings.d.ts +32 -0
  611. package/api/replication/updateSettings.js +50 -0
  612. package/api/rollups/_api.js +4 -3
  613. package/api/rollups/delete.d.ts +6 -5
  614. package/api/rollups/delete.js +4 -3
  615. package/api/rollups/explain.d.ts +6 -5
  616. package/api/rollups/explain.js +4 -3
  617. package/api/rollups/get.d.ts +6 -5
  618. package/api/rollups/get.js +4 -3
  619. package/api/rollups/put.d.ts +6 -5
  620. package/api/rollups/put.js +4 -3
  621. package/api/rollups/start.d.ts +6 -5
  622. package/api/rollups/start.js +4 -3
  623. package/api/rollups/stop.d.ts +6 -5
  624. package/api/rollups/stop.js +4 -3
  625. package/api/searchPipeline/_api.js +6 -5
  626. package/api/searchPipeline/delete.d.ts +7 -6
  627. package/api/searchPipeline/delete.js +4 -3
  628. package/api/searchPipeline/get.d.ts +6 -5
  629. package/api/searchPipeline/get.js +5 -4
  630. package/api/searchPipeline/put.d.ts +7 -6
  631. package/api/searchPipeline/put.js +4 -3
  632. package/api/security/_api.js +148 -3
  633. package/api/security/authinfo.d.ts +5 -4
  634. package/api/security/authinfo.js +4 -3
  635. package/api/security/authtoken.d.ts +4 -3
  636. package/api/security/authtoken.js +4 -3
  637. package/api/security/changePassword.d.ts +5 -4
  638. package/api/security/changePassword.js +4 -3
  639. package/api/security/configUpgradeCheck.d.ts +4 -3
  640. package/api/security/configUpgradeCheck.js +5 -4
  641. package/api/security/configUpgradePerform.d.ts +5 -4
  642. package/api/security/configUpgradePerform.js +5 -4
  643. package/api/security/createActionGroup.d.ts +5 -4
  644. package/api/security/createActionGroup.js +4 -3
  645. package/api/security/createAllowlist.d.ts +5 -4
  646. package/api/security/createAllowlist.js +5 -4
  647. package/api/security/createRole.d.ts +5 -4
  648. package/api/security/createRole.js +5 -4
  649. package/api/security/createRoleMapping.d.ts +5 -4
  650. package/api/security/createRoleMapping.js +5 -4
  651. package/api/security/createTenant.d.ts +5 -4
  652. package/api/security/createTenant.js +5 -4
  653. package/api/security/createUpdateTenancyConfig.d.ts +6 -7
  654. package/api/security/createUpdateTenancyConfig.js +5 -4
  655. package/api/security/createUser.d.ts +5 -4
  656. package/api/security/createUser.js +5 -4
  657. package/api/security/createUserLegacy.d.ts +5 -4
  658. package/api/security/createUserLegacy.js +5 -4
  659. package/api/security/deleteActionGroup.d.ts +5 -4
  660. package/api/security/deleteActionGroup.js +5 -4
  661. package/api/security/deleteDistinguishedName.d.ts +5 -4
  662. package/api/security/deleteDistinguishedName.js +5 -4
  663. package/api/security/deleteRole.d.ts +5 -4
  664. package/api/security/deleteRole.js +5 -4
  665. package/api/security/deleteRoleMapping.d.ts +5 -4
  666. package/api/security/deleteRoleMapping.js +5 -4
  667. package/api/security/deleteTenant.d.ts +5 -4
  668. package/api/security/deleteTenant.js +5 -4
  669. package/api/security/deleteUser.d.ts +5 -4
  670. package/api/security/deleteUser.js +5 -4
  671. package/api/security/deleteUserLegacy.d.ts +5 -4
  672. package/api/security/deleteUserLegacy.js +5 -4
  673. package/api/security/flushCache.d.ts +4 -3
  674. package/api/security/flushCache.js +4 -3
  675. package/api/security/generateOboToken.d.ts +5 -4
  676. package/api/security/generateOboToken.js +4 -3
  677. package/api/security/generateUserToken.d.ts +5 -4
  678. package/api/security/generateUserToken.js +5 -4
  679. package/api/security/generateUserTokenLegacy.d.ts +6 -6
  680. package/api/security/generateUserTokenLegacy.js +6 -5
  681. package/api/security/getAccountDetails.d.ts +4 -3
  682. package/api/security/getAccountDetails.js +4 -3
  683. package/api/security/getActionGroup.d.ts +5 -4
  684. package/api/security/getActionGroup.js +5 -4
  685. package/api/security/getActionGroups.d.ts +4 -3
  686. package/api/security/getActionGroups.js +4 -3
  687. package/api/security/getAllCertificates.d.ts +32 -0
  688. package/api/security/getAllCertificates.js +48 -0
  689. package/api/security/getAllowlist.d.ts +4 -3
  690. package/api/security/getAllowlist.js +4 -3
  691. package/api/security/getAuditConfiguration.d.ts +4 -3
  692. package/api/security/getAuditConfiguration.js +4 -3
  693. package/api/security/getCertificates.d.ts +4 -3
  694. package/api/security/getCertificates.js +4 -3
  695. package/api/security/getConfiguration.d.ts +5 -4
  696. package/api/security/getConfiguration.js +4 -3
  697. package/api/security/getDashboardsInfo.d.ts +4 -3
  698. package/api/security/getDashboardsInfo.js +4 -3
  699. package/api/security/getDistinguishedName.d.ts +5 -4
  700. package/api/security/getDistinguishedName.js +6 -5
  701. package/api/security/getDistinguishedNames.d.ts +5 -4
  702. package/api/security/getDistinguishedNames.js +5 -4
  703. package/api/security/getNodeCertificates.d.ts +33 -0
  704. package/api/security/getNodeCertificates.js +51 -0
  705. package/api/security/getPermissionsInfo.d.ts +4 -3
  706. package/api/security/getPermissionsInfo.js +4 -3
  707. package/api/security/getRole.d.ts +5 -4
  708. package/api/security/getRole.js +4 -3
  709. package/api/security/getRoleMapping.d.ts +5 -4
  710. package/api/security/getRoleMapping.js +4 -3
  711. package/api/security/getRoleMappings.d.ts +4 -3
  712. package/api/security/getRoleMappings.js +4 -3
  713. package/api/security/getRoles.d.ts +4 -3
  714. package/api/security/getRoles.js +4 -3
  715. package/api/security/getSslinfo.d.ts +6 -5
  716. package/api/security/getSslinfo.js +5 -4
  717. package/api/security/getTenancyConfig.d.ts +4 -3
  718. package/api/security/getTenancyConfig.js +4 -3
  719. package/api/security/getTenant.d.ts +5 -4
  720. package/api/security/getTenant.js +5 -4
  721. package/api/security/getTenants.d.ts +4 -3
  722. package/api/security/getTenants.js +4 -3
  723. package/api/security/getUser.d.ts +5 -4
  724. package/api/security/getUser.js +5 -4
  725. package/api/security/getUserLegacy.d.ts +5 -4
  726. package/api/security/getUserLegacy.js +5 -4
  727. package/api/security/getUsers.d.ts +4 -3
  728. package/api/security/getUsers.js +4 -3
  729. package/api/security/getUsersLegacy.d.ts +4 -3
  730. package/api/security/getUsersLegacy.js +4 -3
  731. package/api/security/health.d.ts +5 -4
  732. package/api/security/health.js +5 -4
  733. package/api/security/migrate.d.ts +4 -3
  734. package/api/security/migrate.js +4 -3
  735. package/api/security/patchActionGroup.d.ts +5 -4
  736. package/api/security/patchActionGroup.js +5 -4
  737. package/api/security/patchActionGroups.d.ts +5 -4
  738. package/api/security/patchActionGroups.js +4 -3
  739. package/api/security/patchAllowlist.d.ts +5 -4
  740. package/api/security/patchAllowlist.js +4 -3
  741. package/api/security/patchAuditConfiguration.d.ts +5 -4
  742. package/api/security/patchAuditConfiguration.js +4 -3
  743. package/api/security/patchConfiguration.d.ts +5 -4
  744. package/api/security/patchConfiguration.js +4 -3
  745. package/api/security/patchDistinguishedName.d.ts +5 -4
  746. package/api/security/patchDistinguishedName.js +5 -4
  747. package/api/security/patchDistinguishedNames.d.ts +5 -4
  748. package/api/security/patchDistinguishedNames.js +4 -3
  749. package/api/security/patchRole.d.ts +5 -4
  750. package/api/security/patchRole.js +5 -4
  751. package/api/security/patchRoleMapping.d.ts +5 -4
  752. package/api/security/patchRoleMapping.js +5 -4
  753. package/api/security/patchRoleMappings.d.ts +5 -4
  754. package/api/security/patchRoleMappings.js +4 -3
  755. package/api/security/patchRoles.d.ts +5 -4
  756. package/api/security/patchRoles.js +4 -3
  757. package/api/security/patchTenant.d.ts +5 -4
  758. package/api/security/patchTenant.js +5 -4
  759. package/api/security/patchTenants.d.ts +5 -4
  760. package/api/security/patchTenants.js +4 -3
  761. package/api/security/patchUser.d.ts +5 -4
  762. package/api/security/patchUser.js +5 -4
  763. package/api/security/patchUsers.d.ts +5 -4
  764. package/api/security/patchUsers.js +4 -3
  765. package/api/security/postDashboardsInfo.d.ts +5 -6
  766. package/api/security/postDashboardsInfo.js +5 -6
  767. package/api/security/reloadHttpCertificates.d.ts +4 -3
  768. package/api/security/reloadHttpCertificates.js +4 -3
  769. package/api/security/reloadTransportCertificates.d.ts +4 -3
  770. package/api/security/reloadTransportCertificates.js +4 -3
  771. package/api/security/tenantInfo.d.ts +4 -3
  772. package/api/security/tenantInfo.js +4 -3
  773. package/api/security/updateAuditConfiguration.d.ts +5 -4
  774. package/api/security/updateAuditConfiguration.js +4 -3
  775. package/api/security/updateConfiguration.d.ts +5 -4
  776. package/api/security/updateConfiguration.js +4 -3
  777. package/api/security/updateDistinguishedName.d.ts +6 -5
  778. package/api/security/updateDistinguishedName.js +5 -4
  779. package/api/security/validate.d.ts +5 -4
  780. package/api/security/validate.js +5 -4
  781. package/api/security/whoAmI.d.ts +4 -3
  782. package/api/security/whoAmI.js +4 -3
  783. package/api/security/whoAmIProtected.d.ts +4 -3
  784. package/api/security/whoAmIProtected.js +4 -3
  785. package/api/snapshot/_api.js +14 -3
  786. package/api/snapshot/cleanupRepository.d.ts +7 -6
  787. package/api/snapshot/cleanupRepository.js +5 -4
  788. package/api/snapshot/clone.d.ts +7 -6
  789. package/api/snapshot/clone.js +6 -5
  790. package/api/snapshot/create.d.ts +8 -7
  791. package/api/snapshot/create.js +5 -4
  792. package/api/snapshot/createRepository.d.ts +7 -6
  793. package/api/snapshot/createRepository.js +5 -4
  794. package/api/snapshot/delete.d.ts +6 -5
  795. package/api/snapshot/delete.js +5 -4
  796. package/api/snapshot/deleteRepository.d.ts +6 -5
  797. package/api/snapshot/deleteRepository.js +5 -4
  798. package/api/snapshot/get.d.ts +8 -11
  799. package/api/snapshot/get.js +7 -6
  800. package/api/snapshot/getRepository.d.ts +6 -5
  801. package/api/snapshot/getRepository.js +6 -5
  802. package/api/snapshot/restore.d.ts +10 -8
  803. package/api/snapshot/restore.js +5 -4
  804. package/api/snapshot/status.d.ts +7 -6
  805. package/api/snapshot/status.js +7 -6
  806. package/api/snapshot/verifyRepository.d.ts +7 -6
  807. package/api/snapshot/verifyRepository.js +5 -4
  808. package/api/sql/_api.js +8 -3
  809. package/api/sql/close.d.ts +6 -5
  810. package/api/sql/close.js +9 -8
  811. package/api/sql/explain.d.ts +6 -5
  812. package/api/sql/explain.js +9 -8
  813. package/api/sql/getStats.d.ts +5 -4
  814. package/api/sql/getStats.js +5 -4
  815. package/api/sql/postStats.d.ts +6 -5
  816. package/api/sql/postStats.js +9 -8
  817. package/api/sql/query.d.ts +6 -5
  818. package/api/sql/query.js +9 -8
  819. package/api/sql/settings.d.ts +6 -5
  820. package/api/sql/settings.js +9 -8
  821. package/api/tasks/_api.js +4 -3
  822. package/api/tasks/cancel.d.ts +6 -5
  823. package/api/tasks/cancel.js +5 -4
  824. package/api/tasks/get.d.ts +8 -7
  825. package/api/tasks/get.js +4 -3
  826. package/api/tasks/list.d.ts +6 -5
  827. package/api/tasks/list.js +4 -3
  828. package/api/transforms/_api.js +4 -3
  829. package/api/transforms/delete.d.ts +6 -5
  830. package/api/transforms/delete.js +4 -3
  831. package/api/transforms/explain.d.ts +6 -5
  832. package/api/transforms/explain.js +4 -3
  833. package/api/transforms/get.d.ts +6 -5
  834. package/api/transforms/get.js +4 -3
  835. package/api/transforms/preview.d.ts +11 -4
  836. package/api/transforms/preview.js +8 -5
  837. package/api/transforms/put.d.ts +6 -5
  838. package/api/transforms/put.js +4 -3
  839. package/api/transforms/search.d.ts +5 -4
  840. package/api/transforms/search.js +4 -3
  841. package/api/transforms/start.d.ts +6 -5
  842. package/api/transforms/start.js +4 -3
  843. package/api/transforms/stop.d.ts +6 -5
  844. package/api/transforms/stop.js +4 -3
  845. package/api/utils.js +8 -7
  846. package/api/wlm/_api.js +37 -0
  847. package/api/wlm/createQueryGroup.d.ts +30 -0
  848. package/api/wlm/createQueryGroup.js +47 -0
  849. package/api/wlm/deleteQueryGroup.d.ts +31 -0
  850. package/api/wlm/deleteQueryGroup.js +49 -0
  851. package/api/wlm/getQueryGroup.d.ts +32 -0
  852. package/api/wlm/getQueryGroup.js +48 -0
  853. package/api/wlm/updateQueryGroup.d.ts +31 -0
  854. package/api/wlm/updateQueryGroup.js +50 -0
  855. package/index.d.ts +2 -0
  856. package/index.mjs +2 -0
  857. package/lib/Client.d.ts +2 -1
  858. package/lib/Client.js +35 -35
  859. package/lib/Helpers.d.ts +18 -21
  860. package/lib/Helpers.js +0 -2
  861. package/lib/Serializer.js +1 -1
  862. package/lib/errors.d.ts +13 -13
  863. package/package.json +12 -7
  864. package/CHANGELOG.md +0 -295
  865. package/NOTICE.txt +0 -8
  866. package/lib/OpenSearchAPI.js +0 -117
@@ -5,42 +5,43 @@
5
5
  * The OpenSearch Contributors require contributions made to
6
6
  * this file be licensed under the Apache-2.0 license or a
7
7
  * compatible open source license.
8
+ *
8
9
  */
9
10
 
10
11
  /*
11
- * This file was generated from OpenSearch API Spec. Do not edit it
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
12
13
  * manually. If you want to make changes, either update the spec or
13
- * the API generator.
14
+ * modify the API generator.
14
15
  */
15
16
 
16
- import * as Common_QueryDsl from './_common.query_dsl'
17
17
  import * as Common from './_common'
18
+ import * as Common_QueryDsl from './_common.query_dsl'
18
19
  import * as Core_Search from './_core.search'
19
20
 
20
21
  export type AdjacencyMatrixAggregate = MultiBucketAggregateBaseAdjacencyMatrixBucket & Record<string, any>
21
22
 
22
- export interface AdjacencyMatrixAggregation extends BucketAggregationBase {
23
+ export type AdjacencyMatrixAggregation = BucketAggregationBase & {
23
24
  filters?: Record<string, Common_QueryDsl.QueryContainer>;
24
25
  }
25
26
 
26
- export interface AdjacencyMatrixBucket extends MultiBucketBase {
27
+ export type AdjacencyMatrixBucket = MultiBucketBase & {
27
28
  key: string;
28
29
  }
29
30
 
30
31
  export type Aggregate = CardinalityAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | PercentilesBucketAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MaxAggregate | SumAggregate | AvgAggregate | WeightedAvgAggregate | ValueCountAggregate | SimpleValueAggregate | DerivativeAggregate | BucketMetricValueAggregate | StatsAggregate | StatsBucketAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | GeoBoundsAggregate | GeoCentroidAggregate | HistogramAggregate | DateHistogramAggregate | AutoDateHistogramAggregate | VariableWidthHistogramAggregate | StringTermsAggregate | LongTermsAggregate | DoubleTermsAggregate | UnmappedTermsAggregate | LongRareTermsAggregate | StringRareTermsAggregate | UnmappedRareTermsAggregate | MultiTermsAggregate | MissingAggregate | NestedAggregate | ReverseNestedAggregate | GlobalAggregate | FilterAggregate | ChildrenAggregate | ParentAggregate | SamplerAggregate | UnmappedSamplerAggregate | GeoHashGridAggregate | GeoTileGridAggregate | GeoHexGridAggregate | RangeAggregate | DateRangeAggregate | GeoDistanceAggregate | IpRangeAggregate | IpPrefixAggregate | FiltersAggregate | AdjacencyMatrixAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | UnmappedSignificantTermsAggregate | CompositeAggregate | FrequentItemSetsAggregate | ScriptedMetricAggregate | TopHitsAggregate | InferenceAggregate | StringStatsAggregate | BoxPlotAggregate | TopMetricsAggregate | TTestAggregate | RateAggregate | CumulativeCardinalityAggregate | MatrixStatsAggregate | GeoLineAggregate
31
32
 
32
- export interface AggregateBase {
33
+ export type AggregateBase = {
33
34
  meta?: Common.Metadata;
34
35
  }
35
36
 
36
37
  export type AggregateOrder = Record<string, Common.SortOrder> | Record<string, Common.SortOrder>[]
37
38
 
38
- export interface Aggregation {
39
+ export type Aggregation = {
39
40
  meta?: Common.Metadata;
40
41
  name?: string;
41
42
  }
42
43
 
43
- export interface AggregationContainer {
44
+ export type AggregationContainer = {
44
45
  adjacency_matrix?: AdjacencyMatrixAggregation;
45
46
  aggregations?: Record<string, AggregationContainer>;
46
47
  auto_date_histogram?: AutoDateHistogramAggregation;
@@ -121,23 +122,23 @@ export interface AggregationContainer {
121
122
  weighted_avg?: WeightedAverageAggregation;
122
123
  }
123
124
 
124
- export interface AggregationRange {
125
+ export type AggregationRange = {
125
126
  from?: undefined | number | string;
126
127
  key?: string;
127
128
  to?: undefined | number | string;
128
129
  }
129
130
 
130
- export interface ArrayPercentilesItem {
131
+ export type ArrayPercentilesItem = {
131
132
  key: string;
132
133
  value: undefined | number | string;
133
134
  value_as_string?: string;
134
135
  }
135
136
 
136
- export interface AutoDateHistogramAggregate extends MultiBucketAggregateBaseDateHistogramBucket {
137
+ export type AutoDateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket & {
137
138
  interval: Common.DurationLarge;
138
139
  }
139
140
 
140
- export interface AutoDateHistogramAggregation extends BucketAggregationBase {
141
+ export type AutoDateHistogramAggregation = BucketAggregationBase & {
141
142
  buckets?: number;
142
143
  field?: Common.Field;
143
144
  format?: string;
@@ -155,7 +156,7 @@ export type AverageBucketAggregation = PipelineAggregationBase & Record<string,
155
156
 
156
157
  export type AvgAggregate = SingleMetricAggregateBase & Record<string, any>
157
158
 
158
- export interface BoxPlotAggregate extends AggregateBase {
159
+ export type BoxPlotAggregate = AggregateBase & {
159
160
  lower: number;
160
161
  lower_as_string?: string;
161
162
  max: number;
@@ -172,41 +173,41 @@ export interface BoxPlotAggregate extends AggregateBase {
172
173
  upper_as_string?: string;
173
174
  }
174
175
 
175
- export interface BoxplotAggregation extends MetricAggregationBase {
176
+ export type BoxplotAggregation = MetricAggregationBase & {
176
177
  compression?: number;
177
178
  }
178
179
 
179
180
  export type BucketAggregationBase = Aggregation & Record<string, any>
180
181
 
181
- export interface BucketCorrelationAggregation extends BucketPathAggregation {
182
+ export type BucketCorrelationAggregation = BucketPathAggregation & {
182
183
  function: BucketCorrelationFunction;
183
184
  }
184
185
 
185
- export interface BucketCorrelationFunction {
186
+ export type BucketCorrelationFunction = {
186
187
  count_correlation: BucketCorrelationFunctionCountCorrelation;
187
188
  }
188
189
 
189
- export interface BucketCorrelationFunctionCountCorrelation {
190
+ export type BucketCorrelationFunctionCountCorrelation = {
190
191
  indicator: BucketCorrelationFunctionCountCorrelationIndicator;
191
192
  }
192
193
 
193
- export interface BucketCorrelationFunctionCountCorrelationIndicator {
194
+ export type BucketCorrelationFunctionCountCorrelationIndicator = {
194
195
  doc_count: number;
195
196
  expectations: number[];
196
197
  fractions?: number[];
197
198
  }
198
199
 
199
- export interface BucketKsAggregation extends BucketPathAggregation {
200
+ export type BucketKsAggregation = BucketPathAggregation & {
200
201
  alternative?: string[];
201
202
  fractions?: number[];
202
203
  sampling_method?: string;
203
204
  }
204
205
 
205
- export interface BucketMetricValueAggregate extends SingleMetricAggregateBase {
206
+ export type BucketMetricValueAggregate = SingleMetricAggregateBase & {
206
207
  keys: string[];
207
208
  }
208
209
 
209
- export interface BucketPathAggregation extends Aggregation {
210
+ export type BucketPathAggregation = Aggregation & {
210
211
  buckets_path?: BucketsPath;
211
212
  }
212
213
 
@@ -214,7 +215,7 @@ export type BucketsAdjacencyMatrixBucket = Record<string, AdjacencyMatrixBucket>
214
215
 
215
216
  export type BucketsCompositeBucket = Record<string, CompositeBucket> | CompositeBucket[]
216
217
 
217
- export interface BucketScriptAggregation extends PipelineAggregationBase {
218
+ export type BucketScriptAggregation = PipelineAggregationBase & {
218
219
  script?: Common.Script;
219
220
  }
220
221
 
@@ -222,7 +223,7 @@ export type BucketsDateHistogramBucket = Record<string, DateHistogramBucket> | D
222
223
 
223
224
  export type BucketsDoubleTermsBucket = Record<string, DoubleTermsBucket> | DoubleTermsBucket[]
224
225
 
225
- export interface BucketSelectorAggregation extends PipelineAggregationBase {
226
+ export type BucketSelectorAggregation = PipelineAggregationBase & {
226
227
  script?: Common.Script;
227
228
  }
228
229
 
@@ -248,7 +249,7 @@ export type BucketsLongTermsBucket = Record<string, LongTermsBucket> | LongTerms
248
249
 
249
250
  export type BucketsMultiTermsBucket = Record<string, MultiTermsBucket> | MultiTermsBucket[]
250
251
 
251
- export interface BucketSortAggregation extends Aggregation {
252
+ export type BucketSortAggregation = Aggregation & {
252
253
  from?: number;
253
254
  gap_policy?: GapPolicy;
254
255
  size?: number;
@@ -275,11 +276,11 @@ export type BucketsVoid = Record<string, Common.Void> | Common.Void[]
275
276
 
276
277
  export type CalendarInterval = 'day' | 'hour' | 'minute' | 'month' | 'quarter' | 'second' | 'week' | 'year'
277
278
 
278
- export interface CardinalityAggregate extends AggregateBase {
279
+ export type CardinalityAggregate = AggregateBase & {
279
280
  value: number;
280
281
  }
281
282
 
282
- export interface CardinalityAggregation extends MetricAggregationBase {
283
+ export type CardinalityAggregation = MetricAggregationBase & {
283
284
  execution_hint?: CardinalityExecutionMode;
284
285
  precision_threshold?: number;
285
286
  rehash?: boolean;
@@ -287,7 +288,7 @@ export interface CardinalityAggregation extends MetricAggregationBase {
287
288
 
288
289
  export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | 'save_memory_heuristic' | 'save_time_heuristic' | 'segment_ordinals'
289
290
 
290
- export interface CategorizeTextAggregation extends Aggregation {
291
+ export type CategorizeTextAggregation = Aggregation & {
291
292
  categorization_analyzer?: CategorizeTextAnalyzer;
292
293
  categorization_filters?: string[];
293
294
  field: Common.Field;
@@ -304,16 +305,16 @@ export type CategorizeTextAnalyzer = string | CustomCategorizeTextAnalyzer
304
305
 
305
306
  export type ChildrenAggregate = SingleBucketAggregateBase & Record<string, any>
306
307
 
307
- export interface ChildrenAggregation extends BucketAggregationBase {
308
+ export type ChildrenAggregation = BucketAggregationBase & {
308
309
  type?: Common.RelationName;
309
310
  }
310
311
 
311
- export interface ChiSquareHeuristic {
312
+ export type ChiSquareHeuristic = {
312
313
  background_is_superset: boolean;
313
314
  include_negatives: boolean;
314
315
  }
315
316
 
316
- export interface ClassificationInferenceOptions {
317
+ export type ClassificationInferenceOptions = {
317
318
  num_top_classes?: number;
318
319
  num_top_feature_importance_values?: number;
319
320
  prediction_field_type?: string;
@@ -321,19 +322,19 @@ export interface ClassificationInferenceOptions {
321
322
  top_classes_results_field?: string;
322
323
  }
323
324
 
324
- export interface CompositeAggregate extends MultiBucketAggregateBaseCompositeBucket {
325
+ export type CompositeAggregate = MultiBucketAggregateBaseCompositeBucket & {
325
326
  after_key?: CompositeAggregateKey;
326
327
  }
327
328
 
328
329
  export type CompositeAggregateKey = Record<string, Common.FieldValue>
329
330
 
330
- export interface CompositeAggregation extends BucketAggregationBase {
331
+ export type CompositeAggregation = BucketAggregationBase & {
331
332
  after?: CompositeAggregateKey;
332
333
  size?: number;
333
334
  sources?: Record<string, CompositeAggregationSource>[];
334
335
  }
335
336
 
336
- export interface CompositeAggregationBase {
337
+ export type CompositeAggregationBase = {
337
338
  field?: Common.Field;
338
339
  missing_bucket?: boolean;
339
340
  missing_order?: MissingOrder;
@@ -342,18 +343,18 @@ export interface CompositeAggregationBase {
342
343
  value_type?: ValueType;
343
344
  }
344
345
 
345
- export interface CompositeAggregationSource {
346
+ export type CompositeAggregationSource = {
346
347
  date_histogram?: CompositeDateHistogramAggregation;
347
348
  geotile_grid?: CompositeGeoTileGridAggregation;
348
349
  histogram?: CompositeHistogramAggregation;
349
350
  terms?: CompositeTermsAggregation;
350
351
  }
351
352
 
352
- export interface CompositeBucket extends MultiBucketBase {
353
+ export type CompositeBucket = MultiBucketBase & {
353
354
  key: CompositeAggregateKey;
354
355
  }
355
356
 
356
- export interface CompositeDateHistogramAggregation extends CompositeAggregationBase {
357
+ export type CompositeDateHistogramAggregation = CompositeAggregationBase & {
357
358
  calendar_interval?: Common.DurationLarge;
358
359
  fixed_interval?: Common.DurationLarge;
359
360
  format?: string;
@@ -361,18 +362,18 @@ export interface CompositeDateHistogramAggregation extends CompositeAggregationB
361
362
  time_zone?: Common.TimeZone;
362
363
  }
363
364
 
364
- export interface CompositeGeoTileGridAggregation extends CompositeAggregationBase {
365
+ export type CompositeGeoTileGridAggregation = CompositeAggregationBase & {
365
366
  bounds?: Common.GeoBounds;
366
367
  precision?: number;
367
368
  }
368
369
 
369
- export interface CompositeHistogramAggregation extends CompositeAggregationBase {
370
+ export type CompositeHistogramAggregation = CompositeAggregationBase & {
370
371
  interval: number;
371
372
  }
372
373
 
373
374
  export type CompositeTermsAggregation = CompositeAggregationBase & Record<string, any>
374
375
 
375
- export interface CumulativeCardinalityAggregate extends AggregateBase {
376
+ export type CumulativeCardinalityAggregate = AggregateBase & {
376
377
  value: number;
377
378
  value_as_string?: string;
378
379
  }
@@ -381,7 +382,7 @@ export type CumulativeCardinalityAggregation = PipelineAggregationBase & Record<
381
382
 
382
383
  export type CumulativeSumAggregation = PipelineAggregationBase & Record<string, any>
383
384
 
384
- export interface CustomCategorizeTextAnalyzer {
385
+ export type CustomCategorizeTextAnalyzer = {
385
386
  char_filter?: string[];
386
387
  filter?: string[];
387
388
  tokenizer?: string;
@@ -389,7 +390,7 @@ export interface CustomCategorizeTextAnalyzer {
389
390
 
390
391
  export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket & Record<string, any>
391
392
 
392
- export interface DateHistogramAggregation extends BucketAggregationBase {
393
+ export type DateHistogramAggregation = BucketAggregationBase & {
393
394
  calendar_interval?: CalendarInterval;
394
395
  extended_bounds?: ExtendedBoundsFieldDateMath;
395
396
  field?: Common.Field;
@@ -407,14 +408,14 @@ export interface DateHistogramAggregation extends BucketAggregationBase {
407
408
  time_zone?: Common.TimeZone;
408
409
  }
409
410
 
410
- export interface DateHistogramBucket extends MultiBucketBase {
411
+ export type DateHistogramBucket = MultiBucketBase & {
411
412
  key: Common.EpochTimeUnitMillis;
412
413
  key_as_string?: string;
413
414
  }
414
415
 
415
416
  export type DateRangeAggregate = RangeAggregate & Record<string, any>
416
417
 
417
- export interface DateRangeAggregation extends BucketAggregationBase {
418
+ export type DateRangeAggregation = BucketAggregationBase & {
418
419
  field?: Common.Field;
419
420
  format?: string;
420
421
  keyed?: boolean;
@@ -423,20 +424,20 @@ export interface DateRangeAggregation extends BucketAggregationBase {
423
424
  time_zone?: Common.TimeZone;
424
425
  }
425
426
 
426
- export interface DateRangeExpression {
427
+ export type DateRangeExpression = {
427
428
  from?: FieldDateMath;
428
429
  key?: string;
429
430
  to?: FieldDateMath;
430
431
  }
431
432
 
432
- export interface DerivativeAggregate extends SingleMetricAggregateBase {
433
+ export type DerivativeAggregate = SingleMetricAggregateBase & {
433
434
  normalized_value?: number;
434
435
  normalized_value_as_string?: string;
435
436
  }
436
437
 
437
438
  export type DerivativeAggregation = PipelineAggregationBase & Record<string, any>
438
439
 
439
- export interface DiversifiedSamplerAggregation extends BucketAggregationBase {
440
+ export type DiversifiedSamplerAggregation = BucketAggregationBase & {
440
441
  execution_hint?: SamplerAggregationExecutionHint;
441
442
  field?: Common.Field;
442
443
  max_docs_per_value?: number;
@@ -446,31 +447,31 @@ export interface DiversifiedSamplerAggregation extends BucketAggregationBase {
446
447
 
447
448
  export type DoubleTermsAggregate = TermsAggregateBaseDoubleTermsBucket & Record<string, any>
448
449
 
449
- export interface DoubleTermsBucket extends TermsBucketBase {
450
+ export type DoubleTermsBucket = TermsBucketBase & {
450
451
  key: number;
451
452
  key_as_string?: string;
452
453
  }
453
454
 
454
- export interface EwmaModelSettings {
455
+ export type EwmaModelSettings = {
455
456
  alpha?: number;
456
457
  }
457
458
 
458
- export interface EwmaMovingAverageAggregation extends MovingAverageAggregationBase {
459
+ export type EwmaMovingAverageAggregation = MovingAverageAggregationBase & {
459
460
  model: 'ewma';
460
461
  settings: EwmaModelSettings;
461
462
  }
462
463
 
463
- export interface ExtendedBoundsdouble {
464
+ export type ExtendedBoundsdouble = {
464
465
  max: number;
465
466
  min: number;
466
467
  }
467
468
 
468
- export interface ExtendedBoundsFieldDateMath {
469
+ export type ExtendedBoundsFieldDateMath = {
469
470
  max: FieldDateMath;
470
471
  min: FieldDateMath;
471
472
  }
472
473
 
473
- export interface ExtendedStatsAggregate extends StatsAggregate {
474
+ export type ExtendedStatsAggregate = StatsAggregate & {
474
475
  std_deviation: undefined | number | string;
475
476
  std_deviation_as_string?: string;
476
477
  std_deviation_bounds?: StandardDeviationBounds;
@@ -487,13 +488,13 @@ export interface ExtendedStatsAggregate extends StatsAggregate {
487
488
  variance_sampling_as_string?: string;
488
489
  }
489
490
 
490
- export interface ExtendedStatsAggregation extends FormatMetricAggregationBase {
491
+ export type ExtendedStatsAggregation = FormatMetricAggregationBase & {
491
492
  sigma?: number;
492
493
  }
493
494
 
494
495
  export type ExtendedStatsBucketAggregate = ExtendedStatsAggregate & Record<string, any>
495
496
 
496
- export interface ExtendedStatsBucketAggregation extends PipelineAggregationBase {
497
+ export type ExtendedStatsBucketAggregation = PipelineAggregationBase & {
497
498
  sigma?: number;
498
499
  }
499
500
 
@@ -503,7 +504,7 @@ export type FilterAggregate = SingleBucketAggregateBase & Record<string, any>
503
504
 
504
505
  export type FiltersAggregate = MultiBucketAggregateBaseFiltersBucket & Record<string, any>
505
506
 
506
- export interface FiltersAggregation extends BucketAggregationBase {
507
+ export type FiltersAggregation = BucketAggregationBase & {
507
508
  filters?: BucketsQueryContainer;
508
509
  keyed?: boolean;
509
510
  other_bucket?: boolean;
@@ -512,17 +513,17 @@ export interface FiltersAggregation extends BucketAggregationBase {
512
513
 
513
514
  export type FiltersBucket = MultiBucketBase & Record<string, any>
514
515
 
515
- export interface FormatMetricAggregationBase extends MetricAggregationBase {
516
+ export type FormatMetricAggregationBase = MetricAggregationBase & {
516
517
  format?: string;
517
518
  }
518
519
 
519
- export interface FormattableMetricAggregation extends MetricAggregationBase {
520
+ export type FormattableMetricAggregation = MetricAggregationBase & {
520
521
  format?: string;
521
522
  }
522
523
 
523
524
  export type FrequentItemSetsAggregate = MultiBucketAggregateBaseFrequentItemSetsBucket & Record<string, any>
524
525
 
525
- export interface FrequentItemSetsAggregation {
526
+ export type FrequentItemSetsAggregation = {
526
527
  fields: FrequentItemSetsField[];
527
528
  filter?: Common_QueryDsl.QueryContainer;
528
529
  minimum_set_size?: number;
@@ -530,12 +531,12 @@ export interface FrequentItemSetsAggregation {
530
531
  size?: number;
531
532
  }
532
533
 
533
- export interface FrequentItemSetsBucket extends MultiBucketBase {
534
+ export type FrequentItemSetsBucket = MultiBucketBase & {
534
535
  key: Record<string, string[]>;
535
536
  support: number;
536
537
  }
537
538
 
538
- export interface FrequentItemSetsField {
539
+ export type FrequentItemSetsField = {
539
540
  exclude?: TermsExclude;
540
541
  field: Common.Field;
541
542
  include?: TermsInclude;
@@ -543,27 +544,27 @@ export interface FrequentItemSetsField {
543
544
 
544
545
  export type GapPolicy = 'insert_zeros' | 'keep_values' | 'skip'
545
546
 
546
- export interface GeoBoundsAggregate extends AggregateBase {
547
+ export type GeoBoundsAggregate = AggregateBase & {
547
548
  bounds?: Common.GeoBounds;
548
549
  }
549
550
 
550
- export interface GeoBoundsAggregation extends MetricAggregationBase {
551
+ export type GeoBoundsAggregation = MetricAggregationBase & {
551
552
  wrap_longitude?: boolean;
552
553
  }
553
554
 
554
- export interface GeoCentroidAggregate extends AggregateBase {
555
+ export type GeoCentroidAggregate = AggregateBase & {
555
556
  count: number;
556
557
  location?: Common.GeoLocation;
557
558
  }
558
559
 
559
- export interface GeoCentroidAggregation extends MetricAggregationBase {
560
+ export type GeoCentroidAggregation = MetricAggregationBase & {
560
561
  count?: number;
561
562
  location?: Common.GeoLocation;
562
563
  }
563
564
 
564
565
  export type GeoDistanceAggregate = RangeAggregate & Record<string, any>
565
566
 
566
- export interface GeoDistanceAggregation extends BucketAggregationBase {
567
+ export type GeoDistanceAggregation = BucketAggregationBase & {
567
568
  distance_type?: Common.GeoDistanceType;
568
569
  field?: Common.Field;
569
570
  origin?: Common.GeoLocation;
@@ -573,7 +574,7 @@ export interface GeoDistanceAggregation extends BucketAggregationBase {
573
574
 
574
575
  export type GeoHashGridAggregate = MultiBucketAggregateBaseGeoHashGridBucket & Record<string, any>
575
576
 
576
- export interface GeoHashGridAggregation extends BucketAggregationBase {
577
+ export type GeoHashGridAggregation = BucketAggregationBase & {
577
578
  bounds?: Common.GeoBounds;
578
579
  field?: Common.Field;
579
580
  precision?: Common.GeoHashPrecision;
@@ -581,13 +582,13 @@ export interface GeoHashGridAggregation extends BucketAggregationBase {
581
582
  size?: number;
582
583
  }
583
584
 
584
- export interface GeoHashGridBucket extends MultiBucketBase {
585
+ export type GeoHashGridBucket = MultiBucketBase & {
585
586
  key: Common.GeoHash;
586
587
  }
587
588
 
588
589
  export type GeoHexGridAggregate = MultiBucketAggregateBaseGeoHexGridBucket & Record<string, any>
589
590
 
590
- export interface GeohexGridAggregation extends BucketAggregationBase {
591
+ export type GeohexGridAggregation = BucketAggregationBase & {
591
592
  bounds?: Common.GeoBounds;
592
593
  field: Common.Field;
593
594
  precision?: number;
@@ -595,17 +596,17 @@ export interface GeohexGridAggregation extends BucketAggregationBase {
595
596
  size?: number;
596
597
  }
597
598
 
598
- export interface GeoHexGridBucket extends MultiBucketBase {
599
+ export type GeoHexGridBucket = MultiBucketBase & {
599
600
  key: Common.GeoHexCell;
600
601
  }
601
602
 
602
- export interface GeoLineAggregate extends AggregateBase {
603
+ export type GeoLineAggregate = AggregateBase & {
603
604
  geometry: Common.GeoLine;
604
605
  properties: Record<string, any>;
605
606
  type: string;
606
607
  }
607
608
 
608
- export interface GeoLineAggregation {
609
+ export type GeoLineAggregation = {
609
610
  include_sort?: boolean;
610
611
  point: GeoLinePoint;
611
612
  size?: number;
@@ -613,17 +614,17 @@ export interface GeoLineAggregation {
613
614
  sort_order?: Common.SortOrder;
614
615
  }
615
616
 
616
- export interface GeoLinePoint {
617
+ export type GeoLinePoint = {
617
618
  field: Common.Field;
618
619
  }
619
620
 
620
- export interface GeoLineSort {
621
+ export type GeoLineSort = {
621
622
  field: Common.Field;
622
623
  }
623
624
 
624
625
  export type GeoTileGridAggregate = MultiBucketAggregateBaseGeoTileGridBucket & Record<string, any>
625
626
 
626
- export interface GeoTileGridAggregation extends BucketAggregationBase {
627
+ export type GeoTileGridAggregation = BucketAggregationBase & {
627
628
  bounds?: Common.GeoBounds;
628
629
  field?: Common.Field;
629
630
  precision?: Common.GeoTilePrecision;
@@ -631,7 +632,7 @@ export interface GeoTileGridAggregation extends BucketAggregationBase {
631
632
  size?: number;
632
633
  }
633
634
 
634
- export interface GeoTileGridBucket extends MultiBucketBase {
635
+ export type GeoTileGridBucket = MultiBucketBase & {
635
636
  key: Common.GeoTile;
636
637
  }
637
638
 
@@ -639,11 +640,11 @@ export type GlobalAggregate = SingleBucketAggregateBase & Record<string, any>
639
640
 
640
641
  export type GlobalAggregation = BucketAggregationBase & Record<string, any>
641
642
 
642
- export interface GoogleNormalizedDistanceHeuristic {
643
+ export type GoogleNormalizedDistanceHeuristic = {
643
644
  background_is_superset?: boolean;
644
645
  }
645
646
 
646
- export interface HdrMethod {
647
+ export type HdrMethod = {
647
648
  number_of_significant_value_digits?: number;
648
649
  }
649
650
 
@@ -653,7 +654,7 @@ export type HdrPercentilesAggregate = PercentilesAggregateBase & Record<string,
653
654
 
654
655
  export type HistogramAggregate = MultiBucketAggregateBaseHistogramBucket & Record<string, any>
655
656
 
656
- export interface HistogramAggregation extends BucketAggregationBase {
657
+ export type HistogramAggregation = BucketAggregationBase & {
657
658
  extended_bounds?: ExtendedBoundsdouble;
658
659
  field?: Common.Field;
659
660
  format?: string;
@@ -667,22 +668,22 @@ export interface HistogramAggregation extends BucketAggregationBase {
667
668
  script?: Common.Script;
668
669
  }
669
670
 
670
- export interface HistogramBucket extends MultiBucketBase {
671
+ export type HistogramBucket = MultiBucketBase & {
671
672
  key: number;
672
673
  key_as_string?: string;
673
674
  }
674
675
 
675
- export interface HoltLinearModelSettings {
676
+ export type HoltLinearModelSettings = {
676
677
  alpha?: number;
677
678
  beta?: number;
678
679
  }
679
680
 
680
- export interface HoltMovingAverageAggregation extends MovingAverageAggregationBase {
681
+ export type HoltMovingAverageAggregation = MovingAverageAggregationBase & {
681
682
  model: 'holt';
682
683
  settings: HoltLinearModelSettings;
683
684
  }
684
685
 
685
- export interface HoltWintersModelSettings {
686
+ export type HoltWintersModelSettings = {
686
687
  alpha?: number;
687
688
  beta?: number;
688
689
  gamma?: number;
@@ -691,42 +692,42 @@ export interface HoltWintersModelSettings {
691
692
  type?: HoltWintersType;
692
693
  }
693
694
 
694
- export interface HoltWintersMovingAverageAggregation extends MovingAverageAggregationBase {
695
+ export type HoltWintersMovingAverageAggregation = MovingAverageAggregationBase & {
695
696
  model: 'holt_winters';
696
697
  settings: HoltWintersModelSettings;
697
698
  }
698
699
 
699
700
  export type HoltWintersType = 'add' | 'mult'
700
701
 
701
- export interface InferenceAggregate extends AggregateBase {
702
+ export type InferenceAggregate = AggregateBase & {
702
703
  feature_importance?: InferenceFeatureImportance[];
703
704
  top_classes?: InferenceTopClassEntry[];
704
705
  value?: Common.FieldValue;
705
706
  warning?: string;
706
707
  }
707
708
 
708
- export interface InferenceAggregation extends PipelineAggregationBase {
709
+ export type InferenceAggregation = PipelineAggregationBase & {
709
710
  inference_config?: InferenceConfigContainer;
710
711
  model_id: Common.Name;
711
712
  }
712
713
 
713
- export interface InferenceClassImportance {
714
+ export type InferenceClassImportance = {
714
715
  class_name: string;
715
716
  importance: number;
716
717
  }
717
718
 
718
- export interface InferenceConfigContainer {
719
+ export type InferenceConfigContainer = {
719
720
  classification?: ClassificationInferenceOptions;
720
721
  regression?: RegressionInferenceOptions;
721
722
  }
722
723
 
723
- export interface InferenceFeatureImportance {
724
+ export type InferenceFeatureImportance = {
724
725
  classes?: InferenceClassImportance[];
725
726
  feature_name: string;
726
727
  importance?: number;
727
728
  }
728
729
 
729
- export interface InferenceTopClassEntry {
730
+ export type InferenceTopClassEntry = {
730
731
  class_name: Common.FieldValue;
731
732
  class_probability: number;
732
733
  class_score: number;
@@ -734,7 +735,7 @@ export interface InferenceTopClassEntry {
734
735
 
735
736
  export type IpPrefixAggregate = MultiBucketAggregateBaseIpPrefixBucket & Record<string, any>
736
737
 
737
- export interface IpPrefixAggregation extends BucketAggregationBase {
738
+ export type IpPrefixAggregation = BucketAggregationBase & {
738
739
  append_prefix_length?: boolean;
739
740
  field: Common.Field;
740
741
  is_ipv6?: boolean;
@@ -743,7 +744,7 @@ export interface IpPrefixAggregation extends BucketAggregationBase {
743
744
  prefix_length: number;
744
745
  }
745
746
 
746
- export interface IpPrefixBucket extends MultiBucketBase {
747
+ export type IpPrefixBucket = MultiBucketBase & {
747
748
  is_ipv6: boolean;
748
749
  key: string;
749
750
  netmask?: string;
@@ -752,18 +753,18 @@ export interface IpPrefixBucket extends MultiBucketBase {
752
753
 
753
754
  export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket & Record<string, any>
754
755
 
755
- export interface IpRangeAggregation extends BucketAggregationBase {
756
+ export type IpRangeAggregation = BucketAggregationBase & {
756
757
  field?: Common.Field;
757
758
  ranges?: IpRangeAggregationRange[];
758
759
  }
759
760
 
760
- export interface IpRangeAggregationRange {
761
+ export type IpRangeAggregationRange = {
761
762
  from?: undefined | string;
762
763
  mask?: string;
763
764
  to?: undefined | string;
764
765
  }
765
766
 
766
- export interface IpRangeBucket extends MultiBucketBase {
767
+ export type IpRangeBucket = MultiBucketBase & {
767
768
  from?: string;
768
769
  key?: string;
769
770
  to?: string;
@@ -771,40 +772,40 @@ export interface IpRangeBucket extends MultiBucketBase {
771
772
 
772
773
  export type KeyedPercentiles = Record<string, undefined | number | string>
773
774
 
774
- export interface LinearMovingAverageAggregation extends MovingAverageAggregationBase {
775
+ export type LinearMovingAverageAggregation = MovingAverageAggregationBase & {
775
776
  model: 'linear';
776
777
  settings: Common.EmptyObject;
777
778
  }
778
779
 
779
780
  export type LongRareTermsAggregate = MultiBucketAggregateBaseLongRareTermsBucket & Record<string, any>
780
781
 
781
- export interface LongRareTermsBucket extends MultiBucketBase {
782
+ export type LongRareTermsBucket = MultiBucketBase & {
782
783
  key: number;
783
784
  key_as_string?: string;
784
785
  }
785
786
 
786
787
  export type LongTermsAggregate = TermsAggregateBaseLongTermsBucket & Record<string, any>
787
788
 
788
- export interface LongTermsBucket extends TermsBucketBase {
789
+ export type LongTermsBucket = TermsBucketBase & {
789
790
  key: number;
790
791
  key_as_string?: string;
791
792
  }
792
793
 
793
- export interface MatrixAggregation extends Aggregation {
794
+ export type MatrixAggregation = Aggregation & {
794
795
  fields?: Common.Fields;
795
796
  missing?: Record<string, number>;
796
797
  }
797
798
 
798
- export interface MatrixStatsAggregate extends AggregateBase {
799
+ export type MatrixStatsAggregate = AggregateBase & {
799
800
  doc_count: number;
800
801
  fields?: MatrixStatsFields[];
801
802
  }
802
803
 
803
- export interface MatrixStatsAggregation extends MatrixAggregation {
804
+ export type MatrixStatsAggregation = MatrixAggregation & {
804
805
  mode?: Common.SortMode;
805
806
  }
806
807
 
807
- export interface MatrixStatsFields {
808
+ export type MatrixStatsFields = {
808
809
  correlation: Record<string, number>;
809
810
  count: number;
810
811
  covariance: Record<string, number>;
@@ -823,11 +824,11 @@ export type MaxBucketAggregation = PipelineAggregationBase & Record<string, any>
823
824
 
824
825
  export type MedianAbsoluteDeviationAggregate = SingleMetricAggregateBase & Record<string, any>
825
826
 
826
- export interface MedianAbsoluteDeviationAggregation extends FormatMetricAggregationBase {
827
+ export type MedianAbsoluteDeviationAggregation = FormatMetricAggregationBase & {
827
828
  compression?: number;
828
829
  }
829
830
 
830
- export interface MetricAggregationBase {
831
+ export type MetricAggregationBase = {
831
832
  field?: Common.Field;
832
833
  missing?: Missing;
833
834
  script?: Common.Script;
@@ -845,7 +846,7 @@ export type Missing = string | number | number | boolean
845
846
 
846
847
  export type MissingAggregate = SingleBucketAggregateBase & Record<string, any>
847
848
 
848
- export interface MissingAggregation extends BucketAggregationBase {
849
+ export type MissingAggregation = BucketAggregationBase & {
849
850
  field?: Common.Field;
850
851
  missing?: Missing;
851
852
  }
@@ -854,124 +855,124 @@ export type MissingOrder = 'default' | 'first' | 'last'
854
855
 
855
856
  export type MovingAverageAggregation = LinearMovingAverageAggregation | SimpleMovingAverageAggregation | EwmaMovingAverageAggregation | HoltMovingAverageAggregation | HoltWintersMovingAverageAggregation
856
857
 
857
- export interface MovingAverageAggregationBase extends PipelineAggregationBase {
858
+ export type MovingAverageAggregationBase = PipelineAggregationBase & {
858
859
  minimize?: boolean;
859
860
  predict?: number;
860
861
  window?: number;
861
862
  }
862
863
 
863
- export interface MovingFunctionAggregation extends PipelineAggregationBase {
864
+ export type MovingFunctionAggregation = PipelineAggregationBase & {
864
865
  script?: string;
865
866
  shift?: number;
866
867
  window?: number;
867
868
  }
868
869
 
869
- export interface MovingPercentilesAggregation extends PipelineAggregationBase {
870
+ export type MovingPercentilesAggregation = PipelineAggregationBase & {
870
871
  keyed?: boolean;
871
872
  shift?: number;
872
873
  window?: number;
873
874
  }
874
875
 
875
- export interface MultiBucketAggregateBaseAdjacencyMatrixBucket extends AggregateBase {
876
+ export type MultiBucketAggregateBaseAdjacencyMatrixBucket = AggregateBase & {
876
877
  buckets: BucketsAdjacencyMatrixBucket;
877
878
  }
878
879
 
879
- export interface MultiBucketAggregateBaseCompositeBucket extends AggregateBase {
880
+ export type MultiBucketAggregateBaseCompositeBucket = AggregateBase & {
880
881
  buckets: BucketsCompositeBucket;
881
882
  }
882
883
 
883
- export interface MultiBucketAggregateBaseDateHistogramBucket extends AggregateBase {
884
+ export type MultiBucketAggregateBaseDateHistogramBucket = AggregateBase & {
884
885
  buckets: BucketsDateHistogramBucket;
885
886
  }
886
887
 
887
- export interface MultiBucketAggregateBaseDoubleTermsBucket extends AggregateBase {
888
+ export type MultiBucketAggregateBaseDoubleTermsBucket = AggregateBase & {
888
889
  buckets: BucketsDoubleTermsBucket;
889
890
  }
890
891
 
891
- export interface MultiBucketAggregateBaseFiltersBucket extends AggregateBase {
892
+ export type MultiBucketAggregateBaseFiltersBucket = AggregateBase & {
892
893
  buckets: BucketsFiltersBucket;
893
894
  }
894
895
 
895
- export interface MultiBucketAggregateBaseFrequentItemSetsBucket extends AggregateBase {
896
+ export type MultiBucketAggregateBaseFrequentItemSetsBucket = AggregateBase & {
896
897
  buckets: BucketsFrequentItemSetsBucket;
897
898
  }
898
899
 
899
- export interface MultiBucketAggregateBaseGeoHashGridBucket extends AggregateBase {
900
+ export type MultiBucketAggregateBaseGeoHashGridBucket = AggregateBase & {
900
901
  buckets: BucketsGeoHashGridBucket;
901
902
  }
902
903
 
903
- export interface MultiBucketAggregateBaseGeoHexGridBucket extends AggregateBase {
904
+ export type MultiBucketAggregateBaseGeoHexGridBucket = AggregateBase & {
904
905
  buckets: BucketsGeoHexGridBucket;
905
906
  }
906
907
 
907
- export interface MultiBucketAggregateBaseGeoTileGridBucket extends AggregateBase {
908
+ export type MultiBucketAggregateBaseGeoTileGridBucket = AggregateBase & {
908
909
  buckets: BucketsGeoTileGridBucket;
909
910
  }
910
911
 
911
- export interface MultiBucketAggregateBaseHistogramBucket extends AggregateBase {
912
+ export type MultiBucketAggregateBaseHistogramBucket = AggregateBase & {
912
913
  buckets: BucketsHistogramBucket;
913
914
  }
914
915
 
915
- export interface MultiBucketAggregateBaseIpPrefixBucket extends AggregateBase {
916
+ export type MultiBucketAggregateBaseIpPrefixBucket = AggregateBase & {
916
917
  buckets: BucketsIpPrefixBucket;
917
918
  }
918
919
 
919
- export interface MultiBucketAggregateBaseIpRangeBucket extends AggregateBase {
920
+ export type MultiBucketAggregateBaseIpRangeBucket = AggregateBase & {
920
921
  buckets: BucketsIpRangeBucket;
921
922
  }
922
923
 
923
- export interface MultiBucketAggregateBaseLongRareTermsBucket extends AggregateBase {
924
+ export type MultiBucketAggregateBaseLongRareTermsBucket = AggregateBase & {
924
925
  buckets: BucketsLongRareTermsBucket;
925
926
  }
926
927
 
927
- export interface MultiBucketAggregateBaseLongTermsBucket extends AggregateBase {
928
+ export type MultiBucketAggregateBaseLongTermsBucket = AggregateBase & {
928
929
  buckets: BucketsLongTermsBucket;
929
930
  }
930
931
 
931
- export interface MultiBucketAggregateBaseMultiTermsBucket extends AggregateBase {
932
+ export type MultiBucketAggregateBaseMultiTermsBucket = AggregateBase & {
932
933
  buckets: BucketsMultiTermsBucket;
933
934
  }
934
935
 
935
- export interface MultiBucketAggregateBaseRangeBucket extends AggregateBase {
936
+ export type MultiBucketAggregateBaseRangeBucket = AggregateBase & {
936
937
  buckets: BucketsRangeBucket;
937
938
  }
938
939
 
939
- export interface MultiBucketAggregateBaseSignificantLongTermsBucket extends AggregateBase {
940
+ export type MultiBucketAggregateBaseSignificantLongTermsBucket = AggregateBase & {
940
941
  buckets: BucketsSignificantLongTermsBucket;
941
942
  }
942
943
 
943
- export interface MultiBucketAggregateBaseSignificantStringTermsBucket extends AggregateBase {
944
+ export type MultiBucketAggregateBaseSignificantStringTermsBucket = AggregateBase & {
944
945
  buckets: BucketsSignificantStringTermsBucket;
945
946
  }
946
947
 
947
- export interface MultiBucketAggregateBaseStringRareTermsBucket extends AggregateBase {
948
+ export type MultiBucketAggregateBaseStringRareTermsBucket = AggregateBase & {
948
949
  buckets: BucketsStringRareTermsBucket;
949
950
  }
950
951
 
951
- export interface MultiBucketAggregateBaseStringTermsBucket extends AggregateBase {
952
+ export type MultiBucketAggregateBaseStringTermsBucket = AggregateBase & {
952
953
  buckets: BucketsStringTermsBucket;
953
954
  }
954
955
 
955
- export interface MultiBucketAggregateBaseVariableWidthHistogramBucket extends AggregateBase {
956
+ export type MultiBucketAggregateBaseVariableWidthHistogramBucket = AggregateBase & {
956
957
  buckets: BucketsVariableWidthHistogramBucket;
957
958
  }
958
959
 
959
- export interface MultiBucketAggregateBaseVoid extends AggregateBase {
960
+ export type MultiBucketAggregateBaseVoid = AggregateBase & {
960
961
  buckets: BucketsVoid;
961
962
  }
962
963
 
963
- export interface MultiBucketBase {
964
+ export type MultiBucketBase = {
964
965
  doc_count: number;
965
966
  }
966
967
 
967
- export interface MultiTermLookup {
968
+ export type MultiTermLookup = {
968
969
  field: Common.Field;
969
970
  missing?: Missing;
970
971
  }
971
972
 
972
973
  export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket & Record<string, any>
973
974
 
974
- export interface MultiTermsAggregation extends BucketAggregationBase {
975
+ export type MultiTermsAggregation = BucketAggregationBase & {
975
976
  collect_mode?: TermsAggregationCollectMode;
976
977
  min_doc_count?: number;
977
978
  order?: AggregateOrder;
@@ -982,24 +983,26 @@ export interface MultiTermsAggregation extends BucketAggregationBase {
982
983
  terms: MultiTermLookup[];
983
984
  }
984
985
 
985
- export interface MultiTermsBucket extends MultiBucketBase {
986
+ export type MultiTermsBucket = MultiBucketBase & {
986
987
  doc_count_error_upper_bound?: number;
987
988
  key: Common.FieldValue[];
988
989
  key_as_string?: string;
989
990
  }
990
991
 
991
- export interface MutualInformationHeuristic {
992
+ export type MutualInformationHeuristic = {
992
993
  background_is_superset?: boolean;
993
994
  include_negatives?: boolean;
994
995
  }
995
996
 
996
- export type NestedAggregate = SingleBucketAggregateBase & Record<string, any>
997
+ export type NestedAggregate = AggregateBase & {
998
+ doc_count?: number;
999
+ }
997
1000
 
998
- export interface NestedAggregation extends BucketAggregationBase {
1001
+ export type NestedAggregation = BucketAggregationBase & {
999
1002
  path?: Common.Field;
1000
1003
  }
1001
1004
 
1002
- export interface NormalizeAggregation extends PipelineAggregationBase {
1005
+ export type NormalizeAggregation = PipelineAggregationBase & {
1003
1006
  method?: NormalizeMethod;
1004
1007
  }
1005
1008
 
@@ -1007,13 +1010,13 @@ export type NormalizeMethod = 'mean' | 'percent_of_sum' | 'rescale_0_1' | 'resca
1007
1010
 
1008
1011
  export type ParentAggregate = SingleBucketAggregateBase & Record<string, any>
1009
1012
 
1010
- export interface ParentAggregation extends BucketAggregationBase {
1013
+ export type ParentAggregation = BucketAggregationBase & {
1011
1014
  type?: Common.RelationName;
1012
1015
  }
1013
1016
 
1014
1017
  export type PercentageScoreHeuristic = Record<string, any>
1015
1018
 
1016
- export interface PercentileRanksAggregation extends FormatMetricAggregationBase {
1019
+ export type PercentileRanksAggregation = FormatMetricAggregationBase & {
1017
1020
  hdr?: HdrMethod;
1018
1021
  keyed?: boolean;
1019
1022
  tdigest?: TDigest;
@@ -1022,11 +1025,11 @@ export interface PercentileRanksAggregation extends FormatMetricAggregationBase
1022
1025
 
1023
1026
  export type Percentiles = KeyedPercentiles | ArrayPercentilesItem[]
1024
1027
 
1025
- export interface PercentilesAggregateBase extends AggregateBase {
1028
+ export type PercentilesAggregateBase = AggregateBase & {
1026
1029
  values: Percentiles;
1027
1030
  }
1028
1031
 
1029
- export interface PercentilesAggregation extends FormatMetricAggregationBase {
1032
+ export type PercentilesAggregation = FormatMetricAggregationBase & {
1030
1033
  hdr?: HdrMethod;
1031
1034
  keyed?: boolean;
1032
1035
  percents?: number[];
@@ -1035,18 +1038,18 @@ export interface PercentilesAggregation extends FormatMetricAggregationBase {
1035
1038
 
1036
1039
  export type PercentilesBucketAggregate = PercentilesAggregateBase & Record<string, any>
1037
1040
 
1038
- export interface PercentilesBucketAggregation extends PipelineAggregationBase {
1041
+ export type PercentilesBucketAggregation = PipelineAggregationBase & {
1039
1042
  percents?: number[];
1040
1043
  }
1041
1044
 
1042
- export interface PipelineAggregationBase extends BucketPathAggregation {
1045
+ export type PipelineAggregationBase = BucketPathAggregation & {
1043
1046
  format?: string;
1044
1047
  gap_policy?: GapPolicy;
1045
1048
  }
1046
1049
 
1047
1050
  export type RangeAggregate = MultiBucketAggregateBaseRangeBucket & Record<string, any>
1048
1051
 
1049
- export interface RangeAggregation extends BucketAggregationBase {
1052
+ export type RangeAggregation = BucketAggregationBase & {
1050
1053
  field?: Common.Field;
1051
1054
  format?: string;
1052
1055
  keyed?: boolean;
@@ -1055,7 +1058,7 @@ export interface RangeAggregation extends BucketAggregationBase {
1055
1058
  script?: Common.Script;
1056
1059
  }
1057
1060
 
1058
- export interface RangeBucket extends MultiBucketBase {
1061
+ export type RangeBucket = MultiBucketBase & {
1059
1062
  from?: number;
1060
1063
  from_as_string?: string;
1061
1064
  key?: string;
@@ -1063,7 +1066,7 @@ export interface RangeBucket extends MultiBucketBase {
1063
1066
  to_as_string?: string;
1064
1067
  }
1065
1068
 
1066
- export interface RareTermsAggregation extends BucketAggregationBase {
1069
+ export type RareTermsAggregation = BucketAggregationBase & {
1067
1070
  exclude?: TermsExclude;
1068
1071
  field?: Common.Field;
1069
1072
  include?: TermsInclude;
@@ -1073,46 +1076,46 @@ export interface RareTermsAggregation extends BucketAggregationBase {
1073
1076
  value_type?: string;
1074
1077
  }
1075
1078
 
1076
- export interface RateAggregate extends AggregateBase {
1079
+ export type RateAggregate = AggregateBase & {
1077
1080
  value: number;
1078
1081
  value_as_string?: string;
1079
1082
  }
1080
1083
 
1081
- export interface RateAggregation extends FormatMetricAggregationBase {
1084
+ export type RateAggregation = FormatMetricAggregationBase & {
1082
1085
  mode?: RateMode;
1083
1086
  unit?: CalendarInterval;
1084
1087
  }
1085
1088
 
1086
1089
  export type RateMode = 'sum' | 'value_count'
1087
1090
 
1088
- export interface RegressionInferenceOptions {
1091
+ export type RegressionInferenceOptions = {
1089
1092
  num_top_feature_importance_values?: number;
1090
1093
  results_field?: Common.Field;
1091
1094
  }
1092
1095
 
1093
1096
  export type ReverseNestedAggregate = SingleBucketAggregateBase & Record<string, any>
1094
1097
 
1095
- export interface ReverseNestedAggregation extends BucketAggregationBase {
1098
+ export type ReverseNestedAggregation = BucketAggregationBase & {
1096
1099
  path?: Common.Field;
1097
1100
  }
1098
1101
 
1099
1102
  export type SamplerAggregate = SingleBucketAggregateBase & Record<string, any>
1100
1103
 
1101
- export interface SamplerAggregation extends BucketAggregationBase {
1104
+ export type SamplerAggregation = BucketAggregationBase & {
1102
1105
  shard_size?: number;
1103
1106
  }
1104
1107
 
1105
1108
  export type SamplerAggregationExecutionHint = 'bytes_hash' | 'global_ordinals' | 'map'
1106
1109
 
1107
- export interface ScriptedHeuristic {
1110
+ export type ScriptedHeuristic = {
1108
1111
  script: Common.Script;
1109
1112
  }
1110
1113
 
1111
- export interface ScriptedMetricAggregate extends AggregateBase {
1114
+ export type ScriptedMetricAggregate = AggregateBase & {
1112
1115
  value: Record<string, any>;
1113
1116
  }
1114
1117
 
1115
- export interface ScriptedMetricAggregation extends MetricAggregationBase {
1118
+ export type ScriptedMetricAggregation = MetricAggregationBase & {
1116
1119
  combine_script?: Common.Script;
1117
1120
  init_script?: Common.Script;
1118
1121
  map_script?: Common.Script;
@@ -1120,39 +1123,39 @@ export interface ScriptedMetricAggregation extends MetricAggregationBase {
1120
1123
  reduce_script?: Common.Script;
1121
1124
  }
1122
1125
 
1123
- export interface SerialDifferencingAggregation extends PipelineAggregationBase {
1126
+ export type SerialDifferencingAggregation = PipelineAggregationBase & {
1124
1127
  lag?: number;
1125
1128
  }
1126
1129
 
1127
1130
  export type SignificantLongTermsAggregate = SignificantTermsAggregateBaseSignificantLongTermsBucket & Record<string, any>
1128
1131
 
1129
- export interface SignificantLongTermsBucket extends SignificantTermsBucketBase {
1132
+ export type SignificantLongTermsBucket = SignificantTermsBucketBase & {
1130
1133
  key: number;
1131
1134
  key_as_string?: string;
1132
1135
  }
1133
1136
 
1134
1137
  export type SignificantStringTermsAggregate = SignificantTermsAggregateBaseSignificantStringTermsBucket & Record<string, any>
1135
1138
 
1136
- export interface SignificantStringTermsBucket extends SignificantTermsBucketBase {
1139
+ export type SignificantStringTermsBucket = SignificantTermsBucketBase & {
1137
1140
  key: string;
1138
1141
  }
1139
1142
 
1140
- export interface SignificantTermsAggregateBaseSignificantLongTermsBucket extends MultiBucketAggregateBaseSignificantLongTermsBucket {
1143
+ export type SignificantTermsAggregateBaseSignificantLongTermsBucket = MultiBucketAggregateBaseSignificantLongTermsBucket & {
1141
1144
  bg_count?: number;
1142
1145
  doc_count?: number;
1143
1146
  }
1144
1147
 
1145
- export interface SignificantTermsAggregateBaseSignificantStringTermsBucket extends MultiBucketAggregateBaseSignificantStringTermsBucket {
1148
+ export type SignificantTermsAggregateBaseSignificantStringTermsBucket = MultiBucketAggregateBaseSignificantStringTermsBucket & {
1146
1149
  bg_count?: number;
1147
1150
  doc_count?: number;
1148
1151
  }
1149
1152
 
1150
- export interface SignificantTermsAggregateBaseVoid extends MultiBucketAggregateBaseVoid {
1153
+ export type SignificantTermsAggregateBaseVoid = MultiBucketAggregateBaseVoid & {
1151
1154
  bg_count?: number;
1152
1155
  doc_count?: number;
1153
1156
  }
1154
1157
 
1155
- export interface SignificantTermsAggregation extends BucketAggregationBase {
1158
+ export type SignificantTermsAggregation = BucketAggregationBase & {
1156
1159
  background_filter?: Common_QueryDsl.QueryContainer;
1157
1160
  chi_square?: ChiSquareHeuristic;
1158
1161
  exclude?: TermsExclude;
@@ -1170,12 +1173,12 @@ export interface SignificantTermsAggregation extends BucketAggregationBase {
1170
1173
  size?: number;
1171
1174
  }
1172
1175
 
1173
- export interface SignificantTermsBucketBase extends MultiBucketBase {
1176
+ export type SignificantTermsBucketBase = MultiBucketBase & {
1174
1177
  bg_count: number;
1175
1178
  score: number;
1176
1179
  }
1177
1180
 
1178
- export interface SignificantTextAggregation extends BucketAggregationBase {
1181
+ export type SignificantTextAggregation = BucketAggregationBase & {
1179
1182
  background_filter?: Common_QueryDsl.QueryContainer;
1180
1183
  chi_square?: ChiSquareHeuristic;
1181
1184
  exclude?: TermsExclude;
@@ -1195,23 +1198,23 @@ export interface SignificantTextAggregation extends BucketAggregationBase {
1195
1198
  source_fields?: Common.Fields;
1196
1199
  }
1197
1200
 
1198
- export interface SimpleMovingAverageAggregation extends MovingAverageAggregationBase {
1201
+ export type SimpleMovingAverageAggregation = MovingAverageAggregationBase & {
1199
1202
  model: 'simple';
1200
1203
  settings: Common.EmptyObject;
1201
1204
  }
1202
1205
 
1203
1206
  export type SimpleValueAggregate = SingleMetricAggregateBase & Record<string, any>
1204
1207
 
1205
- export interface SingleBucketAggregateBase extends AggregateBase {
1208
+ export type SingleBucketAggregateBase = AggregateBase & {
1206
1209
  doc_count: number;
1207
1210
  }
1208
1211
 
1209
- export interface SingleMetricAggregateBase extends AggregateBase {
1212
+ export type SingleMetricAggregateBase = AggregateBase & {
1210
1213
  value: undefined | number | string;
1211
1214
  value_as_string?: string;
1212
1215
  }
1213
1216
 
1214
- export interface StandardDeviationBounds {
1217
+ export type StandardDeviationBounds = {
1215
1218
  lower: undefined | number | string;
1216
1219
  lower_population: undefined | number | string;
1217
1220
  lower_sampling: undefined | number | string;
@@ -1220,7 +1223,7 @@ export interface StandardDeviationBounds {
1220
1223
  upper_sampling: undefined | number | string;
1221
1224
  }
1222
1225
 
1223
- export interface StandardDeviationBoundsAsString {
1226
+ export type StandardDeviationBoundsAsString = {
1224
1227
  lower: string;
1225
1228
  lower_population: string;
1226
1229
  lower_sampling: string;
@@ -1229,7 +1232,7 @@ export interface StandardDeviationBoundsAsString {
1229
1232
  upper_sampling: string;
1230
1233
  }
1231
1234
 
1232
- export interface StatsAggregate extends AggregateBase {
1235
+ export type StatsAggregate = AggregateBase & {
1233
1236
  avg: undefined | number | string;
1234
1237
  avg_as_string?: string;
1235
1238
  count: number;
@@ -1249,11 +1252,11 @@ export type StatsBucketAggregation = PipelineAggregationBase & Record<string, an
1249
1252
 
1250
1253
  export type StringRareTermsAggregate = MultiBucketAggregateBaseStringRareTermsBucket & Record<string, any>
1251
1254
 
1252
- export interface StringRareTermsBucket extends MultiBucketBase {
1255
+ export type StringRareTermsBucket = MultiBucketBase & {
1253
1256
  key: string;
1254
1257
  }
1255
1258
 
1256
- export interface StringStatsAggregate extends AggregateBase {
1259
+ export type StringStatsAggregate = AggregateBase & {
1257
1260
  avg_length: undefined | number | string;
1258
1261
  avg_length_as_string?: string;
1259
1262
  count: number;
@@ -1265,13 +1268,13 @@ export interface StringStatsAggregate extends AggregateBase {
1265
1268
  min_length_as_string?: string;
1266
1269
  }
1267
1270
 
1268
- export interface StringStatsAggregation extends MetricAggregationBase {
1271
+ export type StringStatsAggregation = MetricAggregationBase & {
1269
1272
  show_distribution?: boolean;
1270
1273
  }
1271
1274
 
1272
1275
  export type StringTermsAggregate = TermsAggregateBaseStringTermsBucket & Record<string, any>
1273
1276
 
1274
- export interface StringTermsBucket extends TermsBucketBase {
1277
+ export type StringTermsBucket = TermsBucketBase & {
1275
1278
  key: Common.FieldValue;
1276
1279
  }
1277
1280
 
@@ -1281,7 +1284,7 @@ export type SumAggregation = FormatMetricAggregationBase & Record<string, any>
1281
1284
 
1282
1285
  export type SumBucketAggregation = PipelineAggregationBase & Record<string, any>
1283
1286
 
1284
- export interface TDigest {
1287
+ export type TDigest = {
1285
1288
  compression?: number;
1286
1289
  }
1287
1290
 
@@ -1289,32 +1292,32 @@ export type TDigestPercentileRanksAggregate = PercentilesAggregateBase & Record<
1289
1292
 
1290
1293
  export type TDigestPercentilesAggregate = PercentilesAggregateBase & Record<string, any>
1291
1294
 
1292
- export interface TermsAggregateBaseDoubleTermsBucket extends MultiBucketAggregateBaseDoubleTermsBucket {
1295
+ export type TermsAggregateBaseDoubleTermsBucket = MultiBucketAggregateBaseDoubleTermsBucket & {
1293
1296
  doc_count_error_upper_bound?: number;
1294
1297
  sum_other_doc_count?: number;
1295
1298
  }
1296
1299
 
1297
- export interface TermsAggregateBaseLongTermsBucket extends MultiBucketAggregateBaseLongTermsBucket {
1300
+ export type TermsAggregateBaseLongTermsBucket = MultiBucketAggregateBaseLongTermsBucket & {
1298
1301
  doc_count_error_upper_bound?: number;
1299
1302
  sum_other_doc_count?: number;
1300
1303
  }
1301
1304
 
1302
- export interface TermsAggregateBaseMultiTermsBucket extends MultiBucketAggregateBaseMultiTermsBucket {
1305
+ export type TermsAggregateBaseMultiTermsBucket = MultiBucketAggregateBaseMultiTermsBucket & {
1303
1306
  doc_count_error_upper_bound?: number;
1304
1307
  sum_other_doc_count?: number;
1305
1308
  }
1306
1309
 
1307
- export interface TermsAggregateBaseStringTermsBucket extends MultiBucketAggregateBaseStringTermsBucket {
1310
+ export type TermsAggregateBaseStringTermsBucket = MultiBucketAggregateBaseStringTermsBucket & {
1308
1311
  doc_count_error_upper_bound?: number;
1309
1312
  sum_other_doc_count?: number;
1310
1313
  }
1311
1314
 
1312
- export interface TermsAggregateBaseVoid extends MultiBucketAggregateBaseVoid {
1315
+ export type TermsAggregateBaseVoid = MultiBucketAggregateBaseVoid & {
1313
1316
  doc_count_error_upper_bound?: number;
1314
1317
  sum_other_doc_count?: number;
1315
1318
  }
1316
1319
 
1317
- export interface TermsAggregation extends BucketAggregationBase {
1320
+ export type TermsAggregation = BucketAggregationBase & {
1318
1321
  collect_mode?: TermsAggregationCollectMode;
1319
1322
  exclude?: TermsExclude;
1320
1323
  execution_hint?: TermsAggregationExecutionHint;
@@ -1337,7 +1340,7 @@ export type TermsAggregationCollectMode = 'breadth_first' | 'depth_first'
1337
1340
 
1338
1341
  export type TermsAggregationExecutionHint = 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality' | 'map'
1339
1342
 
1340
- export interface TermsBucketBase extends MultiBucketBase {
1343
+ export type TermsBucketBase = MultiBucketBase & {
1341
1344
  doc_count_error?: number;
1342
1345
  }
1343
1346
 
@@ -1345,22 +1348,22 @@ export type TermsExclude = string | string[]
1345
1348
 
1346
1349
  export type TermsInclude = string | string[] | TermsPartition
1347
1350
 
1348
- export interface TermsPartition {
1351
+ export type TermsPartition = {
1349
1352
  num_partitions: number;
1350
1353
  partition: number;
1351
1354
  }
1352
1355
 
1353
- export interface TestPopulation {
1356
+ export type TestPopulation = {
1354
1357
  field: Common.Field;
1355
1358
  filter?: Common_QueryDsl.QueryContainer;
1356
1359
  script?: Common.Script;
1357
1360
  }
1358
1361
 
1359
- export interface TopHitsAggregate extends AggregateBase {
1362
+ export type TopHitsAggregate = AggregateBase & {
1360
1363
  hits: Core_Search.HitsMetadata;
1361
1364
  }
1362
1365
 
1363
- export interface TopHitsAggregation extends MetricAggregationBase {
1366
+ export type TopHitsAggregation = MetricAggregationBase & {
1364
1367
  _source?: Core_Search.SourceConfig;
1365
1368
  docvalue_fields?: Common.Fields;
1366
1369
  explain?: boolean;
@@ -1375,31 +1378,31 @@ export interface TopHitsAggregation extends MetricAggregationBase {
1375
1378
  version?: boolean;
1376
1379
  }
1377
1380
 
1378
- export interface TopMetrics {
1381
+ export type TopMetrics = {
1379
1382
  metrics: Record<string, Common.FieldValue>;
1380
1383
  sort: Common.FieldValue[];
1381
1384
  }
1382
1385
 
1383
- export interface TopMetricsAggregate extends AggregateBase {
1386
+ export type TopMetricsAggregate = AggregateBase & {
1384
1387
  top: TopMetrics[];
1385
1388
  }
1386
1389
 
1387
- export interface TopMetricsAggregation extends MetricAggregationBase {
1390
+ export type TopMetricsAggregation = MetricAggregationBase & {
1388
1391
  metrics?: TopMetricsValue | TopMetricsValue[];
1389
1392
  size?: number;
1390
1393
  sort?: Common.Sort;
1391
1394
  }
1392
1395
 
1393
- export interface TopMetricsValue {
1396
+ export type TopMetricsValue = {
1394
1397
  field: Common.Field;
1395
1398
  }
1396
1399
 
1397
- export interface TTestAggregate extends AggregateBase {
1400
+ export type TTestAggregate = AggregateBase & {
1398
1401
  value: undefined | number | string;
1399
1402
  value_as_string?: string;
1400
1403
  }
1401
1404
 
1402
- export interface TTestAggregation extends Aggregation {
1405
+ export type TTestAggregation = Aggregation & {
1403
1406
  a?: TestPopulation;
1404
1407
  b?: TestPopulation;
1405
1408
  type?: TTestType;
@@ -1423,14 +1426,14 @@ export type ValueType = 'boolean' | 'date' | 'date_nanos' | 'double' | 'geo_poin
1423
1426
 
1424
1427
  export type VariableWidthHistogramAggregate = MultiBucketAggregateBaseVariableWidthHistogramBucket & Record<string, any>
1425
1428
 
1426
- export interface VariableWidthHistogramAggregation {
1429
+ export type VariableWidthHistogramAggregation = {
1427
1430
  buckets?: number;
1428
1431
  field?: Common.Field;
1429
1432
  initial_buffer?: number;
1430
1433
  shard_size?: number;
1431
1434
  }
1432
1435
 
1433
- export interface VariableWidthHistogramBucket extends MultiBucketBase {
1436
+ export type VariableWidthHistogramBucket = MultiBucketBase & {
1434
1437
  key: number;
1435
1438
  key_as_string?: string;
1436
1439
  max: number;
@@ -1439,14 +1442,14 @@ export interface VariableWidthHistogramBucket extends MultiBucketBase {
1439
1442
  min_as_string?: string;
1440
1443
  }
1441
1444
 
1442
- export interface WeightedAverageAggregation extends Aggregation {
1445
+ export type WeightedAverageAggregation = Aggregation & {
1443
1446
  format?: string;
1444
1447
  value?: WeightedAverageValue;
1445
1448
  value_type?: ValueType;
1446
1449
  weight?: WeightedAverageValue;
1447
1450
  }
1448
1451
 
1449
- export interface WeightedAverageValue {
1452
+ export type WeightedAverageValue = {
1450
1453
  field?: Common.Field;
1451
1454
  missing?: number;
1452
1455
  script?: Common.Script;