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