@elastic/elasticsearch 8.14.1 → 8.15.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 (109) hide show
  1. package/catalog-info.yaml +9 -9
  2. package/lib/api/api/async_search.d.ts +8 -8
  3. package/lib/api/api/autoscaling.d.ts +4 -4
  4. package/lib/api/api/bulk.d.ts +2 -2
  5. package/lib/api/api/capabilities.d.ts +14 -0
  6. package/lib/api/api/capabilities.js +42 -0
  7. package/lib/api/api/capabilities.js.map +1 -0
  8. package/lib/api/api/cat.d.ts +51 -51
  9. package/lib/api/api/ccr.d.ts +13 -13
  10. package/lib/api/api/clear_scroll.d.ts +2 -2
  11. package/lib/api/api/close_point_in_time.d.ts +2 -2
  12. package/lib/api/api/cluster.d.ts +24 -24
  13. package/lib/api/api/connector.d.ts +67 -53
  14. package/lib/api/api/connector.js +59 -3
  15. package/lib/api/api/connector.js.map +1 -1
  16. package/lib/api/api/count.d.ts +1 -1
  17. package/lib/api/api/create.d.ts +2 -2
  18. package/lib/api/api/dangling_indices.d.ts +3 -3
  19. package/lib/api/api/delete.d.ts +2 -2
  20. package/lib/api/api/delete_by_query.d.ts +2 -2
  21. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  22. package/lib/api/api/delete_script.d.ts +2 -2
  23. package/lib/api/api/enrich.d.ts +8 -8
  24. package/lib/api/api/eql.d.ts +7 -7
  25. package/lib/api/api/esql.d.ts +4 -4
  26. package/lib/api/api/exists.d.ts +2 -2
  27. package/lib/api/api/exists_source.d.ts +2 -2
  28. package/lib/api/api/explain.d.ts +2 -2
  29. package/lib/api/api/features.d.ts +2 -2
  30. package/lib/api/api/field_caps.d.ts +2 -2
  31. package/lib/api/api/fleet.d.ts +3 -3
  32. package/lib/api/api/get.d.ts +1 -1
  33. package/lib/api/api/get_script.d.ts +2 -2
  34. package/lib/api/api/get_script_context.d.ts +1 -1
  35. package/lib/api/api/get_script_languages.d.ts +1 -1
  36. package/lib/api/api/get_source.d.ts +1 -1
  37. package/lib/api/api/graph.d.ts +2 -2
  38. package/lib/api/api/health_report.d.ts +1 -1
  39. package/lib/api/api/ilm.d.ts +16 -16
  40. package/lib/api/api/index.d.ts +2 -2
  41. package/lib/api/api/indices.d.ts +111 -111
  42. package/lib/api/api/inference.d.ts +17 -17
  43. package/lib/api/api/inference.js +8 -7
  44. package/lib/api/api/inference.js.map +1 -1
  45. package/lib/api/api/info.d.ts +1 -1
  46. package/lib/api/api/ingest.d.ts +33 -12
  47. package/lib/api/api/ingest.js +92 -0
  48. package/lib/api/api/ingest.js.map +1 -1
  49. package/lib/api/api/knn_search.d.ts +1 -1
  50. package/lib/api/api/license.d.ts +10 -10
  51. package/lib/api/api/logstash.d.ts +6 -6
  52. package/lib/api/api/mget.d.ts +1 -1
  53. package/lib/api/api/migration.d.ts +3 -3
  54. package/lib/api/api/ml.d.ts +131 -131
  55. package/lib/api/api/monitoring.d.ts +1 -1
  56. package/lib/api/api/msearch.d.ts +1 -1
  57. package/lib/api/api/msearch_template.d.ts +2 -2
  58. package/lib/api/api/mtermvectors.d.ts +1 -1
  59. package/lib/api/api/nodes.d.ts +14 -14
  60. package/lib/api/api/open_point_in_time.d.ts +2 -2
  61. package/lib/api/api/ping.d.ts +1 -1
  62. package/lib/api/api/profiling.d.ts +4 -4
  63. package/lib/api/api/put_script.d.ts +2 -2
  64. package/lib/api/api/query_rules.d.ts +60 -0
  65. package/lib/api/api/{query_ruleset.js → query_rules.js} +97 -11
  66. package/lib/api/api/query_rules.js.map +1 -0
  67. package/lib/api/api/rank_eval.d.ts +2 -2
  68. package/lib/api/api/reindex.d.ts +1 -1
  69. package/lib/api/api/reindex_rethrottle.d.ts +2 -2
  70. package/lib/api/api/render_search_template.d.ts +2 -2
  71. package/lib/api/api/rollup.d.ts +10 -10
  72. package/lib/api/api/scripts_painless_execute.d.ts +2 -2
  73. package/lib/api/api/scroll.d.ts +1 -1
  74. package/lib/api/api/search.d.ts +2 -2
  75. package/lib/api/api/search_application.d.ts +11 -11
  76. package/lib/api/api/search_mvt.d.ts +1 -1
  77. package/lib/api/api/search_shards.d.ts +1 -1
  78. package/lib/api/api/search_template.d.ts +2 -2
  79. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  80. package/lib/api/api/security.d.ts +108 -87
  81. package/lib/api/api/security.js +121 -3
  82. package/lib/api/api/security.js.map +1 -1
  83. package/lib/api/api/simulate.d.ts +1 -1
  84. package/lib/api/api/slm.d.ts +9 -9
  85. package/lib/api/api/snapshot.d.ts +13 -13
  86. package/lib/api/api/sql.d.ts +6 -6
  87. package/lib/api/api/ssl.d.ts +1 -1
  88. package/lib/api/api/synonyms.d.ts +8 -8
  89. package/lib/api/api/tasks.d.ts +4 -4
  90. package/lib/api/api/terms_enum.d.ts +1 -1
  91. package/lib/api/api/termvectors.d.ts +1 -1
  92. package/lib/api/api/text_structure.d.ts +4 -4
  93. package/lib/api/api/transform.d.ts +26 -19
  94. package/lib/api/api/transform.js +20 -0
  95. package/lib/api/api/transform.js.map +1 -1
  96. package/lib/api/api/update.d.ts +1 -1
  97. package/lib/api/api/update_by_query.d.ts +2 -2
  98. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  99. package/lib/api/api/watcher.d.ts +14 -14
  100. package/lib/api/api/xpack.d.ts +4 -4
  101. package/lib/api/index.d.ts +6 -4
  102. package/lib/api/index.js +8 -6
  103. package/lib/api/index.js.map +1 -1
  104. package/lib/api/types.d.ts +672 -249
  105. package/lib/api/typesWithBodyKey.d.ts +691 -250
  106. package/lib/helpers.d.ts +1 -0
  107. package/package.json +5 -4
  108. package/lib/api/api/query_ruleset.d.ts +0 -39
  109. package/lib/api/api/query_ruleset.js.map +0 -1
@@ -63,7 +63,7 @@ export interface BulkUpdateAction<TDocument = unknown, TPartialDocument = unknow
63
63
  detect_noop?: boolean;
64
64
  doc?: TPartialDocument;
65
65
  doc_as_upsert?: boolean;
66
- script?: Script;
66
+ script?: Script | string;
67
67
  scripted_upsert?: boolean;
68
68
  _source?: SearchSourceConfig;
69
69
  upsert?: TDocument;
@@ -679,6 +679,7 @@ export interface MsearchRequest extends RequestBase {
679
679
  expand_wildcards?: ExpandWildcards;
680
680
  ignore_throttled?: boolean;
681
681
  ignore_unavailable?: boolean;
682
+ include_named_queries_score?: boolean;
682
683
  max_concurrent_searches?: long;
683
684
  max_concurrent_shard_requests?: long;
684
685
  pre_filter_shard_size?: long;
@@ -749,7 +750,7 @@ export interface MtermvectorsResponse {
749
750
  docs: MtermvectorsTermVectorsResult[];
750
751
  }
751
752
  export interface MtermvectorsTermVectorsResult {
752
- _id: Id;
753
+ _id?: Id;
753
754
  _index: IndexName;
754
755
  _version?: VersionNumber;
755
756
  took?: long;
@@ -889,7 +890,7 @@ export interface ReindexRequest extends RequestBase {
889
890
  conflicts?: Conflicts;
890
891
  dest: ReindexDestination;
891
892
  max_docs?: long;
892
- script?: Script;
893
+ script?: Script | string;
893
894
  size?: long;
894
895
  source: ReindexSource;
895
896
  };
@@ -981,7 +982,7 @@ export interface ScriptsPainlessExecuteRequest extends RequestBase {
981
982
  body?: {
982
983
  context?: string;
983
984
  context_setup?: ScriptsPainlessExecutePainlessContextSetup;
984
- script?: InlineScript | string;
985
+ script?: Script | string;
985
986
  };
986
987
  }
987
988
  export interface ScriptsPainlessExecuteResponse<TResult = unknown> {
@@ -1010,6 +1011,7 @@ export interface SearchRequest extends RequestBase {
1010
1011
  expand_wildcards?: ExpandWildcards;
1011
1012
  ignore_throttled?: boolean;
1012
1013
  ignore_unavailable?: boolean;
1014
+ include_named_queries_score?: boolean;
1013
1015
  lenient?: boolean;
1014
1016
  max_concurrent_shard_requests?: long;
1015
1017
  min_compatible_shard_node?: VersionString;
@@ -1137,6 +1139,10 @@ export interface SearchAggregationProfileDebug {
1137
1139
  segments_counted?: integer;
1138
1140
  segments_collected?: integer;
1139
1141
  map_reducer?: string;
1142
+ brute_force_used?: integer;
1143
+ dynamic_pruning_attempted?: integer;
1144
+ dynamic_pruning_used?: integer;
1145
+ skipped_due_to_no_data?: integer;
1140
1146
  }
1141
1147
  export interface SearchAggregationProfileDelegateDebugFilter {
1142
1148
  results_from_metadata?: integer;
@@ -1180,6 +1186,35 @@ export interface SearchCompletionSuggester extends SearchSuggesterBase {
1180
1186
  skip_duplicates?: boolean;
1181
1187
  }
1182
1188
  export type SearchContext = string | GeoLocation;
1189
+ export interface SearchDfsKnnProfile {
1190
+ vector_operations_count?: long;
1191
+ query: SearchKnnQueryProfileResult[];
1192
+ rewrite_time: long;
1193
+ collector: SearchKnnCollectorResult[];
1194
+ }
1195
+ export interface SearchDfsProfile {
1196
+ statistics?: SearchDfsStatisticsProfile;
1197
+ knn?: SearchDfsKnnProfile[];
1198
+ }
1199
+ export interface SearchDfsStatisticsBreakdown {
1200
+ collection_statistics: long;
1201
+ collection_statistics_count: long;
1202
+ create_weight: long;
1203
+ create_weight_count: long;
1204
+ rewrite: long;
1205
+ rewrite_count: long;
1206
+ term_statistics: long;
1207
+ term_statistics_count: long;
1208
+ }
1209
+ export interface SearchDfsStatisticsProfile {
1210
+ type: string;
1211
+ description: string;
1212
+ time?: Duration;
1213
+ time_in_nanos: DurationValue<UnitNanos>;
1214
+ breakdown: SearchDfsStatisticsBreakdown;
1215
+ debug?: Record<string, any>;
1216
+ children?: SearchDfsStatisticsProfile[];
1217
+ }
1183
1218
  export interface SearchDirectGenerator {
1184
1219
  field: Field;
1185
1220
  max_edits?: integer;
@@ -1274,14 +1309,15 @@ export interface SearchHit<TDocument = unknown> {
1274
1309
  fields?: Record<string, any>;
1275
1310
  highlight?: Record<string, string[]>;
1276
1311
  inner_hits?: Record<string, SearchInnerHitsResult>;
1277
- matched_queries?: string[];
1312
+ matched_queries?: string[] | Record<string, double>;
1278
1313
  _nested?: SearchNestedIdentity;
1279
1314
  _ignored?: string[];
1280
- ignored_field_values?: Record<string, string[]>;
1315
+ ignored_field_values?: Record<string, FieldValue[]>;
1281
1316
  _shard?: string;
1282
1317
  _node?: string;
1283
1318
  _routing?: string;
1284
1319
  _source?: TDocument;
1320
+ _rank?: integer;
1285
1321
  _seq_no?: SequenceNumber;
1286
1322
  _primary_term?: long;
1287
1323
  _version?: VersionNumber;
@@ -1313,6 +1349,44 @@ export interface SearchInnerHits {
1313
1349
  export interface SearchInnerHitsResult {
1314
1350
  hits: SearchHitsMetadata<any>;
1315
1351
  }
1352
+ export interface SearchKnnCollectorResult {
1353
+ name: string;
1354
+ reason: string;
1355
+ time?: Duration;
1356
+ time_in_nanos: DurationValue<UnitNanos>;
1357
+ children?: SearchKnnCollectorResult[];
1358
+ }
1359
+ export interface SearchKnnQueryProfileBreakdown {
1360
+ advance: long;
1361
+ advance_count: long;
1362
+ build_scorer: long;
1363
+ build_scorer_count: long;
1364
+ compute_max_score: long;
1365
+ compute_max_score_count: long;
1366
+ count_weight: long;
1367
+ count_weight_count: long;
1368
+ create_weight: long;
1369
+ create_weight_count: long;
1370
+ match: long;
1371
+ match_count: long;
1372
+ next_doc: long;
1373
+ next_doc_count: long;
1374
+ score: long;
1375
+ score_count: long;
1376
+ set_min_competitive_score: long;
1377
+ set_min_competitive_score_count: long;
1378
+ shallow_advance: long;
1379
+ shallow_advance_count: long;
1380
+ }
1381
+ export interface SearchKnnQueryProfileResult {
1382
+ type: string;
1383
+ description: string;
1384
+ time?: Duration;
1385
+ time_in_nanos: DurationValue<UnitNanos>;
1386
+ breakdown: SearchKnnQueryProfileBreakdown;
1387
+ debug?: Record<string, any>;
1388
+ children?: SearchKnnQueryProfileResult[];
1389
+ }
1316
1390
  export interface SearchLaplaceSmoothingModel {
1317
1391
  alpha: double;
1318
1392
  }
@@ -1391,6 +1465,8 @@ export interface SearchQueryBreakdown {
1391
1465
  score_count: long;
1392
1466
  compute_max_score: long;
1393
1467
  compute_max_score_count: long;
1468
+ count_weight: long;
1469
+ count_weight_count: long;
1394
1470
  set_min_competitive_score: long;
1395
1471
  set_min_competitive_score_count: long;
1396
1472
  }
@@ -1424,9 +1500,14 @@ export interface SearchSearchProfile {
1424
1500
  }
1425
1501
  export interface SearchShardProfile {
1426
1502
  aggregations: SearchAggregationProfile[];
1503
+ cluster: string;
1504
+ dfs?: SearchDfsProfile;
1505
+ fetch?: SearchFetchProfile;
1427
1506
  id: string;
1507
+ index: IndexName;
1508
+ node_id: NodeId;
1428
1509
  searches: SearchSearchProfile[];
1429
- fetch?: SearchFetchProfile;
1510
+ shard_id: long;
1430
1511
  }
1431
1512
  export interface SearchSmoothingModelContainer {
1432
1513
  laplace?: SearchLaplaceSmoothingModel;
@@ -1539,10 +1620,21 @@ export interface SearchShardsRequest extends RequestBase {
1539
1620
  routing?: Routing;
1540
1621
  }
1541
1622
  export interface SearchShardsResponse {
1542
- nodes: Record<string, NodeAttributes>;
1623
+ nodes: Record<NodeId, SearchShardsSearchShardsNodeAttributes>;
1543
1624
  shards: NodeShard[][];
1544
1625
  indices: Record<IndexName, SearchShardsShardStoreIndex>;
1545
1626
  }
1627
+ export interface SearchShardsSearchShardsNodeAttributes {
1628
+ name: NodeName;
1629
+ ephemeral_id: Id;
1630
+ transport_address: TransportAddress;
1631
+ external_id: string;
1632
+ attributes: Record<string, string>;
1633
+ roles: NodeRoles;
1634
+ version: VersionString;
1635
+ min_index_version: integer;
1636
+ max_index_version: integer;
1637
+ }
1546
1638
  export interface SearchShardsShardStoreIndex {
1547
1639
  aliases?: Name[];
1548
1640
  filter?: QueryDslQueryContainer;
@@ -1640,7 +1732,7 @@ export interface TermvectorsRequest<TDocument = unknown> extends RequestBase {
1640
1732
  }
1641
1733
  export interface TermvectorsResponse {
1642
1734
  found: boolean;
1643
- _id: Id;
1735
+ _id?: Id;
1644
1736
  _index: IndexName;
1645
1737
  term_vectors?: Record<Field, TermvectorsTermVector>;
1646
1738
  took: long;
@@ -1654,7 +1746,7 @@ export interface TermvectorsTerm {
1654
1746
  ttf?: integer;
1655
1747
  }
1656
1748
  export interface TermvectorsTermVector {
1657
- field_statistics: TermvectorsFieldStatistics;
1749
+ field_statistics?: TermvectorsFieldStatistics;
1658
1750
  terms: Record<string, TermvectorsTerm>;
1659
1751
  }
1660
1752
  export interface TermvectorsToken {
@@ -1682,7 +1774,7 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
1682
1774
  detect_noop?: boolean;
1683
1775
  doc?: TPartialDocument;
1684
1776
  doc_as_upsert?: boolean;
1685
- script?: Script;
1777
+ script?: Script | string;
1686
1778
  scripted_upsert?: boolean;
1687
1779
  _source?: SearchSourceConfig;
1688
1780
  upsert?: TDocument;
@@ -1705,6 +1797,7 @@ export interface UpdateByQueryRequest extends RequestBase {
1705
1797
  lenient?: boolean;
1706
1798
  pipeline?: string;
1707
1799
  preference?: string;
1800
+ q?: string;
1708
1801
  refresh?: boolean;
1709
1802
  request_cache?: boolean;
1710
1803
  requests_per_second?: float;
@@ -1726,7 +1819,7 @@ export interface UpdateByQueryRequest extends RequestBase {
1726
1819
  body?: {
1727
1820
  max_docs?: long;
1728
1821
  query?: QueryDslQueryContainer;
1729
- script?: Script;
1822
+ script?: Script | string;
1730
1823
  slice?: SlicedScroll;
1731
1824
  conflicts?: Conflicts;
1732
1825
  };
@@ -1958,6 +2051,7 @@ export interface GetStats {
1958
2051
  time_in_millis: DurationValue<UnitMillis>;
1959
2052
  total: long;
1960
2053
  }
2054
+ export type GrokPattern = string;
1961
2055
  export type HealthStatus = 'green' | 'GREEN' | 'yellow' | 'YELLOW' | 'red' | 'RED';
1962
2056
  export type Host = string;
1963
2057
  export type HttpHeaders = Record<string, string | string[]>;
@@ -2007,17 +2101,13 @@ export interface InlineGetKeys<TDocument = unknown> {
2007
2101
  export type InlineGet<TDocument = unknown> = InlineGetKeys<TDocument> & {
2008
2102
  [property: string]: any;
2009
2103
  };
2010
- export interface InlineScript extends ScriptBase {
2011
- lang?: ScriptLanguage;
2012
- options?: Record<string, string>;
2013
- source: string;
2014
- }
2015
2104
  export type Ip = string;
2016
2105
  export interface KnnQuery extends QueryDslQueryBase {
2017
2106
  field: Field;
2018
2107
  query_vector?: QueryVector;
2019
2108
  query_vector_builder?: QueryVectorBuilder;
2020
2109
  num_candidates?: integer;
2110
+ k?: integer;
2021
2111
  filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
2022
2112
  similarity?: float;
2023
2113
  }
@@ -2084,8 +2174,6 @@ export interface NodeAttributes {
2084
2174
  id?: NodeId;
2085
2175
  name: NodeName;
2086
2176
  transport_address: TransportAddress;
2087
- roles?: NodeRoles;
2088
- external_id?: string;
2089
2177
  }
2090
2178
  export type NodeId = string;
2091
2179
  export type NodeIds = NodeId | NodeId[];
@@ -2144,7 +2232,7 @@ export interface QueryVectorBuilder {
2144
2232
  export interface RRFRetriever extends RetrieverBase {
2145
2233
  retrievers: RetrieverContainer[];
2146
2234
  rank_constant?: integer;
2147
- window_size?: integer;
2235
+ rank_window_size?: integer;
2148
2236
  }
2149
2237
  export interface RankBase {
2150
2238
  }
@@ -2195,24 +2283,27 @@ export interface RetrieverContainer {
2195
2283
  export type Routing = string;
2196
2284
  export interface RrfRank {
2197
2285
  rank_constant?: long;
2198
- window_size?: long;
2286
+ rank_window_size?: long;
2199
2287
  }
2200
2288
  export type ScalarValue = long | double | string | boolean | null;
2201
2289
  export interface ScoreSort {
2202
2290
  order?: SortOrder;
2203
2291
  }
2204
- export type Script = InlineScript | string | StoredScriptId;
2205
- export interface ScriptBase {
2292
+ export interface Script {
2293
+ source?: string;
2294
+ id?: Id;
2206
2295
  params?: Record<string, any>;
2296
+ lang?: ScriptLanguage;
2297
+ options?: Record<string, string>;
2207
2298
  }
2208
2299
  export interface ScriptField {
2209
- script: Script;
2300
+ script: Script | string;
2210
2301
  ignore_failure?: boolean;
2211
2302
  }
2212
2303
  export type ScriptLanguage = 'painless' | 'expression' | 'mustache' | 'java' | string;
2213
2304
  export interface ScriptSort {
2214
2305
  order?: SortOrder;
2215
- script: Script;
2306
+ script: Script | string;
2216
2307
  type?: ScriptSortType;
2217
2308
  mode?: SortMode;
2218
2309
  nested?: NestedSortValue;
@@ -2294,7 +2385,7 @@ export interface ShardStatistics {
2294
2385
  skipped?: uint;
2295
2386
  }
2296
2387
  export interface ShardsOperationResponseBase {
2297
- _shards: ShardStatistics;
2388
+ _shards?: ShardStatistics;
2298
2389
  }
2299
2390
  export interface SlicedScroll {
2300
2391
  field?: Field;
@@ -2338,9 +2429,6 @@ export interface StoredScript {
2338
2429
  options?: Record<string, string>;
2339
2430
  source: string;
2340
2431
  }
2341
- export interface StoredScriptId extends ScriptBase {
2342
- id: Id;
2343
- }
2344
2432
  export type SuggestMode = 'missing' | 'popular' | 'always';
2345
2433
  export type SuggestionName = string;
2346
2434
  export interface TaskFailure {
@@ -2432,7 +2520,7 @@ export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMulti
2432
2520
  export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys & {
2433
2521
  [property: string]: AggregationsAggregate | string | long;
2434
2522
  };
2435
- export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate;
2523
+ export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsTimeSeriesAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate;
2436
2524
  export interface AggregationsAggregateBase {
2437
2525
  meta?: Metadata;
2438
2526
  }
@@ -2502,6 +2590,7 @@ export interface AggregationsAggregationContainer {
2502
2590
  rare_terms?: AggregationsRareTermsAggregation;
2503
2591
  rate?: AggregationsRateAggregation;
2504
2592
  reverse_nested?: AggregationsReverseNestedAggregation;
2593
+ random_sampler?: AggregationsRandomSamplerAggregation;
2505
2594
  sampler?: AggregationsSamplerAggregation;
2506
2595
  scripted_metric?: AggregationsScriptedMetricAggregation;
2507
2596
  serial_diff?: AggregationsSerialDifferencingAggregation;
@@ -2513,6 +2602,7 @@ export interface AggregationsAggregationContainer {
2513
2602
  sum?: AggregationsSumAggregation;
2514
2603
  sum_bucket?: AggregationsSumBucketAggregation;
2515
2604
  terms?: AggregationsTermsAggregation;
2605
+ time_series?: AggregationsTimeSeriesAggregation;
2516
2606
  top_hits?: AggregationsTopHitsAggregation;
2517
2607
  t_test?: AggregationsTTestAggregation;
2518
2608
  top_metrics?: AggregationsTopMetricsAggregation;
@@ -2541,7 +2631,7 @@ export interface AggregationsAutoDateHistogramAggregation extends AggregationsBu
2541
2631
  missing?: DateTime;
2542
2632
  offset?: string;
2543
2633
  params?: Record<string, any>;
2544
- script?: Script;
2634
+ script?: Script | string;
2545
2635
  time_zone?: TimeZone;
2546
2636
  }
2547
2637
  export interface AggregationsAverageAggregation extends AggregationsFormatMetricAggregationBase {
@@ -2597,10 +2687,10 @@ export interface AggregationsBucketPathAggregation {
2597
2687
  buckets_path?: AggregationsBucketsPath;
2598
2688
  }
2599
2689
  export interface AggregationsBucketScriptAggregation extends AggregationsPipelineAggregationBase {
2600
- script?: Script;
2690
+ script?: Script | string;
2601
2691
  }
2602
2692
  export interface AggregationsBucketSelectorAggregation extends AggregationsPipelineAggregationBase {
2603
- script?: Script;
2693
+ script?: Script | string;
2604
2694
  }
2605
2695
  export interface AggregationsBucketSortAggregation {
2606
2696
  from?: integer;
@@ -2658,7 +2748,7 @@ export interface AggregationsCompositeAggregationBase {
2658
2748
  field?: Field;
2659
2749
  missing_bucket?: boolean;
2660
2750
  missing_order?: AggregationsMissingOrder;
2661
- script?: Script;
2751
+ script?: Script | string;
2662
2752
  value_type?: AggregationsValueType;
2663
2753
  order?: SortOrder;
2664
2754
  }
@@ -2718,7 +2808,7 @@ export interface AggregationsDateHistogramAggregation extends AggregationsBucket
2718
2808
  offset?: Duration;
2719
2809
  order?: AggregationsAggregateOrder;
2720
2810
  params?: Record<string, any>;
2721
- script?: Script;
2811
+ script?: Script | string;
2722
2812
  time_zone?: TimeZone;
2723
2813
  keyed?: boolean;
2724
2814
  }
@@ -2753,7 +2843,7 @@ export interface AggregationsDerivativeAggregation extends AggregationsPipelineA
2753
2843
  export interface AggregationsDiversifiedSamplerAggregation extends AggregationsBucketAggregationBase {
2754
2844
  execution_hint?: AggregationsSamplerAggregationExecutionHint;
2755
2845
  max_docs_per_value?: integer;
2756
- script?: Script;
2846
+ script?: Script | string;
2757
2847
  shard_size?: integer;
2758
2848
  field?: Field;
2759
2849
  }
@@ -2962,7 +3052,7 @@ export interface AggregationsHistogramAggregation extends AggregationsBucketAggr
2962
3052
  missing?: double;
2963
3053
  offset?: double;
2964
3054
  order?: AggregationsAggregateOrder;
2965
- script?: Script;
3055
+ script?: Script | string;
2966
3056
  format?: string;
2967
3057
  keyed?: boolean;
2968
3058
  }
@@ -3121,7 +3211,7 @@ export interface AggregationsMedianAbsoluteDeviationAggregation extends Aggregat
3121
3211
  export interface AggregationsMetricAggregationBase {
3122
3212
  field?: Field;
3123
3213
  missing?: AggregationsMissing;
3124
- script?: Script;
3214
+ script?: Script | string;
3125
3215
  }
3126
3216
  export interface AggregationsMinAggregate extends AggregationsSingleMetricAggregateBase {
3127
3217
  }
@@ -3238,13 +3328,18 @@ export interface AggregationsPipelineAggregationBase extends AggregationsBucketP
3238
3328
  format?: string;
3239
3329
  gap_policy?: AggregationsGapPolicy;
3240
3330
  }
3331
+ export interface AggregationsRandomSamplerAggregation extends AggregationsBucketAggregationBase {
3332
+ probability: double;
3333
+ seed?: integer;
3334
+ shard_seed?: integer;
3335
+ }
3241
3336
  export interface AggregationsRangeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsRangeBucket> {
3242
3337
  }
3243
3338
  export interface AggregationsRangeAggregation extends AggregationsBucketAggregationBase {
3244
3339
  field?: Field;
3245
3340
  missing?: integer;
3246
3341
  ranges?: AggregationsAggregationRange[];
3247
- script?: Script;
3342
+ script?: Script | string;
3248
3343
  keyed?: boolean;
3249
3344
  format?: string;
3250
3345
  }
@@ -3294,17 +3389,17 @@ export interface AggregationsSamplerAggregation extends AggregationsBucketAggreg
3294
3389
  }
3295
3390
  export type AggregationsSamplerAggregationExecutionHint = 'map' | 'global_ordinals' | 'bytes_hash';
3296
3391
  export interface AggregationsScriptedHeuristic {
3297
- script: Script;
3392
+ script: Script | string;
3298
3393
  }
3299
3394
  export interface AggregationsScriptedMetricAggregate extends AggregationsAggregateBase {
3300
3395
  value: any;
3301
3396
  }
3302
3397
  export interface AggregationsScriptedMetricAggregation extends AggregationsMetricAggregationBase {
3303
- combine_script?: Script;
3304
- init_script?: Script;
3305
- map_script?: Script;
3398
+ combine_script?: Script | string;
3399
+ init_script?: Script | string;
3400
+ map_script?: Script | string;
3306
3401
  params?: Record<string, any>;
3307
- reduce_script?: Script;
3402
+ reduce_script?: Script | string;
3308
3403
  }
3309
3404
  export interface AggregationsSerialDifferencingAggregation extends AggregationsPipelineAggregationBase {
3310
3405
  lag?: integer;
@@ -3485,7 +3580,7 @@ export interface AggregationsTermsAggregation extends AggregationsBucketAggregat
3485
3580
  missing_bucket?: boolean;
3486
3581
  value_type?: string;
3487
3582
  order?: AggregationsAggregateOrder;
3488
- script?: Script;
3583
+ script?: Script | string;
3489
3584
  shard_min_doc_count?: long;
3490
3585
  shard_size?: integer;
3491
3586
  show_term_doc_count_error?: boolean;
@@ -3505,9 +3600,21 @@ export interface AggregationsTermsPartition {
3505
3600
  }
3506
3601
  export interface AggregationsTestPopulation {
3507
3602
  field: Field;
3508
- script?: Script;
3603
+ script?: Script | string;
3509
3604
  filter?: QueryDslQueryContainer;
3510
3605
  }
3606
+ export interface AggregationsTimeSeriesAggregate extends AggregationsMultiBucketAggregateBase<AggregationsTimeSeriesBucket> {
3607
+ }
3608
+ export interface AggregationsTimeSeriesAggregation extends AggregationsBucketAggregationBase {
3609
+ size?: integer;
3610
+ keyed?: boolean;
3611
+ }
3612
+ export interface AggregationsTimeSeriesBucketKeys extends AggregationsMultiBucketBase {
3613
+ key: Record<Field, FieldValue>;
3614
+ }
3615
+ export type AggregationsTimeSeriesBucket = AggregationsTimeSeriesBucketKeys & {
3616
+ [property: string]: AggregationsAggregate | Record<Field, FieldValue> | long;
3617
+ };
3511
3618
  export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase {
3512
3619
  hits: SearchHitsMetadata<any>;
3513
3620
  }
@@ -3564,7 +3671,7 @@ export interface AggregationsVariableWidthHistogramAggregation {
3564
3671
  buckets?: integer;
3565
3672
  shard_size?: integer;
3566
3673
  initial_buffer?: integer;
3567
- script?: Script;
3674
+ script?: Script | string;
3568
3675
  }
3569
3676
  export interface AggregationsVariableWidthHistogramBucketKeys extends AggregationsMultiBucketBase {
3570
3677
  min: double;
@@ -3586,7 +3693,7 @@ export interface AggregationsWeightedAverageAggregation {
3586
3693
  export interface AggregationsWeightedAverageValue {
3587
3694
  field?: Field;
3588
3695
  missing?: double;
3589
- script?: Script;
3696
+ script?: Script | string;
3590
3697
  }
3591
3698
  export interface AggregationsWeightedAvgAggregate extends AggregationsSingleMetricAggregateBase {
3592
3699
  }
@@ -3624,7 +3731,7 @@ export interface AnalysisCompoundWordTokenFilterBase extends AnalysisTokenFilter
3624
3731
  export interface AnalysisConditionTokenFilter extends AnalysisTokenFilterBase {
3625
3732
  type: 'condition';
3626
3733
  filter: string[];
3627
- script: Script;
3734
+ script: Script | string;
3628
3735
  }
3629
3736
  export interface AnalysisCustomAnalyzer {
3630
3737
  type: 'custom';
@@ -3935,18 +4042,18 @@ export type AnalysisPhoneticRuleType = 'approx' | 'exact';
3935
4042
  export interface AnalysisPhoneticTokenFilter extends AnalysisTokenFilterBase {
3936
4043
  type: 'phonetic';
3937
4044
  encoder: AnalysisPhoneticEncoder;
3938
- languageset: AnalysisPhoneticLanguage | AnalysisPhoneticLanguage[];
4045
+ languageset?: AnalysisPhoneticLanguage | AnalysisPhoneticLanguage[];
3939
4046
  max_code_len?: integer;
3940
- name_type: AnalysisPhoneticNameType;
4047
+ name_type?: AnalysisPhoneticNameType;
3941
4048
  replace?: boolean;
3942
- rule_type: AnalysisPhoneticRuleType;
4049
+ rule_type?: AnalysisPhoneticRuleType;
3943
4050
  }
3944
4051
  export interface AnalysisPorterStemTokenFilter extends AnalysisTokenFilterBase {
3945
4052
  type: 'porter_stem';
3946
4053
  }
3947
4054
  export interface AnalysisPredicateTokenFilter extends AnalysisTokenFilterBase {
3948
4055
  type: 'predicate_token_filter';
3949
- script: Script;
4056
+ script: Script | string;
3950
4057
  }
3951
4058
  export interface AnalysisRemoveDuplicatesTokenFilter extends AnalysisTokenFilterBase {
3952
4059
  type: 'remove_duplicates';
@@ -4184,8 +4291,9 @@ export interface MappingDateRangeProperty extends MappingRangePropertyBase {
4184
4291
  }
4185
4292
  export interface MappingDenseVectorIndexOptions {
4186
4293
  type: string;
4187
- m: integer;
4188
- ef_construction: integer;
4294
+ m?: integer;
4295
+ ef_construction?: integer;
4296
+ confidence_interval?: float;
4189
4297
  }
4190
4298
  export interface MappingDenseVectorProperty extends MappingPropertyBase {
4191
4299
  type: 'dense_vector';
@@ -4212,7 +4320,7 @@ export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4212
4320
  null_value?: FieldValue;
4213
4321
  boost?: double;
4214
4322
  coerce?: boolean;
4215
- script?: Script;
4323
+ script?: Script | string;
4216
4324
  on_script_error?: MappingOnScriptError;
4217
4325
  ignore_malformed?: boolean;
4218
4326
  time_series_metric?: MappingTimeSeriesMetricType;
@@ -4253,7 +4361,7 @@ export interface MappingFieldMapping {
4253
4361
  export interface MappingFieldNamesField {
4254
4362
  enabled: boolean;
4255
4363
  }
4256
- 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';
4364
+ 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' | 'semantic_text' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword';
4257
4365
  export interface MappingFlattenedProperty extends MappingPropertyBase {
4258
4366
  boost?: double;
4259
4367
  depth_limit?: integer;
@@ -4280,7 +4388,7 @@ export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
4280
4388
  null_value?: GeoLocation;
4281
4389
  index?: boolean;
4282
4390
  on_script_error?: MappingOnScriptError;
4283
- script?: Script;
4391
+ script?: Script | string;
4284
4392
  type: 'geo_point';
4285
4393
  }
4286
4394
  export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
@@ -4336,7 +4444,7 @@ export interface MappingIpProperty extends MappingDocValuesPropertyBase {
4336
4444
  ignore_malformed?: boolean;
4337
4445
  null_value?: string;
4338
4446
  on_script_error?: MappingOnScriptError;
4339
- script?: Script;
4447
+ script?: Script | string;
4340
4448
  time_series_dimension?: boolean;
4341
4449
  type: 'ip';
4342
4450
  }
@@ -4353,7 +4461,7 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
4353
4461
  eager_global_ordinals?: boolean;
4354
4462
  index?: boolean;
4355
4463
  index_options?: MappingIndexOptions;
4356
- script?: Script;
4464
+ script?: Script | string;
4357
4465
  on_script_error?: MappingOnScriptError;
4358
4466
  normalizer?: string;
4359
4467
  norms?: boolean;
@@ -4391,7 +4499,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
4391
4499
  ignore_malformed?: boolean;
4392
4500
  index?: boolean;
4393
4501
  on_script_error?: MappingOnScriptError;
4394
- script?: Script;
4502
+ script?: Script | string;
4395
4503
  time_series_metric?: MappingTimeSeriesMetricType;
4396
4504
  time_series_dimension?: boolean;
4397
4505
  }
@@ -4410,7 +4518,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
4410
4518
  null_value?: string;
4411
4519
  type: 'point';
4412
4520
  }
4413
- 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;
4521
+ export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingSemanticTextProperty | MappingSparseVectorProperty | 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;
4414
4522
  export interface MappingPropertyBase {
4415
4523
  meta?: Record<string, string>;
4416
4524
  properties?: Record<PropertyName, MappingProperty>;
@@ -4440,7 +4548,7 @@ export interface MappingRuntimeField {
4440
4548
  input_field?: Field;
4441
4549
  target_field?: Field;
4442
4550
  target_index?: IndexName;
4443
- script?: Script;
4551
+ script?: Script | string;
4444
4552
  type: MappingRuntimeFieldType;
4445
4553
  }
4446
4554
  export interface MappingRuntimeFieldFetchFields {
@@ -4465,6 +4573,11 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase
4465
4573
  term_vector?: MappingTermVectorOption;
4466
4574
  type: 'search_as_you_type';
4467
4575
  }
4576
+ export interface MappingSemanticTextProperty {
4577
+ type: 'semantic_text';
4578
+ meta?: Record<string, string>;
4579
+ inference_id: Id;
4580
+ }
4468
4581
  export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
4469
4582
  coerce?: boolean;
4470
4583
  ignore_malformed?: boolean;
@@ -4592,25 +4705,19 @@ export interface QueryDslCommonTermsQuery extends QueryDslQueryBase {
4592
4705
  export interface QueryDslConstantScoreQuery extends QueryDslQueryBase {
4593
4706
  filter: QueryDslQueryContainer;
4594
4707
  }
4595
- export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase {
4708
+ export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase<DateMath, Duration> {
4596
4709
  }
4597
4710
  export type QueryDslDateDecayFunction = QueryDslDateDecayFunctionKeys & {
4598
4711
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
4599
4712
  };
4600
4713
  export interface QueryDslDateDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<DateMath, Duration> {
4601
4714
  }
4602
- export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase {
4603
- gt?: DateMath;
4604
- gte?: DateMath;
4605
- lt?: DateMath;
4606
- lte?: DateMath;
4607
- from?: DateMath | null;
4608
- to?: DateMath | null;
4715
+ export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase<DateMath> {
4609
4716
  format?: DateFormat;
4610
4717
  time_zone?: TimeZone;
4611
4718
  }
4612
- export type QueryDslDecayFunction = QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4613
- export interface QueryDslDecayFunctionBase {
4719
+ export type QueryDslDecayFunction = QueryDslUntypedDecayFunction | QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4720
+ export interface QueryDslDecayFunctionBase<TOrigin = unknown, TScale = unknown> {
4614
4721
  multi_value_mode?: QueryDslMultiValueMode;
4615
4722
  }
4616
4723
  export interface QueryDslDecayPlacement<TOrigin = unknown, TScale = unknown> {
@@ -4623,7 +4730,7 @@ export interface QueryDslDisMaxQuery extends QueryDslQueryBase {
4623
4730
  queries: QueryDslQueryContainer[];
4624
4731
  tie_breaker?: double;
4625
4732
  }
4626
- export type QueryDslDistanceFeatureQuery = QueryDslGeoDistanceFeatureQuery | QueryDslDateDistanceFeatureQuery;
4733
+ export type QueryDslDistanceFeatureQuery = QueryDslUntypedDistanceFeatureQuery | QueryDslGeoDistanceFeatureQuery | QueryDslDateDistanceFeatureQuery;
4627
4734
  export interface QueryDslDistanceFeatureQueryBase<TOrigin = unknown, TDistance = unknown> extends QueryDslQueryBase {
4628
4735
  origin: TOrigin;
4629
4736
  pivot: TDistance;
@@ -4686,7 +4793,7 @@ export interface QueryDslGeoBoundingBoxQueryKeys extends QueryDslQueryBase {
4686
4793
  export type QueryDslGeoBoundingBoxQuery = QueryDslGeoBoundingBoxQueryKeys & {
4687
4794
  [property: string]: GeoBounds | QueryDslGeoExecution | QueryDslGeoValidationMethod | boolean | float | string;
4688
4795
  };
4689
- export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase {
4796
+ export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase<GeoLocation, Distance> {
4690
4797
  }
4691
4798
  export type QueryDslGeoDecayFunction = QueryDslGeoDecayFunctionKeys & {
4692
4799
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
@@ -4771,7 +4878,7 @@ export interface QueryDslIntervalsFilter {
4771
4878
  not_containing?: QueryDslIntervalsContainer;
4772
4879
  not_overlapping?: QueryDslIntervalsContainer;
4773
4880
  overlapping?: QueryDslIntervalsContainer;
4774
- script?: Script;
4881
+ script?: Script | string;
4775
4882
  }
4776
4883
  export interface QueryDslIntervalsFuzzy {
4777
4884
  analyzer?: string;
@@ -4908,15 +5015,9 @@ export interface QueryDslNestedQuery extends QueryDslQueryBase {
4908
5015
  query: QueryDslQueryContainer;
4909
5016
  score_mode?: QueryDslChildScoreMode;
4910
5017
  }
4911
- export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase {
4912
- gt?: double;
4913
- gte?: double;
4914
- lt?: double;
4915
- lte?: double;
4916
- from?: double | null;
4917
- to?: double | null;
5018
+ export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase<double> {
4918
5019
  }
4919
- export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase {
5020
+ export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase<double, double> {
4920
5021
  }
4921
5022
  export type QueryDslNumericDecayFunction = QueryDslNumericDecayFunctionKeys & {
4922
5023
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
@@ -4993,9 +5094,10 @@ export interface QueryDslQueryContainer {
4993
5094
  range?: Partial<Record<Field, QueryDslRangeQuery>>;
4994
5095
  rank_feature?: QueryDslRankFeatureQuery;
4995
5096
  regexp?: Partial<Record<Field, QueryDslRegexpQuery | string>>;
4996
- rule_query?: QueryDslRuleQuery;
5097
+ rule?: QueryDslRuleQuery;
4997
5098
  script?: QueryDslScriptQuery;
4998
5099
  script_score?: QueryDslScriptScoreQuery;
5100
+ semantic?: QueryDslSemanticQuery;
4999
5101
  shape?: QueryDslShapeQuery;
5000
5102
  simple_query_string?: QueryDslSimpleQueryStringQuery;
5001
5103
  span_containing?: QueryDslSpanContainingQuery;
@@ -5007,6 +5109,7 @@ export interface QueryDslQueryContainer {
5007
5109
  span_or?: QueryDslSpanOrQuery;
5008
5110
  span_term?: Partial<Record<Field, QueryDslSpanTermQuery | string>>;
5009
5111
  span_within?: QueryDslSpanWithinQuery;
5112
+ sparse_vector?: QueryDslSparseVectorQuery;
5010
5113
  term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
5011
5114
  terms?: QueryDslTermsQuery;
5012
5115
  terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>;
@@ -5047,9 +5150,15 @@ export interface QueryDslRandomScoreFunction {
5047
5150
  field?: Field;
5048
5151
  seed?: long | string;
5049
5152
  }
5050
- export type QueryDslRangeQuery = QueryDslDateRangeQuery | QueryDslNumberRangeQuery;
5051
- export interface QueryDslRangeQueryBase extends QueryDslQueryBase {
5153
+ export type QueryDslRangeQuery = QueryDslUntypedRangeQuery | QueryDslDateRangeQuery | QueryDslNumberRangeQuery | QueryDslTermRangeQuery;
5154
+ export interface QueryDslRangeQueryBase<T = unknown> extends QueryDslQueryBase {
5052
5155
  relation?: QueryDslRangeRelation;
5156
+ gt?: T;
5157
+ gte?: T;
5158
+ lt?: T;
5159
+ lte?: T;
5160
+ from?: T | null;
5161
+ to?: T | null;
5053
5162
  }
5054
5163
  export type QueryDslRangeRelation = 'within' | 'contains' | 'intersects';
5055
5164
  export interface QueryDslRankFeatureFunction {
@@ -5082,19 +5191,23 @@ export interface QueryDslRegexpQuery extends QueryDslQueryBase {
5082
5191
  }
5083
5192
  export interface QueryDslRuleQuery extends QueryDslQueryBase {
5084
5193
  organic: QueryDslQueryContainer;
5085
- ruleset_id: Id;
5194
+ ruleset_ids: Id[];
5086
5195
  match_criteria: any;
5087
5196
  }
5088
5197
  export interface QueryDslScriptQuery extends QueryDslQueryBase {
5089
- script: Script;
5198
+ script: Script | string;
5090
5199
  }
5091
5200
  export interface QueryDslScriptScoreFunction {
5092
- script: Script;
5201
+ script: Script | string;
5093
5202
  }
5094
5203
  export interface QueryDslScriptScoreQuery extends QueryDslQueryBase {
5095
5204
  min_score?: float;
5096
5205
  query: QueryDslQueryContainer;
5097
- script: Script;
5206
+ script: Script | string;
5207
+ }
5208
+ export interface QueryDslSemanticQuery extends QueryDslQueryBase {
5209
+ field: string;
5210
+ query: string;
5098
5211
  }
5099
5212
  export interface QueryDslShapeFieldQuery {
5100
5213
  indexed_shape?: QueryDslFieldLookup;
@@ -5174,10 +5287,20 @@ export interface QueryDslSpanWithinQuery extends QueryDslQueryBase {
5174
5287
  big: QueryDslSpanQuery;
5175
5288
  little: QueryDslSpanQuery;
5176
5289
  }
5290
+ export interface QueryDslSparseVectorQuery extends QueryDslQueryBase {
5291
+ field: Field;
5292
+ query_vector?: Record<string, float>;
5293
+ inference_id?: Id;
5294
+ query?: string;
5295
+ prune?: boolean;
5296
+ pruning_config?: QueryDslTokenPruningConfig;
5297
+ }
5177
5298
  export interface QueryDslTermQuery extends QueryDslQueryBase {
5178
5299
  value: FieldValue;
5179
5300
  case_insensitive?: boolean;
5180
5301
  }
5302
+ export interface QueryDslTermRangeQuery extends QueryDslRangeQueryBase<string> {
5303
+ }
5181
5304
  export interface QueryDslTermsLookup {
5182
5305
  index: IndexName;
5183
5306
  id: Id;
@@ -5191,8 +5314,9 @@ export type QueryDslTermsQuery = QueryDslTermsQueryKeys & {
5191
5314
  };
5192
5315
  export type QueryDslTermsQueryField = FieldValue[] | QueryDslTermsLookup;
5193
5316
  export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
5317
+ minimum_should_match?: MinimumShouldMatch;
5194
5318
  minimum_should_match_field?: Field;
5195
- minimum_should_match_script?: Script;
5319
+ minimum_should_match_script?: Script | string;
5196
5320
  terms: string[];
5197
5321
  }
5198
5322
  export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
@@ -5209,6 +5333,17 @@ export interface QueryDslTokenPruningConfig {
5209
5333
  export interface QueryDslTypeQuery extends QueryDslQueryBase {
5210
5334
  value: string;
5211
5335
  }
5336
+ export interface QueryDslUntypedDecayFunctionKeys extends QueryDslDecayFunctionBase<any, any> {
5337
+ }
5338
+ export type QueryDslUntypedDecayFunction = QueryDslUntypedDecayFunctionKeys & {
5339
+ [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
5340
+ };
5341
+ export interface QueryDslUntypedDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<any, any> {
5342
+ }
5343
+ export interface QueryDslUntypedRangeQuery extends QueryDslRangeQueryBase<any> {
5344
+ format?: DateFormat;
5345
+ time_zone?: TimeZone;
5346
+ }
5212
5347
  export interface QueryDslWeightedTokensQuery extends QueryDslQueryBase {
5213
5348
  tokens: Record<string, float>;
5214
5349
  pruning_config?: QueryDslTokenPruningConfig;
@@ -5428,28 +5563,39 @@ export interface CatAliasesRequest extends CatCatRequestBase {
5428
5563
  }
5429
5564
  export type CatAliasesResponse = CatAliasesAliasesRecord[];
5430
5565
  export interface CatAllocationAllocationRecord {
5431
- shards?: string;
5432
- s?: string;
5433
- 'disk.indices'?: ByteSize | null;
5434
- di?: ByteSize | null;
5435
- diskIndices?: ByteSize | null;
5436
- 'disk.used'?: ByteSize | null;
5437
- du?: ByteSize | null;
5438
- diskUsed?: ByteSize | null;
5439
- 'disk.avail'?: ByteSize | null;
5440
- da?: ByteSize | null;
5441
- diskAvail?: ByteSize | null;
5442
- 'disk.total'?: ByteSize | null;
5443
- dt?: ByteSize | null;
5444
- diskTotal?: ByteSize | null;
5445
- 'disk.percent'?: Percentage | null;
5446
- dp?: Percentage | null;
5447
- diskPercent?: Percentage | null;
5448
- host?: Host | null;
5449
- h?: Host | null;
5450
- ip?: Ip | null;
5451
- node?: string;
5452
- n?: string;
5566
+ shards: string;
5567
+ s: string;
5568
+ 'shards.undesired': string | null;
5569
+ 'write_load.forecast': double | null;
5570
+ wlf: double | null;
5571
+ writeLoadForecast: double | null;
5572
+ 'disk.indices.forecast': ByteSize | null;
5573
+ dif: ByteSize | null;
5574
+ diskIndicesForecast: ByteSize | null;
5575
+ 'disk.indices': ByteSize | null;
5576
+ di: ByteSize | null;
5577
+ diskIndices: ByteSize | null;
5578
+ 'disk.used': ByteSize | null;
5579
+ du: ByteSize | null;
5580
+ diskUsed: ByteSize | null;
5581
+ 'disk.avail': ByteSize | null;
5582
+ da: ByteSize | null;
5583
+ diskAvail: ByteSize | null;
5584
+ 'disk.total': ByteSize | null;
5585
+ dt: ByteSize | null;
5586
+ diskTotal: ByteSize | null;
5587
+ 'disk.percent': Percentage | null;
5588
+ dp: Percentage | null;
5589
+ diskPercent: Percentage | null;
5590
+ host: Host | null;
5591
+ h: Host | null;
5592
+ ip: Ip | null;
5593
+ node: string;
5594
+ n: string;
5595
+ 'node.role': string | null;
5596
+ r: string | null;
5597
+ role: string | null;
5598
+ nodeRole: string | null;
5453
5599
  }
5454
5600
  export interface CatAllocationRequest extends CatCatRequestBase {
5455
5601
  node_id?: NodeIds;
@@ -5593,6 +5739,7 @@ export interface CatIndicesIndicesRecord {
5593
5739
  ss?: string | null;
5594
5740
  storeSize?: string | null;
5595
5741
  'pri.store.size'?: string | null;
5742
+ 'dataset.size'?: string | null;
5596
5743
  'completion.size'?: string;
5597
5744
  cs?: string;
5598
5745
  completionSize?: string;
@@ -6669,6 +6816,7 @@ export interface CatShardsShardsRecord {
6669
6816
  dc?: string | null;
6670
6817
  store?: string | null;
6671
6818
  sto?: string | null;
6819
+ dataset?: string | null;
6672
6820
  ip?: string | null;
6673
6821
  id?: string;
6674
6822
  node?: string | null;
@@ -7901,14 +8049,15 @@ export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase {
7901
8049
  }
7902
8050
  export interface ConnectorConnector {
7903
8051
  api_key_id?: string;
8052
+ api_key_secret_id?: string;
7904
8053
  configuration: ConnectorConnectorConfiguration;
7905
8054
  custom_scheduling: ConnectorConnectorCustomScheduling;
7906
8055
  description?: string;
7907
- error?: string;
8056
+ error?: string | null;
7908
8057
  features?: ConnectorConnectorFeatures;
7909
8058
  filtering: ConnectorFilteringConfig[];
7910
8059
  id?: Id;
7911
- index_name?: IndexName;
8060
+ index_name?: IndexName | null;
7912
8061
  is_native: boolean;
7913
8062
  language?: string;
7914
8063
  last_access_control_sync_error?: string;
@@ -7925,8 +8074,9 @@ export interface ConnectorConnector {
7925
8074
  name?: string;
7926
8075
  pipeline?: ConnectorIngestPipelineParams;
7927
8076
  scheduling: ConnectorSchedulingConfiguration;
7928
- service_type: string;
8077
+ service_type?: string;
7929
8078
  status: ConnectorConnectorStatus;
8079
+ sync_cursor?: any;
7930
8080
  sync_now: boolean;
7931
8081
  }
7932
8082
  export interface ConnectorConnectorConfigProperties {
@@ -7940,19 +8090,18 @@ export interface ConnectorConnectorConfigProperties {
7940
8090
  placeholder?: string;
7941
8091
  required: boolean;
7942
8092
  sensitive: boolean;
7943
- tooltip?: string;
7944
- type: ConnectorConnectorFieldType;
7945
- ui_restrictions: string[];
7946
- validations: ConnectorValidation[];
7947
- value: ScalarValue;
8093
+ tooltip?: string | null;
8094
+ type?: ConnectorConnectorFieldType;
8095
+ ui_restrictions?: string[];
8096
+ validations?: ConnectorValidation[];
8097
+ value: any;
7948
8098
  }
7949
8099
  export type ConnectorConnectorConfiguration = Record<string, ConnectorConnectorConfigProperties>;
7950
8100
  export type ConnectorConnectorCustomScheduling = Record<string, ConnectorCustomScheduling>;
7951
8101
  export interface ConnectorConnectorFeatures {
7952
8102
  document_level_security?: ConnectorFeatureEnabled;
7953
- filtering_advanced_config?: boolean;
7954
- filtering_rules?: boolean;
7955
8103
  incremental_sync?: ConnectorFeatureEnabled;
8104
+ native_connector_api_keys?: ConnectorFeatureEnabled;
7956
8105
  sync_rules?: ConnectorSyncRulesFeature;
7957
8106
  }
7958
8107
  export type ConnectorConnectorFieldType = 'str' | 'int' | 'list' | 'bool';
@@ -8010,7 +8159,7 @@ export interface ConnectorFilteringAdvancedSnippet {
8010
8159
  }
8011
8160
  export interface ConnectorFilteringConfig {
8012
8161
  active: ConnectorFilteringRules;
8013
- domain: string;
8162
+ domain?: string;
8014
8163
  draft: ConnectorFilteringRules;
8015
8164
  }
8016
8165
  export type ConnectorFilteringPolicy = 'exclude' | 'include';
@@ -8045,7 +8194,7 @@ export interface ConnectorGreaterThanValidation {
8045
8194
  }
8046
8195
  export interface ConnectorIncludedInValidation {
8047
8196
  type: 'included_in';
8048
- constraint: string;
8197
+ constraint: ScalarValue[];
8049
8198
  }
8050
8199
  export interface ConnectorIngestPipelineParams {
8051
8200
  extract_binary_content: boolean;
@@ -8059,7 +8208,7 @@ export interface ConnectorLessThanValidation {
8059
8208
  }
8060
8209
  export interface ConnectorListTypeValidation {
8061
8210
  type: 'list_type';
8062
- constraint: ScalarValue[];
8211
+ constraint: string;
8063
8212
  }
8064
8213
  export interface ConnectorRegexValidation {
8065
8214
  type: 'regex';
@@ -8072,7 +8221,7 @@ export interface ConnectorSchedulingConfiguration {
8072
8221
  }
8073
8222
  export interface ConnectorSelectOption {
8074
8223
  label: string;
8075
- value: string;
8224
+ value: ScalarValue;
8076
8225
  }
8077
8226
  export interface ConnectorSyncJobConnectorReference {
8078
8227
  configuration: ConnectorConnectorConfiguration;
@@ -8082,6 +8231,7 @@ export interface ConnectorSyncJobConnectorReference {
8082
8231
  language?: string;
8083
8232
  pipeline?: ConnectorIngestPipelineParams;
8084
8233
  service_type: string;
8234
+ sync_cursor?: any;
8085
8235
  }
8086
8236
  export type ConnectorSyncJobTriggerMethod = 'on_demand' | 'scheduled';
8087
8237
  export type ConnectorSyncJobType = 'full' | 'incremental' | 'access_control';
@@ -8099,7 +8249,7 @@ export interface ConnectorCheckInResponse {
8099
8249
  }
8100
8250
  export interface ConnectorDeleteRequest extends RequestBase {
8101
8251
  connector_id: Id;
8102
- delete_sync_jobs: boolean;
8252
+ delete_sync_jobs?: boolean;
8103
8253
  }
8104
8254
  export type ConnectorDeleteResponse = AcknowledgedResponseBase;
8105
8255
  export interface ConnectorGetRequest extends RequestBase {
@@ -8110,17 +8260,18 @@ export interface ConnectorLastSyncRequest extends RequestBase {
8110
8260
  connector_id: Id;
8111
8261
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8112
8262
  body?: {
8113
- last_access_control_sync_error?: SpecUtilsWithNullValue<string>;
8263
+ last_access_control_sync_error?: string;
8114
8264
  last_access_control_sync_scheduled_at?: DateTime;
8115
8265
  last_access_control_sync_status?: ConnectorSyncStatus;
8116
8266
  last_deleted_document_count?: long;
8117
8267
  last_incremental_sync_scheduled_at?: DateTime;
8118
8268
  last_indexed_document_count?: long;
8119
- last_seen?: SpecUtilsWithNullValue<DateTime>;
8120
- last_sync_error?: SpecUtilsWithNullValue<string>;
8269
+ last_seen?: DateTime;
8270
+ last_sync_error?: string;
8121
8271
  last_sync_scheduled_at?: DateTime;
8122
8272
  last_sync_status?: ConnectorSyncStatus;
8123
8273
  last_synced?: DateTime;
8274
+ sync_cursor?: any;
8124
8275
  };
8125
8276
  }
8126
8277
  export interface ConnectorLastSyncResponse {
@@ -8142,7 +8293,7 @@ export interface ConnectorPostRequest extends RequestBase {
8142
8293
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8143
8294
  body?: {
8144
8295
  description?: string;
8145
- index_name: SpecUtilsWithNullValue<IndexName>;
8296
+ index_name?: IndexName;
8146
8297
  is_native?: boolean;
8147
8298
  language?: string;
8148
8299
  name?: string;
@@ -8150,14 +8301,15 @@ export interface ConnectorPostRequest extends RequestBase {
8150
8301
  };
8151
8302
  }
8152
8303
  export interface ConnectorPostResponse {
8304
+ result: Result;
8153
8305
  id: Id;
8154
8306
  }
8155
8307
  export interface ConnectorPutRequest extends RequestBase {
8156
- connector_id: Id;
8308
+ connector_id?: Id;
8157
8309
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8158
8310
  body?: {
8159
8311
  description?: string;
8160
- index_name: SpecUtilsWithNullValue<IndexName>;
8312
+ index_name?: IndexName;
8161
8313
  is_native?: boolean;
8162
8314
  language?: string;
8163
8315
  name?: string;
@@ -8166,6 +8318,7 @@ export interface ConnectorPutRequest extends RequestBase {
8166
8318
  }
8167
8319
  export interface ConnectorPutResponse {
8168
8320
  result: Result;
8321
+ id: Id;
8169
8322
  }
8170
8323
  export interface ConnectorSyncJobCancelRequest extends RequestBase {
8171
8324
  connector_sync_job_id: Id;
@@ -8186,7 +8339,7 @@ export interface ConnectorSyncJobListRequest extends RequestBase {
8186
8339
  size?: integer;
8187
8340
  status?: ConnectorSyncStatus;
8188
8341
  connector_id?: Id;
8189
- job_type?: ConnectorSyncJobType[];
8342
+ job_type?: ConnectorSyncJobType | ConnectorSyncJobType[];
8190
8343
  }
8191
8344
  export interface ConnectorSyncJobListResponse {
8192
8345
  count: long;
@@ -8213,8 +8366,8 @@ export interface ConnectorUpdateApiKeyIdRequest extends RequestBase {
8213
8366
  connector_id: Id;
8214
8367
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8215
8368
  body?: {
8216
- api_key_id?: SpecUtilsWithNullValue<string>;
8217
- api_key_secret_id?: SpecUtilsWithNullValue<string>;
8369
+ api_key_id?: string;
8370
+ api_key_secret_id?: string;
8218
8371
  };
8219
8372
  }
8220
8373
  export interface ConnectorUpdateApiKeyIdResponse {
@@ -8277,7 +8430,7 @@ export interface ConnectorUpdateNameRequest extends RequestBase {
8277
8430
  connector_id: Id;
8278
8431
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8279
8432
  body?: {
8280
- name: string;
8433
+ name?: string;
8281
8434
  description?: string;
8282
8435
  };
8283
8436
  }
@@ -8407,7 +8560,9 @@ export interface EnrichStatsCacheStats {
8407
8560
  node_id: Id;
8408
8561
  count: integer;
8409
8562
  hits: integer;
8563
+ hits_time_in_millis: DurationValue<UnitMillis>;
8410
8564
  misses: integer;
8565
+ misses_time_in_millis: DurationValue<UnitMillis>;
8411
8566
  evictions: integer;
8412
8567
  }
8413
8568
  export interface EnrichStatsCoordinatorStats {
@@ -8445,11 +8600,12 @@ export interface EqlHitsEvent<TEvent = unknown> {
8445
8600
  _index: IndexName;
8446
8601
  _id: Id;
8447
8602
  _source: TEvent;
8603
+ missing?: boolean;
8448
8604
  fields?: Record<Field, any[]>;
8449
8605
  }
8450
8606
  export interface EqlHitsSequence<TEvent = unknown> {
8451
8607
  events: EqlHitsEvent<TEvent>[];
8452
- join_keys: any[];
8608
+ join_keys?: any[];
8453
8609
  }
8454
8610
  export interface EqlDeleteRequest extends RequestBase {
8455
8611
  id: Id;
@@ -8497,8 +8653,9 @@ export interface EqlSearchRequest extends RequestBase {
8497
8653
  }
8498
8654
  export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
8499
8655
  export type EqlSearchResultPosition = 'tail' | 'head';
8656
+ export type EsqlQueryEsqlFormat = 'csv' | 'json' | 'tsv' | 'txt' | 'yaml' | 'cbor' | 'smile' | 'arrow';
8500
8657
  export interface EsqlQueryRequest extends RequestBase {
8501
- format?: string;
8658
+ format?: EsqlQueryEsqlFormat;
8502
8659
  delimiter?: string;
8503
8660
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8504
8661
  body?: {
@@ -8700,19 +8857,45 @@ export interface GraphExploreResponse {
8700
8857
  took: long;
8701
8858
  vertices: GraphVertex[];
8702
8859
  }
8703
- export type IlmActions = any;
8704
- export interface IlmConfigurations {
8705
- rollover?: IndicesRolloverRolloverConditions;
8706
- forcemerge?: IlmForceMergeConfiguration;
8707
- shrink?: IlmShrinkConfiguration;
8860
+ export interface IlmActions {
8861
+ allocate?: IlmAllocateAction;
8862
+ delete?: IlmDeleteAction;
8863
+ downsample?: IlmDownsampleAction;
8864
+ freeze?: EmptyObject;
8865
+ forcemerge?: IlmForceMergeAction;
8866
+ migrate?: IlmMigrateAction;
8867
+ readonly?: EmptyObject;
8868
+ rollover?: IlmRolloverAction;
8869
+ set_priority?: IlmSetPriorityAction;
8870
+ searchable_snapshot?: IlmSearchableSnapshotAction;
8871
+ shrink?: IlmShrinkAction;
8872
+ unfollow?: EmptyObject;
8873
+ wait_for_snapshot?: IlmWaitForSnapshotAction;
8874
+ }
8875
+ export interface IlmAllocateAction {
8876
+ number_of_replicas?: integer;
8877
+ total_shards_per_node?: integer;
8878
+ include?: Record<string, string>;
8879
+ exclude?: Record<string, string>;
8880
+ require?: Record<string, string>;
8881
+ }
8882
+ export interface IlmDeleteAction {
8883
+ delete_searchable_snapshot?: boolean;
8884
+ }
8885
+ export interface IlmDownsampleAction {
8886
+ fixed_interval: DurationLarge;
8887
+ wait_timeout?: Duration;
8708
8888
  }
8709
- export interface IlmForceMergeConfiguration {
8889
+ export interface IlmForceMergeAction {
8710
8890
  max_num_segments: integer;
8891
+ index_codec?: string;
8892
+ }
8893
+ export interface IlmMigrateAction {
8894
+ enabled?: boolean;
8711
8895
  }
8712
8896
  export interface IlmPhase {
8713
8897
  actions?: IlmActions;
8714
8898
  min_age?: Duration | long;
8715
- configurations?: IlmConfigurations;
8716
8899
  }
8717
8900
  export interface IlmPhases {
8718
8901
  cold?: IlmPhase;
@@ -8725,8 +8908,32 @@ export interface IlmPolicy {
8725
8908
  phases: IlmPhases;
8726
8909
  _meta?: Metadata;
8727
8910
  }
8728
- export interface IlmShrinkConfiguration {
8729
- number_of_shards: integer;
8911
+ export interface IlmRolloverAction {
8912
+ max_size?: ByteSize;
8913
+ max_primary_shard_size?: ByteSize;
8914
+ max_age?: Duration;
8915
+ max_docs?: long;
8916
+ max_primary_shard_docs?: long;
8917
+ min_size?: ByteSize;
8918
+ min_primary_shard_size?: ByteSize;
8919
+ min_age?: Duration;
8920
+ min_docs?: long;
8921
+ min_primary_shard_docs?: long;
8922
+ }
8923
+ export interface IlmSearchableSnapshotAction {
8924
+ snapshot_repository: string;
8925
+ force_merge_index?: boolean;
8926
+ }
8927
+ export interface IlmSetPriorityAction {
8928
+ priority?: integer;
8929
+ }
8930
+ export interface IlmShrinkAction {
8931
+ number_of_shards?: integer;
8932
+ max_primary_shard_size?: ByteSize;
8933
+ allow_write_after_shrink?: boolean;
8934
+ }
8935
+ export interface IlmWaitForSnapshotAction {
8936
+ policy: string;
8730
8937
  }
8731
8938
  export interface IlmDeleteLifecycleRequest extends RequestBase {
8732
8939
  name: Name;
@@ -8816,14 +9023,14 @@ export interface IlmMoveToStepRequest extends RequestBase {
8816
9023
  index: IndexName;
8817
9024
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8818
9025
  body?: {
8819
- current_step?: IlmMoveToStepStepKey;
8820
- next_step?: IlmMoveToStepStepKey;
9026
+ current_step: IlmMoveToStepStepKey;
9027
+ next_step: IlmMoveToStepStepKey;
8821
9028
  };
8822
9029
  }
8823
9030
  export type IlmMoveToStepResponse = AcknowledgedResponseBase;
8824
9031
  export interface IlmMoveToStepStepKey {
8825
- action: string;
8826
- name: string;
9032
+ action?: string;
9033
+ name?: string;
8827
9034
  phase: string;
8828
9035
  }
8829
9036
  export interface IlmPutLifecycleRequest extends RequestBase {
@@ -8929,6 +9136,7 @@ export interface IndicesDataStreamTimestampField {
8929
9136
  }
8930
9137
  export interface IndicesDataStreamVisibility {
8931
9138
  hidden?: boolean;
9139
+ allow_custom_routing?: boolean;
8932
9140
  }
8933
9141
  export interface IndicesDownsampleConfig {
8934
9142
  fixed_interval: DurationLarge;
@@ -9213,8 +9421,8 @@ export interface IndicesSettingsSimilarityLmj {
9213
9421
  }
9214
9422
  export interface IndicesSettingsSimilarityScripted {
9215
9423
  type: 'scripted';
9216
- script: Script;
9217
- weight_script?: Script;
9424
+ script: Script | string;
9425
+ weight_script?: Script | string;
9218
9426
  }
9219
9427
  export interface IndicesSlowlogSettings {
9220
9428
  level?: string;
@@ -9990,6 +10198,8 @@ export type IndicesResolveClusterResponse = Record<ClusterAlias, IndicesResolveC
9990
10198
  export interface IndicesResolveIndexRequest extends RequestBase {
9991
10199
  name: Names;
9992
10200
  expand_wildcards?: ExpandWildcards;
10201
+ ignore_unavailable?: boolean;
10202
+ allow_no_indices?: boolean;
9993
10203
  }
9994
10204
  export interface IndicesResolveIndexResolveIndexAliasItem {
9995
10205
  name: Name;
@@ -10422,8 +10632,20 @@ export interface IndicesValidateQueryResponse {
10422
10632
  export interface InferenceCompletionResult {
10423
10633
  result: string;
10424
10634
  }
10635
+ export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase {
10636
+ pipelines: string[];
10637
+ }
10425
10638
  export type InferenceDenseByteVector = byte[];
10426
10639
  export type InferenceDenseVector = float[];
10640
+ export interface InferenceInferenceEndpoint {
10641
+ service: string;
10642
+ service_settings: InferenceServiceSettings;
10643
+ task_settings: InferenceTaskSettings;
10644
+ }
10645
+ export interface InferenceInferenceEndpointInfo extends InferenceInferenceEndpoint {
10646
+ inference_id: string;
10647
+ task_type: InferenceTaskType;
10648
+ }
10427
10649
  export interface InferenceInferenceResult {
10428
10650
  text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
10429
10651
  text_embedding?: InferenceTextEmbeddingResult[];
@@ -10431,15 +10653,6 @@ export interface InferenceInferenceResult {
10431
10653
  completion?: InferenceCompletionResult[];
10432
10654
  rerank?: InferenceRankedDocument[];
10433
10655
  }
10434
- export interface InferenceModelConfig {
10435
- service: string;
10436
- service_settings: InferenceServiceSettings;
10437
- task_settings: InferenceTaskSettings;
10438
- }
10439
- export interface InferenceModelConfigContainer extends InferenceModelConfig {
10440
- model_id: string;
10441
- task_type: InferenceTaskType;
10442
- }
10443
10656
  export interface InferenceRankedDocument {
10444
10657
  index: integer;
10445
10658
  score: float;
@@ -10458,17 +10671,19 @@ export interface InferenceTextEmbeddingByteResult {
10458
10671
  export interface InferenceTextEmbeddingResult {
10459
10672
  embedding: InferenceDenseVector;
10460
10673
  }
10461
- export interface InferenceDeleteModelRequest extends RequestBase {
10674
+ export interface InferenceDeleteRequest extends RequestBase {
10462
10675
  task_type?: InferenceTaskType;
10463
10676
  inference_id: Id;
10677
+ dry_run?: boolean;
10678
+ force?: boolean;
10464
10679
  }
10465
- export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
10466
- export interface InferenceGetModelRequest extends RequestBase {
10680
+ export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult;
10681
+ export interface InferenceGetRequest extends RequestBase {
10467
10682
  task_type?: InferenceTaskType;
10468
- inference_id: Id;
10683
+ inference_id?: Id;
10469
10684
  }
10470
- export interface InferenceGetModelResponse {
10471
- models: InferenceModelConfigContainer[];
10685
+ export interface InferenceGetResponse {
10686
+ endpoints: InferenceInferenceEndpointInfo[];
10472
10687
  }
10473
10688
  export interface InferenceInferenceRequest extends RequestBase {
10474
10689
  task_type?: InferenceTaskType;
@@ -10482,13 +10697,13 @@ export interface InferenceInferenceRequest extends RequestBase {
10482
10697
  };
10483
10698
  }
10484
10699
  export type InferenceInferenceResponse = InferenceInferenceResult;
10485
- export interface InferencePutModelRequest extends RequestBase {
10700
+ export interface InferencePutRequest extends RequestBase {
10486
10701
  task_type?: InferenceTaskType;
10487
10702
  inference_id: Id;
10488
- /** @deprecated The use of the 'body' key has been deprecated, use 'model_config' instead. */
10489
- body?: InferenceModelConfig;
10703
+ /** @deprecated The use of the 'body' key has been deprecated, use 'inference_config' instead. */
10704
+ body?: InferenceInferenceEndpoint;
10490
10705
  }
10491
- export type InferencePutModelResponse = InferenceModelConfigContainer;
10706
+ export type InferencePutResponse = InferenceInferenceEndpointInfo;
10492
10707
  export interface IngestAppendProcessor extends IngestProcessorBase {
10493
10708
  field: Field;
10494
10709
  value: any[];
@@ -10532,6 +10747,10 @@ export interface IngestCsvProcessor extends IngestProcessorBase {
10532
10747
  target_fields: Fields;
10533
10748
  trim?: boolean;
10534
10749
  }
10750
+ export interface IngestDatabaseConfiguration {
10751
+ name: Name;
10752
+ maxmind: IngestMaxmind;
10753
+ }
10535
10754
  export interface IngestDateIndexNameProcessor extends IngestProcessorBase {
10536
10755
  date_formats: string[];
10537
10756
  date_rounding: string;
@@ -10577,6 +10796,19 @@ export interface IngestForeachProcessor extends IngestProcessorBase {
10577
10796
  ignore_missing?: boolean;
10578
10797
  processor: IngestProcessorContainer;
10579
10798
  }
10799
+ export interface IngestGeoGridProcessor extends IngestProcessorBase {
10800
+ field: string;
10801
+ tile_type: IngestGeoGridTileType;
10802
+ target_field?: Field;
10803
+ parent_field?: Field;
10804
+ children_field?: Field;
10805
+ non_children_field?: Field;
10806
+ precision_field?: Field;
10807
+ ignore_missing?: boolean;
10808
+ target_format?: IngestGeoGridTargetFormat;
10809
+ }
10810
+ export type IngestGeoGridTargetFormat = 'geojson' | 'wkt';
10811
+ export type IngestGeoGridTileType = 'geotile' | 'geohex' | 'geohash';
10580
10812
  export interface IngestGeoIpProcessor extends IngestProcessorBase {
10581
10813
  database_file?: string;
10582
10814
  field: Field;
@@ -10589,7 +10821,7 @@ export interface IngestGrokProcessor extends IngestProcessorBase {
10589
10821
  field: Field;
10590
10822
  ignore_missing?: boolean;
10591
10823
  pattern_definitions?: Record<string, string>;
10592
- patterns: string[];
10824
+ patterns: GrokPattern[];
10593
10825
  trace_match?: boolean;
10594
10826
  }
10595
10827
  export interface IngestGsubProcessor extends IngestProcessorBase {
@@ -10599,6 +10831,11 @@ export interface IngestGsubProcessor extends IngestProcessorBase {
10599
10831
  replacement: string;
10600
10832
  target_field?: Field;
10601
10833
  }
10834
+ export interface IngestHtmlStripProcessor extends IngestProcessorBase {
10835
+ field: Field;
10836
+ ignore_missing?: boolean;
10837
+ target_field?: Field;
10838
+ }
10602
10839
  export interface IngestInferenceConfig {
10603
10840
  regression?: IngestInferenceConfigRegression;
10604
10841
  classification?: IngestInferenceConfigClassification;
@@ -10651,6 +10888,9 @@ export interface IngestLowercaseProcessor extends IngestProcessorBase {
10651
10888
  ignore_missing?: boolean;
10652
10889
  target_field?: Field;
10653
10890
  }
10891
+ export interface IngestMaxmind {
10892
+ account_id: Id;
10893
+ }
10654
10894
  export interface IngestPipeline {
10655
10895
  description?: string;
10656
10896
  on_failure?: IngestProcessorContainer[];
@@ -10675,41 +10915,54 @@ export interface IngestProcessorBase {
10675
10915
  tag?: string;
10676
10916
  }
10677
10917
  export interface IngestProcessorContainer {
10678
- attachment?: IngestAttachmentProcessor;
10679
10918
  append?: IngestAppendProcessor;
10680
- csv?: IngestCsvProcessor;
10919
+ attachment?: IngestAttachmentProcessor;
10920
+ bytes?: IngestBytesProcessor;
10921
+ circle?: IngestCircleProcessor;
10681
10922
  convert?: IngestConvertProcessor;
10923
+ csv?: IngestCsvProcessor;
10682
10924
  date?: IngestDateProcessor;
10683
10925
  date_index_name?: IngestDateIndexNameProcessor;
10926
+ dissect?: IngestDissectProcessor;
10684
10927
  dot_expander?: IngestDotExpanderProcessor;
10928
+ drop?: IngestDropProcessor;
10685
10929
  enrich?: IngestEnrichProcessor;
10686
10930
  fail?: IngestFailProcessor;
10687
10931
  foreach?: IngestForeachProcessor;
10688
- json?: IngestJsonProcessor;
10689
- user_agent?: IngestUserAgentProcessor;
10690
- kv?: IngestKeyValueProcessor;
10932
+ geo_grid?: IngestGeoGridProcessor;
10691
10933
  geoip?: IngestGeoIpProcessor;
10692
10934
  grok?: IngestGrokProcessor;
10693
10935
  gsub?: IngestGsubProcessor;
10936
+ html_strip?: IngestHtmlStripProcessor;
10937
+ inference?: IngestInferenceProcessor;
10694
10938
  join?: IngestJoinProcessor;
10939
+ json?: IngestJsonProcessor;
10940
+ kv?: IngestKeyValueProcessor;
10695
10941
  lowercase?: IngestLowercaseProcessor;
10942
+ pipeline?: IngestPipelineProcessor;
10943
+ redact?: IngestRedactProcessor;
10696
10944
  remove?: IngestRemoveProcessor;
10697
10945
  rename?: IngestRenameProcessor;
10698
10946
  reroute?: IngestRerouteProcessor;
10699
10947
  script?: IngestScriptProcessor;
10700
10948
  set?: IngestSetProcessor;
10949
+ set_security_user?: IngestSetSecurityUserProcessor;
10701
10950
  sort?: IngestSortProcessor;
10702
10951
  split?: IngestSplitProcessor;
10703
10952
  trim?: IngestTrimProcessor;
10704
10953
  uppercase?: IngestUppercaseProcessor;
10705
10954
  urldecode?: IngestUrlDecodeProcessor;
10706
- bytes?: IngestBytesProcessor;
10707
- dissect?: IngestDissectProcessor;
10708
- set_security_user?: IngestSetSecurityUserProcessor;
10709
- pipeline?: IngestPipelineProcessor;
10710
- drop?: IngestDropProcessor;
10711
- circle?: IngestCircleProcessor;
10712
- inference?: IngestInferenceProcessor;
10955
+ uri_parts?: IngestUriPartsProcessor;
10956
+ user_agent?: IngestUserAgentProcessor;
10957
+ }
10958
+ export interface IngestRedactProcessor extends IngestProcessorBase {
10959
+ field: Field;
10960
+ patterns: GrokPattern[];
10961
+ pattern_definitions?: Record<string, string>;
10962
+ prefix?: string;
10963
+ suffix?: string;
10964
+ ignore_missing?: boolean;
10965
+ skip_if_unlicensed?: boolean;
10713
10966
  }
10714
10967
  export interface IngestRemoveProcessor extends IngestProcessorBase {
10715
10968
  field: Fields;
@@ -10767,6 +11020,13 @@ export interface IngestUppercaseProcessor extends IngestProcessorBase {
10767
11020
  ignore_missing?: boolean;
10768
11021
  target_field?: Field;
10769
11022
  }
11023
+ export interface IngestUriPartsProcessor extends IngestProcessorBase {
11024
+ field: Field;
11025
+ ignore_missing?: boolean;
11026
+ keep_original?: boolean;
11027
+ remove_if_successful?: boolean;
11028
+ target_field?: Field;
11029
+ }
10770
11030
  export interface IngestUrlDecodeProcessor extends IngestProcessorBase {
10771
11031
  field: Field;
10772
11032
  ignore_missing?: boolean;
@@ -10780,6 +11040,12 @@ export interface IngestUserAgentProcessor extends IngestProcessorBase {
10780
11040
  target_field?: Field;
10781
11041
  }
10782
11042
  export type IngestUserAgentProperty = 'NAME' | 'MAJOR' | 'MINOR' | 'PATCH' | 'OS' | 'OS_NAME' | 'OS_MAJOR' | 'OS_MINOR' | 'DEVICE' | 'BUILD';
11043
+ export interface IngestDeleteGeoipDatabaseRequest extends RequestBase {
11044
+ id: Ids;
11045
+ master_timeout?: Duration;
11046
+ timeout?: Duration;
11047
+ }
11048
+ export type IngestDeleteGeoipDatabaseResponse = AcknowledgedResponseBase;
10783
11049
  export interface IngestDeletePipelineRequest extends RequestBase {
10784
11050
  id: Id;
10785
11051
  master_timeout?: Duration;
@@ -10790,8 +11056,9 @@ export interface IngestGeoIpStatsGeoIpDownloadStatistics {
10790
11056
  successful_downloads: integer;
10791
11057
  failed_downloads: integer;
10792
11058
  total_download_time: DurationValue<UnitMillis>;
10793
- database_count: integer;
11059
+ databases_count: integer;
10794
11060
  skipped_updates: integer;
11061
+ expired_databases: integer;
10795
11062
  }
10796
11063
  export interface IngestGeoIpStatsGeoIpNodeDatabaseName {
10797
11064
  name: Name;
@@ -10806,6 +11073,19 @@ export interface IngestGeoIpStatsResponse {
10806
11073
  stats: IngestGeoIpStatsGeoIpDownloadStatistics;
10807
11074
  nodes: Record<Id, IngestGeoIpStatsGeoIpNodeDatabases>;
10808
11075
  }
11076
+ export interface IngestGetGeoipDatabaseDatabaseConfigurationMetadata {
11077
+ id: Id;
11078
+ version: long;
11079
+ modified_date_millis: EpochTime<UnitMillis>;
11080
+ database: IngestDatabaseConfiguration;
11081
+ }
11082
+ export interface IngestGetGeoipDatabaseRequest extends RequestBase {
11083
+ id?: Ids;
11084
+ master_timeout?: Duration;
11085
+ }
11086
+ export interface IngestGetGeoipDatabaseResponse {
11087
+ databases: IngestGetGeoipDatabaseDatabaseConfigurationMetadata[];
11088
+ }
10809
11089
  export interface IngestGetPipelineRequest extends RequestBase {
10810
11090
  id?: Id;
10811
11091
  master_timeout?: Duration;
@@ -10817,6 +11097,17 @@ export interface IngestProcessorGrokRequest extends RequestBase {
10817
11097
  export interface IngestProcessorGrokResponse {
10818
11098
  patterns: Record<string, string>;
10819
11099
  }
11100
+ export interface IngestPutGeoipDatabaseRequest extends RequestBase {
11101
+ id: Id;
11102
+ master_timeout?: Duration;
11103
+ timeout?: Duration;
11104
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
11105
+ body?: {
11106
+ name: Name;
11107
+ maxmind: IngestMaxmind;
11108
+ };
11109
+ }
11110
+ export type IngestPutGeoipDatabaseResponse = AcknowledgedResponseBase;
10820
11111
  export interface IngestPutPipelineRequest extends RequestBase {
10821
11112
  id: Id;
10822
11113
  master_timeout?: Duration;
@@ -11170,7 +11461,7 @@ export type MlCategorizationStatus = 'ok' | 'warn';
11170
11461
  export interface MlCategory {
11171
11462
  category_id: ulong;
11172
11463
  examples: string[];
11173
- grok_pattern?: string;
11464
+ grok_pattern?: GrokPattern;
11174
11465
  job_id: Id;
11175
11466
  max_matching_length: ulong;
11176
11467
  partition_field_name?: string;
@@ -11255,8 +11546,8 @@ export interface MlDatafeedConfig {
11255
11546
  datafeed_id?: Id;
11256
11547
  delayed_data_check_config?: MlDelayedDataCheckConfig;
11257
11548
  frequency?: Duration;
11258
- indices?: string[];
11259
- indexes?: string[];
11549
+ indices?: Indices;
11550
+ indexes?: Indices;
11260
11551
  indices_options?: IndicesOptions;
11261
11552
  job_id?: Id;
11262
11553
  max_empty_searches?: integer;
@@ -12059,7 +12350,7 @@ export interface MlTrainedModelPrefixStrings {
12059
12350
  }
12060
12351
  export interface MlTrainedModelSizeStats {
12061
12352
  model_size_bytes: ByteSize;
12062
- required_native_memory_bytes: integer;
12353
+ required_native_memory_bytes: ByteSize;
12063
12354
  }
12064
12355
  export interface MlTrainedModelStats {
12065
12356
  deployment_stats?: MlTrainedModelDeploymentStats;
@@ -12584,14 +12875,14 @@ export interface MlGetRecordsResponse {
12584
12875
  records: MlAnomaly[];
12585
12876
  }
12586
12877
  export interface MlGetTrainedModelsRequest extends RequestBase {
12587
- model_id?: Id;
12878
+ model_id?: Ids;
12588
12879
  allow_no_match?: boolean;
12589
12880
  decompress_definition?: boolean;
12590
12881
  exclude_generated?: boolean;
12591
12882
  from?: integer;
12592
12883
  include?: MlInclude;
12593
12884
  size?: integer;
12594
- tags?: string;
12885
+ tags?: string | string[];
12595
12886
  }
12596
12887
  export interface MlGetTrainedModelsResponse {
12597
12888
  count: integer;
@@ -12738,7 +13029,7 @@ export interface MlPutCalendarResponse {
12738
13029
  }
12739
13030
  export interface MlPutCalendarJobRequest extends RequestBase {
12740
13031
  calendar_id: Id;
12741
- job_id: Id;
13032
+ job_id: Ids;
12742
13033
  }
12743
13034
  export interface MlPutCalendarJobResponse {
12744
13035
  calendar_id: Id;
@@ -13414,6 +13705,22 @@ export interface NodesHttp {
13414
13705
  current_open?: integer;
13415
13706
  total_opened?: long;
13416
13707
  clients?: NodesClient[];
13708
+ routes: Record<string, NodesHttpRoute>;
13709
+ }
13710
+ export interface NodesHttpRoute {
13711
+ requests: NodesHttpRouteRequests;
13712
+ responses: NodesHttpRouteResponses;
13713
+ }
13714
+ export interface NodesHttpRouteRequests {
13715
+ count: long;
13716
+ total_size_in_bytes: long;
13717
+ size_histogram: NodesSizeHttpHistogram[];
13718
+ }
13719
+ export interface NodesHttpRouteResponses {
13720
+ count: long;
13721
+ total_size_in_bytes: long;
13722
+ handling_time_histogram: NodesTimeHttpHistogram[];
13723
+ size_histogram: NodesSizeHttpHistogram[];
13417
13724
  }
13418
13725
  export interface NodesIndexingPressure {
13419
13726
  memory?: NodesIndexingPressureMemory;
@@ -13425,15 +13732,23 @@ export interface NodesIndexingPressureMemory {
13425
13732
  total?: NodesPressureMemory;
13426
13733
  }
13427
13734
  export interface NodesIngest {
13428
- pipelines?: Record<string, NodesIngestTotal>;
13735
+ pipelines?: Record<string, NodesIngestStats>;
13429
13736
  total?: NodesIngestTotal;
13430
13737
  }
13738
+ export interface NodesIngestStats {
13739
+ count: long;
13740
+ current: long;
13741
+ failed: long;
13742
+ processors: Record<string, NodesKeyedProcessor>[];
13743
+ time_in_millis: DurationValue<UnitMillis>;
13744
+ ingested_as_first_pipeline_in_bytes: long;
13745
+ produced_as_first_pipeline_in_bytes: long;
13746
+ }
13431
13747
  export interface NodesIngestTotal {
13432
- count?: long;
13433
- current?: long;
13434
- failed?: long;
13435
- processors?: Record<string, NodesKeyedProcessor>[];
13436
- time_in_millis?: DurationValue<UnitMillis>;
13748
+ count: long;
13749
+ current: long;
13750
+ failed: long;
13751
+ time_in_millis: DurationValue<UnitMillis>;
13437
13752
  }
13438
13753
  export interface NodesIoStatDevice {
13439
13754
  device_name?: string;
@@ -13611,6 +13926,11 @@ export interface NodesSerializedClusterStateDetail {
13611
13926
  compressed_size?: string;
13612
13927
  compressed_size_in_bytes?: long;
13613
13928
  }
13929
+ export interface NodesSizeHttpHistogram {
13930
+ count: long;
13931
+ ge_bytes?: long;
13932
+ lt_bytes?: long;
13933
+ }
13614
13934
  export interface NodesStats {
13615
13935
  adaptive_selection?: Record<string, NodesAdaptiveSelection>;
13616
13936
  breakers?: Record<string, NodesBreaker>;
@@ -13643,6 +13963,11 @@ export interface NodesThreadCount {
13643
13963
  rejected?: long;
13644
13964
  threads?: long;
13645
13965
  }
13966
+ export interface NodesTimeHttpHistogram {
13967
+ count: long;
13968
+ ge_millis?: long;
13969
+ lt_millis?: long;
13970
+ }
13646
13971
  export interface NodesTransport {
13647
13972
  inbound_handling_time_histogram?: NodesTransportHistogram[];
13648
13973
  outbound_handling_time_histogram?: NodesTransportHistogram[];
@@ -13677,12 +14002,6 @@ export interface NodesGetRepositoriesMeteringInfoResponseBase extends NodesNodes
13677
14002
  cluster_name: Name;
13678
14003
  nodes: Record<string, NodesRepositoryMeteringInformation>;
13679
14004
  }
13680
- export interface NodesHotThreadsHotThread {
13681
- hosts: Host[];
13682
- node_id: Id;
13683
- node_name: Name;
13684
- threads: string[];
13685
- }
13686
14005
  export interface NodesHotThreadsRequest extends RequestBase {
13687
14006
  node_id?: NodeIds;
13688
14007
  ignore_idle_threads?: boolean;
@@ -13695,7 +14014,6 @@ export interface NodesHotThreadsRequest extends RequestBase {
13695
14014
  sort?: ThreadType;
13696
14015
  }
13697
14016
  export interface NodesHotThreadsResponse {
13698
- hot_threads: NodesHotThreadsHotThread[];
13699
14017
  }
13700
14018
  export interface NodesInfoDeprecationIndexing {
13701
14019
  enabled: boolean | string;
@@ -14054,55 +14372,81 @@ export interface NodesUsageResponseBase extends NodesNodesResponseBase {
14054
14372
  cluster_name: Name;
14055
14373
  nodes: Record<string, NodesUsageNodeUsage>;
14056
14374
  }
14057
- export interface QueryRulesetQueryRule {
14375
+ export interface QueryRulesQueryRule {
14058
14376
  rule_id: Id;
14059
- type: QueryRulesetQueryRuleType;
14060
- criteria: QueryRulesetQueryRuleCriteria[];
14061
- actions: QueryRulesetQueryRuleActions;
14377
+ type: QueryRulesQueryRuleType;
14378
+ criteria: QueryRulesQueryRuleCriteria | QueryRulesQueryRuleCriteria[];
14379
+ actions: QueryRulesQueryRuleActions;
14380
+ priority?: integer;
14062
14381
  }
14063
- export interface QueryRulesetQueryRuleActions {
14382
+ export interface QueryRulesQueryRuleActions {
14064
14383
  ids?: Id[];
14065
14384
  docs?: QueryDslPinnedDoc[];
14066
14385
  }
14067
- export interface QueryRulesetQueryRuleCriteria {
14068
- type: QueryRulesetQueryRuleCriteriaType;
14069
- metadata: string;
14386
+ export interface QueryRulesQueryRuleCriteria {
14387
+ type: QueryRulesQueryRuleCriteriaType;
14388
+ metadata?: string;
14070
14389
  values?: any[];
14071
14390
  }
14072
- export type QueryRulesetQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte';
14073
- export type QueryRulesetQueryRuleType = 'pinned';
14074
- export interface QueryRulesetQueryRuleset {
14391
+ export type QueryRulesQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte' | 'always';
14392
+ export type QueryRulesQueryRuleType = 'pinned';
14393
+ export interface QueryRulesQueryRuleset {
14394
+ ruleset_id: Id;
14395
+ rules: QueryRulesQueryRule[];
14396
+ }
14397
+ export interface QueryRulesDeleteRuleRequest extends RequestBase {
14398
+ ruleset_id: Id;
14399
+ rule_id: Id;
14400
+ }
14401
+ export type QueryRulesDeleteRuleResponse = AcknowledgedResponseBase;
14402
+ export interface QueryRulesDeleteRulesetRequest extends RequestBase {
14075
14403
  ruleset_id: Id;
14076
- rules: QueryRulesetQueryRule[];
14077
14404
  }
14078
- export interface QueryRulesetDeleteRequest extends RequestBase {
14405
+ export type QueryRulesDeleteRulesetResponse = AcknowledgedResponseBase;
14406
+ export interface QueryRulesGetRuleRequest extends RequestBase {
14079
14407
  ruleset_id: Id;
14408
+ rule_id: Id;
14080
14409
  }
14081
- export type QueryRulesetDeleteResponse = AcknowledgedResponseBase;
14082
- export interface QueryRulesetGetRequest extends RequestBase {
14410
+ export type QueryRulesGetRuleResponse = QueryRulesQueryRule;
14411
+ export interface QueryRulesGetRulesetRequest extends RequestBase {
14083
14412
  ruleset_id: Id;
14084
14413
  }
14085
- export type QueryRulesetGetResponse = QueryRulesetQueryRuleset;
14086
- export interface QueryRulesetListQueryRulesetListItem {
14414
+ export type QueryRulesGetRulesetResponse = QueryRulesQueryRuleset;
14415
+ export interface QueryRulesListRulesetsQueryRulesetListItem {
14087
14416
  ruleset_id: Id;
14088
- rules_count: integer;
14417
+ rule_total_count: integer;
14418
+ rule_criteria_types_counts: Record<string, integer>;
14089
14419
  }
14090
- export interface QueryRulesetListRequest extends RequestBase {
14420
+ export interface QueryRulesListRulesetsRequest extends RequestBase {
14091
14421
  from?: integer;
14092
14422
  size?: integer;
14093
14423
  }
14094
- export interface QueryRulesetListResponse {
14424
+ export interface QueryRulesListRulesetsResponse {
14095
14425
  count: long;
14096
- results: QueryRulesetListQueryRulesetListItem[];
14426
+ results: QueryRulesListRulesetsQueryRulesetListItem[];
14427
+ }
14428
+ export interface QueryRulesPutRuleRequest extends RequestBase {
14429
+ ruleset_id: Id;
14430
+ rule_id: Id;
14431
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14432
+ body?: {
14433
+ type: QueryRulesQueryRuleType;
14434
+ criteria: QueryRulesQueryRuleCriteria | QueryRulesQueryRuleCriteria[];
14435
+ actions: QueryRulesQueryRuleActions;
14436
+ priority?: integer;
14437
+ };
14097
14438
  }
14098
- export interface QueryRulesetPutRequest extends RequestBase {
14439
+ export interface QueryRulesPutRuleResponse {
14440
+ result: Result;
14441
+ }
14442
+ export interface QueryRulesPutRulesetRequest extends RequestBase {
14099
14443
  ruleset_id: Id;
14100
14444
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14101
14445
  body?: {
14102
- rules: QueryRulesetQueryRule[];
14446
+ rules: QueryRulesQueryRule | QueryRulesQueryRule[];
14103
14447
  };
14104
14448
  }
14105
- export interface QueryRulesetPutResponse {
14449
+ export interface QueryRulesPutRulesetResponse {
14106
14450
  result: Result;
14107
14451
  }
14108
14452
  export interface RollupDateHistogramGrouping {
@@ -14279,7 +14623,7 @@ export interface SearchApplicationSearchApplication {
14279
14623
  template?: SearchApplicationSearchApplicationTemplate;
14280
14624
  }
14281
14625
  export interface SearchApplicationSearchApplicationTemplate {
14282
- script: InlineScript | string;
14626
+ script: Script | string;
14283
14627
  }
14284
14628
  export interface SearchApplicationDeleteRequest extends RequestBase {
14285
14629
  name: Name;
@@ -14420,6 +14764,10 @@ export interface SecurityApplicationPrivileges {
14420
14764
  privileges: string[];
14421
14765
  resources: string[];
14422
14766
  }
14767
+ export interface SecurityBulkError {
14768
+ count: integer;
14769
+ details: Record<string, ErrorCause>;
14770
+ }
14423
14771
  export interface SecurityClusterNode {
14424
14772
  name: Name;
14425
14773
  }
@@ -14457,23 +14805,25 @@ export interface SecurityRealmInfo {
14457
14805
  type: string;
14458
14806
  }
14459
14807
  export interface SecurityRoleDescriptor {
14460
- cluster?: string[];
14808
+ cluster?: SecurityClusterPrivilege[];
14461
14809
  indices?: SecurityIndicesPrivileges[];
14462
14810
  index?: SecurityIndicesPrivileges[];
14463
14811
  global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege;
14464
14812
  applications?: SecurityApplicationPrivileges[];
14465
14813
  metadata?: Metadata;
14466
14814
  run_as?: string[];
14815
+ description?: string;
14467
14816
  transient_metadata?: Record<string, any>;
14468
14817
  }
14469
14818
  export interface SecurityRoleDescriptorRead {
14470
- cluster: string[];
14819
+ cluster: SecurityClusterPrivilege[];
14471
14820
  indices: SecurityIndicesPrivileges[];
14472
14821
  index: SecurityIndicesPrivileges[];
14473
14822
  global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege;
14474
14823
  applications?: SecurityApplicationPrivileges[];
14475
14824
  metadata?: Metadata;
14476
14825
  run_as?: string[];
14826
+ description?: string;
14477
14827
  transient_metadata?: Record<string, any>;
14478
14828
  }
14479
14829
  export interface SecurityRoleMapping {
@@ -14491,18 +14841,19 @@ export interface SecurityRoleMappingRule {
14491
14841
  }
14492
14842
  export interface SecurityRoleTemplate {
14493
14843
  format?: SecurityTemplateFormat;
14494
- template: Script;
14844
+ template: Script | string;
14495
14845
  }
14496
14846
  export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer;
14497
- export interface SecurityRoleTemplateInlineScript extends ScriptBase {
14847
+ export interface SecurityRoleTemplateQuery {
14848
+ template?: SecurityRoleTemplateScript | SecurityRoleTemplateInlineQuery;
14849
+ }
14850
+ export interface SecurityRoleTemplateScript {
14851
+ source?: SecurityRoleTemplateInlineQuery;
14852
+ id?: Id;
14853
+ params?: Record<string, any>;
14498
14854
  lang?: ScriptLanguage;
14499
14855
  options?: Record<string, string>;
14500
- source: SecurityRoleTemplateInlineQuery;
14501
- }
14502
- export interface SecurityRoleTemplateQuery {
14503
- template?: SecurityRoleTemplateScript;
14504
14856
  }
14505
- export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId;
14506
14857
  export type SecurityTemplateFormat = 'string' | 'json';
14507
14858
  export interface SecurityUser {
14508
14859
  email?: string | null;
@@ -14573,6 +14924,31 @@ export interface SecurityAuthenticateToken {
14573
14924
  name: Name;
14574
14925
  type?: string;
14575
14926
  }
14927
+ export interface SecurityBulkDeleteRoleRequest extends RequestBase {
14928
+ refresh?: Refresh;
14929
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14930
+ body?: {
14931
+ names: string[];
14932
+ };
14933
+ }
14934
+ export interface SecurityBulkDeleteRoleResponse {
14935
+ deleted?: string[];
14936
+ not_found?: string[];
14937
+ errors?: SecurityBulkError;
14938
+ }
14939
+ export interface SecurityBulkPutRoleRequest extends RequestBase {
14940
+ refresh?: Refresh;
14941
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14942
+ body?: {
14943
+ roles: Record<string, SecurityRoleDescriptor>;
14944
+ };
14945
+ }
14946
+ export interface SecurityBulkPutRoleResponse {
14947
+ created?: string[];
14948
+ updated?: string[];
14949
+ noop?: string[];
14950
+ errors?: SecurityBulkError;
14951
+ }
14576
14952
  export interface SecurityChangePasswordRequest extends RequestBase {
14577
14953
  username?: Username;
14578
14954
  refresh?: Refresh;
@@ -14999,6 +15375,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
14999
15375
  indices?: SecurityIndicesPrivileges[];
15000
15376
  metadata?: Metadata;
15001
15377
  run_as?: string[];
15378
+ description?: string;
15002
15379
  transient_metadata?: Record<string, any>;
15003
15380
  };
15004
15381
  }
@@ -15096,6 +15473,70 @@ export interface SecurityQueryApiKeysResponse {
15096
15473
  api_keys: SecurityApiKey[];
15097
15474
  aggregations?: Record<AggregateName, SecurityQueryApiKeysApiKeyAggregate>;
15098
15475
  }
15476
+ export interface SecurityQueryRoleQueryRole extends SecurityRoleDescriptor {
15477
+ _sort?: SortResults;
15478
+ name: string;
15479
+ }
15480
+ export interface SecurityQueryRoleRequest extends RequestBase {
15481
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15482
+ body?: {
15483
+ query?: SecurityQueryRoleRoleQueryContainer;
15484
+ from?: integer;
15485
+ sort?: Sort;
15486
+ size?: integer;
15487
+ search_after?: SortResults;
15488
+ };
15489
+ }
15490
+ export interface SecurityQueryRoleResponse {
15491
+ total: integer;
15492
+ count: integer;
15493
+ roles: SecurityQueryRoleQueryRole[];
15494
+ }
15495
+ export interface SecurityQueryRoleRoleQueryContainer {
15496
+ bool?: QueryDslBoolQuery;
15497
+ exists?: QueryDslExistsQuery;
15498
+ ids?: QueryDslIdsQuery;
15499
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
15500
+ match_all?: QueryDslMatchAllQuery;
15501
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
15502
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
15503
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
15504
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
15505
+ terms?: QueryDslTermsQuery;
15506
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
15507
+ }
15508
+ export interface SecurityQueryUserQueryUser extends SecurityUser {
15509
+ _sort?: SortResults;
15510
+ }
15511
+ export interface SecurityQueryUserRequest extends RequestBase {
15512
+ with_profile_uid?: boolean;
15513
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15514
+ body?: {
15515
+ query?: SecurityQueryUserUserQueryContainer;
15516
+ from?: integer;
15517
+ sort?: Sort;
15518
+ size?: integer;
15519
+ search_after?: SortResults;
15520
+ };
15521
+ }
15522
+ export interface SecurityQueryUserResponse {
15523
+ total: integer;
15524
+ count: integer;
15525
+ users: SecurityQueryUserQueryUser[];
15526
+ }
15527
+ export interface SecurityQueryUserUserQueryContainer {
15528
+ ids?: QueryDslIdsQuery;
15529
+ bool?: QueryDslBoolQuery;
15530
+ exists?: QueryDslExistsQuery;
15531
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
15532
+ match_all?: QueryDslMatchAllQuery;
15533
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
15534
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
15535
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
15536
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
15537
+ terms?: QueryDslTermsQuery;
15538
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
15539
+ }
15099
15540
  export interface SecuritySamlAuthenticateRequest extends RequestBase {
15100
15541
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15101
15542
  body?: {
@@ -15839,7 +16280,7 @@ export interface SynonymsPutSynonymRequest extends RequestBase {
15839
16280
  id: Id;
15840
16281
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15841
16282
  body?: {
15842
- synonyms_set: SynonymsSynonymRule[];
16283
+ synonyms_set: SynonymsSynonymRule | SynonymsSynonymRule[];
15843
16284
  };
15844
16285
  }
15845
16286
  export interface SynonymsPutSynonymResponse {
@@ -15938,7 +16379,7 @@ export interface TextStructureFindStructureRequest<TJsonDocument = unknown> {
15938
16379
  ecs_compatibility?: string;
15939
16380
  explain?: boolean;
15940
16381
  format?: string;
15941
- grok_pattern?: string;
16382
+ grok_pattern?: GrokPattern;
15942
16383
  has_header_row?: boolean;
15943
16384
  line_merge_size_limit?: uint;
15944
16385
  lines_to_sample?: uint;
@@ -15965,7 +16406,7 @@ export interface TextStructureFindStructureResponse {
15965
16406
  num_lines_analyzed: integer;
15966
16407
  column_names?: string[];
15967
16408
  explanation?: string[];
15968
- grok_pattern?: string;
16409
+ grok_pattern?: GrokPattern;
15969
16410
  multiline_start_pattern?: string;
15970
16411
  exclude_lines_pattern?: string;
15971
16412
  java_timestamp_formats?: string[];
@@ -15991,7 +16432,7 @@ export interface TextStructureTestGrokPatternRequest extends RequestBase {
15991
16432
  ecs_compatibility?: string;
15992
16433
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15993
16434
  body?: {
15994
- grok_pattern: string;
16435
+ grok_pattern: GrokPattern;
15995
16436
  text: string[];
15996
16437
  };
15997
16438
  }
@@ -16127,9 +16568,9 @@ export interface TransformGetTransformStatsTransformIndexerStats {
16127
16568
  export interface TransformGetTransformStatsTransformProgress {
16128
16569
  docs_indexed: long;
16129
16570
  docs_processed: long;
16130
- docs_remaining: long;
16131
- percent_complete: double;
16132
- total_docs: long;
16571
+ docs_remaining?: long;
16572
+ percent_complete?: double;
16573
+ total_docs?: long;
16133
16574
  }
16134
16575
  export interface TransformGetTransformStatsTransformStats {
16135
16576
  checkpointing: TransformGetTransformStatsCheckpointing;