@elastic/elasticsearch 8.13.1 → 8.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/catalog-info.yaml +3 -6
  2. package/lib/api/api/async_search.d.ts +4 -4
  3. package/lib/api/api/async_search.js +28 -4
  4. package/lib/api/api/async_search.js.map +1 -1
  5. package/lib/api/api/autoscaling.d.ts +4 -4
  6. package/lib/api/api/autoscaling.js +25 -4
  7. package/lib/api/api/autoscaling.js.map +1 -1
  8. package/lib/api/api/bulk.d.ts +1 -1
  9. package/lib/api/api/bulk.js +7 -1
  10. package/lib/api/api/bulk.js.map +1 -1
  11. package/lib/api/api/cat.d.ts +26 -26
  12. package/lib/api/api/cat.js +155 -26
  13. package/lib/api/api/cat.js.map +1 -1
  14. package/lib/api/api/ccr.d.ts +13 -13
  15. package/lib/api/api/ccr.js +88 -13
  16. package/lib/api/api/ccr.js.map +1 -1
  17. package/lib/api/api/clear_scroll.d.ts +1 -1
  18. package/lib/api/api/clear_scroll.js +7 -1
  19. package/lib/api/api/clear_scroll.js.map +1 -1
  20. package/lib/api/api/close_point_in_time.d.ts +1 -1
  21. package/lib/api/api/close_point_in_time.js +4 -1
  22. package/lib/api/api/close_point_in_time.js.map +1 -1
  23. package/lib/api/api/cluster.d.ts +16 -16
  24. package/lib/api/api/cluster.js +90 -17
  25. package/lib/api/api/cluster.js.map +1 -1
  26. package/lib/api/api/connector.d.ts +231 -0
  27. package/lib/api/api/connector.js +980 -0
  28. package/lib/api/api/connector.js.map +1 -0
  29. package/lib/api/api/count.d.ts +1 -1
  30. package/lib/api/api/count.js +7 -1
  31. package/lib/api/api/count.js.map +1 -1
  32. package/lib/api/api/create.d.ts +1 -1
  33. package/lib/api/api/create.js +8 -1
  34. package/lib/api/api/create.js.map +1 -1
  35. package/lib/api/api/dangling_indices.d.ts +3 -3
  36. package/lib/api/api/dangling_indices.js +18 -3
  37. package/lib/api/api/dangling_indices.js.map +1 -1
  38. package/lib/api/api/delete.d.ts +1 -1
  39. package/lib/api/api/delete.js +8 -1
  40. package/lib/api/api/delete.js.map +1 -1
  41. package/lib/api/api/delete_by_query.d.ts +1 -1
  42. package/lib/api/api/delete_by_query.js +7 -1
  43. package/lib/api/api/delete_by_query.js.map +1 -1
  44. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  45. package/lib/api/api/delete_by_query_rethrottle.js +7 -1
  46. package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
  47. package/lib/api/api/delete_script.d.ts +1 -1
  48. package/lib/api/api/delete_script.js +7 -1
  49. package/lib/api/api/delete_script.js.map +1 -1
  50. package/lib/api/api/enrich.d.ts +5 -5
  51. package/lib/api/api/enrich.js +32 -5
  52. package/lib/api/api/enrich.js.map +1 -1
  53. package/lib/api/api/eql.d.ts +4 -4
  54. package/lib/api/api/eql.js +28 -4
  55. package/lib/api/api/eql.js.map +1 -1
  56. package/lib/api/api/esql.d.ts +15 -1
  57. package/lib/api/api/esql.js +47 -1
  58. package/lib/api/api/esql.js.map +1 -1
  59. package/lib/api/api/exists.d.ts +1 -1
  60. package/lib/api/api/exists.js +8 -1
  61. package/lib/api/api/exists.js.map +1 -1
  62. package/lib/api/api/exists_source.d.ts +1 -1
  63. package/lib/api/api/exists_source.js +8 -1
  64. package/lib/api/api/exists_source.js.map +1 -1
  65. package/lib/api/api/explain.d.ts +1 -1
  66. package/lib/api/api/explain.js +8 -1
  67. package/lib/api/api/explain.js.map +1 -1
  68. package/lib/api/api/features.d.ts +2 -2
  69. package/lib/api/api/features.js +8 -2
  70. package/lib/api/api/features.js.map +1 -1
  71. package/lib/api/api/field_caps.d.ts +1 -1
  72. package/lib/api/api/field_caps.js +7 -1
  73. package/lib/api/api/field_caps.js.map +1 -1
  74. package/lib/api/api/fleet.d.ts +1 -1
  75. package/lib/api/api/fleet.js +39 -6
  76. package/lib/api/api/fleet.js.map +1 -1
  77. package/lib/api/api/get.d.ts +1 -1
  78. package/lib/api/api/get.js +8 -1
  79. package/lib/api/api/get.js.map +1 -1
  80. package/lib/api/api/get_script.d.ts +1 -1
  81. package/lib/api/api/get_script.js +7 -1
  82. package/lib/api/api/get_script.js.map +1 -1
  83. package/lib/api/api/get_script_context.d.ts +1 -1
  84. package/lib/api/api/get_script_context.js +4 -1
  85. package/lib/api/api/get_script_context.js.map +1 -1
  86. package/lib/api/api/get_script_languages.d.ts +1 -1
  87. package/lib/api/api/get_script_languages.js +4 -1
  88. package/lib/api/api/get_script_languages.js.map +1 -1
  89. package/lib/api/api/get_source.d.ts +1 -1
  90. package/lib/api/api/get_source.js +8 -1
  91. package/lib/api/api/get_source.js.map +1 -1
  92. package/lib/api/api/graph.d.ts +1 -1
  93. package/lib/api/api/graph.js +7 -1
  94. package/lib/api/api/graph.js.map +1 -1
  95. package/lib/api/api/health_report.d.ts +1 -1
  96. package/lib/api/api/health_report.js +7 -1
  97. package/lib/api/api/health_report.js.map +1 -1
  98. package/lib/api/api/ilm.d.ts +11 -11
  99. package/lib/api/api/ilm.js +65 -11
  100. package/lib/api/api/ilm.js.map +1 -1
  101. package/lib/api/api/index.d.ts +1 -1
  102. package/lib/api/api/index.js +8 -1
  103. package/lib/api/api/index.js.map +1 -1
  104. package/lib/api/api/indices.d.ts +62 -62
  105. package/lib/api/api/indices.js +435 -80
  106. package/lib/api/api/indices.js.map +1 -1
  107. package/lib/api/api/inference.d.ts +4 -4
  108. package/lib/api/api/inference.js +38 -6
  109. package/lib/api/api/inference.js.map +1 -1
  110. package/lib/api/api/info.d.ts +1 -1
  111. package/lib/api/api/info.js +4 -1
  112. package/lib/api/api/info.js.map +1 -1
  113. package/lib/api/api/ingest.d.ts +6 -6
  114. package/lib/api/api/ingest.js +36 -6
  115. package/lib/api/api/ingest.js.map +1 -1
  116. package/lib/api/api/knn_search.d.ts +1 -1
  117. package/lib/api/api/knn_search.js +7 -1
  118. package/lib/api/api/knn_search.js.map +1 -1
  119. package/lib/api/api/license.d.ts +7 -7
  120. package/lib/api/api/license.js +28 -7
  121. package/lib/api/api/license.js.map +1 -1
  122. package/lib/api/api/logstash.d.ts +3 -3
  123. package/lib/api/api/logstash.js +21 -3
  124. package/lib/api/api/logstash.js.map +1 -1
  125. package/lib/api/api/mget.d.ts +1 -1
  126. package/lib/api/api/mget.js +7 -1
  127. package/lib/api/api/mget.js.map +1 -1
  128. package/lib/api/api/migration.d.ts +3 -3
  129. package/lib/api/api/migration.js +15 -3
  130. package/lib/api/api/migration.js.map +1 -1
  131. package/lib/api/api/ml.d.ts +76 -76
  132. package/lib/api/api/ml.js +525 -76
  133. package/lib/api/api/ml.js.map +1 -1
  134. package/lib/api/api/monitoring.d.ts +1 -1
  135. package/lib/api/api/monitoring.js +7 -1
  136. package/lib/api/api/monitoring.js.map +1 -1
  137. package/lib/api/api/msearch.d.ts +1 -1
  138. package/lib/api/api/msearch.js +7 -1
  139. package/lib/api/api/msearch.js.map +1 -1
  140. package/lib/api/api/msearch_template.d.ts +1 -1
  141. package/lib/api/api/msearch_template.js +7 -1
  142. package/lib/api/api/msearch_template.js.map +1 -1
  143. package/lib/api/api/mtermvectors.d.ts +1 -1
  144. package/lib/api/api/mtermvectors.js +7 -1
  145. package/lib/api/api/mtermvectors.js.map +1 -1
  146. package/lib/api/api/nodes.d.ts +7 -7
  147. package/lib/api/api/nodes.js +54 -7
  148. package/lib/api/api/nodes.js.map +1 -1
  149. package/lib/api/api/open_point_in_time.d.ts +1 -1
  150. package/lib/api/api/open_point_in_time.js +7 -1
  151. package/lib/api/api/open_point_in_time.js.map +1 -1
  152. package/lib/api/api/ping.d.ts +1 -1
  153. package/lib/api/api/ping.js +4 -1
  154. package/lib/api/api/ping.js.map +1 -1
  155. package/lib/api/api/profiling.d.ts +39 -0
  156. package/lib/api/api/profiling.js +113 -0
  157. package/lib/api/api/profiling.js.map +1 -0
  158. package/lib/api/api/put_script.d.ts +1 -1
  159. package/lib/api/api/put_script.js +8 -1
  160. package/lib/api/api/put_script.js.map +1 -1
  161. package/lib/api/api/query_ruleset.d.ts +4 -4
  162. package/lib/api/api/query_ruleset.js +25 -4
  163. package/lib/api/api/query_ruleset.js.map +1 -1
  164. package/lib/api/api/rank_eval.d.ts +1 -1
  165. package/lib/api/api/rank_eval.js +7 -1
  166. package/lib/api/api/rank_eval.js.map +1 -1
  167. package/lib/api/api/reindex.d.ts +1 -1
  168. package/lib/api/api/reindex.js +4 -1
  169. package/lib/api/api/reindex.js.map +1 -1
  170. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  171. package/lib/api/api/reindex_rethrottle.js +7 -1
  172. package/lib/api/api/reindex_rethrottle.js.map +1 -1
  173. package/lib/api/api/render_search_template.d.ts +1 -1
  174. package/lib/api/api/render_search_template.js +7 -1
  175. package/lib/api/api/render_search_template.js.map +1 -1
  176. package/lib/api/api/rollup.d.ts +8 -8
  177. package/lib/api/api/rollup.js +56 -8
  178. package/lib/api/api/rollup.js.map +1 -1
  179. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  180. package/lib/api/api/scripts_painless_execute.js +4 -1
  181. package/lib/api/api/scripts_painless_execute.js.map +1 -1
  182. package/lib/api/api/scroll.d.ts +1 -1
  183. package/lib/api/api/scroll.js +7 -1
  184. package/lib/api/api/scroll.js.map +1 -1
  185. package/lib/api/api/search.d.ts +1 -1
  186. package/lib/api/api/search.js +8 -2
  187. package/lib/api/api/search.js.map +1 -1
  188. package/lib/api/api/search_application.d.ts +9 -9
  189. package/lib/api/api/search_application.js +68 -10
  190. package/lib/api/api/search_application.js.map +1 -1
  191. package/lib/api/api/search_mvt.d.ts +1 -1
  192. package/lib/api/api/search_mvt.js +11 -1
  193. package/lib/api/api/search_mvt.js.map +1 -1
  194. package/lib/api/api/search_shards.d.ts +1 -1
  195. package/lib/api/api/search_shards.js +7 -1
  196. package/lib/api/api/search_shards.js.map +1 -1
  197. package/lib/api/api/search_template.d.ts +1 -1
  198. package/lib/api/api/search_template.js +7 -1
  199. package/lib/api/api/search_template.js.map +1 -1
  200. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  201. package/lib/api/api/searchable_snapshots.js +29 -4
  202. package/lib/api/api/searchable_snapshots.js.map +1 -1
  203. package/lib/api/api/security.d.ts +66 -59
  204. package/lib/api/api/security.js +359 -59
  205. package/lib/api/api/security.js.map +1 -1
  206. package/lib/api/api/shutdown.js +21 -3
  207. package/lib/api/api/shutdown.js.map +1 -1
  208. package/lib/api/api/simulate.d.ts +18 -0
  209. package/lib/api/api/simulate.js +64 -0
  210. package/lib/api/api/simulate.js.map +1 -0
  211. package/lib/api/api/slm.d.ts +9 -9
  212. package/lib/api/api/slm.js +48 -9
  213. package/lib/api/api/slm.js.map +1 -1
  214. package/lib/api/api/snapshot.d.ts +12 -12
  215. package/lib/api/api/snapshot.js +91 -12
  216. package/lib/api/api/snapshot.js.map +1 -1
  217. package/lib/api/api/sql.d.ts +6 -6
  218. package/lib/api/api/sql.js +33 -6
  219. package/lib/api/api/sql.js.map +1 -1
  220. package/lib/api/api/ssl.d.ts +1 -1
  221. package/lib/api/api/ssl.js +4 -1
  222. package/lib/api/api/ssl.js.map +1 -1
  223. package/lib/api/api/synonyms.d.ts +7 -7
  224. package/lib/api/api/synonyms.js +49 -7
  225. package/lib/api/api/synonyms.js.map +1 -1
  226. package/lib/api/api/tasks.d.ts +3 -3
  227. package/lib/api/api/tasks.js +18 -3
  228. package/lib/api/api/tasks.js.map +1 -1
  229. package/lib/api/api/terms_enum.d.ts +1 -1
  230. package/lib/api/api/terms_enum.js +7 -1
  231. package/lib/api/api/terms_enum.js.map +1 -1
  232. package/lib/api/api/termvectors.d.ts +1 -1
  233. package/lib/api/api/termvectors.js +8 -1
  234. package/lib/api/api/termvectors.js.map +1 -1
  235. package/lib/api/api/text_structure.d.ts +16 -2
  236. package/lib/api/api/text_structure.js +48 -2
  237. package/lib/api/api/text_structure.js.map +1 -1
  238. package/lib/api/api/transform.d.ts +11 -11
  239. package/lib/api/api/transform.js +74 -11
  240. package/lib/api/api/transform.js.map +1 -1
  241. package/lib/api/api/update.d.ts +1 -1
  242. package/lib/api/api/update.js +8 -1
  243. package/lib/api/api/update.js.map +1 -1
  244. package/lib/api/api/update_by_query.d.ts +2 -2
  245. package/lib/api/api/update_by_query.js +7 -1
  246. package/lib/api/api/update_by_query.js.map +1 -1
  247. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  248. package/lib/api/api/update_by_query_rethrottle.js +7 -1
  249. package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
  250. package/lib/api/api/watcher.d.ts +13 -13
  251. package/lib/api/api/watcher.js +77 -13
  252. package/lib/api/api/watcher.js.map +1 -1
  253. package/lib/api/api/xpack.d.ts +2 -2
  254. package/lib/api/api/xpack.js +8 -2
  255. package/lib/api/api/xpack.js.map +1 -1
  256. package/lib/api/index.d.ts +12 -0
  257. package/lib/api/index.js +38 -2
  258. package/lib/api/index.js.map +1 -1
  259. package/lib/api/types.d.ts +590 -95
  260. package/lib/api/typesWithBodyKey.d.ts +644 -99
  261. package/lib/helpers.d.ts +29 -0
  262. package/lib/helpers.js +96 -20
  263. package/lib/helpers.js.map +1 -1
  264. package/package.json +3 -3
  265. package/Makefile +0 -11
@@ -410,6 +410,7 @@ export interface HealthReportIlmIndicator extends HealthReportBaseIndicator {
410
410
  export interface HealthReportIlmIndicatorDetails {
411
411
  ilm_status: LifecycleOperationMode;
412
412
  policies: long;
413
+ stagnating_indices: integer;
413
414
  }
414
415
  export interface HealthReportImpact {
415
416
  description: string;
@@ -474,6 +475,7 @@ export interface HealthReportShardsAvailabilityIndicator extends HealthReportBas
474
475
  }
475
476
  export interface HealthReportShardsAvailabilityIndicatorDetails {
476
477
  creating_primaries: long;
478
+ creating_replicas: long;
477
479
  initializing_primaries: long;
478
480
  initializing_replicas: long;
479
481
  restarting_primaries: long;
@@ -500,7 +502,7 @@ export interface HealthReportSlmIndicator extends HealthReportBaseIndicator {
500
502
  export interface HealthReportSlmIndicatorDetails {
501
503
  slm_status: LifecycleOperationMode;
502
504
  policies: long;
503
- unhealthy_policies: HealthReportSlmIndicatorUnhealthyPolicies;
505
+ unhealthy_policies?: HealthReportSlmIndicatorUnhealthyPolicies;
504
506
  }
505
507
  export interface HealthReportSlmIndicatorUnhealthyPolicies {
506
508
  count: long;
@@ -553,8 +555,8 @@ export interface KnnSearchResponse<TDocument = unknown> {
553
555
  export interface KnnSearchQuery {
554
556
  field: Field;
555
557
  query_vector: QueryVector;
556
- k: long;
557
- num_candidates: long;
558
+ k: integer;
559
+ num_candidates: integer;
558
560
  }
559
561
  export interface MgetMultiGetError {
560
562
  error: ErrorCause;
@@ -604,7 +606,7 @@ export interface MsearchMultisearchBody {
604
606
  ext?: Record<string, any>;
605
607
  stored_fields?: Fields;
606
608
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
607
- knn?: KnnQuery | KnnQuery[];
609
+ knn?: KnnSearch | KnnSearch[];
608
610
  from?: integer;
609
611
  highlight?: SearchHighlight;
610
612
  indices_boost?: Record<IndexName, double>[];
@@ -680,7 +682,7 @@ export interface MsearchTemplateTemplateConfig {
680
682
  source?: string;
681
683
  }
682
684
  export interface MtermvectorsOperation {
683
- _id: Id;
685
+ _id?: Id;
684
686
  _index?: IndexName;
685
687
  doc?: any;
686
688
  fields?: Fields;
@@ -986,13 +988,14 @@ export interface SearchRequest extends RequestBase {
986
988
  track_total_hits?: SearchTrackHits;
987
989
  indices_boost?: Record<IndexName, double>[];
988
990
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
989
- knn?: KnnQuery | KnnQuery[];
991
+ knn?: KnnSearch | KnnSearch[];
990
992
  rank?: RankContainer;
991
993
  min_score?: double;
992
994
  post_filter?: QueryDslQueryContainer;
993
995
  profile?: boolean;
994
996
  query?: QueryDslQueryContainer;
995
997
  rescore?: SearchRescore | SearchRescore[];
998
+ retriever?: RetrieverContainer;
996
999
  script_fields?: Record<string, ScriptField>;
997
1000
  search_after?: SortResults;
998
1001
  size?: integer;
@@ -1210,7 +1213,7 @@ export type SearchHighlighterTagsSchema = 'styled';
1210
1213
  export type SearchHighlighterType = 'plain' | 'fvh' | 'unified' | string;
1211
1214
  export interface SearchHit<TDocument = unknown> {
1212
1215
  _index: IndexName;
1213
- _id: Id;
1216
+ _id?: Id;
1214
1217
  _score?: double | null;
1215
1218
  _explanation?: ExplainExplanation;
1216
1219
  fields?: Record<string, any>;
@@ -1258,6 +1261,10 @@ export interface SearchInnerHitsResult {
1258
1261
  export interface SearchLaplaceSmoothingModel {
1259
1262
  alpha: double;
1260
1263
  }
1264
+ export interface SearchLearningToRank {
1265
+ model_id: string;
1266
+ params?: Record<string, any>;
1267
+ }
1261
1268
  export interface SearchLinearInterpolationSmoothingModel {
1262
1269
  bigram_lambda: double;
1263
1270
  trigram_lambda: double;
@@ -1344,8 +1351,9 @@ export interface SearchRegexOptions {
1344
1351
  max_determinized_states?: integer;
1345
1352
  }
1346
1353
  export interface SearchRescore {
1347
- query: SearchRescoreQuery;
1348
1354
  window_size?: integer;
1355
+ query?: SearchRescoreQuery;
1356
+ learning_to_rank?: SearchLearningToRank;
1349
1357
  }
1350
1358
  export interface SearchRescoreQuery {
1351
1359
  rescore_query: QueryDslQueryContainer;
@@ -1686,8 +1694,10 @@ export interface SpecUtilsBaseNode {
1686
1694
  roles?: NodeRoles;
1687
1695
  transport_address: TransportAddress;
1688
1696
  }
1697
+ export type SpecUtilsNullValue = null;
1689
1698
  export type SpecUtilsPipeSeparatedFlags<T = unknown> = T | string;
1690
1699
  export type SpecUtilsStringified<T = unknown> = T | string;
1700
+ export type SpecUtilsWithNullValue<T = unknown> = T | SpecUtilsNullValue;
1691
1701
  export interface AcknowledgedResponseBase {
1692
1702
  acknowledged: boolean;
1693
1703
  }
@@ -1752,8 +1762,8 @@ export type DFRBasicModel = 'be' | 'd' | 'g' | 'if' | 'in' | 'ine' | 'p';
1752
1762
  export type DataStreamName = string;
1753
1763
  export type DataStreamNames = DataStreamName | DataStreamName[];
1754
1764
  export type DateFormat = string;
1755
- export type DateMath = string;
1756
- export type DateTime = string | EpochTime<UnitMillis>;
1765
+ export type DateMath = string | Date;
1766
+ export type DateTime = string | EpochTime<UnitMillis> | Date;
1757
1767
  export type Distance = string;
1758
1768
  export type DistanceUnit = 'in' | 'ft' | 'yd' | 'mi' | 'nmi' | 'km' | 'm' | 'cm' | 'mm';
1759
1769
  export interface DocStats {
@@ -1842,9 +1852,10 @@ export interface GeoDistanceSortKeys {
1842
1852
  ignore_unmapped?: boolean;
1843
1853
  order?: SortOrder;
1844
1854
  unit?: DistanceUnit;
1855
+ nested?: NestedSortValue;
1845
1856
  }
1846
1857
  export type GeoDistanceSort = GeoDistanceSortKeys & {
1847
- [property: string]: GeoLocation | GeoLocation[] | SortMode | GeoDistanceType | boolean | SortOrder | DistanceUnit;
1858
+ [property: string]: GeoLocation | GeoLocation[] | SortMode | GeoDistanceType | boolean | SortOrder | DistanceUnit | NestedSortValue;
1848
1859
  };
1849
1860
  export type GeoDistanceType = 'arc' | 'plane';
1850
1861
  export type GeoHash = string;
@@ -1929,12 +1940,28 @@ export interface InlineScript extends ScriptBase {
1929
1940
  source: string;
1930
1941
  }
1931
1942
  export type Ip = string;
1932
- export interface KnnQuery {
1943
+ export interface KnnQuery extends QueryDslQueryBase {
1944
+ field: Field;
1945
+ query_vector?: QueryVector;
1946
+ query_vector_builder?: QueryVectorBuilder;
1947
+ num_candidates?: integer;
1948
+ filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
1949
+ similarity?: float;
1950
+ }
1951
+ export interface KnnRetriever extends RetrieverBase {
1952
+ field: string;
1953
+ query_vector?: QueryVector;
1954
+ query_vector_builder?: QueryVectorBuilder;
1955
+ k: integer;
1956
+ num_candidates: integer;
1957
+ similarity?: float;
1958
+ }
1959
+ export interface KnnSearch {
1933
1960
  field: Field;
1934
1961
  query_vector?: QueryVector;
1935
1962
  query_vector_builder?: QueryVectorBuilder;
1936
- k: long;
1937
- num_candidates: long;
1963
+ k?: integer;
1964
+ num_candidates?: integer;
1938
1965
  boost?: float;
1939
1966
  filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
1940
1967
  similarity?: float;
@@ -2028,19 +2055,24 @@ export interface PluginStats {
2028
2055
  }
2029
2056
  export type PropertyName = string;
2030
2057
  export interface QueryCacheStats {
2031
- cache_count: integer;
2032
- cache_size: integer;
2033
- evictions: integer;
2034
- hit_count: integer;
2058
+ cache_count: long;
2059
+ cache_size: long;
2060
+ evictions: long;
2061
+ hit_count: long;
2035
2062
  memory_size?: ByteSize;
2036
2063
  memory_size_in_bytes: long;
2037
- miss_count: integer;
2038
- total_count: integer;
2064
+ miss_count: long;
2065
+ total_count: long;
2039
2066
  }
2040
2067
  export type QueryVector = float[];
2041
2068
  export interface QueryVectorBuilder {
2042
2069
  text_embedding?: TextEmbedding;
2043
2070
  }
2071
+ export interface RRFRetriever extends RetrieverBase {
2072
+ retrievers: RetrieverContainer[];
2073
+ rank_constant?: integer;
2074
+ window_size?: integer;
2075
+ }
2044
2076
  export interface RankBase {
2045
2077
  }
2046
2078
  export interface RankContainer {
@@ -2079,6 +2111,14 @@ export interface Retries {
2079
2111
  bulk: long;
2080
2112
  search: long;
2081
2113
  }
2114
+ export interface RetrieverBase {
2115
+ filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
2116
+ }
2117
+ export interface RetrieverContainer {
2118
+ standard?: StandardRetriever;
2119
+ knn?: KnnRetriever;
2120
+ rrf?: RRFRetriever;
2121
+ }
2082
2122
  export type Routing = string;
2083
2123
  export interface RrfRank {
2084
2124
  rank_constant?: long;
@@ -2204,6 +2244,14 @@ export type SortOptions = SortOptionsKeys & {
2204
2244
  };
2205
2245
  export type SortOrder = 'asc' | 'desc';
2206
2246
  export type SortResults = FieldValue[];
2247
+ export interface StandardRetriever extends RetrieverBase {
2248
+ query?: QueryDslQueryContainer;
2249
+ search_after?: SortResults;
2250
+ terminate_after?: integer;
2251
+ sort?: Sort;
2252
+ min_score?: float;
2253
+ collapse?: SearchFieldCollapse;
2254
+ }
2207
2255
  export interface StoreStats {
2208
2256
  size?: ByteSize;
2209
2257
  size_in_bytes: long;
@@ -2284,9 +2332,9 @@ export interface WktGeoBounds {
2284
2332
  export interface WriteResponseBase {
2285
2333
  _id: Id;
2286
2334
  _index: IndexName;
2287
- _primary_term: long;
2335
+ _primary_term?: long;
2288
2336
  result: Result;
2289
- _seq_no: SequenceNumber;
2337
+ _seq_no?: SequenceNumber;
2290
2338
  _shards: ShardStatistics;
2291
2339
  _version: VersionNumber;
2292
2340
  forced_refresh?: boolean;
@@ -2303,6 +2351,7 @@ export interface AggregationsAdjacencyMatrixAggregate extends AggregationsMultiB
2303
2351
  }
2304
2352
  export interface AggregationsAdjacencyMatrixAggregation extends AggregationsBucketAggregationBase {
2305
2353
  filters?: Record<string, QueryDslQueryContainer>;
2354
+ separator?: string;
2306
2355
  }
2307
2356
  export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMultiBucketBase {
2308
2357
  key: string;
@@ -2316,8 +2365,6 @@ export interface AggregationsAggregateBase {
2316
2365
  }
2317
2366
  export type AggregationsAggregateOrder = Partial<Record<Field, SortOrder>> | Partial<Record<Field, SortOrder>>[];
2318
2367
  export interface AggregationsAggregation {
2319
- meta?: Metadata;
2320
- name?: string;
2321
2368
  }
2322
2369
  export interface AggregationsAggregationContainer {
2323
2370
  aggregations?: Record<string, AggregationsAggregationContainer>;
@@ -2401,9 +2448,9 @@ export interface AggregationsAggregationContainer {
2401
2448
  variable_width_histogram?: AggregationsVariableWidthHistogramAggregation;
2402
2449
  }
2403
2450
  export interface AggregationsAggregationRange {
2404
- from?: double | string | null;
2451
+ from?: double;
2405
2452
  key?: string;
2406
- to?: double | string | null;
2453
+ to?: double;
2407
2454
  }
2408
2455
  export interface AggregationsArrayPercentilesItem {
2409
2456
  key: string;
@@ -2449,7 +2496,7 @@ export interface AggregationsBoxPlotAggregate extends AggregationsAggregateBase
2449
2496
  export interface AggregationsBoxplotAggregation extends AggregationsMetricAggregationBase {
2450
2497
  compression?: double;
2451
2498
  }
2452
- export interface AggregationsBucketAggregationBase extends AggregationsAggregation {
2499
+ export interface AggregationsBucketAggregationBase {
2453
2500
  }
2454
2501
  export interface AggregationsBucketCorrelationAggregation extends AggregationsBucketPathAggregation {
2455
2502
  function: AggregationsBucketCorrelationFunction;
@@ -2473,7 +2520,7 @@ export interface AggregationsBucketKsAggregation extends AggregationsBucketPathA
2473
2520
  export interface AggregationsBucketMetricValueAggregate extends AggregationsSingleMetricAggregateBase {
2474
2521
  keys: string[];
2475
2522
  }
2476
- export interface AggregationsBucketPathAggregation extends AggregationsAggregation {
2523
+ export interface AggregationsBucketPathAggregation {
2477
2524
  buckets_path?: AggregationsBucketsPath;
2478
2525
  }
2479
2526
  export interface AggregationsBucketScriptAggregation extends AggregationsPipelineAggregationBase {
@@ -2482,7 +2529,7 @@ export interface AggregationsBucketScriptAggregation extends AggregationsPipelin
2482
2529
  export interface AggregationsBucketSelectorAggregation extends AggregationsPipelineAggregationBase {
2483
2530
  script?: Script;
2484
2531
  }
2485
- export interface AggregationsBucketSortAggregation extends AggregationsAggregation {
2532
+ export interface AggregationsBucketSortAggregation {
2486
2533
  from?: integer;
2487
2534
  gap_policy?: AggregationsGapPolicy;
2488
2535
  size?: integer;
@@ -2490,7 +2537,7 @@ export interface AggregationsBucketSortAggregation extends AggregationsAggregati
2490
2537
  }
2491
2538
  export type AggregationsBuckets<TBucket = unknown> = Record<string, TBucket> | TBucket[];
2492
2539
  export type AggregationsBucketsPath = string | string[] | Record<string, string>;
2493
- export type AggregationsCalendarInterval = 'second' | '1s' | 'minute' | '1m' | 'hour' | '1h' | 'day' | '1d' | 'week' | '1w' | 'month' | '1M' | 'quarter' | '1q' | 'year' | '1Y';
2540
+ export type AggregationsCalendarInterval = 'second' | '1s' | 'minute' | '1m' | 'hour' | '1h' | 'day' | '1d' | 'week' | '1w' | 'month' | '1M' | 'quarter' | '1q' | 'year' | '1y';
2494
2541
  export interface AggregationsCardinalityAggregate extends AggregationsAggregateBase {
2495
2542
  value: long;
2496
2543
  }
@@ -2500,7 +2547,7 @@ export interface AggregationsCardinalityAggregation extends AggregationsMetricAg
2500
2547
  execution_hint?: AggregationsCardinalityExecutionMode;
2501
2548
  }
2502
2549
  export type AggregationsCardinalityExecutionMode = 'global_ordinals' | 'segment_ordinals' | 'direct' | 'save_memory_heuristic' | 'save_time_heuristic';
2503
- export interface AggregationsCategorizeTextAggregation extends AggregationsAggregation {
2550
+ export interface AggregationsCategorizeTextAggregation {
2504
2551
  field: Field;
2505
2552
  max_unique_tokens?: integer;
2506
2553
  max_matched_tokens?: integer;
@@ -2654,8 +2701,8 @@ export interface AggregationsEwmaMovingAverageAggregation extends AggregationsMo
2654
2701
  settings: AggregationsEwmaModelSettings;
2655
2702
  }
2656
2703
  export interface AggregationsExtendedBounds<T = unknown> {
2657
- max: T;
2658
- min: T;
2704
+ max?: T;
2705
+ min?: T;
2659
2706
  }
2660
2707
  export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAggregate {
2661
2708
  sum_of_squares: double | null;
@@ -2966,7 +3013,7 @@ export interface AggregationsLongTermsBucketKeys extends AggregationsTermsBucket
2966
3013
  export type AggregationsLongTermsBucket = AggregationsLongTermsBucketKeys & {
2967
3014
  [property: string]: AggregationsAggregate | long | string;
2968
3015
  };
2969
- export interface AggregationsMatrixAggregation extends AggregationsAggregation {
3016
+ export interface AggregationsMatrixAggregation {
2970
3017
  fields?: Fields;
2971
3018
  missing?: Record<Field, double>;
2972
3019
  }
@@ -3343,7 +3390,7 @@ export interface AggregationsTTestAggregate extends AggregationsAggregateBase {
3343
3390
  value: double | null;
3344
3391
  value_as_string?: string;
3345
3392
  }
3346
- export interface AggregationsTTestAggregation extends AggregationsAggregation {
3393
+ export interface AggregationsTTestAggregation {
3347
3394
  a?: AggregationsTestPopulation;
3348
3395
  b?: AggregationsTestPopulation;
3349
3396
  type?: AggregationsTTestType;
@@ -3366,6 +3413,7 @@ export interface AggregationsTermsAggregation extends AggregationsBucketAggregat
3366
3413
  value_type?: string;
3367
3414
  order?: AggregationsAggregateOrder;
3368
3415
  script?: Script;
3416
+ shard_min_doc_count?: long;
3369
3417
  shard_size?: integer;
3370
3418
  show_term_doc_count_error?: boolean;
3371
3419
  size?: integer;
@@ -3374,7 +3422,7 @@ export interface AggregationsTermsAggregation extends AggregationsBucketAggregat
3374
3422
  export type AggregationsTermsAggregationCollectMode = 'depth_first' | 'breadth_first';
3375
3423
  export type AggregationsTermsAggregationExecutionHint = 'map' | 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality';
3376
3424
  export interface AggregationsTermsBucketBase extends AggregationsMultiBucketBase {
3377
- doc_count_error?: long;
3425
+ doc_count_error_upper_bound?: long;
3378
3426
  }
3379
3427
  export type AggregationsTermsExclude = string | string[];
3380
3428
  export type AggregationsTermsInclude = string | string[] | AggregationsTermsPartition;
@@ -3391,8 +3439,9 @@ export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase
3391
3439
  hits: SearchHitsMetadata<any>;
3392
3440
  }
3393
3441
  export interface AggregationsTopHitsAggregation extends AggregationsMetricAggregationBase {
3394
- docvalue_fields?: Fields;
3442
+ docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
3395
3443
  explain?: boolean;
3444
+ fields?: (QueryDslFieldAndFormat | Field)[];
3396
3445
  from?: integer;
3397
3446
  highlight?: SearchHighlight;
3398
3447
  script_fields?: Record<string, ScriptField>;
@@ -3442,6 +3491,7 @@ export interface AggregationsVariableWidthHistogramAggregation {
3442
3491
  buckets?: integer;
3443
3492
  shard_size?: integer;
3444
3493
  initial_buffer?: integer;
3494
+ script?: Script;
3445
3495
  }
3446
3496
  export interface AggregationsVariableWidthHistogramBucketKeys extends AggregationsMultiBucketBase {
3447
3497
  min: double;
@@ -3454,7 +3504,7 @@ export interface AggregationsVariableWidthHistogramBucketKeys extends Aggregatio
3454
3504
  export type AggregationsVariableWidthHistogramBucket = AggregationsVariableWidthHistogramBucketKeys & {
3455
3505
  [property: string]: AggregationsAggregate | double | string | long;
3456
3506
  };
3457
- export interface AggregationsWeightedAverageAggregation extends AggregationsAggregation {
3507
+ export interface AggregationsWeightedAverageAggregation {
3458
3508
  format?: string;
3459
3509
  value?: AggregationsWeightedAverageValue;
3460
3510
  value_type?: AggregationsValueType;
@@ -3566,6 +3616,7 @@ export interface AnalysisFingerprintTokenFilter extends AnalysisTokenFilterBase
3566
3616
  }
3567
3617
  export interface AnalysisHtmlStripCharFilter extends AnalysisCharFilterBase {
3568
3618
  type: 'html_strip';
3619
+ escaped_tags?: string[];
3569
3620
  }
3570
3621
  export interface AnalysisHunspellTokenFilter extends AnalysisTokenFilterBase {
3571
3622
  type: 'hunspell';
@@ -3589,16 +3640,16 @@ export type AnalysisIcuCollationStrength = 'primary' | 'secondary' | 'tertiary'
3589
3640
  export interface AnalysisIcuCollationTokenFilter extends AnalysisTokenFilterBase {
3590
3641
  type: 'icu_collation';
3591
3642
  alternate?: AnalysisIcuCollationAlternate;
3592
- caseFirst?: AnalysisIcuCollationCaseFirst;
3593
- caseLevel?: boolean;
3643
+ case_first?: AnalysisIcuCollationCaseFirst;
3644
+ case_level?: boolean;
3594
3645
  country?: string;
3595
3646
  decomposition?: AnalysisIcuCollationDecomposition;
3596
- hiraganaQuaternaryMode?: boolean;
3647
+ hiragana_quaternary_mode?: boolean;
3597
3648
  language?: string;
3598
3649
  numeric?: boolean;
3599
3650
  rules?: string;
3600
3651
  strength?: AnalysisIcuCollationStrength;
3601
- variableTop?: string;
3652
+ variable_top?: string;
3602
3653
  variant?: string;
3603
3654
  }
3604
3655
  export interface AnalysisIcuFoldingTokenFilter extends AnalysisTokenFilterBase {
@@ -3811,7 +3862,7 @@ export type AnalysisPhoneticRuleType = 'approx' | 'exact';
3811
3862
  export interface AnalysisPhoneticTokenFilter extends AnalysisTokenFilterBase {
3812
3863
  type: 'phonetic';
3813
3864
  encoder: AnalysisPhoneticEncoder;
3814
- languageset: AnalysisPhoneticLanguage[];
3865
+ languageset: AnalysisPhoneticLanguage | AnalysisPhoneticLanguage[];
3815
3866
  max_code_len?: integer;
3816
3867
  name_type: AnalysisPhoneticNameType;
3817
3868
  replace?: boolean;
@@ -3852,7 +3903,7 @@ export interface AnalysisSnowballAnalyzer {
3852
3903
  export type AnalysisSnowballLanguage = 'Armenian' | 'Basque' | 'Catalan' | 'Danish' | 'Dutch' | 'English' | 'Finnish' | 'French' | 'German' | 'German2' | 'Hungarian' | 'Italian' | 'Kp' | 'Lovins' | 'Norwegian' | 'Porter' | 'Portuguese' | 'Romanian' | 'Russian' | 'Spanish' | 'Swedish' | 'Turkish';
3853
3904
  export interface AnalysisSnowballTokenFilter extends AnalysisTokenFilterBase {
3854
3905
  type: 'snowball';
3855
- language: AnalysisSnowballLanguage;
3906
+ language?: AnalysisSnowballLanguage;
3856
3907
  }
3857
3908
  export interface AnalysisStandardAnalyzer {
3858
3909
  type: 'standard';
@@ -3895,6 +3946,7 @@ export interface AnalysisSynonymGraphTokenFilter extends AnalysisTokenFilterBase
3895
3946
  lenient?: boolean;
3896
3947
  synonyms?: string[];
3897
3948
  synonyms_path?: string;
3949
+ synonyms_set?: string;
3898
3950
  tokenizer?: string;
3899
3951
  updateable?: boolean;
3900
3952
  }
@@ -3905,6 +3957,7 @@ export interface AnalysisSynonymTokenFilter extends AnalysisTokenFilterBase {
3905
3957
  lenient?: boolean;
3906
3958
  synonyms?: string[];
3907
3959
  synonyms_path?: string;
3960
+ synonyms_set?: string;
3908
3961
  tokenizer?: string;
3909
3962
  updateable?: boolean;
3910
3963
  }
@@ -3913,7 +3966,7 @@ export type AnalysisTokenFilter = string | AnalysisTokenFilterDefinition;
3913
3966
  export interface AnalysisTokenFilterBase {
3914
3967
  version?: VersionString;
3915
3968
  }
3916
- export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuTokenizer | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter;
3969
+ export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter;
3917
3970
  export type AnalysisTokenizer = string | AnalysisTokenizerDefinition;
3918
3971
  export interface AnalysisTokenizerBase {
3919
3972
  version?: VersionString;
@@ -4063,6 +4116,7 @@ export interface MappingDenseVectorIndexOptions {
4063
4116
  }
4064
4117
  export interface MappingDenseVectorProperty extends MappingPropertyBase {
4065
4118
  type: 'dense_vector';
4119
+ element_type?: string;
4066
4120
  dims?: integer;
4067
4121
  similarity?: string;
4068
4122
  index?: boolean;
@@ -4080,7 +4134,7 @@ export interface MappingDoubleRangeProperty extends MappingRangePropertyBase {
4080
4134
  }
4081
4135
  export type MappingDynamicMapping = boolean | 'strict' | 'runtime' | 'true' | 'false';
4082
4136
  export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4083
- type: '{dynamic_property}';
4137
+ type: '{dynamic_type}';
4084
4138
  enabled?: boolean;
4085
4139
  null_value?: FieldValue;
4086
4140
  boost?: double;
@@ -4106,12 +4160,14 @@ export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4106
4160
  }
4107
4161
  export interface MappingDynamicTemplate {
4108
4162
  mapping?: MappingProperty;
4109
- match?: string;
4110
- match_mapping_type?: string;
4163
+ runtime?: MappingProperty;
4164
+ match?: string | string[];
4165
+ path_match?: string | string[];
4166
+ unmatch?: string | string[];
4167
+ path_unmatch?: string | string[];
4168
+ match_mapping_type?: string | string[];
4169
+ unmatch_mapping_type?: string | string[];
4111
4170
  match_pattern?: MappingMatchType;
4112
- path_match?: string;
4113
- path_unmatch?: string;
4114
- unmatch?: string;
4115
4171
  }
4116
4172
  export interface MappingFieldAliasProperty extends MappingPropertyBase {
4117
4173
  path?: Field;
@@ -4124,7 +4180,7 @@ export interface MappingFieldMapping {
4124
4180
  export interface MappingFieldNamesField {
4125
4181
  enabled: boolean;
4126
4182
  }
4127
- export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'sparse_vector' | 'match_only_text';
4183
+ export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'version' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword';
4128
4184
  export interface MappingFlattenedProperty extends MappingPropertyBase {
4129
4185
  boost?: double;
4130
4186
  depth_limit?: integer;
@@ -4171,6 +4227,25 @@ export interface MappingHistogramProperty extends MappingPropertyBase {
4171
4227
  ignore_malformed?: boolean;
4172
4228
  type: 'histogram';
4173
4229
  }
4230
+ export interface MappingIcuCollationProperty extends MappingDocValuesPropertyBase {
4231
+ type: 'icu_collation_keyword';
4232
+ norms?: boolean;
4233
+ index_options?: MappingIndexOptions;
4234
+ index?: boolean;
4235
+ null_value?: string;
4236
+ rules?: string;
4237
+ language?: string;
4238
+ country?: string;
4239
+ variant?: string;
4240
+ strength?: AnalysisIcuCollationStrength;
4241
+ decomposition?: AnalysisIcuCollationDecomposition;
4242
+ alternate?: AnalysisIcuCollationAlternate;
4243
+ case_level?: boolean;
4244
+ case_first?: AnalysisIcuCollationCaseFirst;
4245
+ numeric?: boolean;
4246
+ variable_top?: string;
4247
+ hiragana_quaternary_mode?: boolean;
4248
+ }
4174
4249
  export interface MappingIndexField {
4175
4250
  enabled: boolean;
4176
4251
  }
@@ -4205,6 +4280,8 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
4205
4280
  eager_global_ordinals?: boolean;
4206
4281
  index?: boolean;
4207
4282
  index_options?: MappingIndexOptions;
4283
+ script?: Script;
4284
+ on_script_error?: MappingOnScriptError;
4208
4285
  normalizer?: string;
4209
4286
  norms?: boolean;
4210
4287
  null_value?: string;
@@ -4260,7 +4337,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
4260
4337
  null_value?: string;
4261
4338
  type: 'point';
4262
4339
  }
4263
- export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingSparseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty;
4340
+ export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingSparseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty | MappingIcuCollationProperty;
4264
4341
  export interface MappingPropertyBase {
4265
4342
  meta?: Record<string, string>;
4266
4343
  properties?: Record<PropertyName, MappingProperty>;
@@ -4297,7 +4374,7 @@ export interface MappingRuntimeFieldFetchFields {
4297
4374
  field: Field;
4298
4375
  format?: string;
4299
4376
  }
4300
- export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup';
4377
+ export type MappingRuntimeFieldType = 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup';
4301
4378
  export type MappingRuntimeFields = Record<Field, MappingRuntimeField>;
4302
4379
  export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
4303
4380
  type: 'scaled_float';
@@ -4445,7 +4522,7 @@ export interface QueryDslConstantScoreQuery extends QueryDslQueryBase {
4445
4522
  export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase {
4446
4523
  }
4447
4524
  export type QueryDslDateDecayFunction = QueryDslDateDecayFunctionKeys & {
4448
- [property: string]: QueryDslDecayPlacement<DateMath, Duration> | QueryDslMultiValueMode;
4525
+ [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
4449
4526
  };
4450
4527
  export interface QueryDslDateDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<DateMath, Duration> {
4451
4528
  }
@@ -4539,7 +4616,7 @@ export type QueryDslGeoBoundingBoxQuery = QueryDslGeoBoundingBoxQueryKeys & {
4539
4616
  export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase {
4540
4617
  }
4541
4618
  export type QueryDslGeoDecayFunction = QueryDslGeoDecayFunctionKeys & {
4542
- [property: string]: QueryDslDecayPlacement<GeoLocation, Distance> | QueryDslMultiValueMode;
4619
+ [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
4543
4620
  };
4544
4621
  export interface QueryDslGeoDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<GeoLocation, Distance> {
4545
4622
  }
@@ -4725,7 +4802,6 @@ export interface QueryDslMoreLikeThisQuery extends QueryDslQueryBase {
4725
4802
  minimum_should_match?: MinimumShouldMatch;
4726
4803
  min_term_freq?: integer;
4727
4804
  min_word_length?: integer;
4728
- per_field_analyzer?: Record<Field, string>;
4729
4805
  routing?: Routing;
4730
4806
  stop_words?: AnalysisStopWords;
4731
4807
  unlike?: QueryDslLike | QueryDslLike[];
@@ -4770,7 +4846,7 @@ export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase {
4770
4846
  export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase {
4771
4847
  }
4772
4848
  export type QueryDslNumericDecayFunction = QueryDslNumericDecayFunctionKeys & {
4773
- [property: string]: QueryDslDecayPlacement<double, double> | QueryDslMultiValueMode;
4849
+ [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
4774
4850
  };
4775
4851
  export type QueryDslOperator = 'and' | 'AND' | 'or' | 'OR';
4776
4852
  export interface QueryDslParentIdQuery extends QueryDslQueryBase {
@@ -4850,7 +4926,7 @@ export interface QueryDslQueryContainer {
4850
4926
  shape?: QueryDslShapeQuery;
4851
4927
  simple_query_string?: QueryDslSimpleQueryStringQuery;
4852
4928
  span_containing?: QueryDslSpanContainingQuery;
4853
- field_masking_span?: QueryDslSpanFieldMaskingQuery;
4929
+ span_field_masking?: QueryDslSpanFieldMaskingQuery;
4854
4930
  span_first?: QueryDslSpanFirstQuery;
4855
4931
  span_multi?: QueryDslSpanMultiTermQuery;
4856
4932
  span_near?: QueryDslSpanNearQuery;
@@ -5008,7 +5084,7 @@ export interface QueryDslSpanOrQuery extends QueryDslQueryBase {
5008
5084
  }
5009
5085
  export interface QueryDslSpanQuery {
5010
5086
  span_containing?: QueryDslSpanContainingQuery;
5011
- field_masking_span?: QueryDslSpanFieldMaskingQuery;
5087
+ span_field_masking?: QueryDslSpanFieldMaskingQuery;
5012
5088
  span_first?: QueryDslSpanFirstQuery;
5013
5089
  span_gap?: QueryDslSpanGapQuery;
5014
5090
  span_multi?: QueryDslSpanMultiTermQuery;
@@ -5169,7 +5245,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
5169
5245
  track_total_hits?: SearchTrackHits;
5170
5246
  indices_boost?: Record<IndexName, double>[];
5171
5247
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
5172
- knn?: KnnQuery | KnnQuery[];
5248
+ knn?: KnnSearch | KnnSearch[];
5173
5249
  min_score?: double;
5174
5250
  post_filter?: QueryDslQueryContainer;
5175
5251
  profile?: boolean;
@@ -7382,10 +7458,10 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase {
7382
7458
  name: Name;
7383
7459
  create?: boolean;
7384
7460
  master_timeout?: Duration;
7385
- allow_auto_create?: boolean;
7386
7461
  template: IndicesIndexState;
7387
7462
  version?: VersionNumber;
7388
7463
  _meta?: Metadata;
7464
+ deprecated?: boolean;
7389
7465
  }
7390
7466
  export type ClusterPutComponentTemplateResponse = AcknowledgedResponseBase;
7391
7467
  export interface ClusterPutSettingsRequest extends RequestBase {
@@ -7722,6 +7798,393 @@ export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase {
7722
7798
  status: HealthStatus;
7723
7799
  timestamp: long;
7724
7800
  }
7801
+ export interface ConnectorConnector {
7802
+ api_key_id?: string;
7803
+ configuration: ConnectorConnectorConfiguration;
7804
+ custom_scheduling: ConnectorConnectorCustomScheduling;
7805
+ description?: string;
7806
+ error?: string;
7807
+ features?: ConnectorConnectorFeatures;
7808
+ filtering: ConnectorFilteringConfig[];
7809
+ id?: Id;
7810
+ index_name?: IndexName;
7811
+ is_native: boolean;
7812
+ language?: string;
7813
+ last_access_control_sync_error?: string;
7814
+ last_access_control_sync_scheduled_at?: DateTime;
7815
+ last_access_control_sync_status?: ConnectorSyncStatus;
7816
+ last_deleted_document_count?: long;
7817
+ last_incremental_sync_scheduled_at?: DateTime;
7818
+ last_indexed_document_count?: long;
7819
+ last_seen?: DateTime;
7820
+ last_sync_error?: string;
7821
+ last_sync_scheduled_at?: DateTime;
7822
+ last_sync_status?: ConnectorSyncStatus;
7823
+ last_synced?: DateTime;
7824
+ name?: string;
7825
+ pipeline?: ConnectorIngestPipelineParams;
7826
+ scheduling: ConnectorSchedulingConfiguration;
7827
+ service_type: string;
7828
+ status: ConnectorConnectorStatus;
7829
+ sync_now: boolean;
7830
+ }
7831
+ export interface ConnectorConnectorConfigProperties {
7832
+ category?: string;
7833
+ default_value: ScalarValue;
7834
+ depends_on: ConnectorDependency[];
7835
+ display: ConnectorDisplayType;
7836
+ label: string;
7837
+ options: ConnectorSelectOption[];
7838
+ order?: integer;
7839
+ placeholder?: string;
7840
+ required: boolean;
7841
+ sensitive: boolean;
7842
+ tooltip?: string;
7843
+ type: ConnectorConnectorFieldType;
7844
+ ui_restrictions: string[];
7845
+ validations: ConnectorValidation[];
7846
+ value: ScalarValue;
7847
+ }
7848
+ export type ConnectorConnectorConfiguration = Record<string, ConnectorConnectorConfigProperties>;
7849
+ export type ConnectorConnectorCustomScheduling = Record<string, ConnectorCustomScheduling>;
7850
+ export interface ConnectorConnectorFeatures {
7851
+ document_level_security?: ConnectorFeatureEnabled;
7852
+ filtering_advanced_config?: boolean;
7853
+ filtering_rules?: boolean;
7854
+ incremental_sync?: ConnectorFeatureEnabled;
7855
+ sync_rules?: ConnectorSyncRulesFeature;
7856
+ }
7857
+ export type ConnectorConnectorFieldType = 'str' | 'int' | 'list' | 'bool';
7858
+ export interface ConnectorConnectorScheduling {
7859
+ enabled: boolean;
7860
+ interval: string;
7861
+ }
7862
+ export type ConnectorConnectorStatus = 'created' | 'needs_configuration' | 'configured' | 'connected' | 'error';
7863
+ export interface ConnectorConnectorSyncJob {
7864
+ cancelation_requested_at?: DateTime;
7865
+ canceled_at?: DateTime;
7866
+ completed_at?: DateTime;
7867
+ connector: ConnectorSyncJobConnectorReference;
7868
+ created_at: DateTime;
7869
+ deleted_document_count: long;
7870
+ error?: string;
7871
+ id: Id;
7872
+ indexed_document_count: long;
7873
+ indexed_document_volume: long;
7874
+ job_type: ConnectorSyncJobType;
7875
+ last_seen?: DateTime;
7876
+ metadata: Record<string, any>;
7877
+ started_at?: DateTime;
7878
+ status: ConnectorSyncStatus;
7879
+ total_document_count: long;
7880
+ trigger_method: ConnectorSyncJobTriggerMethod;
7881
+ worker_hostname?: string;
7882
+ }
7883
+ export interface ConnectorCustomScheduling {
7884
+ configuration_overrides: ConnectorCustomSchedulingConfigurationOverrides;
7885
+ enabled: boolean;
7886
+ interval: string;
7887
+ last_synced?: DateTime;
7888
+ name: string;
7889
+ }
7890
+ export interface ConnectorCustomSchedulingConfigurationOverrides {
7891
+ max_crawl_depth?: integer;
7892
+ sitemap_discovery_disabled?: boolean;
7893
+ domain_allowlist?: string[];
7894
+ sitemap_urls?: string[];
7895
+ seed_urls?: string[];
7896
+ }
7897
+ export interface ConnectorDependency {
7898
+ field: string;
7899
+ value: ScalarValue;
7900
+ }
7901
+ export type ConnectorDisplayType = 'textbox' | 'textarea' | 'numeric' | 'toggle' | 'dropdown';
7902
+ export interface ConnectorFeatureEnabled {
7903
+ enabled: boolean;
7904
+ }
7905
+ export interface ConnectorFilteringAdvancedSnippet {
7906
+ created_at?: DateTime;
7907
+ updated_at?: DateTime;
7908
+ value: Record<string, any>;
7909
+ }
7910
+ export interface ConnectorFilteringConfig {
7911
+ active: ConnectorFilteringRules;
7912
+ domain: string;
7913
+ draft: ConnectorFilteringRules;
7914
+ }
7915
+ export type ConnectorFilteringPolicy = 'exclude' | 'include';
7916
+ export interface ConnectorFilteringRule {
7917
+ created_at?: DateTime;
7918
+ field: Field;
7919
+ id: Id;
7920
+ order: integer;
7921
+ policy: ConnectorFilteringPolicy;
7922
+ rule: ConnectorFilteringRuleRule;
7923
+ updated_at?: DateTime;
7924
+ value: string;
7925
+ }
7926
+ export type ConnectorFilteringRuleRule = 'contains' | 'ends_with' | 'equals' | 'regex' | 'starts_with' | '>' | '<';
7927
+ export interface ConnectorFilteringRules {
7928
+ advanced_snippet: ConnectorFilteringAdvancedSnippet;
7929
+ rules: ConnectorFilteringRule[];
7930
+ validation: ConnectorFilteringRulesValidation;
7931
+ }
7932
+ export interface ConnectorFilteringRulesValidation {
7933
+ errors: ConnectorFilteringValidation[];
7934
+ state: ConnectorFilteringValidationState;
7935
+ }
7936
+ export interface ConnectorFilteringValidation {
7937
+ ids: Id[];
7938
+ messages: string[];
7939
+ }
7940
+ export type ConnectorFilteringValidationState = 'edited' | 'invalid' | 'valid';
7941
+ export interface ConnectorGreaterThanValidation {
7942
+ type: 'greater_than';
7943
+ constraint: double;
7944
+ }
7945
+ export interface ConnectorIncludedInValidation {
7946
+ type: 'included_in';
7947
+ constraint: string;
7948
+ }
7949
+ export interface ConnectorIngestPipelineParams {
7950
+ extract_binary_content: boolean;
7951
+ name: string;
7952
+ reduce_whitespace: boolean;
7953
+ run_ml_inference: boolean;
7954
+ }
7955
+ export interface ConnectorLessThanValidation {
7956
+ type: 'less_than';
7957
+ constraint: double;
7958
+ }
7959
+ export interface ConnectorListTypeValidation {
7960
+ type: 'list_type';
7961
+ constraint: ScalarValue[];
7962
+ }
7963
+ export interface ConnectorRegexValidation {
7964
+ type: 'regex';
7965
+ constraint: string;
7966
+ }
7967
+ export interface ConnectorSchedulingConfiguration {
7968
+ access_control?: ConnectorConnectorScheduling;
7969
+ full?: ConnectorConnectorScheduling;
7970
+ incremental?: ConnectorConnectorScheduling;
7971
+ }
7972
+ export interface ConnectorSelectOption {
7973
+ label: string;
7974
+ value: string;
7975
+ }
7976
+ export interface ConnectorSyncJobConnectorReference {
7977
+ configuration: ConnectorConnectorConfiguration;
7978
+ filtering: ConnectorFilteringRules;
7979
+ id: Id;
7980
+ index_name: string;
7981
+ language?: string;
7982
+ pipeline?: ConnectorIngestPipelineParams;
7983
+ service_type: string;
7984
+ }
7985
+ export type ConnectorSyncJobTriggerMethod = 'on_demand' | 'scheduled';
7986
+ export type ConnectorSyncJobType = 'full' | 'incremental' | 'access_control';
7987
+ export interface ConnectorSyncRulesFeature {
7988
+ advanced?: ConnectorFeatureEnabled;
7989
+ basic?: ConnectorFeatureEnabled;
7990
+ }
7991
+ export type ConnectorSyncStatus = 'canceling' | 'canceled' | 'completed' | 'error' | 'in_progress' | 'pending' | 'suspended';
7992
+ export type ConnectorValidation = ConnectorLessThanValidation | ConnectorGreaterThanValidation | ConnectorListTypeValidation | ConnectorIncludedInValidation | ConnectorRegexValidation;
7993
+ export interface ConnectorCheckInRequest extends RequestBase {
7994
+ connector_id: Id;
7995
+ }
7996
+ export interface ConnectorCheckInResponse {
7997
+ result: Result;
7998
+ }
7999
+ export interface ConnectorDeleteRequest extends RequestBase {
8000
+ connector_id: Id;
8001
+ delete_sync_jobs: boolean;
8002
+ }
8003
+ export type ConnectorDeleteResponse = AcknowledgedResponseBase;
8004
+ export interface ConnectorGetRequest extends RequestBase {
8005
+ connector_id: Id;
8006
+ }
8007
+ export type ConnectorGetResponse = ConnectorConnector;
8008
+ export interface ConnectorLastSyncRequest extends RequestBase {
8009
+ connector_id: Id;
8010
+ last_access_control_sync_error?: SpecUtilsWithNullValue<string>;
8011
+ last_access_control_sync_scheduled_at?: DateTime;
8012
+ last_access_control_sync_status?: ConnectorSyncStatus;
8013
+ last_deleted_document_count?: long;
8014
+ last_incremental_sync_scheduled_at?: DateTime;
8015
+ last_indexed_document_count?: long;
8016
+ last_seen?: SpecUtilsWithNullValue<DateTime>;
8017
+ last_sync_error?: SpecUtilsWithNullValue<string>;
8018
+ last_sync_scheduled_at?: DateTime;
8019
+ last_sync_status?: ConnectorSyncStatus;
8020
+ last_synced?: DateTime;
8021
+ }
8022
+ export interface ConnectorLastSyncResponse {
8023
+ result: Result;
8024
+ }
8025
+ export interface ConnectorListRequest extends RequestBase {
8026
+ from?: integer;
8027
+ size?: integer;
8028
+ index_name?: Indices;
8029
+ connector_name?: Names;
8030
+ service_type?: Names;
8031
+ query?: string;
8032
+ }
8033
+ export interface ConnectorListResponse {
8034
+ count: long;
8035
+ results: ConnectorConnector[];
8036
+ }
8037
+ export interface ConnectorPostRequest extends RequestBase {
8038
+ description?: string;
8039
+ index_name: SpecUtilsWithNullValue<IndexName>;
8040
+ is_native?: boolean;
8041
+ language?: string;
8042
+ name?: string;
8043
+ service_type?: string;
8044
+ }
8045
+ export interface ConnectorPostResponse {
8046
+ id: Id;
8047
+ }
8048
+ export interface ConnectorPutRequest extends RequestBase {
8049
+ connector_id: Id;
8050
+ description?: string;
8051
+ index_name: SpecUtilsWithNullValue<IndexName>;
8052
+ is_native?: boolean;
8053
+ language?: string;
8054
+ name?: string;
8055
+ service_type?: string;
8056
+ }
8057
+ export interface ConnectorPutResponse {
8058
+ result: Result;
8059
+ }
8060
+ export interface ConnectorSyncJobCancelRequest extends RequestBase {
8061
+ connector_sync_job_id: Id;
8062
+ }
8063
+ export interface ConnectorSyncJobCancelResponse {
8064
+ result: Result;
8065
+ }
8066
+ export interface ConnectorSyncJobDeleteRequest extends RequestBase {
8067
+ connector_sync_job_id: Id;
8068
+ }
8069
+ export type ConnectorSyncJobDeleteResponse = AcknowledgedResponseBase;
8070
+ export interface ConnectorSyncJobGetRequest extends RequestBase {
8071
+ connector_sync_job_id: Id;
8072
+ }
8073
+ export type ConnectorSyncJobGetResponse = ConnectorConnectorSyncJob;
8074
+ export interface ConnectorSyncJobListRequest extends RequestBase {
8075
+ from?: integer;
8076
+ size?: integer;
8077
+ status?: ConnectorSyncStatus;
8078
+ connector_id?: Id;
8079
+ job_type?: ConnectorSyncJobType[];
8080
+ }
8081
+ export interface ConnectorSyncJobListResponse {
8082
+ count: long;
8083
+ results: ConnectorConnectorSyncJob[];
8084
+ }
8085
+ export interface ConnectorSyncJobPostRequest extends RequestBase {
8086
+ id: Id;
8087
+ job_type?: ConnectorSyncJobType;
8088
+ trigger_method?: ConnectorSyncJobTriggerMethod;
8089
+ }
8090
+ export interface ConnectorSyncJobPostResponse {
8091
+ id: Id;
8092
+ }
8093
+ export interface ConnectorUpdateActiveFilteringRequest extends RequestBase {
8094
+ connector_id: Id;
8095
+ }
8096
+ export interface ConnectorUpdateActiveFilteringResponse {
8097
+ result: Result;
8098
+ }
8099
+ export interface ConnectorUpdateApiKeyIdRequest extends RequestBase {
8100
+ connector_id: Id;
8101
+ api_key_id?: SpecUtilsWithNullValue<string>;
8102
+ api_key_secret_id?: SpecUtilsWithNullValue<string>;
8103
+ }
8104
+ export interface ConnectorUpdateApiKeyIdResponse {
8105
+ result: Result;
8106
+ }
8107
+ export interface ConnectorUpdateConfigurationRequest extends RequestBase {
8108
+ connector_id: Id;
8109
+ configuration?: ConnectorConnectorConfiguration;
8110
+ values?: Record<string, any>;
8111
+ }
8112
+ export interface ConnectorUpdateConfigurationResponse {
8113
+ result: Result;
8114
+ }
8115
+ export interface ConnectorUpdateErrorRequest extends RequestBase {
8116
+ connector_id: Id;
8117
+ error: SpecUtilsWithNullValue<string>;
8118
+ }
8119
+ export interface ConnectorUpdateErrorResponse {
8120
+ result: Result;
8121
+ }
8122
+ export interface ConnectorUpdateFilteringRequest extends RequestBase {
8123
+ connector_id: Id;
8124
+ filtering?: ConnectorFilteringConfig[];
8125
+ rules?: ConnectorFilteringRule[];
8126
+ advanced_snippet?: ConnectorFilteringAdvancedSnippet;
8127
+ }
8128
+ export interface ConnectorUpdateFilteringResponse {
8129
+ result: Result;
8130
+ }
8131
+ export interface ConnectorUpdateFilteringValidationRequest extends RequestBase {
8132
+ connector_id: Id;
8133
+ validation: ConnectorFilteringRulesValidation;
8134
+ }
8135
+ export interface ConnectorUpdateFilteringValidationResponse {
8136
+ result: Result;
8137
+ }
8138
+ export interface ConnectorUpdateIndexNameRequest extends RequestBase {
8139
+ connector_id: Id;
8140
+ index_name: SpecUtilsWithNullValue<IndexName>;
8141
+ }
8142
+ export interface ConnectorUpdateIndexNameResponse {
8143
+ result: Result;
8144
+ }
8145
+ export interface ConnectorUpdateNameRequest extends RequestBase {
8146
+ connector_id: Id;
8147
+ name: string;
8148
+ description?: string;
8149
+ }
8150
+ export interface ConnectorUpdateNameResponse {
8151
+ result: Result;
8152
+ }
8153
+ export interface ConnectorUpdateNativeRequest extends RequestBase {
8154
+ connector_id: Id;
8155
+ is_native: boolean;
8156
+ }
8157
+ export interface ConnectorUpdateNativeResponse {
8158
+ result: Result;
8159
+ }
8160
+ export interface ConnectorUpdatePipelineRequest extends RequestBase {
8161
+ connector_id: Id;
8162
+ pipeline: ConnectorIngestPipelineParams;
8163
+ }
8164
+ export interface ConnectorUpdatePipelineResponse {
8165
+ result: Result;
8166
+ }
8167
+ export interface ConnectorUpdateSchedulingRequest extends RequestBase {
8168
+ connector_id: Id;
8169
+ scheduling: ConnectorSchedulingConfiguration;
8170
+ }
8171
+ export interface ConnectorUpdateSchedulingResponse {
8172
+ result: Result;
8173
+ }
8174
+ export interface ConnectorUpdateServiceTypeRequest extends RequestBase {
8175
+ connector_id: Id;
8176
+ service_type: string;
8177
+ }
8178
+ export interface ConnectorUpdateServiceTypeResponse {
8179
+ result: Result;
8180
+ }
8181
+ export interface ConnectorUpdateStatusRequest extends RequestBase {
8182
+ connector_id: Id;
8183
+ status: ConnectorConnectorStatus;
8184
+ }
8185
+ export interface ConnectorUpdateStatusResponse {
8186
+ result: Result;
8187
+ }
7725
8188
  export interface DanglingIndicesDeleteDanglingIndexRequest extends RequestBase {
7726
8189
  index_uuid: Uuid;
7727
8190
  accept_data_loss: boolean;
@@ -8413,7 +8876,7 @@ export interface IndicesIndexSettingsAnalysis {
8413
8876
  tokenizer?: Record<string, AnalysisTokenizer>;
8414
8877
  }
8415
8878
  export interface IndicesIndexSettingsLifecycle {
8416
- name: Name;
8879
+ name?: Name;
8417
8880
  indexing_complete?: SpecUtilsStringified<boolean>;
8418
8881
  origination_date?: long;
8419
8882
  parse_origination_date?: boolean;
@@ -8486,22 +8949,23 @@ export interface IndicesMappingLimitSettings {
8486
8949
  ignore_malformed?: boolean;
8487
8950
  }
8488
8951
  export interface IndicesMappingLimitSettingsDepth {
8489
- limit?: integer;
8952
+ limit?: long;
8490
8953
  }
8491
8954
  export interface IndicesMappingLimitSettingsDimensionFields {
8492
- limit?: integer;
8955
+ limit?: long;
8493
8956
  }
8494
8957
  export interface IndicesMappingLimitSettingsFieldNameLength {
8495
8958
  limit?: long;
8496
8959
  }
8497
8960
  export interface IndicesMappingLimitSettingsNestedFields {
8498
- limit?: integer;
8961
+ limit?: long;
8499
8962
  }
8500
8963
  export interface IndicesMappingLimitSettingsNestedObjects {
8501
- limit?: integer;
8964
+ limit?: long;
8502
8965
  }
8503
8966
  export interface IndicesMappingLimitSettingsTotalFields {
8504
- limit?: integer;
8967
+ limit?: long;
8968
+ ignore_dynamic_beyond_limit?: boolean;
8505
8969
  }
8506
8970
  export interface IndicesMerge {
8507
8971
  scheduler?: IndicesMergeScheduler;
@@ -8602,7 +9066,7 @@ export interface IndicesStorage {
8602
9066
  type: IndicesStorageType;
8603
9067
  allow_mmap?: boolean;
8604
9068
  }
8605
- export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string;
9069
+ export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' | string;
8606
9070
  export interface IndicesTemplateMapping {
8607
9071
  aliases: Record<IndexName, IndicesAlias>;
8608
9072
  index_patterns: Name[];
@@ -9127,13 +9591,18 @@ export interface IndicesPutIndexTemplateIndexTemplateMapping {
9127
9591
  export interface IndicesPutIndexTemplateRequest extends RequestBase {
9128
9592
  name: Name;
9129
9593
  create?: boolean;
9594
+ master_timeout?: Duration;
9595
+ cause?: string;
9130
9596
  index_patterns?: Indices;
9131
9597
  composed_of?: Name[];
9132
9598
  template?: IndicesPutIndexTemplateIndexTemplateMapping;
9133
9599
  data_stream?: IndicesDataStreamVisibility;
9134
- priority?: integer;
9600
+ priority?: long;
9135
9601
  version?: VersionNumber;
9136
9602
  _meta?: Metadata;
9603
+ allow_auto_create?: boolean;
9604
+ ignore_missing_component_templates?: string[];
9605
+ deprecated?: boolean;
9137
9606
  }
9138
9607
  export type IndicesPutIndexTemplateResponse = AcknowledgedResponseBase;
9139
9608
  export interface IndicesPutMappingRequest extends RequestBase {
@@ -9172,14 +9641,13 @@ export type IndicesPutSettingsResponse = AcknowledgedResponseBase;
9172
9641
  export interface IndicesPutTemplateRequest extends RequestBase {
9173
9642
  name: Name;
9174
9643
  create?: boolean;
9175
- flat_settings?: boolean;
9176
9644
  master_timeout?: Duration;
9177
- timeout?: Duration;
9645
+ cause?: string;
9178
9646
  aliases?: Record<IndexName, IndicesAlias>;
9179
9647
  index_patterns?: string | string[];
9180
9648
  mappings?: MappingTypeMapping;
9181
9649
  order?: integer;
9182
- settings?: Record<string, any>;
9650
+ settings?: IndicesIndexSettings;
9183
9651
  version?: VersionNumber;
9184
9652
  }
9185
9653
  export type IndicesPutTemplateResponse = AcknowledgedResponseBase;
@@ -9468,19 +9936,12 @@ export interface IndicesShrinkResponse {
9468
9936
  }
9469
9937
  export interface IndicesSimulateIndexTemplateRequest extends RequestBase {
9470
9938
  name: Name;
9471
- create?: boolean;
9472
9939
  master_timeout?: Duration;
9473
9940
  include_defaults?: boolean;
9474
- allow_auto_create?: boolean;
9475
- index_patterns?: Indices;
9476
- composed_of?: Name[];
9477
- template?: IndicesPutIndexTemplateIndexTemplateMapping;
9478
- data_stream?: IndicesDataStreamVisibility;
9479
- priority?: integer;
9480
- version?: VersionNumber;
9481
- _meta?: Metadata;
9482
9941
  }
9483
9942
  export interface IndicesSimulateIndexTemplateResponse {
9943
+ overlapping?: IndicesSimulateTemplateOverlapping[];
9944
+ template: IndicesSimulateTemplateTemplate;
9484
9945
  }
9485
9946
  export interface IndicesSimulateTemplateOverlapping {
9486
9947
  name: Name;
@@ -9491,7 +9952,16 @@ export interface IndicesSimulateTemplateRequest extends RequestBase {
9491
9952
  create?: boolean;
9492
9953
  master_timeout?: Duration;
9493
9954
  include_defaults?: boolean;
9494
- template?: IndicesIndexTemplate;
9955
+ allow_auto_create?: boolean;
9956
+ index_patterns?: Indices;
9957
+ composed_of?: Name[];
9958
+ template?: IndicesPutIndexTemplateIndexTemplateMapping;
9959
+ data_stream?: IndicesDataStreamVisibility;
9960
+ priority?: long;
9961
+ version?: VersionNumber;
9962
+ _meta?: Metadata;
9963
+ ignore_missing_component_templates?: string[];
9964
+ deprecated?: boolean;
9495
9965
  }
9496
9966
  export interface IndicesSimulateTemplateResponse {
9497
9967
  overlapping?: IndicesSimulateTemplateOverlapping[];
@@ -9728,12 +10198,17 @@ export interface IndicesValidateQueryResponse {
9728
10198
  valid: boolean;
9729
10199
  error?: string;
9730
10200
  }
10201
+ export interface InferenceCompletionResult {
10202
+ result: string;
10203
+ }
9731
10204
  export type InferenceDenseByteVector = byte[];
9732
10205
  export type InferenceDenseVector = float[];
9733
10206
  export interface InferenceInferenceResult {
9734
10207
  text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
9735
10208
  text_embedding?: InferenceTextEmbeddingResult[];
9736
10209
  sparse_embedding?: InferenceSparseEmbeddingResult[];
10210
+ completion?: InferenceCompletionResult[];
10211
+ rerank?: InferenceRankedDocument[];
9737
10212
  }
9738
10213
  export interface InferenceModelConfig {
9739
10214
  service: string;
@@ -9744,13 +10219,18 @@ export interface InferenceModelConfigContainer extends InferenceModelConfig {
9744
10219
  model_id: string;
9745
10220
  task_type: InferenceTaskType;
9746
10221
  }
10222
+ export interface InferenceRankedDocument {
10223
+ index: integer;
10224
+ score: float;
10225
+ text?: string;
10226
+ }
9747
10227
  export type InferenceServiceSettings = any;
9748
10228
  export interface InferenceSparseEmbeddingResult {
9749
10229
  embedding: InferenceSparseVector;
9750
10230
  }
9751
10231
  export type InferenceSparseVector = Record<string, float>;
9752
10232
  export type InferenceTaskSettings = any;
9753
- export type InferenceTaskType = 'sparse_embedding' | 'text_embedding';
10233
+ export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' | 'completion';
9754
10234
  export interface InferenceTextEmbeddingByteResult {
9755
10235
  embedding: InferenceDenseByteVector;
9756
10236
  }
@@ -9772,6 +10252,8 @@ export interface InferenceGetModelResponse {
9772
10252
  export interface InferenceInferenceRequest extends RequestBase {
9773
10253
  task_type?: InferenceTaskType;
9774
10254
  inference_id: Id;
10255
+ timeout?: Duration;
10256
+ query?: string;
9775
10257
  input: string | string[];
9776
10258
  task_settings?: InferenceTaskSettings;
9777
10259
  }
@@ -10006,6 +10488,7 @@ export interface IngestProcessorContainer {
10006
10488
  }
10007
10489
  export interface IngestRemoveProcessor extends IngestProcessorBase {
10008
10490
  field: Fields;
10491
+ keep?: Fields;
10009
10492
  ignore_missing?: boolean;
10010
10493
  }
10011
10494
  export interface IngestRenameProcessor extends IngestProcessorBase {
@@ -10902,7 +11385,7 @@ export interface MlInferenceConfigUpdateContainer {
10902
11385
  export interface MlInferenceResponseResult {
10903
11386
  entities?: MlTrainedModelEntities[];
10904
11387
  is_truncated?: boolean;
10905
- predicted_value?: MlPredictedValue[];
11388
+ predicted_value?: MlPredictedValue | MlPredictedValue[];
10906
11389
  predicted_value_sequence?: string;
10907
11390
  prediction_probability?: double;
10908
11391
  prediction_score?: double;
@@ -11296,7 +11779,7 @@ export interface MlTrainedModelDeploymentStats {
11296
11779
  error_count: integer;
11297
11780
  inference_count: integer;
11298
11781
  model_id: Id;
11299
- nodes: MlTrainedModelDeploymentNodesStats;
11782
+ nodes: MlTrainedModelDeploymentNodesStats[];
11300
11783
  number_of_allocations: integer;
11301
11784
  queue_capacity: integer;
11302
11785
  rejected_execution_count: integer;
@@ -11327,7 +11810,7 @@ export interface MlTrainedModelInferenceStats {
11327
11810
  failure_count: integer;
11328
11811
  inference_count: integer;
11329
11812
  missing_all_fields_count: integer;
11330
- timestamp: DateTime;
11813
+ timestamp: EpochTime<UnitMillis>;
11331
11814
  }
11332
11815
  export interface MlTrainedModelLocation {
11333
11816
  index: MlTrainedModelLocationIndex;
@@ -12385,6 +12868,13 @@ export interface MlUpdateModelSnapshotResponse {
12385
12868
  acknowledged: boolean;
12386
12869
  model: MlModelSnapshot;
12387
12870
  }
12871
+ export interface MlUpdateTrainedModelDeploymentRequest extends RequestBase {
12872
+ model_id: Id;
12873
+ number_of_allocations?: integer;
12874
+ }
12875
+ export interface MlUpdateTrainedModelDeploymentResponse {
12876
+ assignment: MlTrainedModelAssignment;
12877
+ }
12388
12878
  export interface MlUpgradeJobSnapshotRequest extends RequestBase {
12389
12879
  job_id: Id;
12390
12880
  snapshot_id: Id;
@@ -12974,7 +13464,7 @@ export interface NodesInfoNodeInfoRepositoriesUrl {
12974
13464
  }
12975
13465
  export interface NodesInfoNodeInfoScript {
12976
13466
  allowed_types: string;
12977
- disable_max_compilations_rate: string;
13467
+ disable_max_compilations_rate?: string;
12978
13468
  }
12979
13469
  export interface NodesInfoNodeInfoSearch {
12980
13470
  remote: NodesInfoNodeInfoSearchRemote;
@@ -12989,7 +13479,7 @@ export interface NodesInfoNodeInfoSettings {
12989
13479
  repositories?: NodesInfoNodeInfoRepositories;
12990
13480
  discovery?: NodesInfoNodeInfoDiscover;
12991
13481
  action?: NodesInfoNodeInfoAction;
12992
- client: NodesInfoNodeInfoClient;
13482
+ client?: NodesInfoNodeInfoClient;
12993
13483
  http: NodesInfoNodeInfoSettingsHttp;
12994
13484
  bootstrap?: NodesInfoNodeInfoBootstrap;
12995
13485
  transport: NodesInfoNodeInfoSettingsTransport;
@@ -13055,7 +13545,7 @@ export interface NodesInfoNodeInfoSettingsIngest {
13055
13545
  inference?: NodesInfoNodeInfoIngestInfo;
13056
13546
  }
13057
13547
  export interface NodesInfoNodeInfoSettingsNetwork {
13058
- host: Host;
13548
+ host?: Host;
13059
13549
  }
13060
13550
  export interface NodesInfoNodeInfoSettingsNode {
13061
13551
  name: Name;
@@ -13478,6 +13968,7 @@ export interface SearchApplicationPutBehavioralAnalyticsRequest extends RequestB
13478
13968
  export type SearchApplicationPutBehavioralAnalyticsResponse = SearchApplicationPutBehavioralAnalyticsAnalyticsAcknowledgeResponseBase;
13479
13969
  export interface SearchApplicationSearchRequest extends RequestBase {
13480
13970
  name: Name;
13971
+ typed_keys?: boolean;
13481
13972
  params?: Record<string, any>;
13482
13973
  }
13483
13974
  export type SearchApplicationSearchResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = SearchResponseBody<TDocument, TAggregations>;
@@ -13545,7 +14036,9 @@ export interface SecurityApiKey {
13545
14036
  invalidated?: boolean;
13546
14037
  name: Name;
13547
14038
  realm?: string;
14039
+ realm_type?: string;
13548
14040
  username?: Username;
14041
+ profile_uid?: string;
13549
14042
  metadata?: Metadata;
13550
14043
  role_descriptors?: Record<string, SecurityRoleDescriptor>;
13551
14044
  limited_by?: Record<string, SecurityRoleDescriptor>[];
@@ -13562,7 +14055,7 @@ export interface SecurityApplicationPrivileges {
13562
14055
  export interface SecurityClusterNode {
13563
14056
  name: Name;
13564
14057
  }
13565
- export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_ccr' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'read_ccr' | 'read_ilm' | 'read_pipeline' | 'read_slm' | 'transport_client' | string;
14058
+ export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'cross_cluster_replication' | 'cross_cluster_search' | 'delegate_pki' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_autoscaling' | 'manage_behavioral_analytics' | 'manage_ccr' | 'manage_data_frame_transforms' | 'manage_data_stream_global_retention' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_inference' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_search_application' | 'manage_search_query_rules' | 'manage_search_synonyms' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_data_frame_transforms' | 'monitor_data_stream_global_retention' | 'monitor_enrich' | 'monitor_inference' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'none' | 'post_behavioral_analytics_event' | 'read_ccr' | 'read_connector_secrets' | 'read_fleet_secrets' | 'read_ilm' | 'read_pipeline' | 'read_security' | 'read_slm' | 'transport_client' | 'write_connector_secrets' | 'write_fleet_secrets' | string;
13566
14059
  export interface SecurityCreatedStatus {
13567
14060
  created: boolean;
13568
14061
  }
@@ -13579,7 +14072,7 @@ export interface SecurityGlobalPrivilege {
13579
14072
  application: SecurityApplicationGlobalUserPrivileges;
13580
14073
  }
13581
14074
  export type SecurityGrantType = 'password' | 'access_token';
13582
- export type SecurityIndexPrivilege = 'none' | 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write' | string;
14075
+ export type SecurityIndexPrivilege = 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'cross_cluster_replication' | 'cross_cluster_replication_internal' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_data_stream_lifecycle' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'none' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write' | string;
13583
14076
  export interface SecurityIndicesPrivileges {
13584
14077
  field_security?: SecurityFieldSecurity;
13585
14078
  names: Indices;
@@ -13618,9 +14111,9 @@ export interface SecurityRoleDescriptorRead {
13618
14111
  export interface SecurityRoleMapping {
13619
14112
  enabled: boolean;
13620
14113
  metadata: Metadata;
13621
- roles: string[];
13622
- rules: SecurityRoleMappingRule;
14114
+ roles?: string[];
13623
14115
  role_templates?: SecurityRoleTemplate[];
14116
+ rules: SecurityRoleMappingRule;
13624
14117
  }
13625
14118
  export interface SecurityRoleMappingRule {
13626
14119
  any?: SecurityRoleMappingRule[];
@@ -13877,6 +14370,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
13877
14370
  username?: Username;
13878
14371
  with_limited_by?: boolean;
13879
14372
  active_only?: boolean;
14373
+ with_profile_uid?: boolean;
13880
14374
  }
13881
14375
  export interface SecurityGetApiKeyResponse {
13882
14376
  api_keys: SecurityApiKey[];
@@ -14176,6 +14670,7 @@ export interface SecurityQueryApiKeysApiKeyQueryContainer {
14176
14670
  }
14177
14671
  export interface SecurityQueryApiKeysRequest extends RequestBase {
14178
14672
  with_limited_by?: boolean;
14673
+ with_profile_uid?: boolean;
14179
14674
  typed_keys?: boolean;
14180
14675
  aggregations?: Record<string, SecurityQueryApiKeysApiKeyAggregationContainer>;
14181
14676
  /** @alias aggregations */
@@ -14888,7 +15383,7 @@ export interface SynonymsPutSynonymRequest extends RequestBase {
14888
15383
  }
14889
15384
  export interface SynonymsPutSynonymResponse {
14890
15385
  result: Result;
14891
- reload_analyzers_details: IndicesReloadSearchAnalyzersReloadDetails;
15386
+ reload_analyzers_details: IndicesReloadSearchAnalyzersReloadResult;
14892
15387
  }
14893
15388
  export interface SynonymsPutSynonymRuleRequest extends RequestBase {
14894
15389
  set_id: Id;