@opensearch-project/opensearch 3.5.1 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (658) hide show
  1. package/api/OpenSearchApi.d.ts +366 -0
  2. package/api/OpenSearchApi.js +202 -135
  3. package/api/_core/bulk.d.ts +3 -8
  4. package/api/_core/bulk.js +3 -3
  5. package/api/_core/bulkStream.d.ts +2 -7
  6. package/api/_core/bulkStream.js +2 -2
  7. package/api/_core/clearScroll.js +3 -3
  8. package/api/_core/count.js +3 -3
  9. package/api/_core/create.js +4 -4
  10. package/api/_core/createPit.d.ts +7 -4
  11. package/api/_core/createPit.js +8 -4
  12. package/api/_core/delete.js +4 -4
  13. package/api/_core/deleteAllPits.js +1 -1
  14. package/api/_core/deleteByQuery.js +3 -3
  15. package/api/_core/deleteByQueryRethrottle.js +1 -1
  16. package/api/_core/deletePit.js +1 -1
  17. package/api/_core/deleteScript.js +1 -1
  18. package/api/_core/exists.js +4 -4
  19. package/api/_core/existsSource.js +4 -4
  20. package/api/_core/explain.d.ts +4 -2
  21. package/api/_core/explain.js +3 -3
  22. package/api/_core/fieldCaps.js +4 -4
  23. package/api/_core/get.d.ts +3 -1
  24. package/api/_core/get.js +5 -5
  25. package/api/_core/getAllPits.js +1 -1
  26. package/api/_core/getScript.js +1 -1
  27. package/api/_core/getScriptContext.js +1 -1
  28. package/api/_core/getScriptLanguages.js +1 -1
  29. package/api/_core/getSource.d.ts +1 -1
  30. package/api/_core/getSource.js +5 -5
  31. package/api/_core/index.js +4 -4
  32. package/api/_core/info.js +1 -1
  33. package/api/_core/mget.js +4 -4
  34. package/api/_core/msearch.d.ts +1 -0
  35. package/api/_core/msearch.js +3 -2
  36. package/api/_core/msearchTemplate.js +2 -2
  37. package/api/_core/mtermvectors.js +9 -9
  38. package/api/_core/ping.js +1 -1
  39. package/api/_core/putScript.js +1 -1
  40. package/api/_core/rankEval.js +2 -2
  41. package/api/_core/reindex.js +1 -1
  42. package/api/_core/reindexRethrottle.js +1 -1
  43. package/api/_core/renderSearchTemplate.js +1 -1
  44. package/api/_core/scriptsPainlessExecute.d.ts +1 -1
  45. package/api/_core/scriptsPainlessExecute.js +1 -1
  46. package/api/_core/scroll.d.ts +1 -1
  47. package/api/_core/scroll.js +1 -1
  48. package/api/_core/search.d.ts +7 -3
  49. package/api/_core/search.js +4 -3
  50. package/api/_core/searchShards.d.ts +5 -0
  51. package/api/_core/searchShards.js +3 -2
  52. package/api/_core/searchTemplate.d.ts +4 -17
  53. package/api/_core/searchTemplate.js +5 -3
  54. package/api/_core/termvectors.js +9 -9
  55. package/api/_core/update.js +2 -2
  56. package/api/_core/updateByQuery.js +3 -3
  57. package/api/_core/updateByQueryRethrottle.js +1 -1
  58. package/api/_types/_common.aggregations.d.ts +288 -386
  59. package/api/_types/_common.analysis.d.ts +12 -5
  60. package/api/_types/_common.d.ts +80 -54
  61. package/api/_types/_common.mapping.d.ts +35 -3
  62. package/api/_types/_common.query_dsl.d.ts +54 -26
  63. package/api/_types/_core.bulk.d.ts +33 -9
  64. package/api/_types/_core.explain.d.ts +1 -7
  65. package/api/_types/_core.get.d.ts +7 -3
  66. package/api/_types/_core.msearch.d.ts +1 -1
  67. package/api/_types/_core.pit.d.ts +2 -2
  68. package/api/_types/_core.search.d.ts +82 -33
  69. package/api/_types/asynchronous_search._common.d.ts +3 -4
  70. package/api/_types/cat._common.d.ts +19 -0
  71. package/api/_types/cat.indices.d.ts +28 -0
  72. package/api/_types/cat.nodes.d.ts +13 -0
  73. package/api/_types/cat.shards.d.ts +13 -0
  74. package/api/_types/cat.thread_pool.d.ts +1 -0
  75. package/api/_types/cluster._common.d.ts +2 -0
  76. package/api/_types/cluster.allocation_explain.d.ts +3 -0
  77. package/api/_types/cluster.decommission_awareness.d.ts +1 -3
  78. package/api/_types/cluster.pending_tasks.d.ts +2 -0
  79. package/api/_types/cluster.stats.d.ts +3 -3
  80. package/api/_types/cluster.weighted_routing.d.ts +1 -8
  81. package/api/_types/flow_framework.common.d.ts +5 -2
  82. package/api/_types/geospatial._common.d.ts +153 -0
  83. package/api/_types/index.d.ts +22 -0
  84. package/api/_types/indices._common.d.ts +75 -19
  85. package/api/_types/indices.modify_data_stream.d.ts +33 -0
  86. package/api/_types/ingest._common.d.ts +37 -0
  87. package/api/_types/ingestion._common.d.ts +70 -0
  88. package/api/_types/insights._common.d.ts +8 -35
  89. package/api/_types/ism._common.d.ts +3 -3
  90. package/api/_types/knn._common.d.ts +45 -6
  91. package/api/_types/list._common.d.ts +19 -0
  92. package/api/_types/ltr._common.d.ts +63 -2
  93. package/api/_types/ml._common.d.ts +218 -168
  94. package/api/_types/neural._common.d.ts +229 -0
  95. package/api/_types/nodes._common.d.ts +1 -1
  96. package/api/_types/nodes.info.d.ts +8 -2
  97. package/api/_types/nodes.stats.d.ts +51 -2
  98. package/api/_types/observability._common.d.ts +0 -16
  99. package/api/_types/ppl._common.d.ts +19 -0
  100. package/api/_types/query._common.d.ts +0 -20
  101. package/api/_types/replication._common.d.ts +4 -1
  102. package/api/_types/rollups._common.d.ts +2 -0
  103. package/api/_types/search_pipeline._common.d.ts +52 -1
  104. package/api/_types/search_relevance._common.d.ts +132 -0
  105. package/api/_types/security._common.d.ts +31 -22
  106. package/api/_types/security_analytics.alerts.d.ts +59 -0
  107. package/api/_types/security_analytics.findings.d.ts +65 -0
  108. package/api/_types/sm._common.d.ts +3 -39
  109. package/api/_types/sql._common.d.ts +8 -0
  110. package/api/_types/transforms._common.d.ts +0 -23
  111. package/api/_types/ubi._common.d.ts +19 -0
  112. package/api/_types/wlm._common.d.ts +5 -3
  113. package/api/asynchronousSearch/_api.js +12 -4
  114. package/api/asynchronousSearch/delete.js +1 -1
  115. package/api/asynchronousSearch/get.js +1 -1
  116. package/api/asynchronousSearch/search.js +1 -1
  117. package/api/asynchronousSearch/stats.js +1 -1
  118. package/api/cat/_api.js +58 -30
  119. package/api/cat/aliases.d.ts +2 -1
  120. package/api/cat/aliases.js +2 -2
  121. package/api/cat/allPitSegments.d.ts +2 -1
  122. package/api/cat/allPitSegments.js +2 -2
  123. package/api/cat/allocation.d.ts +2 -1
  124. package/api/cat/allocation.js +2 -2
  125. package/api/cat/clusterManager.d.ts +2 -1
  126. package/api/cat/clusterManager.js +2 -2
  127. package/api/cat/count.d.ts +2 -1
  128. package/api/cat/count.js +3 -3
  129. package/api/cat/fielddata.d.ts +2 -1
  130. package/api/cat/fielddata.js +2 -2
  131. package/api/cat/health.d.ts +2 -1
  132. package/api/cat/health.js +2 -2
  133. package/api/cat/help.js +1 -1
  134. package/api/cat/indices.d.ts +2 -1
  135. package/api/cat/indices.js +2 -2
  136. package/api/cat/master.d.ts +2 -1
  137. package/api/cat/master.js +2 -2
  138. package/api/cat/nodeattrs.d.ts +2 -1
  139. package/api/cat/nodeattrs.js +2 -2
  140. package/api/cat/nodes.d.ts +2 -1
  141. package/api/cat/nodes.js +3 -3
  142. package/api/cat/pendingTasks.d.ts +2 -1
  143. package/api/cat/pendingTasks.js +3 -3
  144. package/api/cat/pitSegments.d.ts +2 -1
  145. package/api/cat/pitSegments.js +2 -2
  146. package/api/cat/plugins.d.ts +2 -1
  147. package/api/cat/plugins.js +2 -2
  148. package/api/cat/recovery.d.ts +2 -1
  149. package/api/cat/recovery.js +3 -3
  150. package/api/cat/repositories.d.ts +2 -1
  151. package/api/cat/repositories.js +2 -2
  152. package/api/cat/segmentReplication.d.ts +2 -1
  153. package/api/cat/segmentReplication.js +3 -3
  154. package/api/cat/segments.d.ts +2 -1
  155. package/api/cat/segments.js +2 -2
  156. package/api/cat/shards.d.ts +2 -1
  157. package/api/cat/shards.js +3 -3
  158. package/api/cat/snapshots.d.ts +2 -1
  159. package/api/cat/snapshots.js +3 -3
  160. package/api/cat/tasks.d.ts +2 -1
  161. package/api/cat/tasks.js +3 -3
  162. package/api/cat/templates.d.ts +2 -1
  163. package/api/cat/templates.js +2 -2
  164. package/api/cat/threadPool.d.ts +2 -1
  165. package/api/cat/threadPool.js +2 -2
  166. package/api/cluster/_api.js +63 -38
  167. package/api/cluster/allocationExplain.js +1 -1
  168. package/api/cluster/deleteComponentTemplate.js +2 -2
  169. package/api/cluster/deleteDecommissionAwareness.js +1 -1
  170. package/api/cluster/deleteVotingConfigExclusions.js +1 -1
  171. package/api/cluster/deleteWeightedRouting.d.ts +5 -2
  172. package/api/cluster/deleteWeightedRouting.js +1 -1
  173. package/api/cluster/existsComponentTemplate.js +3 -3
  174. package/api/cluster/getComponentTemplate.js +2 -2
  175. package/api/cluster/getDecommissionAwareness.d.ts +1 -1
  176. package/api/cluster/getDecommissionAwareness.js +1 -1
  177. package/api/cluster/getSettings.js +2 -2
  178. package/api/cluster/getWeightedRouting.d.ts +3 -1
  179. package/api/cluster/getWeightedRouting.js +1 -1
  180. package/api/cluster/health.d.ts +2 -1
  181. package/api/cluster/health.js +3 -3
  182. package/api/cluster/pendingTasks.js +2 -2
  183. package/api/cluster/postVotingConfigExclusions.js +1 -1
  184. package/api/cluster/putComponentTemplate.js +3 -3
  185. package/api/cluster/putDecommissionAwareness.js +1 -1
  186. package/api/cluster/putSettings.js +2 -2
  187. package/api/cluster/putWeightedRouting.d.ts +5 -2
  188. package/api/cluster/putWeightedRouting.js +1 -1
  189. package/api/cluster/remoteInfo.js +1 -1
  190. package/api/cluster/reroute.js +2 -2
  191. package/api/cluster/state.js +3 -3
  192. package/api/cluster/stats.js +3 -3
  193. package/api/danglingIndices/_api.js +13 -6
  194. package/api/danglingIndices/deleteDanglingIndex.js +1 -1
  195. package/api/danglingIndices/importDanglingIndex.js +1 -1
  196. package/api/danglingIndices/listDanglingIndices.d.ts +2 -2
  197. package/api/danglingIndices/listDanglingIndices.js +1 -1
  198. package/api/flowFramework/_api.js +27 -13
  199. package/api/flowFramework/create.js +7 -7
  200. package/api/flowFramework/delete.js +4 -4
  201. package/api/flowFramework/deprovision.js +4 -4
  202. package/api/flowFramework/get.js +3 -3
  203. package/api/flowFramework/getStatus.js +4 -4
  204. package/api/flowFramework/getSteps.js +3 -3
  205. package/api/flowFramework/provision.js +3 -3
  206. package/api/flowFramework/search.js +1 -1
  207. package/api/flowFramework/searchState.js +1 -1
  208. package/api/flowFramework/update.js +8 -8
  209. package/api/geospatial/_api.js +57 -0
  210. package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
  211. package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
  212. package/api/geospatial/geojsonUploadPost.d.ts +30 -0
  213. package/api/geospatial/geojsonUploadPost.js +49 -0
  214. package/api/geospatial/geojsonUploadPut.d.ts +30 -0
  215. package/api/geospatial/geojsonUploadPut.js +49 -0
  216. package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
  217. package/api/geospatial/getIp2GeoDatasource.js +48 -0
  218. package/api/geospatial/getUploadStats.d.ts +28 -0
  219. package/api/geospatial/getUploadStats.js +45 -0
  220. package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
  221. package/api/geospatial/putIp2GeoDatasource.js +53 -0
  222. package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
  223. package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
  224. package/api/http/_api.js +22 -9
  225. package/api/index.d.ts +168 -10
  226. package/api/indices/_api.js +134 -78
  227. package/api/indices/addBlock.js +1 -1
  228. package/api/indices/analyze.js +1 -1
  229. package/api/indices/clearCache.js +3 -3
  230. package/api/indices/clone.js +1 -1
  231. package/api/indices/close.js +2 -2
  232. package/api/indices/create.js +2 -2
  233. package/api/indices/createDataStream.js +1 -1
  234. package/api/indices/dataStreamsStats.js +2 -2
  235. package/api/indices/delete.js +2 -2
  236. package/api/indices/deleteAlias.js +3 -3
  237. package/api/indices/deleteDataStream.js +2 -2
  238. package/api/indices/deleteIndexTemplate.js +2 -2
  239. package/api/indices/deleteTemplate.js +1 -1
  240. package/api/indices/exists.js +2 -2
  241. package/api/indices/existsAlias.js +3 -3
  242. package/api/indices/existsIndexTemplate.js +2 -2
  243. package/api/indices/existsTemplate.js +1 -1
  244. package/api/indices/flush.js +2 -2
  245. package/api/indices/forcemerge.js +1 -1
  246. package/api/indices/get.js +2 -2
  247. package/api/indices/getAlias.js +3 -3
  248. package/api/indices/getDataStream.js +2 -2
  249. package/api/indices/getFieldMapping.js +3 -3
  250. package/api/indices/getIndexTemplate.js +2 -2
  251. package/api/indices/getMapping.js +2 -2
  252. package/api/indices/getSettings.js +3 -3
  253. package/api/indices/getTemplate.js +2 -2
  254. package/api/indices/getUpgrade.js +2 -2
  255. package/api/indices/modifyDataStream.d.ts +37 -0
  256. package/api/indices/modifyDataStream.js +50 -0
  257. package/api/indices/open.js +2 -2
  258. package/api/indices/putAlias.js +2 -2
  259. package/api/indices/putIndexTemplate.js +1 -1
  260. package/api/indices/putMapping.js +1 -1
  261. package/api/indices/putSettings.js +3 -3
  262. package/api/indices/putTemplate.js +1 -1
  263. package/api/indices/recovery.js +2 -2
  264. package/api/indices/refresh.js +2 -2
  265. package/api/indices/resolveIndex.js +1 -1
  266. package/api/indices/rollover.js +2 -2
  267. package/api/indices/segments.js +2 -2
  268. package/api/indices/shardStores.js +5 -5
  269. package/api/indices/shrink.js +1 -1
  270. package/api/indices/simulateIndexTemplate.js +1 -1
  271. package/api/indices/simulateTemplate.js +3 -3
  272. package/api/indices/split.js +1 -1
  273. package/api/indices/stats.js +5 -5
  274. package/api/indices/updateAliases.js +1 -1
  275. package/api/indices/upgrade.js +2 -2
  276. package/api/indices/validateQuery.js +2 -2
  277. package/api/ingest/_api.js +18 -9
  278. package/api/ingest/deletePipeline.js +1 -1
  279. package/api/ingest/getPipeline.js +1 -1
  280. package/api/ingest/processorGrok.js +1 -1
  281. package/api/ingest/putPipeline.js +1 -1
  282. package/api/ingest/simulate.js +1 -1
  283. package/api/ingestion/_api.js +37 -0
  284. package/api/ingestion/getState.d.ts +34 -0
  285. package/api/ingestion/getState.js +52 -0
  286. package/api/ingestion/pause.d.ts +33 -0
  287. package/api/ingestion/pause.js +51 -0
  288. package/api/ingestion/resume.d.ts +34 -0
  289. package/api/ingestion/resume.js +52 -0
  290. package/api/insights/_api.js +7 -2
  291. package/api/insights/topQueries.d.ts +1 -1
  292. package/api/ism/_api.js +40 -24
  293. package/api/ism/addPolicy.d.ts +1 -1
  294. package/api/ism/addPolicy.js +2 -2
  295. package/api/ism/changePolicy.d.ts +1 -1
  296. package/api/ism/changePolicy.js +2 -2
  297. package/api/ism/deletePolicy.js +1 -1
  298. package/api/ism/existsPolicy.js +2 -2
  299. package/api/ism/explainPolicy.d.ts +1 -1
  300. package/api/ism/explainPolicy.js +3 -3
  301. package/api/ism/getPolicies.js +2 -2
  302. package/api/ism/getPolicy.js +2 -2
  303. package/api/ism/putPolicies.js +2 -2
  304. package/api/ism/putPolicy.js +1 -1
  305. package/api/ism/refreshSearchAnalyzers.d.ts +1 -1
  306. package/api/ism/refreshSearchAnalyzers.js +3 -3
  307. package/api/ism/removePolicy.d.ts +1 -1
  308. package/api/ism/removePolicy.js +2 -2
  309. package/api/ism/retryIndex.d.ts +1 -1
  310. package/api/ism/retryIndex.js +3 -3
  311. package/api/knn/_api.js +20 -10
  312. package/api/knn/deleteModel.js +1 -1
  313. package/api/knn/getModel.js +1 -1
  314. package/api/knn/searchModels.d.ts +1 -1
  315. package/api/knn/searchModels.js +5 -5
  316. package/api/knn/stats.d.ts +1 -1
  317. package/api/knn/stats.js +3 -3
  318. package/api/knn/trainModel.js +1 -1
  319. package/api/knn/warmup.js +2 -2
  320. package/api/list/_api.js +10 -3
  321. package/api/list/help.js +1 -1
  322. package/api/list/indices.d.ts +3 -2
  323. package/api/list/indices.js +5 -5
  324. package/api/list/shards.d.ts +3 -2
  325. package/api/list/shards.js +4 -4
  326. package/api/ltr/_api.js +106 -1
  327. package/api/ltr/addFeaturesToSet.d.ts +37 -0
  328. package/api/ltr/addFeaturesToSet.js +55 -0
  329. package/api/ltr/addFeaturesToSetByQuery.d.ts +35 -0
  330. package/api/ltr/addFeaturesToSetByQuery.js +57 -0
  331. package/api/ltr/cacheStats.d.ts +28 -0
  332. package/api/ltr/cacheStats.js +45 -0
  333. package/api/ltr/clearCache.d.ts +30 -0
  334. package/api/ltr/clearCache.js +48 -0
  335. package/api/ltr/createDefaultStore.d.ts +28 -0
  336. package/api/ltr/createDefaultStore.js +45 -0
  337. package/api/ltr/createFeature.d.ts +35 -0
  338. package/api/ltr/createFeature.js +53 -0
  339. package/api/ltr/createFeatureset.d.ts +35 -0
  340. package/api/ltr/createFeatureset.js +53 -0
  341. package/api/ltr/createModel.d.ts +35 -0
  342. package/api/ltr/createModel.js +53 -0
  343. package/api/ltr/createModelFromSet.d.ts +35 -0
  344. package/api/ltr/createModelFromSet.js +53 -0
  345. package/api/ltr/createStore.d.ts +30 -0
  346. package/api/ltr/createStore.js +49 -0
  347. package/api/ltr/deleteDefaultStore.d.ts +28 -0
  348. package/api/ltr/deleteDefaultStore.js +45 -0
  349. package/api/ltr/deleteFeature.d.ts +31 -0
  350. package/api/ltr/deleteFeature.js +51 -0
  351. package/api/ltr/deleteFeatureset.d.ts +31 -0
  352. package/api/ltr/deleteFeatureset.js +51 -0
  353. package/api/ltr/deleteModel.d.ts +31 -0
  354. package/api/ltr/deleteModel.js +51 -0
  355. package/api/ltr/deleteStore.d.ts +30 -0
  356. package/api/ltr/deleteStore.js +49 -0
  357. package/api/ltr/getFeature.d.ts +30 -0
  358. package/api/ltr/getFeature.js +51 -0
  359. package/api/ltr/getFeatureset.d.ts +30 -0
  360. package/api/ltr/getFeatureset.js +51 -0
  361. package/api/ltr/getModel.d.ts +30 -0
  362. package/api/ltr/getModel.js +51 -0
  363. package/api/ltr/getStore.d.ts +30 -0
  364. package/api/ltr/getStore.js +49 -0
  365. package/api/ltr/listStores.d.ts +28 -0
  366. package/api/ltr/listStores.js +45 -0
  367. package/api/ltr/searchFeatures.d.ts +33 -0
  368. package/api/ltr/searchFeatures.js +51 -0
  369. package/api/ltr/searchFeaturesets.d.ts +33 -0
  370. package/api/ltr/searchFeaturesets.js +51 -0
  371. package/api/ltr/searchModels.d.ts +33 -0
  372. package/api/ltr/searchModels.js +51 -0
  373. package/api/ltr/stats.d.ts +1 -1
  374. package/api/ltr/stats.js +2 -2
  375. package/api/ltr/updateFeature.d.ts +35 -0
  376. package/api/ltr/updateFeature.js +53 -0
  377. package/api/ltr/updateFeatureset.d.ts +35 -0
  378. package/api/ltr/updateFeatureset.js +53 -0
  379. package/api/ml/_api.js +239 -116
  380. package/api/ml/addAgenticMemory.d.ts +45 -0
  381. package/api/ml/addAgenticMemory.js +50 -0
  382. package/api/ml/createConnector.d.ts +1 -1
  383. package/api/ml/createMemoryContainer.d.ts +40 -0
  384. package/api/ml/createMemoryContainer.js +47 -0
  385. package/api/ml/createMemoryContainerSession.d.ts +41 -0
  386. package/api/ml/createMemoryContainerSession.js +50 -0
  387. package/api/ml/createModelMeta.d.ts +1 -0
  388. package/api/ml/deleteAgenticMemory.d.ts +33 -0
  389. package/api/ml/deleteAgenticMemory.js +55 -0
  390. package/api/ml/deleteAgenticMemoryQuery.d.ts +37 -0
  391. package/api/ml/deleteAgenticMemoryQuery.js +53 -0
  392. package/api/ml/deleteMemoryContainer.d.ts +33 -0
  393. package/api/ml/deleteMemoryContainer.js +51 -0
  394. package/api/ml/executeAgentStream.d.ts +35 -0
  395. package/api/ml/executeAgentStream.js +50 -0
  396. package/api/ml/executeAlgorithm.d.ts +2 -2
  397. package/api/ml/executeAlgorithm.js +1 -1
  398. package/api/ml/executeTool.d.ts +35 -0
  399. package/api/ml/executeTool.js +50 -0
  400. package/api/ml/getAgenticMemory.d.ts +32 -0
  401. package/api/ml/getAgenticMemory.js +55 -0
  402. package/api/ml/getMemoryContainer.d.ts +30 -0
  403. package/api/ml/getMemoryContainer.js +49 -0
  404. package/api/ml/getStats.d.ts +1 -1
  405. package/api/ml/getTool.d.ts +1 -1
  406. package/api/ml/loadModel.d.ts +2 -1
  407. package/api/ml/predictModel.d.ts +6 -1
  408. package/api/ml/predictModelStream.d.ts +37 -0
  409. package/api/ml/predictModelStream.js +50 -0
  410. package/api/ml/registerModel.d.ts +3 -0
  411. package/api/ml/registerModelGroup.d.ts +1 -1
  412. package/api/ml/registerModelMeta.d.ts +1 -0
  413. package/api/ml/searchAgenticMemory.d.ts +40 -0
  414. package/api/ml/searchAgenticMemory.js +53 -0
  415. package/api/ml/searchAgents.d.ts +4 -2
  416. package/api/ml/searchConnectors.d.ts +4 -2
  417. package/api/ml/searchMemory.d.ts +4 -2
  418. package/api/ml/searchMemoryContainer.d.ts +38 -0
  419. package/api/ml/searchMemoryContainer.js +47 -0
  420. package/api/ml/searchMessage.d.ts +4 -2
  421. package/api/ml/searchModelGroup.d.ts +4 -2
  422. package/api/ml/searchModels.d.ts +4 -2
  423. package/api/ml/searchTasks.d.ts +4 -2
  424. package/api/ml/updateAgenticMemory.d.ts +46 -0
  425. package/api/ml/updateAgenticMemory.js +56 -0
  426. package/api/ml/updateConnector.d.ts +2 -2
  427. package/api/ml/updateMemoryContainer.d.ts +38 -0
  428. package/api/ml/updateMemoryContainer.js +50 -0
  429. package/api/neural/_api.js +31 -0
  430. package/api/neural/stats.d.ts +36 -0
  431. package/api/neural/stats.js +55 -0
  432. package/api/nodes/_api.js +16 -7
  433. package/api/nodes/hotThreads.js +7 -7
  434. package/api/nodes/info.js +4 -4
  435. package/api/nodes/reloadSecureSettings.js +2 -2
  436. package/api/nodes/stats.js +10 -10
  437. package/api/nodes/usage.js +1 -1
  438. package/api/notifications/_api.js +31 -18
  439. package/api/notifications/createConfig.js +1 -1
  440. package/api/notifications/deleteConfig.js +1 -1
  441. package/api/notifications/deleteConfigs.js +1 -1
  442. package/api/notifications/getConfigs.js +1 -1
  443. package/api/notifications/listChannels.js +1 -1
  444. package/api/notifications/listFeatures.js +1 -1
  445. package/api/notifications/sendTest.js +1 -1
  446. package/api/notifications/updateConfig.js +1 -1
  447. package/api/observability/_api.js +25 -14
  448. package/api/observability/createObject.js +1 -1
  449. package/api/observability/deleteObject.js +1 -1
  450. package/api/observability/deleteObjects.js +2 -2
  451. package/api/observability/getObject.js +1 -1
  452. package/api/observability/updateObject.js +2 -2
  453. package/api/ppl/_api.js +14 -6
  454. package/api/ppl/explain.d.ts +2 -1
  455. package/api/ppl/explain.js +5 -5
  456. package/api/ppl/getStats.d.ts +2 -1
  457. package/api/ppl/getStats.js +4 -4
  458. package/api/ppl/postStats.d.ts +2 -1
  459. package/api/ppl/postStats.js +5 -5
  460. package/api/ppl/query.d.ts +2 -1
  461. package/api/ppl/query.js +5 -5
  462. package/api/query/_api.js +19 -10
  463. package/api/query/datasourceDelete.js +2 -2
  464. package/api/query/datasourceRetrieve.js +2 -2
  465. package/api/query/datasourcesCreate.js +2 -2
  466. package/api/query/datasourcesList.js +1 -1
  467. package/api/query/datasourcesUpdate.js +2 -2
  468. package/api/remoteStore/_api.js +6 -1
  469. package/api/remoteStore/restore.js +1 -1
  470. package/api/replication/_api.js +32 -17
  471. package/api/replication/autofollowStats.js +1 -1
  472. package/api/replication/createReplicationRule.js +1 -1
  473. package/api/replication/deleteReplicationRule.js +1 -1
  474. package/api/replication/followerStats.js +1 -1
  475. package/api/replication/leaderStats.js +1 -1
  476. package/api/replication/pause.js +1 -1
  477. package/api/replication/resume.js +1 -1
  478. package/api/replication/start.js +1 -1
  479. package/api/replication/status.js +1 -1
  480. package/api/replication/stop.js +1 -1
  481. package/api/replication/updateSettings.js +1 -1
  482. package/api/rollups/_api.js +16 -6
  483. package/api/rollups/delete.js +3 -3
  484. package/api/rollups/explain.js +3 -3
  485. package/api/rollups/get.js +3 -3
  486. package/api/rollups/put.js +6 -6
  487. package/api/rollups/start.js +3 -3
  488. package/api/rollups/stop.js +3 -3
  489. package/api/searchPipeline/_api.js +10 -3
  490. package/api/searchPipeline/put.js +1 -1
  491. package/api/searchRelevance/_api.js +117 -0
  492. package/api/searchRelevance/deleteExperiments.d.ts +30 -0
  493. package/api/searchRelevance/deleteExperiments.js +49 -0
  494. package/api/searchRelevance/deleteJudgments.d.ts +30 -0
  495. package/api/searchRelevance/deleteJudgments.js +49 -0
  496. package/api/searchRelevance/deleteQuerySets.d.ts +30 -0
  497. package/api/searchRelevance/deleteQuerySets.js +49 -0
  498. package/api/searchRelevance/deleteScheduledExperiments.d.ts +30 -0
  499. package/api/searchRelevance/deleteScheduledExperiments.js +49 -0
  500. package/api/searchRelevance/deleteSearchConfigurations.d.ts +30 -0
  501. package/api/searchRelevance/deleteSearchConfigurations.js +49 -0
  502. package/api/searchRelevance/experimentsSearch.d.ts +31 -0
  503. package/api/searchRelevance/experimentsSearch.js +47 -0
  504. package/api/searchRelevance/getExperiments.d.ts +30 -0
  505. package/api/searchRelevance/getExperiments.js +48 -0
  506. package/api/searchRelevance/getJudgments.d.ts +30 -0
  507. package/api/searchRelevance/getJudgments.js +48 -0
  508. package/api/searchRelevance/getNodeStats.d.ts +42 -0
  509. package/api/searchRelevance/getNodeStats.js +56 -0
  510. package/api/searchRelevance/getQuerySets.d.ts +30 -0
  511. package/api/searchRelevance/getQuerySets.js +48 -0
  512. package/api/searchRelevance/getScheduledExperiments.d.ts +30 -0
  513. package/api/searchRelevance/getScheduledExperiments.js +48 -0
  514. package/api/searchRelevance/getSearchConfigurations.d.ts +30 -0
  515. package/api/searchRelevance/getSearchConfigurations.js +48 -0
  516. package/api/searchRelevance/getStats.d.ts +41 -0
  517. package/api/searchRelevance/getStats.js +53 -0
  518. package/api/searchRelevance/judgmentsSearch.d.ts +31 -0
  519. package/api/searchRelevance/judgmentsSearch.js +47 -0
  520. package/api/searchRelevance/postQuerySets.d.ts +30 -0
  521. package/api/searchRelevance/postQuerySets.js +47 -0
  522. package/api/searchRelevance/postScheduledExperiments.d.ts +30 -0
  523. package/api/searchRelevance/postScheduledExperiments.js +47 -0
  524. package/api/searchRelevance/putExperiments.d.ts +32 -0
  525. package/api/searchRelevance/putExperiments.js +47 -0
  526. package/api/searchRelevance/putJudgments.d.ts +32 -0
  527. package/api/searchRelevance/putJudgments.js +47 -0
  528. package/api/searchRelevance/putQuerySets.d.ts +30 -0
  529. package/api/searchRelevance/putQuerySets.js +47 -0
  530. package/api/searchRelevance/putSearchConfigurations.d.ts +30 -0
  531. package/api/searchRelevance/putSearchConfigurations.js +47 -0
  532. package/api/searchRelevance/querySetsSearch.d.ts +31 -0
  533. package/api/searchRelevance/querySetsSearch.js +47 -0
  534. package/api/searchRelevance/searchConfigurationsSearch.d.ts +31 -0
  535. package/api/searchRelevance/searchConfigurationsSearch.js +47 -0
  536. package/api/security/_api.js +227 -147
  537. package/api/security/changePassword.js +1 -1
  538. package/api/security/configUpgradeCheck.js +1 -1
  539. package/api/security/configUpgradePerform.js +1 -1
  540. package/api/security/createActionGroup.js +1 -1
  541. package/api/security/createAllowlist.js +1 -1
  542. package/api/security/createRole.js +1 -1
  543. package/api/security/createRoleMapping.js +1 -1
  544. package/api/security/createTenant.js +1 -1
  545. package/api/security/createUpdateTenancyConfig.js +1 -1
  546. package/api/security/createUser.js +1 -1
  547. package/api/security/deleteActionGroup.js +1 -1
  548. package/api/security/deleteDistinguishedName.js +1 -1
  549. package/api/security/deleteRole.js +1 -1
  550. package/api/security/deleteRoleMapping.js +1 -1
  551. package/api/security/deleteTenant.js +1 -1
  552. package/api/security/deleteUser.js +1 -1
  553. package/api/security/flushCache.js +1 -1
  554. package/api/security/generateOboToken.js +1 -1
  555. package/api/security/getAccountDetails.js +1 -1
  556. package/api/security/getActionGroup.js +1 -1
  557. package/api/security/getActionGroups.js +1 -1
  558. package/api/security/getAllowlist.js +1 -1
  559. package/api/security/getAuditConfiguration.js +1 -1
  560. package/api/security/getCertificates.js +1 -1
  561. package/api/security/getConfiguration.js +1 -1
  562. package/api/security/getDistinguishedName.js +1 -1
  563. package/api/security/getDistinguishedNames.js +1 -1
  564. package/api/security/getRole.js +1 -1
  565. package/api/security/getRoleMapping.js +1 -1
  566. package/api/security/getRoleMappings.js +1 -1
  567. package/api/security/getRoles.js +1 -1
  568. package/api/security/getSslinfo.d.ts +2 -1
  569. package/api/security/getSslinfo.js +1 -1
  570. package/api/security/getTenancyConfig.js +1 -1
  571. package/api/security/getTenant.js +1 -1
  572. package/api/security/getTenants.js +1 -1
  573. package/api/security/getUser.js +1 -1
  574. package/api/security/getUsers.js +1 -1
  575. package/api/security/health.js +1 -1
  576. package/api/security/patchActionGroup.js +1 -1
  577. package/api/security/patchActionGroups.js +1 -1
  578. package/api/security/patchAllowlist.js +1 -1
  579. package/api/security/patchAuditConfiguration.js +1 -1
  580. package/api/security/patchConfiguration.js +1 -1
  581. package/api/security/patchDistinguishedName.d.ts +3 -1
  582. package/api/security/patchDistinguishedNames.js +1 -1
  583. package/api/security/patchRole.js +1 -1
  584. package/api/security/patchRoleMapping.js +1 -1
  585. package/api/security/patchRoleMappings.js +1 -1
  586. package/api/security/patchRoles.js +1 -1
  587. package/api/security/patchTenant.js +1 -1
  588. package/api/security/patchTenants.js +1 -1
  589. package/api/security/patchUser.js +1 -1
  590. package/api/security/patchUsers.js +1 -1
  591. package/api/security/reloadHttpCertificates.js +1 -1
  592. package/api/security/reloadTransportCertificates.js +1 -1
  593. package/api/security/updateAuditConfiguration.js +1 -1
  594. package/api/security/updateConfiguration.js +1 -1
  595. package/api/security/updateDistinguishedName.js +1 -1
  596. package/api/securityAnalytics/_api.js +41 -0
  597. package/api/securityAnalytics/getAlerts.d.ts +42 -0
  598. package/api/securityAnalytics/getAlerts.js +58 -0
  599. package/api/securityAnalytics/getFindings.d.ts +43 -0
  600. package/api/securityAnalytics/getFindings.js +59 -0
  601. package/api/securityAnalytics/searchFindingCorrelations.d.ts +33 -0
  602. package/api/securityAnalytics/searchFindingCorrelations.js +52 -0
  603. package/api/sm/_api.js +28 -16
  604. package/api/sm/deletePolicy.d.ts +2 -2
  605. package/api/sm/getPolicies.d.ts +2 -1
  606. package/api/sm/getPolicies.js +1 -1
  607. package/api/snapshot/_api.js +31 -16
  608. package/api/snapshot/cleanupRepository.js +2 -2
  609. package/api/snapshot/clone.js +2 -2
  610. package/api/snapshot/create.js +2 -2
  611. package/api/snapshot/createRepository.js +2 -2
  612. package/api/snapshot/delete.js +2 -2
  613. package/api/snapshot/deleteRepository.js +2 -2
  614. package/api/snapshot/get.js +3 -3
  615. package/api/snapshot/getRepository.js +2 -2
  616. package/api/snapshot/restore.d.ts +1 -0
  617. package/api/snapshot/restore.js +2 -2
  618. package/api/snapshot/status.js +2 -2
  619. package/api/snapshot/verifyRepository.js +2 -2
  620. package/api/sql/_api.js +18 -8
  621. package/api/sql/close.d.ts +1 -1
  622. package/api/sql/close.js +5 -5
  623. package/api/sql/explain.d.ts +1 -1
  624. package/api/sql/explain.js +5 -5
  625. package/api/sql/getStats.d.ts +2 -1
  626. package/api/sql/getStats.js +4 -4
  627. package/api/sql/postStats.d.ts +1 -1
  628. package/api/sql/postStats.js +5 -5
  629. package/api/sql/query.d.ts +1 -1
  630. package/api/sql/query.js +5 -5
  631. package/api/sql/settings.d.ts +1 -1
  632. package/api/sql/settings.js +4 -4
  633. package/api/tasks/_api.js +12 -3
  634. package/api/tasks/cancel.js +1 -1
  635. package/api/tasks/delete.d.ts +30 -0
  636. package/api/tasks/delete.js +49 -0
  637. package/api/tasks/get.js +1 -1
  638. package/api/tasks/list.js +1 -1
  639. package/api/transforms/_api.js +20 -8
  640. package/api/transforms/delete.d.ts +2 -2
  641. package/api/transforms/delete.js +1 -1
  642. package/api/transforms/explain.js +1 -1
  643. package/api/transforms/get.js +1 -1
  644. package/api/transforms/preview.js +1 -1
  645. package/api/transforms/put.js +1 -1
  646. package/api/transforms/search.js +1 -1
  647. package/api/transforms/start.js +1 -1
  648. package/api/transforms/stop.js +1 -1
  649. package/api/ubi/_api.js +31 -0
  650. package/api/ubi/initialize.d.ts +27 -0
  651. package/api/ubi/initialize.js +45 -0
  652. package/api/wlm/_api.js +16 -8
  653. package/lib/Connection.d.ts +1 -2
  654. package/lib/Connection.js +5 -3
  655. package/lib/Helpers.js +8 -8
  656. package/lib/ProxyAgent.js +125 -0
  657. package/lib/aws/shared.js +4 -3
  658. package/package.json +9 -4
@@ -18,9 +18,13 @@ import * as Common from './_common'
18
18
  import * as Common_QueryDsl from './_common.query_dsl'
19
19
  import * as Core_Search from './_core.search'
20
20
 
21
- export type AdjacencyMatrixAggregate = MultiBucketAggregateBaseAdjacencyMatrixBucket & Record<string, any>
21
+ export type AdjacencyMatrixAggregate = MultiBucketAggregateBaseAdjacencyMatrixBucket
22
22
 
23
23
  export type AdjacencyMatrixAggregation = BucketAggregationBase & {
24
+ adjacency_matrix: AdjacencyMatrixAggregationFields;
25
+ }
26
+
27
+ export type AdjacencyMatrixAggregationFields = {
24
28
  filters?: Record<string, Common_QueryDsl.QueryContainer>;
25
29
  }
26
30
 
@@ -28,7 +32,7 @@ export type AdjacencyMatrixBucket = MultiBucketBase & {
28
32
  key: string;
29
33
  }
30
34
 
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 | RangeAggregate | DateRangeAggregate | GeoDistanceAggregate | IpRangeAggregate | FiltersAggregate | AdjacencyMatrixAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | UnmappedSignificantTermsAggregate | CompositeAggregate | ScriptedMetricAggregate | TopHitsAggregate | InferenceAggregate | StringStatsAggregate | BoxPlotAggregate | TopMetricsAggregate | TTestAggregate | RateAggregate | CumulativeCardinalityAggregate | MatrixStatsAggregate | GeoLineAggregate
35
+ export type Aggregate = AdjacencyMatrixAggregate | AutoDateHistogramAggregate | AvgAggregate | BoxPlotAggregate | BucketMetricValueAggregate | CardinalityAggregate | ChildrenAggregate | CompositeAggregate | DateHistogramAggregate | DateRangeAggregate | DerivativeAggregate | DoubleTermsAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | FilterAggregate | FiltersAggregate | GeoBoundsAggregate | GeoCentroidAggregate | GeoDistanceAggregate | GeoHashGridAggregate | GeoTileGridAggregate | GlobalAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | HistogramAggregate | IpRangeAggregate | LongRareTermsAggregate | LongTermsAggregate | MatrixStatsAggregate | MaxAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MissingAggregate | MultiTermsAggregate | NestedAggregate | ParentAggregate | PercentilesBucketAggregate | RangeAggregate | RateAggregate | ReverseNestedAggregate | SamplerAggregate | ScriptedMetricAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | CumulativeCardinalityAggregate | SimpleValueAggregate | StatsAggregate | StatsBucketAggregate | StringRareTermsAggregate | StringTermsAggregate | SumAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | TTestAggregate | TopHitsAggregate | UnsignedLongTermsAggregate | UnmappedRareTermsAggregate | UnmappedSignificantTermsAggregate | UnmappedTermsAggregate | ValueCountAggregate | VariableWidthHistogramAggregate | WeightedAvgAggregate
32
36
 
33
37
  export type AggregateBase = {
34
38
  meta?: Common.Metadata;
@@ -38,18 +42,9 @@ export type AggregateOrder = Record<string, Common.SortOrder> | Record<string, C
38
42
 
39
43
  export type Aggregation = {
40
44
  meta?: Common.Metadata;
41
- name?: string;
42
45
  }
43
46
 
44
- export type AggregationContainer = {
45
- aggregations?: Record<string, AggregationContainer>;
46
- aggs?: Record<string, AggregationContainer>;
47
- meta?: Common.Metadata;
48
- } & ({
49
- adjacency_matrix: AdjacencyMatrixAggregation;
50
- } | {
51
- auto_date_histogram: AutoDateHistogramAggregation;
52
- } | {
47
+ export type AggregationContainer = Aggregation & (AdjacencyMatrixAggregation | AutoDateHistogramAggregation | {
53
48
  avg: AverageAggregation;
54
49
  } | {
55
50
  avg_bucket: AverageBucketAggregation;
@@ -63,53 +58,21 @@ export type AggregationContainer = {
63
58
  bucket_sort: BucketSortAggregation;
64
59
  } | {
65
60
  cardinality: CardinalityAggregation;
66
- } | {
67
- children: ChildrenAggregation;
68
- } | {
69
- composite: CompositeAggregation;
70
- } | {
61
+ } | ChildrenAggregation | CompositeAggregation | {
71
62
  cumulative_cardinality: CumulativeCardinalityAggregation;
72
63
  } | {
73
64
  cumulative_sum: CumulativeSumAggregation;
74
- } | {
75
- date_histogram: DateHistogramAggregation;
76
- } | {
77
- date_range: DateRangeAggregation;
78
- } | {
65
+ } | DateHistogramAggregation | DateRangeAggregation | {
79
66
  derivative: DerivativeAggregation;
80
- } | {
81
- diversified_sampler: DiversifiedSamplerAggregation;
82
- } | {
67
+ } | DiversifiedSamplerAggregation | {
83
68
  extended_stats: ExtendedStatsAggregation;
84
69
  } | {
85
70
  extended_stats_bucket: ExtendedStatsBucketAggregation;
86
- } | {
87
- filter: Common_QueryDsl.QueryContainer;
88
- } | {
89
- filters: FiltersAggregation;
90
- } | {
71
+ } | FilterAggregation | FiltersAggregation | {
91
72
  geo_bounds: GeoBoundsAggregation;
92
73
  } | {
93
74
  geo_centroid: GeoCentroidAggregation;
94
- } | {
95
- geo_distance: GeoDistanceAggregation;
96
- } | {
97
- geohash_grid: GeoHashGridAggregation;
98
- } | {
99
- geo_line: GeoLineAggregation;
100
- } | {
101
- geotile_grid: GeoTileGridAggregation;
102
- } | {
103
- global: GlobalAggregation;
104
- } | {
105
- histogram: HistogramAggregation;
106
- } | {
107
- ip_range: IpRangeAggregation;
108
- } | {
109
- inference: InferenceAggregation;
110
- } | {
111
- line: GeoLineAggregation;
112
- } | {
75
+ } | GeoDistanceAggregation | GeoHashGridAggregation | GeoTileGridAggregation | GlobalAggregation | HistogramAggregation | IpRangeAggregation | {
113
76
  matrix_stats: MatrixStatsAggregation;
114
77
  } | {
115
78
  max: MaxAggregation;
@@ -121,64 +84,38 @@ export type AggregationContainer = {
121
84
  min: MinAggregation;
122
85
  } | {
123
86
  min_bucket: MinBucketAggregation;
124
- } | {
125
- missing: MissingAggregation;
126
- } | {
87
+ } | MissingAggregation | {
127
88
  moving_avg: MovingAverageAggregation;
128
89
  } | {
129
90
  moving_percentiles: MovingPercentilesAggregation;
130
91
  } | {
131
92
  moving_fn: MovingFunctionAggregation;
132
- } | {
133
- multi_terms: MultiTermsAggregation;
134
- } | {
135
- nested: NestedAggregation;
136
- } | {
93
+ } | MultiTermsAggregation | NestedAggregation | {
137
94
  normalize: NormalizeAggregation;
138
- } | {
139
- parent: ParentAggregation;
140
- } | {
95
+ } | ParentAggregation | {
141
96
  percentile_ranks: PercentileRanksAggregation;
142
97
  } | {
143
98
  percentiles: PercentilesAggregation;
144
99
  } | {
145
100
  percentiles_bucket: PercentilesBucketAggregation;
146
- } | {
147
- range: RangeAggregation;
148
- } | {
149
- rare_terms: RareTermsAggregation;
150
- } | {
101
+ } | RangeAggregation | RareTermsAggregation | {
151
102
  rate: RateAggregation;
152
- } | {
153
- reverse_nested: ReverseNestedAggregation;
154
- } | {
155
- sampler: SamplerAggregation;
156
- } | {
103
+ } | ReverseNestedAggregation | SamplerAggregation | {
157
104
  scripted_metric: ScriptedMetricAggregation;
158
105
  } | {
159
106
  serial_diff: SerialDifferencingAggregation;
160
- } | {
161
- significant_terms: SignificantTermsAggregation;
162
- } | {
163
- significant_text: SignificantTextAggregation;
164
- } | {
107
+ } | SignificantTermsAggregation | SignificantTextAggregation | {
165
108
  stats: StatsAggregation;
166
109
  } | {
167
110
  stats_bucket: StatsBucketAggregation;
168
- } | {
169
- string_stats: StringStatsAggregation;
170
111
  } | {
171
112
  sum: SumAggregation;
172
113
  } | {
173
114
  sum_bucket: SumBucketAggregation;
174
- } | {
175
- terms: TermsAggregation;
176
- } | {
115
+ } | TermsAggregation | {
177
116
  top_hits: TopHitsAggregation;
178
117
  } | {
179
118
  t_test: TTestAggregation;
180
- } | {
181
- top_metrics: TopMetricsAggregation;
182
119
  } | {
183
120
  value_count: ValueCountAggregation;
184
121
  } | {
@@ -188,14 +125,14 @@ export type AggregationContainer = {
188
125
  })
189
126
 
190
127
  export type AggregationRange = {
191
- from?: undefined | number | string;
128
+ from?: number | string | undefined;
192
129
  key?: string;
193
- to?: undefined | number | string;
130
+ to?: number | string | undefined;
194
131
  }
195
132
 
196
133
  export type ArrayPercentilesItem = {
197
134
  key: string;
198
- value: undefined | number | string;
135
+ value: number | undefined;
199
136
  value_as_string?: string;
200
137
  }
201
138
 
@@ -204,6 +141,10 @@ export type AutoDateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBu
204
141
  }
205
142
 
206
143
  export type AutoDateHistogramAggregation = BucketAggregationBase & {
144
+ auto_date_histogram: AutoDateHistogramAggregationFields;
145
+ }
146
+
147
+ export type AutoDateHistogramAggregationFields = {
207
148
  buckets?: number;
208
149
  field?: Common.Field;
209
150
  format?: string;
@@ -219,7 +160,7 @@ export type AverageAggregation = FormatMetricAggregationBase & Record<string, an
219
160
 
220
161
  export type AverageBucketAggregation = PipelineAggregationBase & Record<string, any>
221
162
 
222
- export type AvgAggregate = SingleMetricAggregateBase & Record<string, any>
163
+ export type AvgAggregate = SingleMetricAggregateBase
223
164
 
224
165
  export type BoxPlotAggregate = AggregateBase & {
225
166
  lower: number;
@@ -242,49 +183,30 @@ export type BoxplotAggregation = MetricAggregationBase & {
242
183
  compression?: number;
243
184
  }
244
185
 
245
- export type BucketAggregationBase = Aggregation & Record<string, any>
186
+ export type BucketAggregationBase = {
187
+ aggregations?: Record<string, AggregationContainer>;
188
+ aggs?: Record<string, AggregationContainer>;
189
+ }
246
190
 
247
191
  export type BucketMetricValueAggregate = SingleMetricAggregateBase & {
248
192
  keys: string[];
249
193
  }
250
194
 
251
- export type BucketPathAggregation = Aggregation & {
195
+ export type BucketPathAggregation = {
252
196
  buckets_path?: BucketsPath;
253
197
  }
254
198
 
255
- export type BucketsAdjacencyMatrixBucket = Record<string, AdjacencyMatrixBucket> | AdjacencyMatrixBucket[]
256
-
257
- export type BucketsCompositeBucket = Record<string, CompositeBucket> | CompositeBucket[]
199
+ export type Buckets<TBucket = any> = Record<string, TBucket> | TBucket[]
258
200
 
259
201
  export type BucketScriptAggregation = PipelineAggregationBase & {
260
202
  script?: Common.Script;
261
203
  }
262
204
 
263
- export type BucketsDateHistogramBucket = Record<string, DateHistogramBucket> | DateHistogramBucket[]
264
-
265
- export type BucketsDoubleTermsBucket = Record<string, DoubleTermsBucket> | DoubleTermsBucket[]
266
-
267
205
  export type BucketSelectorAggregation = PipelineAggregationBase & {
268
206
  script?: Common.Script;
269
207
  }
270
208
 
271
- export type BucketsFiltersBucket = Record<string, FiltersBucket> | FiltersBucket[]
272
-
273
- export type BucketsGeoHashGridBucket = Record<string, GeoHashGridBucket> | GeoHashGridBucket[]
274
-
275
- export type BucketsGeoTileGridBucket = Record<string, GeoTileGridBucket> | GeoTileGridBucket[]
276
-
277
- export type BucketsHistogramBucket = Record<string, HistogramBucket> | HistogramBucket[]
278
-
279
- export type BucketsIpRangeBucket = Record<string, IpRangeBucket> | IpRangeBucket[]
280
-
281
- export type BucketsLongRareTermsBucket = Record<string, LongRareTermsBucket> | LongRareTermsBucket[]
282
-
283
- export type BucketsLongTermsBucket = Record<string, LongTermsBucket> | LongTermsBucket[]
284
-
285
- export type BucketsMultiTermsBucket = Record<string, MultiTermsBucket> | MultiTermsBucket[]
286
-
287
- export type BucketSortAggregation = Aggregation & {
209
+ export type BucketSortAggregation = {
288
210
  from?: number;
289
211
  gap_policy?: GapPolicy;
290
212
  size?: number;
@@ -293,21 +215,7 @@ export type BucketSortAggregation = Aggregation & {
293
215
 
294
216
  export type BucketsPath = string | string[] | Record<string, string>
295
217
 
296
- export type BucketsQueryContainer = Record<string, Common_QueryDsl.QueryContainer> | Common_QueryDsl.QueryContainer[]
297
-
298
- export type BucketsRangeBucket = Record<string, RangeBucket> | RangeBucket[]
299
-
300
- export type BucketsSignificantLongTermsBucket = Record<string, SignificantLongTermsBucket> | SignificantLongTermsBucket[]
301
-
302
- export type BucketsSignificantStringTermsBucket = Record<string, SignificantStringTermsBucket> | SignificantStringTermsBucket[]
303
-
304
- export type BucketsStringRareTermsBucket = Record<string, StringRareTermsBucket> | StringRareTermsBucket[]
305
-
306
- export type BucketsStringTermsBucket = Record<string, StringTermsBucket> | StringTermsBucket[]
307
-
308
- export type BucketsVariableWidthHistogramBucket = Record<string, VariableWidthHistogramBucket> | VariableWidthHistogramBucket[]
309
-
310
- export type BucketsVoid = Record<string, Common.Void> | Common.Void[]
218
+ export type BucketsQueryContainer = Buckets<Common_QueryDsl.QueryContainer> & (Record<string, Common_QueryDsl.QueryContainer> | Common_QueryDsl.QueryContainer[])
311
219
 
312
220
  export type CalendarInterval = 'second' | '1s' | 'minute' | '1m' | 'hour' | '1h' | 'day' | '1d' | 'week' | '1w' | 'month' | '1M' | 'quarter' | '1q' | 'year' | '1Y'
313
221
 
@@ -318,14 +226,17 @@ export type CardinalityAggregate = AggregateBase & {
318
226
  export type CardinalityAggregation = MetricAggregationBase & {
319
227
  execution_hint?: CardinalityExecutionMode;
320
228
  precision_threshold?: number;
321
- rehash?: boolean;
322
229
  }
323
230
 
324
- export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | 'save_memory_heuristic' | 'save_time_heuristic' | 'segment_ordinals'
231
+ export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | 'segment_ordinals'
325
232
 
326
233
  export type ChildrenAggregate = SingleBucketAggregateBase & Record<string, any>
327
234
 
328
235
  export type ChildrenAggregation = BucketAggregationBase & {
236
+ children: ChildrenAggregationFields;
237
+ }
238
+
239
+ export type ChildrenAggregationFields = {
329
240
  type?: Common.RelationName;
330
241
  }
331
242
 
@@ -334,14 +245,6 @@ export type ChiSquareHeuristic = {
334
245
  include_negatives: boolean;
335
246
  }
336
247
 
337
- export type ClassificationInferenceOptions = {
338
- num_top_classes?: number;
339
- num_top_feature_importance_values?: number;
340
- prediction_field_type?: string;
341
- results_field?: string;
342
- top_classes_results_field?: string;
343
- }
344
-
345
248
  export type CompositeAggregate = MultiBucketAggregateBaseCompositeBucket & {
346
249
  after_key?: CompositeAggregateKey;
347
250
  }
@@ -349,6 +252,10 @@ export type CompositeAggregate = MultiBucketAggregateBaseCompositeBucket & {
349
252
  export type CompositeAggregateKey = Record<string, Common.FieldValue>
350
253
 
351
254
  export type CompositeAggregation = BucketAggregationBase & {
255
+ composite: CompositeAggregationFields;
256
+ }
257
+
258
+ export type CompositeAggregationFields = {
352
259
  after?: CompositeAggregateKey;
353
260
  size?: number;
354
261
  sources?: Record<string, CompositeAggregationSource>[];
@@ -402,9 +309,13 @@ export type CumulativeCardinalityAggregation = PipelineAggregationBase & Record<
402
309
 
403
310
  export type CumulativeSumAggregation = PipelineAggregationBase & Record<string, any>
404
311
 
405
- export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket & Record<string, any>
312
+ export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket
406
313
 
407
314
  export type DateHistogramAggregation = BucketAggregationBase & {
315
+ date_histogram: DateHistogramAggregationFields;
316
+ }
317
+
318
+ export type DateHistogramAggregationFields = {
408
319
  calendar_interval?: CalendarInterval;
409
320
  extended_bounds?: ExtendedBoundsFieldDateMath;
410
321
  field?: Common.Field;
@@ -427,9 +338,13 @@ export type DateHistogramBucket = MultiBucketBase & {
427
338
  key_as_string?: string;
428
339
  }
429
340
 
430
- export type DateRangeAggregate = RangeAggregate & Record<string, any>
341
+ export type DateRangeAggregate = RangeAggregateBase
431
342
 
432
343
  export type DateRangeAggregation = BucketAggregationBase & {
344
+ date_range: DateRangeAggregationFields;
345
+ }
346
+
347
+ export type DateRangeAggregationFields = {
433
348
  field?: Common.Field;
434
349
  format?: string;
435
350
  keyed?: boolean;
@@ -452,6 +367,10 @@ export type DerivativeAggregate = SingleMetricAggregateBase & {
452
367
  export type DerivativeAggregation = PipelineAggregationBase & Record<string, any>
453
368
 
454
369
  export type DiversifiedSamplerAggregation = BucketAggregationBase & {
370
+ diversified_sampler: DiversifiedSamplerAggregationFields;
371
+ }
372
+
373
+ export type DiversifiedSamplerAggregationFields = {
455
374
  execution_hint?: SamplerAggregationExecutionHint;
456
375
  field?: Common.Field;
457
376
  max_docs_per_value?: number;
@@ -475,30 +394,37 @@ export type EwmaMovingAverageAggregation = MovingAverageAggregationBase & {
475
394
  settings: EwmaModelSettings;
476
395
  }
477
396
 
478
- export type ExtendedBoundsdouble = {
479
- max: number;
480
- min: number;
397
+ export type ExtendedBounds<T = any> = {
398
+ max: T;
399
+ min: T;
400
+ }
401
+
402
+ export type ExtendedBoundsDouble = ExtendedBounds<number> & {
403
+ max?: number;
404
+ min?: number;
481
405
  }
482
406
 
483
- export type ExtendedBoundsFieldDateMath = {
484
- max: FieldDateMath;
485
- min: FieldDateMath;
407
+ export type ExtendedBoundsFieldDateMath = ExtendedBounds<FieldDateMath> & {
408
+ max?: FieldDateMath;
409
+ min?: FieldDateMath;
486
410
  }
487
411
 
488
- export type ExtendedStatsAggregate = StatsAggregate & {
489
- std_deviation: undefined | number | string;
412
+ export type ExtendedStatsAggregate = ExtendedStatsAggregateBase & Record<string, any>
413
+
414
+ export type ExtendedStatsAggregateBase = StatsAggregateBase & {
415
+ std_deviation: number | undefined;
490
416
  std_deviation_as_string?: string;
491
417
  std_deviation_bounds?: StandardDeviationBounds;
492
418
  std_deviation_bounds_as_string?: StandardDeviationBoundsAsString;
493
- std_deviation_population: undefined | number | string;
494
- std_deviation_sampling: undefined | number | string;
495
- sum_of_squares: undefined | number | string;
419
+ std_deviation_population: number | undefined;
420
+ std_deviation_sampling: number | undefined;
421
+ sum_of_squares: number | undefined;
496
422
  sum_of_squares_as_string?: string;
497
- variance: undefined | number | string;
423
+ variance: number | undefined;
498
424
  variance_as_string?: string;
499
- variance_population: undefined | number | string;
425
+ variance_population: number | undefined;
500
426
  variance_population_as_string?: string;
501
- variance_sampling: undefined | number | string;
427
+ variance_sampling: number | undefined;
502
428
  variance_sampling_as_string?: string;
503
429
  }
504
430
 
@@ -506,7 +432,7 @@ export type ExtendedStatsAggregation = FormatMetricAggregationBase & {
506
432
  sigma?: number;
507
433
  }
508
434
 
509
- export type ExtendedStatsBucketAggregate = ExtendedStatsAggregate & Record<string, any>
435
+ export type ExtendedStatsBucketAggregate = ExtendedStatsAggregateBase
510
436
 
511
437
  export type ExtendedStatsBucketAggregation = PipelineAggregationBase & {
512
438
  sigma?: number;
@@ -516,9 +442,19 @@ export type FieldDateMath = Common.DateMath | number
516
442
 
517
443
  export type FilterAggregate = SingleBucketAggregateBase & Record<string, any>
518
444
 
519
- export type FiltersAggregate = MultiBucketAggregateBaseFiltersBucket & Record<string, any>
445
+ export type FilterAggregation = BucketAggregationBase & {
446
+ filter: FilterAggregationFields;
447
+ }
448
+
449
+ export type FilterAggregationFields = Common_QueryDsl.QueryContainer
450
+
451
+ export type FiltersAggregate = MultiBucketAggregateBaseFiltersBucket
520
452
 
521
453
  export type FiltersAggregation = BucketAggregationBase & {
454
+ filters: FiltersAggregationFields;
455
+ }
456
+
457
+ export type FiltersAggregationFields = {
522
458
  filters?: BucketsQueryContainer;
523
459
  keyed?: boolean;
524
460
  other_bucket?: boolean;
@@ -555,9 +491,13 @@ export type GeoCentroidAggregation = MetricAggregationBase & {
555
491
  location?: Common.GeoLocation;
556
492
  }
557
493
 
558
- export type GeoDistanceAggregate = RangeAggregate & Record<string, any>
494
+ export type GeoDistanceAggregate = RangeAggregateBase
559
495
 
560
496
  export type GeoDistanceAggregation = BucketAggregationBase & {
497
+ geo_distance: GeoDistanceAggregationFields;
498
+ }
499
+
500
+ export type GeoDistanceAggregationFields = {
561
501
  distance_type?: Common.GeoDistanceType;
562
502
  field?: Common.Field;
563
503
  origin?: Common.GeoLocation;
@@ -565,9 +505,13 @@ export type GeoDistanceAggregation = BucketAggregationBase & {
565
505
  unit?: Common.DistanceUnit;
566
506
  }
567
507
 
568
- export type GeoHashGridAggregate = MultiBucketAggregateBaseGeoHashGridBucket & Record<string, any>
508
+ export type GeoHashGridAggregate = MultiBucketAggregateBaseGeoHashGridBucket
569
509
 
570
510
  export type GeoHashGridAggregation = BucketAggregationBase & {
511
+ geohash_grid: GeoHashGridAggregationFields;
512
+ }
513
+
514
+ export type GeoHashGridAggregationFields = {
571
515
  bounds?: Common.GeoBounds;
572
516
  field?: Common.Field;
573
517
  precision?: Common.GeoHashPrecision;
@@ -579,31 +523,13 @@ export type GeoHashGridBucket = MultiBucketBase & {
579
523
  key: Common.GeoHash;
580
524
  }
581
525
 
582
- export type GeoLineAggregate = AggregateBase & {
583
- geometry: Common.GeoLine;
584
- properties: Record<string, any>;
585
- type: string;
586
- }
526
+ export type GeoTileGridAggregate = MultiBucketAggregateBaseGeoTileGridBucket
587
527
 
588
- export type GeoLineAggregation = {
589
- include_sort?: boolean;
590
- point: GeoLinePoint;
591
- size?: number;
592
- sort: GeoLineSort;
593
- sort_order?: Common.SortOrder;
594
- }
595
-
596
- export type GeoLinePoint = {
597
- field: Common.Field;
598
- }
599
-
600
- export type GeoLineSort = {
601
- field: Common.Field;
528
+ export type GeoTileGridAggregation = BucketAggregationBase & {
529
+ geotile_grid: GeoTileGridAggregationFields;
602
530
  }
603
531
 
604
- export type GeoTileGridAggregate = MultiBucketAggregateBaseGeoTileGridBucket & Record<string, any>
605
-
606
- export type GeoTileGridAggregation = BucketAggregationBase & {
532
+ export type GeoTileGridAggregationFields = {
607
533
  bounds?: Common.GeoBounds;
608
534
  field?: Common.Field;
609
535
  precision?: Common.GeoTilePrecision;
@@ -617,7 +543,11 @@ export type GeoTileGridBucket = MultiBucketBase & {
617
543
 
618
544
  export type GlobalAggregate = SingleBucketAggregateBase & Record<string, any>
619
545
 
620
- export type GlobalAggregation = BucketAggregationBase & Record<string, any>
546
+ export type GlobalAggregation = BucketAggregationBase & {
547
+ global: GlobalAggregationFields;
548
+ }
549
+
550
+ export type GlobalAggregationFields = Record<string, any>
621
551
 
622
552
  export type GoogleNormalizedDistanceHeuristic = {
623
553
  background_is_superset?: boolean;
@@ -627,17 +557,21 @@ export type HdrMethod = {
627
557
  number_of_significant_value_digits?: number;
628
558
  }
629
559
 
630
- export type HdrPercentileRanksAggregate = PercentilesAggregateBase & Record<string, any>
560
+ export type HdrPercentileRanksAggregate = PercentilesAggregateBase
631
561
 
632
- export type HdrPercentilesAggregate = PercentilesAggregateBase & Record<string, any>
562
+ export type HdrPercentilesAggregate = PercentilesAggregateBase
633
563
 
634
- export type HistogramAggregate = MultiBucketAggregateBaseHistogramBucket & Record<string, any>
564
+ export type HistogramAggregate = MultiBucketAggregateBaseHistogramBucket
635
565
 
636
566
  export type HistogramAggregation = BucketAggregationBase & {
637
- extended_bounds?: ExtendedBoundsdouble;
567
+ histogram: HistogramAggregationFields;
568
+ }
569
+
570
+ export type HistogramAggregationFields = {
571
+ extended_bounds?: ExtendedBoundsDouble;
638
572
  field?: Common.Field;
639
573
  format?: string;
640
- hard_bounds?: ExtendedBoundsdouble;
574
+ hard_bounds?: ExtendedBoundsDouble;
641
575
  interval?: number;
642
576
  keyed?: boolean;
643
577
  min_doc_count?: number;
@@ -683,43 +617,13 @@ export type HoltWintersMovingAverageAggregation = MovingAverageAggregationBase &
683
617
 
684
618
  export type HoltWintersType = 'add' | 'mult'
685
619
 
686
- export type InferenceAggregate = AggregateBase & {
687
- feature_importance?: InferenceFeatureImportance[];
688
- top_classes?: InferenceTopClassEntry[];
689
- value?: Common.FieldValue;
690
- warning?: string;
691
- }
620
+ export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket
692
621
 
693
- export type InferenceAggregation = PipelineAggregationBase & {
694
- inference_config?: InferenceConfigContainer;
695
- model_id: Common.Name;
696
- }
697
-
698
- export type InferenceClassImportance = {
699
- class_name: string;
700
- importance: number;
701
- }
702
-
703
- export type InferenceConfigContainer = {
704
- classification?: ClassificationInferenceOptions;
705
- regression?: RegressionInferenceOptions;
706
- }
707
-
708
- export type InferenceFeatureImportance = {
709
- classes?: InferenceClassImportance[];
710
- feature_name: string;
711
- importance?: number;
712
- }
713
-
714
- export type InferenceTopClassEntry = {
715
- class_name: Common.FieldValue;
716
- class_probability: number;
717
- class_score: number;
622
+ export type IpRangeAggregation = BucketAggregationBase & {
623
+ ip_range: IpRangeAggregationFields;
718
624
  }
719
625
 
720
- export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket & Record<string, any>
721
-
722
- export type IpRangeAggregation = BucketAggregationBase & {
626
+ export type IpRangeAggregationFields = {
723
627
  field?: Common.Field;
724
628
  ranges?: IpRangeAggregationRange[];
725
629
  }
@@ -736,7 +640,7 @@ export type IpRangeBucket = MultiBucketBase & {
736
640
  to?: string;
737
641
  }
738
642
 
739
- export type KeyedPercentiles = Record<string, undefined | number | string>
643
+ export type KeyedPercentiles = Record<string, number | string | undefined>
740
644
 
741
645
  export type LinearMovingAverageAggregation = MovingAverageAggregationBase & {
742
646
  model: 'linear';
@@ -753,11 +657,13 @@ export type LongRareTermsBucket = MultiBucketBase & {
753
657
  export type LongTermsAggregate = TermsAggregateBaseLongTermsBucket & Record<string, any>
754
658
 
755
659
  export type LongTermsBucket = TermsBucketBase & {
756
- key: number;
660
+ key: LongTermsBucketKey;
757
661
  key_as_string?: string;
758
662
  }
759
663
 
760
- export type MatrixAggregation = Aggregation & {
664
+ export type LongTermsBucketKey = number | string
665
+
666
+ export type MatrixAggregation = {
761
667
  fields?: Common.Fields;
762
668
  missing?: Record<string, number>;
763
669
  }
@@ -782,27 +688,29 @@ export type MatrixStatsFields = {
782
688
  variance: number;
783
689
  }
784
690
 
785
- export type MaxAggregate = SingleMetricAggregateBase & Record<string, any>
691
+ export type MaxAggregate = SingleMetricAggregateBase
786
692
 
787
- export type MaxAggregation = FormatMetricAggregationBase & Record<string, any>
693
+ export type MaxAggregation = FormatMetricAggregationBase & {
694
+ value_type?: ValueType;
695
+ }
788
696
 
789
697
  export type MaxBucketAggregation = PipelineAggregationBase & Record<string, any>
790
698
 
791
- export type MedianAbsoluteDeviationAggregate = SingleMetricAggregateBase & Record<string, any>
699
+ export type MedianAbsoluteDeviationAggregate = SingleMetricAggregateBase
792
700
 
793
701
  export type MedianAbsoluteDeviationAggregation = FormatMetricAggregationBase & {
794
702
  compression?: number;
795
703
  }
796
704
 
797
705
  export type MetricAggregationBase = {
798
- field?: Common.Field;
799
706
  missing?: Common.FieldValue;
800
- script?: Common.Script;
801
707
  }
802
708
 
803
- export type MinAggregate = SingleMetricAggregateBase & Record<string, any>
709
+ export type MinAggregate = SingleMetricAggregateBase
804
710
 
805
- export type MinAggregation = FormatMetricAggregationBase & Record<string, any>
711
+ export type MinAggregation = FormatMetricAggregationBase & {
712
+ value_type?: ValueType;
713
+ }
806
714
 
807
715
  export type MinBucketAggregation = PipelineAggregationBase & Record<string, any>
808
716
 
@@ -811,6 +719,10 @@ export type MinimumInterval = 'day' | 'hour' | 'minute' | 'month' | 'second' | '
811
719
  export type MissingAggregate = SingleBucketAggregateBase & Record<string, any>
812
720
 
813
721
  export type MissingAggregation = BucketAggregationBase & {
722
+ missing: MissingAggregationFields;
723
+ }
724
+
725
+ export type MissingAggregationFields = {
814
726
  field?: Common.Field;
815
727
  missing?: Common.FieldValue;
816
728
  }
@@ -837,84 +749,65 @@ export type MovingPercentilesAggregation = PipelineAggregationBase & {
837
749
  window?: number;
838
750
  }
839
751
 
840
- export type MultiBucketAggregateBaseAdjacencyMatrixBucket = AggregateBase & {
841
- buckets: BucketsAdjacencyMatrixBucket;
842
- }
843
-
844
- export type MultiBucketAggregateBaseCompositeBucket = AggregateBase & {
845
- buckets: BucketsCompositeBucket;
846
- }
847
-
848
- export type MultiBucketAggregateBaseDateHistogramBucket = AggregateBase & {
849
- buckets: BucketsDateHistogramBucket;
752
+ export type MultiBucketAggregateBase<TBucket = any> = AggregateBase & {
753
+ buckets: Buckets<TBucket> & (Record<string, TBucket> | TBucket[]);
850
754
  }
851
755
 
852
- export type MultiBucketAggregateBaseDoubleTermsBucket = AggregateBase & {
853
- buckets: BucketsDoubleTermsBucket;
756
+ export type MultiBucketAggregateBaseAdjacencyMatrixBucket = MultiBucketAggregateBase<AdjacencyMatrixBucket> & {
757
+ buckets: Buckets<AdjacencyMatrixBucket> & (Record<string, AdjacencyMatrixBucket> | AdjacencyMatrixBucket[]);
854
758
  }
855
759
 
856
- export type MultiBucketAggregateBaseFiltersBucket = AggregateBase & {
857
- buckets: BucketsFiltersBucket;
760
+ export type MultiBucketAggregateBaseCompositeBucket = MultiBucketAggregateBase<CompositeBucket> & {
761
+ buckets: Buckets<CompositeBucket> & (Record<string, CompositeBucket> | CompositeBucket[]);
858
762
  }
859
763
 
860
- export type MultiBucketAggregateBaseGeoHashGridBucket = AggregateBase & {
861
- buckets: BucketsGeoHashGridBucket;
764
+ export type MultiBucketAggregateBaseDateHistogramBucket = MultiBucketAggregateBase<DateHistogramBucket> & {
765
+ buckets: Buckets<DateHistogramBucket> & (Record<string, DateHistogramBucket> | DateHistogramBucket[]);
862
766
  }
863
767
 
864
- export type MultiBucketAggregateBaseGeoTileGridBucket = AggregateBase & {
865
- buckets: BucketsGeoTileGridBucket;
768
+ export type MultiBucketAggregateBaseFiltersBucket = MultiBucketAggregateBase<FiltersBucket> & {
769
+ buckets: Buckets<FiltersBucket> & (Record<string, FiltersBucket> | FiltersBucket[]);
866
770
  }
867
771
 
868
- export type MultiBucketAggregateBaseHistogramBucket = AggregateBase & {
869
- buckets: BucketsHistogramBucket;
772
+ export type MultiBucketAggregateBaseGeoHashGridBucket = MultiBucketAggregateBase<GeoHashGridBucket> & {
773
+ buckets: Buckets<GeoHashGridBucket> & (Record<string, GeoHashGridBucket> | GeoHashGridBucket[]);
870
774
  }
871
775
 
872
- export type MultiBucketAggregateBaseIpRangeBucket = AggregateBase & {
873
- buckets: BucketsIpRangeBucket;
776
+ export type MultiBucketAggregateBaseGeoTileGridBucket = MultiBucketAggregateBase<GeoTileGridBucket> & {
777
+ buckets: Buckets<GeoTileGridBucket> & (Record<string, GeoTileGridBucket> | GeoTileGridBucket[]);
874
778
  }
875
779
 
876
- export type MultiBucketAggregateBaseLongRareTermsBucket = AggregateBase & {
877
- buckets: BucketsLongRareTermsBucket;
780
+ export type MultiBucketAggregateBaseHistogramBucket = MultiBucketAggregateBase<HistogramBucket> & {
781
+ buckets: Buckets<HistogramBucket> & (Record<string, HistogramBucket> | HistogramBucket[]);
878
782
  }
879
783
 
880
- export type MultiBucketAggregateBaseLongTermsBucket = AggregateBase & {
881
- buckets: BucketsLongTermsBucket;
784
+ export type MultiBucketAggregateBaseIpRangeBucket = MultiBucketAggregateBase<IpRangeBucket> & {
785
+ buckets: Buckets<IpRangeBucket> & (Record<string, IpRangeBucket> | IpRangeBucket[]);
882
786
  }
883
787
 
884
- export type MultiBucketAggregateBaseMultiTermsBucket = AggregateBase & {
885
- buckets: BucketsMultiTermsBucket;
788
+ export type MultiBucketAggregateBaseLongRareTermsBucket = MultiBucketAggregateBase<LongRareTermsBucket> & {
789
+ buckets?: Buckets<LongRareTermsBucket> & (Record<string, LongRareTermsBucket> | LongRareTermsBucket[]);
886
790
  }
887
791
 
888
- export type MultiBucketAggregateBaseRangeBucket = AggregateBase & {
889
- buckets: BucketsRangeBucket;
792
+ export type MultiBucketAggregateBaseRangeBucket = MultiBucketAggregateBase<RangeBucket> & {
793
+ buckets: Buckets<RangeBucket> & (Record<string, RangeBucket> | RangeBucket[]);
890
794
  }
891
795
 
892
- export type MultiBucketAggregateBaseSignificantLongTermsBucket = AggregateBase & {
893
- buckets: BucketsSignificantLongTermsBucket;
796
+ export type MultiBucketAggregateBaseStringRareTermsBucket = MultiBucketAggregateBase<StringRareTermsBucket> & {
797
+ buckets?: Buckets<StringRareTermsBucket> & (Record<string, StringRareTermsBucket> | StringRareTermsBucket[]);
894
798
  }
895
799
 
896
- export type MultiBucketAggregateBaseSignificantStringTermsBucket = AggregateBase & {
897
- buckets: BucketsSignificantStringTermsBucket;
800
+ export type MultiBucketAggregateBaseVariableWidthHistogramBucket = MultiBucketAggregateBase<VariableWidthHistogramBucket> & {
801
+ buckets: Buckets<VariableWidthHistogramBucket> & (Record<string, VariableWidthHistogramBucket> | VariableWidthHistogramBucket[]);
898
802
  }
899
803
 
900
- export type MultiBucketAggregateBaseStringRareTermsBucket = AggregateBase & {
901
- buckets: BucketsStringRareTermsBucket;
902
- }
903
-
904
- export type MultiBucketAggregateBaseStringTermsBucket = AggregateBase & {
905
- buckets: BucketsStringTermsBucket;
906
- }
907
-
908
- export type MultiBucketAggregateBaseVariableWidthHistogramBucket = AggregateBase & {
909
- buckets: BucketsVariableWidthHistogramBucket;
910
- }
911
-
912
- export type MultiBucketAggregateBaseVoid = AggregateBase & {
913
- buckets: BucketsVoid;
804
+ export type MultiBucketAggregateBaseVoid = MultiBucketAggregateBase<Common.Void> & {
805
+ buckets?: Buckets<Common.Void> & (Record<string, Common.Void> | Common.Void[]);
914
806
  }
915
807
 
916
808
  export type MultiBucketBase = {
917
809
  doc_count: number;
810
+ [key: string]: any | Aggregate;
918
811
  }
919
812
 
920
813
  export type MultiTermLookup = {
@@ -922,9 +815,13 @@ export type MultiTermLookup = {
922
815
  missing?: Common.FieldValue;
923
816
  }
924
817
 
925
- export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket & Record<string, any>
818
+ export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket
926
819
 
927
820
  export type MultiTermsAggregation = BucketAggregationBase & {
821
+ multi_terms: MultiTermsAggregationFields;
822
+ }
823
+
824
+ export type MultiTermsAggregationFields = {
928
825
  collect_mode?: TermsAggregationCollectMode;
929
826
  min_doc_count?: number;
930
827
  order?: HistogramOrder;
@@ -946,11 +843,13 @@ export type MutualInformationHeuristic = {
946
843
  include_negatives?: boolean;
947
844
  }
948
845
 
949
- export type NestedAggregate = AggregateBase & {
950
- doc_count?: number;
951
- }
846
+ export type NestedAggregate = SingleBucketAggregateBase & Record<string, any>
952
847
 
953
848
  export type NestedAggregation = BucketAggregationBase & {
849
+ nested: NestedAggregationFields;
850
+ }
851
+
852
+ export type NestedAggregationFields = {
954
853
  path?: Common.Field;
955
854
  }
956
855
 
@@ -963,6 +862,10 @@ export type NormalizeMethod = 'mean' | 'percent_of_sum' | 'rescale_0_1' | 'resca
963
862
  export type ParentAggregate = SingleBucketAggregateBase & Record<string, any>
964
863
 
965
864
  export type ParentAggregation = BucketAggregationBase & {
865
+ parent: ParentAggregationFields;
866
+ }
867
+
868
+ export type ParentAggregationFields = {
966
869
  type?: Common.RelationName;
967
870
  }
968
871
 
@@ -988,7 +891,7 @@ export type PercentilesAggregation = FormatMetricAggregationBase & {
988
891
  tdigest?: TDigest;
989
892
  }
990
893
 
991
- export type PercentilesBucketAggregate = PercentilesAggregateBase & Record<string, any>
894
+ export type PercentilesBucketAggregate = PercentilesAggregateBase
992
895
 
993
896
  export type PercentilesBucketAggregation = PipelineAggregationBase & {
994
897
  percents?: number[];
@@ -999,9 +902,15 @@ export type PipelineAggregationBase = BucketPathAggregation & {
999
902
  gap_policy?: GapPolicy;
1000
903
  }
1001
904
 
1002
- export type RangeAggregate = MultiBucketAggregateBaseRangeBucket & Record<string, any>
905
+ export type RangeAggregate = RangeAggregateBase
906
+
907
+ export type RangeAggregateBase = MultiBucketAggregateBaseRangeBucket & Record<string, any>
1003
908
 
1004
909
  export type RangeAggregation = BucketAggregationBase & {
910
+ range: RangeAggregationFields;
911
+ }
912
+
913
+ export type RangeAggregationFields = {
1005
914
  field?: Common.Field;
1006
915
  format?: string;
1007
916
  keyed?: boolean;
@@ -1019,6 +928,10 @@ export type RangeBucket = MultiBucketBase & {
1019
928
  }
1020
929
 
1021
930
  export type RareTermsAggregation = BucketAggregationBase & {
931
+ rare_terms: RareTermsAggregationFields;
932
+ }
933
+
934
+ export type RareTermsAggregationFields = {
1022
935
  exclude?: TermsExclude;
1023
936
  field?: Common.Field;
1024
937
  include?: TermsInclude;
@@ -1040,31 +953,34 @@ export type RateAggregation = FormatMetricAggregationBase & {
1040
953
 
1041
954
  export type RateMode = 'sum' | 'value_count'
1042
955
 
1043
- export type RegressionInferenceOptions = {
1044
- num_top_feature_importance_values?: number;
1045
- results_field?: Common.Field;
1046
- }
1047
-
1048
956
  export type ReverseNestedAggregate = SingleBucketAggregateBase & Record<string, any>
1049
957
 
1050
958
  export type ReverseNestedAggregation = BucketAggregationBase & {
959
+ reverse_nested: ReverseNestedAggregationFields;
960
+ }
961
+
962
+ export type ReverseNestedAggregationFields = {
1051
963
  path?: Common.Field;
1052
964
  }
1053
965
 
1054
966
  export type SamplerAggregate = SingleBucketAggregateBase & Record<string, any>
1055
967
 
1056
968
  export type SamplerAggregation = BucketAggregationBase & {
1057
- shard_size?: number;
969
+ sampler: SamplerAggregationFields;
1058
970
  }
1059
971
 
1060
972
  export type SamplerAggregationExecutionHint = 'bytes_hash' | 'global_ordinals' | 'map'
1061
973
 
974
+ export type SamplerAggregationFields = {
975
+ shard_size?: number;
976
+ }
977
+
1062
978
  export type ScriptedHeuristic = {
1063
979
  script: Common.Script;
1064
980
  }
1065
981
 
1066
982
  export type ScriptedMetricAggregate = AggregateBase & {
1067
- value: Record<string, any>;
983
+ value: any;
1068
984
  }
1069
985
 
1070
986
  export type ScriptedMetricAggregation = MetricAggregationBase & {
@@ -1079,35 +995,41 @@ export type SerialDifferencingAggregation = PipelineAggregationBase & {
1079
995
  lag?: number;
1080
996
  }
1081
997
 
1082
- export type SignificantLongTermsAggregate = SignificantTermsAggregateBaseSignificantLongTermsBucket & Record<string, any>
998
+ export type SignificantLongTermsAggregate = SignificantTermsAggregateBaseSignificantLongTermsBucket
1083
999
 
1084
1000
  export type SignificantLongTermsBucket = SignificantTermsBucketBase & {
1085
1001
  key: number;
1086
1002
  key_as_string?: string;
1087
1003
  }
1088
1004
 
1089
- export type SignificantStringTermsAggregate = SignificantTermsAggregateBaseSignificantStringTermsBucket & Record<string, any>
1005
+ export type SignificantStringTermsAggregate = SignificantTermsAggregateBaseSignificantStringTermsBucket
1090
1006
 
1091
1007
  export type SignificantStringTermsBucket = SignificantTermsBucketBase & {
1092
1008
  key: string;
1093
1009
  }
1094
1010
 
1095
- export type SignificantTermsAggregateBaseSignificantLongTermsBucket = MultiBucketAggregateBaseSignificantLongTermsBucket & {
1011
+ export type SignificantTermsAggregateBase = MultiBucketAggregateBase<any> & {
1096
1012
  bg_count?: number;
1097
1013
  doc_count?: number;
1098
1014
  }
1099
1015
 
1100
- export type SignificantTermsAggregateBaseSignificantStringTermsBucket = MultiBucketAggregateBaseSignificantStringTermsBucket & {
1101
- bg_count?: number;
1102
- doc_count?: number;
1016
+ export type SignificantTermsAggregateBaseSignificantLongTermsBucket = SignificantTermsAggregateBase & {
1017
+ buckets?: Buckets<SignificantLongTermsBucket> & (Record<string, SignificantLongTermsBucket> | SignificantLongTermsBucket[]);
1103
1018
  }
1104
1019
 
1105
- export type SignificantTermsAggregateBaseVoid = MultiBucketAggregateBaseVoid & {
1106
- bg_count?: number;
1107
- doc_count?: number;
1020
+ export type SignificantTermsAggregateBaseSignificantStringTermsBucket = SignificantTermsAggregateBase & {
1021
+ buckets?: Buckets<SignificantStringTermsBucket> & (Record<string, SignificantStringTermsBucket> | SignificantStringTermsBucket[]);
1022
+ }
1023
+
1024
+ export type SignificantTermsAggregateBaseVoid = SignificantTermsAggregateBase & {
1025
+ buckets?: Buckets<Common.Void> & (Record<string, Common.Void> | Common.Void[]);
1108
1026
  }
1109
1027
 
1110
1028
  export type SignificantTermsAggregation = BucketAggregationBase & {
1029
+ significant_terms: SignificantTermsAggregationFields;
1030
+ }
1031
+
1032
+ export type SignificantTermsAggregationFields = {
1111
1033
  background_filter?: Common_QueryDsl.QueryContainer;
1112
1034
  chi_square?: ChiSquareHeuristic;
1113
1035
  exclude?: TermsExclude;
@@ -1131,6 +1053,10 @@ export type SignificantTermsBucketBase = MultiBucketBase & {
1131
1053
  }
1132
1054
 
1133
1055
  export type SignificantTextAggregation = BucketAggregationBase & {
1056
+ significant_text: SignificantTextAggregationFields;
1057
+ }
1058
+
1059
+ export type SignificantTextAggregationFields = {
1134
1060
  background_filter?: Common_QueryDsl.QueryContainer;
1135
1061
  chi_square?: ChiSquareHeuristic;
1136
1062
  exclude?: TermsExclude;
@@ -1155,25 +1081,24 @@ export type SimpleMovingAverageAggregation = MovingAverageAggregationBase & {
1155
1081
  settings: Common.EmptyObject;
1156
1082
  }
1157
1083
 
1158
- export type SimpleValueAggregate = SingleMetricAggregateBase & Record<string, any>
1084
+ export type SimpleValueAggregate = SingleMetricAggregateBase
1159
1085
 
1160
1086
  export type SingleBucketAggregateBase = AggregateBase & {
1161
1087
  doc_count: number;
1162
- [key: string]: any | Aggregate;
1163
1088
  }
1164
1089
 
1165
1090
  export type SingleMetricAggregateBase = AggregateBase & {
1166
- value: undefined | number | string;
1091
+ value: number | undefined;
1167
1092
  value_as_string?: string;
1168
1093
  }
1169
1094
 
1170
1095
  export type StandardDeviationBounds = {
1171
- lower: undefined | number | string;
1172
- lower_population: undefined | number | string;
1173
- lower_sampling: undefined | number | string;
1174
- upper: undefined | number | string;
1175
- upper_population: undefined | number | string;
1176
- upper_sampling: undefined | number | string;
1096
+ lower: number | undefined;
1097
+ lower_population: number | undefined;
1098
+ lower_sampling: number | undefined;
1099
+ upper: number | undefined;
1100
+ upper_population: number | undefined;
1101
+ upper_sampling: number | undefined;
1177
1102
  }
1178
1103
 
1179
1104
  export type StandardDeviationBoundsAsString = {
@@ -1185,13 +1110,15 @@ export type StandardDeviationBoundsAsString = {
1185
1110
  upper_sampling: string;
1186
1111
  }
1187
1112
 
1188
- export type StatsAggregate = AggregateBase & {
1189
- avg: undefined | number | string;
1113
+ export type StatsAggregate = StatsAggregateBase & Record<string, any>
1114
+
1115
+ export type StatsAggregateBase = AggregateBase & {
1116
+ avg: number | undefined;
1190
1117
  avg_as_string?: string;
1191
1118
  count: number;
1192
- max: undefined | number | string;
1119
+ max: number | undefined;
1193
1120
  max_as_string?: string;
1194
- min: undefined | number | string;
1121
+ min: number | undefined;
1195
1122
  min_as_string?: string;
1196
1123
  sum: number;
1197
1124
  sum_as_string?: string;
@@ -1199,7 +1126,7 @@ export type StatsAggregate = AggregateBase & {
1199
1126
 
1200
1127
  export type StatsAggregation = FormatMetricAggregationBase & Record<string, any>
1201
1128
 
1202
- export type StatsBucketAggregate = StatsAggregate & Record<string, any>
1129
+ export type StatsBucketAggregate = StatsAggregateBase
1203
1130
 
1204
1131
  export type StatsBucketAggregation = PipelineAggregationBase & Record<string, any>
1205
1132
 
@@ -1209,29 +1136,13 @@ export type StringRareTermsBucket = MultiBucketBase & {
1209
1136
  key: string;
1210
1137
  }
1211
1138
 
1212
- export type StringStatsAggregate = AggregateBase & {
1213
- avg_length: undefined | number | string;
1214
- avg_length_as_string?: string;
1215
- count: number;
1216
- distribution?: undefined | Record<string, number> | string;
1217
- entropy: undefined | number | string;
1218
- max_length: undefined | number | string;
1219
- max_length_as_string?: string;
1220
- min_length: undefined | number | string;
1221
- min_length_as_string?: string;
1222
- }
1223
-
1224
- export type StringStatsAggregation = MetricAggregationBase & {
1225
- show_distribution?: boolean;
1226
- }
1227
-
1228
1139
  export type StringTermsAggregate = TermsAggregateBaseStringTermsBucket & Record<string, any>
1229
1140
 
1230
1141
  export type StringTermsBucket = TermsBucketBase & {
1231
- key: Common.FieldValue;
1142
+ key: string;
1232
1143
  }
1233
1144
 
1234
- export type SumAggregate = SingleMetricAggregateBase & Record<string, any>
1145
+ export type SumAggregate = SingleMetricAggregateBase
1235
1146
 
1236
1147
  export type SumAggregation = FormatMetricAggregationBase & Record<string, any>
1237
1148
 
@@ -1241,60 +1152,65 @@ export type TDigest = {
1241
1152
  compression?: number;
1242
1153
  }
1243
1154
 
1244
- export type TDigestPercentileRanksAggregate = PercentilesAggregateBase & Record<string, any>
1155
+ export type TDigestPercentileRanksAggregate = PercentilesAggregateBase
1245
1156
 
1246
- export type TDigestPercentilesAggregate = PercentilesAggregateBase & Record<string, any>
1157
+ export type TDigestPercentilesAggregate = PercentilesAggregateBase
1247
1158
 
1248
- export type TermsAggregateBaseDoubleTermsBucket = MultiBucketAggregateBaseDoubleTermsBucket & {
1159
+ export type TermsAggregateBase = MultiBucketAggregateBase<any> & {
1249
1160
  doc_count_error_upper_bound?: number;
1250
1161
  sum_other_doc_count?: number;
1251
1162
  }
1252
1163
 
1253
- export type TermsAggregateBaseLongTermsBucket = MultiBucketAggregateBaseLongTermsBucket & {
1254
- doc_count_error_upper_bound?: number;
1255
- sum_other_doc_count?: number;
1164
+ export type TermsAggregateBaseDoubleTermsBucket = TermsAggregateBase & {
1165
+ buckets: DoubleTermsBucket[];
1256
1166
  }
1257
1167
 
1258
- export type TermsAggregateBaseMultiTermsBucket = MultiBucketAggregateBaseMultiTermsBucket & {
1259
- doc_count_error_upper_bound?: number;
1260
- sum_other_doc_count?: number;
1168
+ export type TermsAggregateBaseLongTermsBucket = TermsAggregateBase & {
1169
+ buckets: LongTermsBucket[];
1261
1170
  }
1262
1171
 
1263
- export type TermsAggregateBaseStringTermsBucket = MultiBucketAggregateBaseStringTermsBucket & {
1264
- doc_count_error_upper_bound?: number;
1265
- sum_other_doc_count?: number;
1172
+ export type TermsAggregateBaseMultiTermsBucket = TermsAggregateBase & {
1173
+ buckets?: Buckets<MultiTermsBucket> & (Record<string, MultiTermsBucket> | MultiTermsBucket[]);
1266
1174
  }
1267
1175
 
1268
- export type TermsAggregateBaseVoid = MultiBucketAggregateBaseVoid & {
1269
- doc_count_error_upper_bound?: number;
1270
- sum_other_doc_count?: number;
1176
+ export type TermsAggregateBaseStringTermsBucket = TermsAggregateBase & {
1177
+ buckets: StringTermsBucket[];
1178
+ }
1179
+
1180
+ export type TermsAggregateBaseUnsignedLongTermsBucket = TermsAggregateBase & {
1181
+ buckets: UnsignedLongTermsBucket[];
1182
+ }
1183
+
1184
+ export type TermsAggregateBaseVoid = TermsAggregateBase & {
1185
+ buckets: Common.Void[];
1271
1186
  }
1272
1187
 
1273
1188
  export type TermsAggregation = BucketAggregationBase & {
1189
+ terms: TermsAggregationFields;
1190
+ }
1191
+
1192
+ export type TermsAggregationCollectMode = 'breadth_first' | 'depth_first'
1193
+
1194
+ export type TermsAggregationExecutionHint = 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality' | 'map'
1195
+
1196
+ export type TermsAggregationFields = {
1274
1197
  collect_mode?: TermsAggregationCollectMode;
1275
1198
  exclude?: TermsExclude;
1276
1199
  execution_hint?: TermsAggregationExecutionHint;
1277
- field?: Common.Field;
1278
1200
  format?: string;
1279
1201
  include?: TermsInclude;
1280
1202
  min_doc_count?: number;
1281
1203
  missing?: Common.FieldValue;
1282
- missing_bucket?: boolean;
1283
- missing_order?: MissingOrder;
1284
1204
  order?: AggregateOrder;
1285
- script?: Common.Script;
1205
+ shard_min_doc_count?: number;
1286
1206
  shard_size?: number;
1287
1207
  show_term_doc_count_error?: boolean;
1288
1208
  size?: number;
1289
- value_type?: string;
1209
+ value_type?: ValueType;
1290
1210
  }
1291
1211
 
1292
- export type TermsAggregationCollectMode = 'breadth_first' | 'depth_first'
1293
-
1294
- export type TermsAggregationExecutionHint = 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality' | 'map'
1295
-
1296
1212
  export type TermsBucketBase = MultiBucketBase & {
1297
- doc_count_error?: number;
1213
+ doc_count_error_upper_bound?: number;
1298
1214
  }
1299
1215
 
1300
1216
  export type TermsExclude = string | string[]
@@ -1313,7 +1229,7 @@ export type TestPopulation = {
1313
1229
  }
1314
1230
 
1315
1231
  export type TopHitsAggregate = AggregateBase & {
1316
- hits: Core_Search.HitsMetadata;
1232
+ hits: Core_Search.HitsMetadataJsonValue;
1317
1233
  }
1318
1234
 
1319
1235
  export type TopHitsAggregation = MetricAggregationBase & {
@@ -1331,31 +1247,12 @@ export type TopHitsAggregation = MetricAggregationBase & {
1331
1247
  version?: boolean;
1332
1248
  }
1333
1249
 
1334
- export type TopMetrics = {
1335
- metrics: Record<string, Common.FieldValue>;
1336
- sort: Common.FieldValue[];
1337
- }
1338
-
1339
- export type TopMetricsAggregate = AggregateBase & {
1340
- top: TopMetrics[];
1341
- }
1342
-
1343
- export type TopMetricsAggregation = MetricAggregationBase & {
1344
- metrics?: TopMetricsValue | TopMetricsValue[];
1345
- size?: number;
1346
- sort?: Common.Sort;
1347
- }
1348
-
1349
- export type TopMetricsValue = {
1350
- field: Common.Field;
1351
- }
1352
-
1353
1250
  export type TTestAggregate = AggregateBase & {
1354
- value: undefined | number | string;
1251
+ value: number | undefined;
1355
1252
  value_as_string?: string;
1356
1253
  }
1357
1254
 
1358
- export type TTestAggregation = Aggregation & {
1255
+ export type TTestAggregation = {
1359
1256
  a?: TestPopulation;
1360
1257
  b?: TestPopulation;
1361
1258
  type?: TTestType;
@@ -1365,19 +1262,24 @@ export type TTestType = 'heteroscedastic' | 'homoscedastic' | 'paired'
1365
1262
 
1366
1263
  export type UnmappedRareTermsAggregate = MultiBucketAggregateBaseVoid & Record<string, any>
1367
1264
 
1368
- export type UnmappedSamplerAggregate = SingleBucketAggregateBase & Record<string, any>
1369
-
1370
- export type UnmappedSignificantTermsAggregate = SignificantTermsAggregateBaseVoid & Record<string, any>
1265
+ export type UnmappedSignificantTermsAggregate = SignificantTermsAggregateBaseVoid
1371
1266
 
1372
1267
  export type UnmappedTermsAggregate = TermsAggregateBaseVoid & Record<string, any>
1373
1268
 
1374
- export type ValueCountAggregate = SingleMetricAggregateBase & Record<string, any>
1269
+ export type UnsignedLongTermsAggregate = TermsAggregateBaseUnsignedLongTermsBucket & Record<string, any>
1270
+
1271
+ export type UnsignedLongTermsBucket = TermsBucketBase & {
1272
+ key: number;
1273
+ key_as_string?: string;
1274
+ }
1275
+
1276
+ export type ValueCountAggregate = SingleMetricAggregateBase
1375
1277
 
1376
1278
  export type ValueCountAggregation = FormattableMetricAggregation & Record<string, any>
1377
1279
 
1378
- export type ValueType = 'boolean' | 'date' | 'date_nanos' | 'double' | 'geo_point' | 'ip' | 'long' | 'number' | 'numeric' | 'string'
1280
+ export type ValueType = 'boolean' | 'byte' | 'date' | 'double' | 'float' | 'integer' | 'ip' | 'long' | 'number' | 'numeric' | 'short' | 'string' | 'unsigned_long'
1379
1281
 
1380
- export type VariableWidthHistogramAggregate = MultiBucketAggregateBaseVariableWidthHistogramBucket & Record<string, any>
1282
+ export type VariableWidthHistogramAggregate = MultiBucketAggregateBaseVariableWidthHistogramBucket
1381
1283
 
1382
1284
  export type VariableWidthHistogramAggregation = {
1383
1285
  buckets?: number;
@@ -1395,7 +1297,7 @@ export type VariableWidthHistogramBucket = MultiBucketBase & {
1395
1297
  min_as_string?: string;
1396
1298
  }
1397
1299
 
1398
- export type WeightedAverageAggregation = Aggregation & {
1300
+ export type WeightedAverageAggregation = {
1399
1301
  format?: string;
1400
1302
  value?: WeightedAverageValue;
1401
1303
  value_type?: ValueType;
@@ -1408,5 +1310,5 @@ export type WeightedAverageValue = {
1408
1310
  script?: Common.Script;
1409
1311
  }
1410
1312
 
1411
- export type WeightedAvgAggregate = SingleMetricAggregateBase & Record<string, any>
1313
+ export type WeightedAvgAggregate = SingleMetricAggregateBase
1412
1314