@elastic/elasticsearch 8.6.1 → 8.7.3

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 (40) hide show
  1. package/.buildkite/Dockerfile +14 -0
  2. package/.buildkite/functions/cleanup.sh +67 -0
  3. package/.buildkite/functions/imports.sh +60 -0
  4. package/.buildkite/functions/wait-for-container.sh +36 -0
  5. package/.buildkite/pipeline.yml +31 -0
  6. package/.buildkite/run-client.sh +31 -0
  7. package/.buildkite/run-elasticsearch.sh +152 -0
  8. package/.buildkite/run-tests.sh +16 -0
  9. package/Makefile +11 -0
  10. package/catalog-info.yaml +53 -0
  11. package/index.d.ts +1 -1
  12. package/lib/api/api/cluster.js +1 -1
  13. package/lib/api/api/cluster.js.map +1 -1
  14. package/lib/api/api/field_caps.d.ts +3 -3
  15. package/lib/api/api/field_caps.js +2 -1
  16. package/lib/api/api/field_caps.js.map +1 -1
  17. package/lib/api/api/health_report.d.ts +10 -0
  18. package/lib/api/api/health_report.js +48 -0
  19. package/lib/api/api/health_report.js.map +1 -0
  20. package/lib/api/api/license.d.ts +3 -3
  21. package/lib/api/api/license.js +1 -0
  22. package/lib/api/api/license.js.map +1 -1
  23. package/lib/api/api/logstash.js +10 -2
  24. package/lib/api/api/logstash.js.map +1 -1
  25. package/lib/api/api/ml.d.ts +6 -3
  26. package/lib/api/api/ml.js +20 -3
  27. package/lib/api/api/ml.js.map +1 -1
  28. package/lib/api/api/search_mvt.js +1 -1
  29. package/lib/api/api/search_mvt.js.map +1 -1
  30. package/lib/api/api/snapshot.js +1 -1
  31. package/lib/api/api/snapshot.js.map +1 -1
  32. package/lib/api/api/transform.d.ts +3 -0
  33. package/lib/api/api/transform.js +17 -0
  34. package/lib/api/api/transform.js.map +1 -1
  35. package/lib/api/index.d.ts +2 -0
  36. package/lib/api/index.js +2 -0
  37. package/lib/api/index.js.map +1 -1
  38. package/lib/api/types.d.ts +525 -198
  39. package/lib/api/typesWithBodyKey.d.ts +525 -198
  40. package/package.json +16 -11
@@ -191,7 +191,7 @@ export interface DeleteByQueryResponse {
191
191
  version_conflicts?: long;
192
192
  }
193
193
  export interface DeleteByQueryRethrottleRequest extends RequestBase {
194
- task_id: Id;
194
+ task_id: TaskId;
195
195
  requests_per_second?: float;
196
196
  }
197
197
  export type DeleteByQueryRethrottleResponse = TasksTaskListResponseBase;
@@ -282,11 +282,11 @@ export interface FieldCapsRequest extends RequestBase {
282
282
  index?: Indices;
283
283
  allow_no_indices?: boolean;
284
284
  expand_wildcards?: ExpandWildcards;
285
- fields: Fields;
286
285
  ignore_unavailable?: boolean;
287
286
  include_unmapped?: boolean;
288
287
  filters?: string;
289
288
  types?: string[];
289
+ fields?: Fields;
290
290
  index_filter?: QueryDslQueryContainer;
291
291
  runtime_mappings?: MappingRuntimeFields;
292
292
  }
@@ -372,6 +372,125 @@ export interface GetSourceRequest extends RequestBase {
372
372
  version_type?: VersionType;
373
373
  }
374
374
  export type GetSourceResponse<TDocument = unknown> = TDocument;
375
+ export interface HealthReportBaseIndicator {
376
+ status: HealthReportIndicatorHealthStatus;
377
+ symptom: string;
378
+ impacts?: HealthReportImpact[];
379
+ diagnosis?: HealthReportDiagnosis[];
380
+ }
381
+ export interface HealthReportDiagnosis {
382
+ id: string;
383
+ action: string;
384
+ affected_resources: HealthReportDiagnosisAffectedResources;
385
+ cause: string;
386
+ help_url: string;
387
+ }
388
+ export interface HealthReportDiagnosisAffectedResources {
389
+ indices?: Indices;
390
+ nodes?: HealthReportIndicatorNode[];
391
+ slm_policies?: string[];
392
+ feature_states?: string[];
393
+ snapshot_repositories?: string[];
394
+ }
395
+ export interface HealthReportDiskIndicator extends HealthReportBaseIndicator {
396
+ details?: HealthReportDiskIndicatorDetails;
397
+ }
398
+ export interface HealthReportDiskIndicatorDetails {
399
+ indices_with_readonly_block: long;
400
+ nodes_with_enough_disk_space: long;
401
+ nodes_over_high_watermark: long;
402
+ nodes_over_flood_stage_watermark: long;
403
+ nodes_with_unknown_disk_status: long;
404
+ }
405
+ export interface HealthReportIlmIndicator extends HealthReportBaseIndicator {
406
+ details?: HealthReportIlmIndicatorDetails;
407
+ }
408
+ export interface HealthReportIlmIndicatorDetails {
409
+ ilm_status: LifecycleOperationMode;
410
+ policies: long;
411
+ }
412
+ export interface HealthReportImpact {
413
+ description: string;
414
+ id: string;
415
+ impact_areas: HealthReportImpactArea[];
416
+ severity: integer;
417
+ }
418
+ export type HealthReportImpactArea = 'search' | 'ingest' | 'backup' | 'deployment_management';
419
+ export type HealthReportIndicatorHealthStatus = 'green' | 'yellow' | 'red' | 'unknown';
420
+ export interface HealthReportIndicatorNode {
421
+ name: string | null;
422
+ node_id: string | null;
423
+ }
424
+ export interface HealthReportIndicators {
425
+ master_is_stable?: HealthReportMasterIsStableIndicator;
426
+ shards_availability?: HealthReportShardsAvailabilityIndicator;
427
+ disk?: HealthReportDiskIndicator;
428
+ repository_integrity?: HealthReportRepositoryIntegrityIndicator;
429
+ ilm?: HealthReportIlmIndicator;
430
+ slm?: HealthReportSlmIndicator;
431
+ }
432
+ export interface HealthReportMasterIsStableIndicator extends HealthReportBaseIndicator {
433
+ details?: HealthReportMasterIsStableIndicatorDetails;
434
+ }
435
+ export interface HealthReportMasterIsStableIndicatorClusterFormationNode {
436
+ name?: string;
437
+ node_id: string;
438
+ cluster_formation_message: string;
439
+ }
440
+ export interface HealthReportMasterIsStableIndicatorDetails {
441
+ current_master: HealthReportIndicatorNode;
442
+ recent_masters: HealthReportIndicatorNode[];
443
+ exception_fetching_history?: HealthReportMasterIsStableIndicatorExceptionFetchingHistory;
444
+ cluster_formation?: HealthReportMasterIsStableIndicatorClusterFormationNode[];
445
+ }
446
+ export interface HealthReportMasterIsStableIndicatorExceptionFetchingHistory {
447
+ message: string;
448
+ stack_trace: string;
449
+ }
450
+ export interface HealthReportRepositoryIntegrityIndicator extends HealthReportBaseIndicator {
451
+ details?: HealthReportRepositoryIntegrityIndicatorDetails;
452
+ }
453
+ export interface HealthReportRepositoryIntegrityIndicatorDetails {
454
+ total_repositories?: long;
455
+ corrupted_repositories?: long;
456
+ corrupted?: string[];
457
+ }
458
+ export interface HealthReportRequest extends RequestBase {
459
+ feature?: string | string[];
460
+ timeout?: Duration;
461
+ verbose?: boolean;
462
+ size?: integer;
463
+ }
464
+ export interface HealthReportResponse {
465
+ cluster_name: string;
466
+ indicators: HealthReportIndicators;
467
+ }
468
+ export interface HealthReportShardsAvailabilityIndicator extends HealthReportBaseIndicator {
469
+ details?: HealthReportShardsAvailabilityIndicatorDetails;
470
+ }
471
+ export interface HealthReportShardsAvailabilityIndicatorDetails {
472
+ creating_primaries: long;
473
+ initializing_primaries: long;
474
+ initializing_replicas: long;
475
+ restarting_primaries: long;
476
+ restarting_replicas: long;
477
+ started_primaries: long;
478
+ started_replicas: long;
479
+ unassigned_primaries: long;
480
+ unassigned_replicas: long;
481
+ }
482
+ export interface HealthReportSlmIndicator extends HealthReportBaseIndicator {
483
+ details?: HealthReportSlmIndicatorDetails;
484
+ }
485
+ export interface HealthReportSlmIndicatorDetails {
486
+ slm_status: LifecycleOperationMode;
487
+ policies: long;
488
+ unhealthy_policies: HealthReportSlmIndicatorUnhealthyPolicies;
489
+ }
490
+ export interface HealthReportSlmIndicatorUnhealthyPolicies {
491
+ count: long;
492
+ invocations_since_last_success?: Record<string, long>;
493
+ }
375
494
  export interface IndexRequest<TDocument = unknown> extends RequestBase {
376
495
  id?: Id;
377
496
  index: IndexName;
@@ -418,11 +537,10 @@ export interface KnnSearchResponse<TDocument = unknown> {
418
537
  }
419
538
  export interface KnnSearchQuery {
420
539
  field: Field;
421
- query_vector: KnnSearchQueryVector;
540
+ query_vector: QueryVector;
422
541
  k: long;
423
542
  num_candidates: long;
424
543
  }
425
- export type KnnSearchQueryVector = double[];
426
544
  export interface MgetMultiGetError {
427
545
  error: ErrorCause;
428
546
  _id: Id;
@@ -470,7 +588,7 @@ export interface MsearchMultisearchBody {
470
588
  ext?: Record<string, any>;
471
589
  stored_fields?: Fields;
472
590
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
473
- knn?: KnnQuery;
591
+ knn?: KnnQuery | KnnQuery[];
474
592
  from?: integer;
475
593
  highlight?: SearchHighlight;
476
594
  indices_boost?: Record<IndexName, double>[];
@@ -592,6 +710,9 @@ export interface OpenPointInTimeRequest extends RequestBase {
592
710
  index: Indices;
593
711
  keep_alive: Duration;
594
712
  ignore_unavailable?: boolean;
713
+ preference?: string;
714
+ routing?: Routing;
715
+ expand_wildcards?: ExpandWildcards;
595
716
  }
596
717
  export interface OpenPointInTimeResponse {
597
718
  id: Id;
@@ -665,7 +786,7 @@ export interface RankEvalRankEvalRequestItem {
665
786
  params?: Record<string, any>;
666
787
  }
667
788
  export interface RankEvalRequest extends RequestBase {
668
- index: Indices;
789
+ index?: Indices;
669
790
  allow_no_indices?: boolean;
670
791
  expand_wildcards?: ExpandWildcards;
671
792
  ignore_unavailable?: boolean;
@@ -847,7 +968,7 @@ export interface SearchRequest extends RequestBase {
847
968
  track_total_hits?: SearchTrackHits;
848
969
  indices_boost?: Record<IndexName, double>[];
849
970
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
850
- knn?: KnnQuery;
971
+ knn?: KnnQuery | KnnQuery[];
851
972
  min_score?: double;
852
973
  post_filter?: QueryDslQueryContainer;
853
974
  profile?: boolean;
@@ -938,11 +1059,13 @@ export interface SearchAggregationProfileDebug {
938
1059
  filters?: SearchAggregationProfileDelegateDebugFilter[];
939
1060
  segments_counted?: integer;
940
1061
  segments_collected?: integer;
1062
+ map_reducer?: string;
941
1063
  }
942
1064
  export interface SearchAggregationProfileDelegateDebugFilter {
943
1065
  results_from_metadata?: integer;
944
1066
  query?: string;
945
1067
  specialized_for?: string;
1068
+ segments_counted_in_constant_time?: integer;
946
1069
  }
947
1070
  export type SearchBoundaryScanner = 'chars' | 'sentence' | 'word';
948
1071
  export interface SearchCollector {
@@ -976,8 +1099,7 @@ export interface SearchCompletionSuggestOption<TDocument = unknown> {
976
1099
  export interface SearchCompletionSuggester extends SearchSuggesterBase {
977
1100
  contexts?: Record<Field, SearchCompletionContext | SearchContext | (SearchCompletionContext | SearchContext)[]>;
978
1101
  fuzzy?: SearchSuggestFuzziness;
979
- prefix?: string;
980
- regex?: string;
1102
+ regex?: SearchRegexOptions;
981
1103
  skip_duplicates?: boolean;
982
1104
  }
983
1105
  export type SearchContext = string | GeoLocation;
@@ -1003,6 +1125,8 @@ export interface SearchFetchProfile {
1003
1125
  children?: SearchFetchProfile[];
1004
1126
  }
1005
1127
  export interface SearchFetchProfileBreakdown {
1128
+ load_source?: integer;
1129
+ load_source_count?: integer;
1006
1130
  load_stored_fields?: integer;
1007
1131
  load_stored_fields_count?: integer;
1008
1132
  next_reader?: integer;
@@ -1058,6 +1182,7 @@ export interface SearchHighlightBase {
1058
1182
  export interface SearchHighlightField extends SearchHighlightBase {
1059
1183
  fragment_offset?: integer;
1060
1184
  matched_fields?: Fields;
1185
+ analyzer?: AnalysisAnalyzer;
1061
1186
  }
1062
1187
  export type SearchHighlighterEncoder = 'default' | 'html';
1063
1188
  export type SearchHighlighterFragmenter = 'simple' | 'span';
@@ -1142,8 +1267,9 @@ export interface SearchPhraseSuggestHighlight {
1142
1267
  }
1143
1268
  export interface SearchPhraseSuggestOption {
1144
1269
  text: string;
1145
- highlighted: string;
1146
1270
  score: double;
1271
+ highlighted?: string;
1272
+ collate_match?: boolean;
1147
1273
  }
1148
1274
  export interface SearchPhraseSuggester extends SearchSuggesterBase {
1149
1275
  collate?: SearchPhraseSuggestCollate;
@@ -1194,6 +1320,10 @@ export interface SearchQueryProfile {
1194
1320
  type: string;
1195
1321
  children?: SearchQueryProfile[];
1196
1322
  }
1323
+ export interface SearchRegexOptions {
1324
+ flags?: integer | string;
1325
+ max_determinized_states?: integer;
1326
+ }
1197
1327
  export interface SearchRescore {
1198
1328
  query: SearchRescoreQuery;
1199
1329
  window_size?: integer;
@@ -1263,8 +1393,10 @@ export interface SearchTermSuggest extends SearchSuggestBase {
1263
1393
  }
1264
1394
  export interface SearchTermSuggestOption {
1265
1395
  text: string;
1266
- freq: long;
1267
1396
  score: double;
1397
+ freq: long;
1398
+ highlighted?: string;
1399
+ collate_match?: boolean;
1268
1400
  }
1269
1401
  export interface SearchTermSuggester extends SearchSuggesterBase {
1270
1402
  lowercase_terms?: boolean;
@@ -1293,9 +1425,11 @@ export interface SearchMvtRequest extends RequestBase {
1293
1425
  x: SearchMvtCoordinate;
1294
1426
  y: SearchMvtCoordinate;
1295
1427
  aggs?: Record<string, AggregationsAggregationContainer>;
1428
+ buffer?: integer;
1296
1429
  exact_bounds?: boolean;
1297
1430
  extent?: integer;
1298
1431
  fields?: Fields;
1432
+ grid_agg?: SearchMvtGridAggregationType;
1299
1433
  grid_precision?: integer;
1300
1434
  grid_type?: SearchMvtGridType;
1301
1435
  query?: QueryDslQueryContainer;
@@ -1303,9 +1437,11 @@ export interface SearchMvtRequest extends RequestBase {
1303
1437
  size?: integer;
1304
1438
  sort?: Sort;
1305
1439
  track_total_hits?: SearchTrackHits;
1440
+ with_labels?: boolean;
1306
1441
  }
1307
1442
  export type SearchMvtResponse = MapboxVectorTiles;
1308
1443
  export type SearchMvtCoordinate = integer;
1444
+ export type SearchMvtGridAggregationType = 'geotile' | 'geohex';
1309
1445
  export type SearchMvtGridType = 'grid' | 'point' | 'centroid';
1310
1446
  export type SearchMvtZoomLevel = integer;
1311
1447
  export interface SearchShardsRequest extends RequestBase {
@@ -1641,7 +1777,7 @@ export interface FieldSort {
1641
1777
  format?: string;
1642
1778
  }
1643
1779
  export type FieldSortNumericType = 'long' | 'double' | 'date' | 'date_nanos';
1644
- export type FieldValue = long | double | string | boolean | any;
1780
+ export type FieldValue = long | double | string | boolean | null | any;
1645
1781
  export interface FielddataStats {
1646
1782
  evictions?: long;
1647
1783
  memory_size?: ByteSize;
@@ -1673,6 +1809,7 @@ export interface GeoHashLocation {
1673
1809
  geohash: GeoHash;
1674
1810
  }
1675
1811
  export type GeoHashPrecision = number | string;
1812
+ export type GeoHexCell = string;
1676
1813
  export interface GeoLine {
1677
1814
  type: string;
1678
1815
  coordinates: double[][];
@@ -1720,6 +1857,7 @@ export interface IndexingStats {
1720
1857
  index_total: long;
1721
1858
  index_failed: long;
1722
1859
  types?: Record<string, IndexingStats>;
1860
+ write_load?: double;
1723
1861
  }
1724
1862
  export type Indices = IndexName | IndexName[];
1725
1863
  export interface IndicesOptions {
@@ -1750,7 +1888,8 @@ export interface InlineScript extends ScriptBase {
1750
1888
  export type Ip = string;
1751
1889
  export interface KnnQuery {
1752
1890
  field: Field;
1753
- query_vector: double[];
1891
+ query_vector?: QueryVector;
1892
+ query_vector_builder?: QueryVectorBuilder;
1754
1893
  k: long;
1755
1894
  num_candidates: long;
1756
1895
  boost?: float;
@@ -1797,10 +1936,11 @@ export interface NestedSortValue {
1797
1936
  export interface NodeAttributes {
1798
1937
  attributes: Record<string, string>;
1799
1938
  ephemeral_id: Id;
1800
- id?: Id;
1939
+ id?: NodeId;
1801
1940
  name: NodeName;
1802
1941
  transport_address: TransportAddress;
1803
1942
  roles?: NodeRoles;
1943
+ external_id?: string;
1804
1944
  }
1805
1945
  export type NodeId = string;
1806
1946
  export type NodeIds = NodeId | NodeId[];
@@ -1817,6 +1957,7 @@ export interface NodeShard {
1817
1957
  recovery_source?: Record<string, Id>;
1818
1958
  unassigned_info?: ClusterAllocationExplainUnassignedInformation;
1819
1959
  relocating_node?: NodeId | null;
1960
+ relocation_failure_info?: RelocationFailureInfo;
1820
1961
  }
1821
1962
  export interface NodeStatistics {
1822
1963
  failures?: ErrorCause[];
@@ -1839,7 +1980,6 @@ export interface PluginStats {
1839
1980
  name: Name;
1840
1981
  version: VersionString;
1841
1982
  licensed: boolean;
1842
- type: string;
1843
1983
  }
1844
1984
  export type PropertyName = string;
1845
1985
  export interface QueryCacheStats {
@@ -1848,10 +1988,14 @@ export interface QueryCacheStats {
1848
1988
  evictions: integer;
1849
1989
  hit_count: integer;
1850
1990
  memory_size?: ByteSize;
1851
- memory_size_in_bytes: integer;
1991
+ memory_size_in_bytes: long;
1852
1992
  miss_count: integer;
1853
1993
  total_count: integer;
1854
1994
  }
1995
+ export type QueryVector = float[];
1996
+ export interface QueryVectorBuilder {
1997
+ text_embedding?: TextEmbedding;
1998
+ }
1855
1999
  export interface RecoveryStats {
1856
2000
  current_as_source: long;
1857
2001
  current_as_target: long;
@@ -1868,6 +2012,9 @@ export interface RefreshStats {
1868
2012
  total_time_in_millis: DurationValue<UnitMillis>;
1869
2013
  }
1870
2014
  export type RelationName = string;
2015
+ export interface RelocationFailureInfo {
2016
+ failed_attempts: integer;
2017
+ }
1871
2018
  export interface RequestBase extends SpecUtilsCommonQueryParameters {
1872
2019
  }
1873
2020
  export interface RequestCacheStats {
@@ -1902,7 +2049,7 @@ export interface ScriptSort {
1902
2049
  mode?: SortMode;
1903
2050
  nested?: NestedSortValue;
1904
2051
  }
1905
- export type ScriptSortType = 'string' | 'number';
2052
+ export type ScriptSortType = 'string' | 'number' | 'version';
1906
2053
  export interface ScriptTransform {
1907
2054
  lang?: string;
1908
2055
  params?: Record<string, any>;
@@ -1939,28 +2086,28 @@ export type SearchType = 'query_then_fetch' | 'dfs_query_then_fetch';
1939
2086
  export interface SegmentsStats {
1940
2087
  count: integer;
1941
2088
  doc_values_memory?: ByteSize;
1942
- doc_values_memory_in_bytes: integer;
2089
+ doc_values_memory_in_bytes: long;
1943
2090
  file_sizes: Record<string, IndicesStatsShardFileSizeInfo>;
1944
2091
  fixed_bit_set?: ByteSize;
1945
- fixed_bit_set_memory_in_bytes: integer;
2092
+ fixed_bit_set_memory_in_bytes: long;
1946
2093
  index_writer_memory?: ByteSize;
1947
- index_writer_max_memory_in_bytes?: integer;
1948
- index_writer_memory_in_bytes: integer;
2094
+ index_writer_max_memory_in_bytes?: long;
2095
+ index_writer_memory_in_bytes: long;
1949
2096
  max_unsafe_auto_id_timestamp: long;
1950
2097
  memory?: ByteSize;
1951
- memory_in_bytes: integer;
2098
+ memory_in_bytes: long;
1952
2099
  norms_memory?: ByteSize;
1953
- norms_memory_in_bytes: integer;
2100
+ norms_memory_in_bytes: long;
1954
2101
  points_memory?: ByteSize;
1955
- points_memory_in_bytes: integer;
2102
+ points_memory_in_bytes: long;
1956
2103
  stored_memory?: ByteSize;
1957
- stored_fields_memory_in_bytes: integer;
1958
- terms_memory_in_bytes: integer;
2104
+ stored_fields_memory_in_bytes: long;
2105
+ terms_memory_in_bytes: long;
1959
2106
  terms_memory?: ByteSize;
1960
2107
  term_vectory_memory?: ByteSize;
1961
- term_vectors_memory_in_bytes: integer;
2108
+ term_vectors_memory_in_bytes: long;
1962
2109
  version_map_memory?: ByteSize;
1963
- version_map_memory_in_bytes: integer;
2110
+ version_map_memory_in_bytes: long;
1964
2111
  }
1965
2112
  export type SequenceNumber = long;
1966
2113
  export type Service = string;
@@ -1983,7 +2130,7 @@ export interface ShardsOperationResponseBase {
1983
2130
  }
1984
2131
  export interface SlicedScroll {
1985
2132
  field?: Field;
1986
- id: integer;
2133
+ id: Id;
1987
2134
  max: integer;
1988
2135
  }
1989
2136
  export type Slices = integer | SlicesCalculation;
@@ -2001,14 +2148,14 @@ export type SortOptions = SortOptionsKeys & {
2001
2148
  [property: string]: FieldSort | SortOrder | ScoreSort | GeoDistanceSort | ScriptSort;
2002
2149
  };
2003
2150
  export type SortOrder = 'asc' | 'desc';
2004
- export type SortResults = (long | double | string | null)[];
2151
+ export type SortResults = FieldValue[];
2005
2152
  export interface StoreStats {
2006
2153
  size?: ByteSize;
2007
- size_in_bytes: integer;
2154
+ size_in_bytes: long;
2008
2155
  reserved?: ByteSize;
2009
- reserved_in_bytes: integer;
2156
+ reserved_in_bytes: long;
2010
2157
  total_data_set_size?: ByteSize;
2011
- total_data_set_size_in_bytes?: integer;
2158
+ total_data_set_size_in_bytes?: long;
2012
2159
  }
2013
2160
  export interface StoredScript {
2014
2161
  lang: ScriptLanguage;
@@ -2027,6 +2174,10 @@ export interface TaskFailure {
2027
2174
  reason: ErrorCause;
2028
2175
  }
2029
2176
  export type TaskId = string | integer;
2177
+ export interface TextEmbedding {
2178
+ model_id: string;
2179
+ model_text: string;
2180
+ }
2030
2181
  export type ThreadType = 'cpu' | 'wait' | 'block' | 'gpu' | 'mem';
2031
2182
  export type TimeOfDay = string;
2032
2183
  export type TimeUnit = 'nanos' | 'micros' | 'ms' | 's' | 'm' | 'h' | 'd';
@@ -2099,11 +2250,12 @@ export interface AggregationsAdjacencyMatrixAggregation extends AggregationsBuck
2099
2250
  filters?: Record<string, QueryDslQueryContainer>;
2100
2251
  }
2101
2252
  export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMultiBucketBase {
2253
+ key: string;
2102
2254
  }
2103
2255
  export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys & {
2104
- [property: string]: AggregationsAggregate | long;
2256
+ [property: string]: AggregationsAggregate | string | long;
2105
2257
  };
2106
- 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 | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate;
2258
+ 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 | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate;
2107
2259
  export interface AggregationsAggregateBase {
2108
2260
  meta?: Metadata;
2109
2261
  }
@@ -2150,6 +2302,7 @@ export interface AggregationsAggregationContainer {
2150
2302
  global?: AggregationsGlobalAggregation;
2151
2303
  histogram?: AggregationsHistogramAggregation;
2152
2304
  ip_range?: AggregationsIpRangeAggregation;
2305
+ ip_prefix?: AggregationsIpPrefixAggregation;
2153
2306
  inference?: AggregationsInferenceAggregation;
2154
2307
  line?: AggregationsGeoLineAggregation;
2155
2308
  matrix_stats?: AggregationsMatrixStatsAggregation;
@@ -2317,10 +2470,11 @@ export interface AggregationsChildrenAggregation extends AggregationsBucketAggre
2317
2470
  type?: RelationName;
2318
2471
  }
2319
2472
  export interface AggregationsCompositeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsCompositeBucket> {
2320
- after_key?: Record<string, any>;
2473
+ after_key?: AggregationsCompositeAggregateKey;
2321
2474
  }
2475
+ export type AggregationsCompositeAggregateKey = Record<Field, FieldValue>;
2322
2476
  export interface AggregationsCompositeAggregation extends AggregationsBucketAggregationBase {
2323
- after?: Record<string, string | float | null>;
2477
+ after?: AggregationsCompositeAggregateKey;
2324
2478
  size?: integer;
2325
2479
  sources?: Record<string, AggregationsCompositeAggregationSource>[];
2326
2480
  }
@@ -2331,10 +2485,10 @@ export interface AggregationsCompositeAggregationSource {
2331
2485
  geotile_grid?: AggregationsGeoTileGridAggregation;
2332
2486
  }
2333
2487
  export interface AggregationsCompositeBucketKeys extends AggregationsMultiBucketBase {
2334
- key: Record<string, any>;
2488
+ key: AggregationsCompositeAggregateKey;
2335
2489
  }
2336
2490
  export type AggregationsCompositeBucket = AggregationsCompositeBucketKeys & {
2337
- [property: string]: AggregationsAggregate | Record<string, any> | long;
2491
+ [property: string]: AggregationsAggregate | AggregationsCompositeAggregateKey | long;
2338
2492
  };
2339
2493
  export interface AggregationsCumulativeCardinalityAggregate extends AggregationsAggregateBase {
2340
2494
  value: long;
@@ -2429,6 +2583,8 @@ export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAgg
2429
2583
  variance_population: double | null;
2430
2584
  variance_sampling: double | null;
2431
2585
  std_deviation: double | null;
2586
+ std_deviation_population: double | null;
2587
+ std_deviation_sampling: double | null;
2432
2588
  std_deviation_bounds?: AggregationsStandardDeviationBounds;
2433
2589
  sum_of_squares_as_string?: string;
2434
2590
  variance_as_string?: string;
@@ -2470,7 +2626,7 @@ export interface AggregationsFormatMetricAggregationBase extends AggregationsMet
2470
2626
  export interface AggregationsFormattableMetricAggregation extends AggregationsMetricAggregationBase {
2471
2627
  format?: string;
2472
2628
  }
2473
- export type AggregationsGapPolicy = 'skip' | 'insert_zeros';
2629
+ export type AggregationsGapPolicy = 'skip' | 'insert_zeros' | 'keep_values';
2474
2630
  export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
2475
2631
  bounds?: GeoBounds;
2476
2632
  }
@@ -2509,9 +2665,18 @@ export interface AggregationsGeoHashGridBucketKeys extends AggregationsMultiBuck
2509
2665
  export type AggregationsGeoHashGridBucket = AggregationsGeoHashGridBucketKeys & {
2510
2666
  [property: string]: AggregationsAggregate | GeoHash | long;
2511
2667
  };
2668
+ export interface AggregationsGeoHexGridAggregate extends AggregationsMultiBucketAggregateBase<AggregationsGeoHexGridBucket> {
2669
+ }
2670
+ export interface AggregationsGeoHexGridBucketKeys extends AggregationsMultiBucketBase {
2671
+ key: GeoHexCell;
2672
+ }
2673
+ export type AggregationsGeoHexGridBucket = AggregationsGeoHexGridBucketKeys & {
2674
+ [property: string]: AggregationsAggregate | GeoHexCell | long;
2675
+ };
2512
2676
  export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase {
2513
2677
  type: string;
2514
2678
  geometry: GeoLine;
2679
+ properties: any;
2515
2680
  }
2516
2681
  export interface AggregationsGeoLineAggregation {
2517
2682
  point: AggregationsGeoLinePoint;
@@ -2639,6 +2804,25 @@ export interface AggregationsInferenceTopClassEntry {
2639
2804
  class_probability: double;
2640
2805
  class_score: double;
2641
2806
  }
2807
+ export interface AggregationsIpPrefixAggregate extends AggregationsMultiBucketAggregateBase<AggregationsIpPrefixBucket> {
2808
+ }
2809
+ export interface AggregationsIpPrefixAggregation extends AggregationsBucketAggregationBase {
2810
+ field: Field;
2811
+ prefix_length: integer;
2812
+ is_ipv6?: boolean;
2813
+ append_prefix_length?: boolean;
2814
+ keyed?: boolean;
2815
+ min_doc_count?: long;
2816
+ }
2817
+ export interface AggregationsIpPrefixBucketKeys extends AggregationsMultiBucketBase {
2818
+ is_ipv6: boolean;
2819
+ key: string;
2820
+ prefix_length: integer;
2821
+ netmask?: string;
2822
+ }
2823
+ export type AggregationsIpPrefixBucket = AggregationsIpPrefixBucketKeys & {
2824
+ [property: string]: AggregationsAggregate | boolean | string | integer | long;
2825
+ };
2642
2826
  export interface AggregationsIpRangeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsIpRangeBucket> {
2643
2827
  }
2644
2828
  export interface AggregationsIpRangeAggregation extends AggregationsBucketAggregationBase {
@@ -2651,6 +2835,7 @@ export interface AggregationsIpRangeAggregationRange {
2651
2835
  to?: string | null;
2652
2836
  }
2653
2837
  export interface AggregationsIpRangeBucketKeys extends AggregationsMultiBucketBase {
2838
+ key?: string;
2654
2839
  from?: string;
2655
2840
  to?: string;
2656
2841
  }
@@ -2686,7 +2871,7 @@ export interface AggregationsMatrixAggregation extends AggregationsAggregation {
2686
2871
  }
2687
2872
  export interface AggregationsMatrixStatsAggregate extends AggregationsAggregateBase {
2688
2873
  doc_count: long;
2689
- fields: AggregationsMatrixStatsFields[];
2874
+ fields?: AggregationsMatrixStatsFields[];
2690
2875
  }
2691
2876
  export interface AggregationsMatrixStatsAggregation extends AggregationsMatrixAggregation {
2692
2877
  mode?: SortMode;
@@ -2759,6 +2944,7 @@ export interface AggregationsMultiBucketBase {
2759
2944
  }
2760
2945
  export interface AggregationsMultiTermLookup {
2761
2946
  field: Field;
2947
+ missing?: AggregationsMissing;
2762
2948
  }
2763
2949
  export interface AggregationsMultiTermsAggregate extends AggregationsTermsAggregateBase<AggregationsMultiTermsBucket> {
2764
2950
  }
@@ -2773,12 +2959,12 @@ export interface AggregationsMultiTermsAggregation extends AggregationsBucketAgg
2773
2959
  terms: AggregationsMultiTermLookup[];
2774
2960
  }
2775
2961
  export interface AggregationsMultiTermsBucketKeys extends AggregationsMultiBucketBase {
2776
- key: (long | double | string)[];
2962
+ key: FieldValue[];
2777
2963
  key_as_string?: string;
2778
2964
  doc_count_error_upper_bound?: long;
2779
2965
  }
2780
2966
  export type AggregationsMultiTermsBucket = AggregationsMultiTermsBucketKeys & {
2781
- [property: string]: AggregationsAggregate | (long | double | string)[] | string | long;
2967
+ [property: string]: AggregationsAggregate | FieldValue[] | string | long;
2782
2968
  };
2783
2969
  export interface AggregationsMutualInformationHeuristic {
2784
2970
  background_is_superset?: boolean;
@@ -2902,7 +3088,7 @@ export interface AggregationsScriptedMetricAggregation extends AggregationsMetri
2902
3088
  export interface AggregationsSerialDifferencingAggregation extends AggregationsPipelineAggregationBase {
2903
3089
  lag?: integer;
2904
3090
  }
2905
- export interface AggregationsSignificantLongTermsAggregate extends AggregationsMultiBucketAggregateBase<AggregationsSignificantLongTermsBucket> {
3091
+ export interface AggregationsSignificantLongTermsAggregate extends AggregationsSignificantTermsAggregateBase<AggregationsSignificantLongTermsBucket> {
2906
3092
  }
2907
3093
  export interface AggregationsSignificantLongTermsBucketKeys extends AggregationsSignificantTermsBucketBase {
2908
3094
  key: long;
@@ -2911,7 +3097,7 @@ export interface AggregationsSignificantLongTermsBucketKeys extends Aggregations
2911
3097
  export type AggregationsSignificantLongTermsBucket = AggregationsSignificantLongTermsBucketKeys & {
2912
3098
  [property: string]: AggregationsAggregate | long | string | double;
2913
3099
  };
2914
- export interface AggregationsSignificantStringTermsAggregate extends AggregationsMultiBucketAggregateBase<AggregationsSignificantStringTermsBucket> {
3100
+ export interface AggregationsSignificantStringTermsAggregate extends AggregationsSignificantTermsAggregateBase<AggregationsSignificantStringTermsBucket> {
2915
3101
  }
2916
3102
  export interface AggregationsSignificantStringTermsBucketKeys extends AggregationsSignificantTermsBucketBase {
2917
3103
  key: string;
@@ -2919,6 +3105,10 @@ export interface AggregationsSignificantStringTermsBucketKeys extends Aggregatio
2919
3105
  export type AggregationsSignificantStringTermsBucket = AggregationsSignificantStringTermsBucketKeys & {
2920
3106
  [property: string]: AggregationsAggregate | string | double | long;
2921
3107
  };
3108
+ export interface AggregationsSignificantTermsAggregateBase<T = unknown> extends AggregationsMultiBucketAggregateBase<T> {
3109
+ bg_count?: long;
3110
+ doc_count?: long;
3111
+ }
2922
3112
  export interface AggregationsSignificantTermsAggregation extends AggregationsBucketAggregationBase {
2923
3113
  background_filter?: QueryDslQueryContainer;
2924
3114
  chi_square?: AggregationsChiSquareHeuristic;
@@ -3030,10 +3220,10 @@ export interface AggregationsStringStatsAggregation extends AggregationsMetricAg
3030
3220
  export interface AggregationsStringTermsAggregate extends AggregationsTermsAggregateBase<AggregationsStringTermsBucket> {
3031
3221
  }
3032
3222
  export interface AggregationsStringTermsBucketKeys extends AggregationsTermsBucketBase {
3033
- key: string;
3223
+ key: FieldValue;
3034
3224
  }
3035
3225
  export type AggregationsStringTermsBucket = AggregationsStringTermsBucketKeys & {
3036
- [property: string]: AggregationsAggregate | string | long;
3226
+ [property: string]: AggregationsAggregate | FieldValue | long;
3037
3227
  };
3038
3228
  export interface AggregationsSumAggregate extends AggregationsSingleMetricAggregateBase {
3039
3229
  }
@@ -3060,7 +3250,7 @@ export interface AggregationsTTestAggregation extends AggregationsAggregation {
3060
3250
  export type AggregationsTTestType = 'paired' | 'homoscedastic' | 'heteroscedastic';
3061
3251
  export interface AggregationsTermsAggregateBase<TBucket = unknown> extends AggregationsMultiBucketAggregateBase<TBucket> {
3062
3252
  doc_count_error_upper_bound?: long;
3063
- sum_other_doc_count: long;
3253
+ sum_other_doc_count?: long;
3064
3254
  }
3065
3255
  export interface AggregationsTermsAggregation extends AggregationsBucketAggregationBase {
3066
3256
  collect_mode?: AggregationsTermsAggregationCollectMode;
@@ -3135,7 +3325,7 @@ export interface AggregationsUnmappedSamplerAggregateKeys extends AggregationsSi
3135
3325
  export type AggregationsUnmappedSamplerAggregate = AggregationsUnmappedSamplerAggregateKeys & {
3136
3326
  [property: string]: AggregationsAggregate | long | Metadata;
3137
3327
  };
3138
- export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsMultiBucketAggregateBase<void> {
3328
+ export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsSignificantTermsAggregateBase<void> {
3139
3329
  }
3140
3330
  export interface AggregationsUnmappedTermsAggregate extends AggregationsTermsAggregateBase<void> {
3141
3331
  }
@@ -3418,7 +3608,7 @@ export interface AnalysisLetterTokenizer extends AnalysisTokenizerBase {
3418
3608
  export interface AnalysisLimitTokenCountTokenFilter extends AnalysisTokenFilterBase {
3419
3609
  type: 'limit';
3420
3610
  consume_all_tokens?: boolean;
3421
- max_token_count?: integer;
3611
+ max_token_count?: SpecUtilsStringified<integer>;
3422
3612
  }
3423
3613
  export interface AnalysisLowercaseNormalizer {
3424
3614
  type: 'lowercase';
@@ -3579,7 +3769,8 @@ export interface AnalysisStemmerOverrideTokenFilter extends AnalysisTokenFilterB
3579
3769
  }
3580
3770
  export interface AnalysisStemmerTokenFilter extends AnalysisTokenFilterBase {
3581
3771
  type: 'stemmer';
3582
- language: string;
3772
+ language?: string;
3773
+ name?: string;
3583
3774
  }
3584
3775
  export interface AnalysisStopAnalyzer {
3585
3776
  type: 'stop';
@@ -3691,6 +3882,7 @@ export interface MappingAggregateMetricDoubleProperty extends MappingPropertyBas
3691
3882
  type: 'aggregate_metric_double';
3692
3883
  default_metric: string;
3693
3884
  metrics: string[];
3885
+ time_series_metric?: MappingTimeSeriesMetricType;
3694
3886
  }
3695
3887
  export interface MappingAllField {
3696
3888
  analyzer: string;
@@ -3714,7 +3906,7 @@ export interface MappingBooleanProperty extends MappingDocValuesPropertyBase {
3714
3906
  null_value?: boolean;
3715
3907
  type: 'boolean';
3716
3908
  }
3717
- export interface MappingByteNumberProperty extends MappingStandardNumberProperty {
3909
+ export interface MappingByteNumberProperty extends MappingNumberPropertyBase {
3718
3910
  type: 'byte';
3719
3911
  null_value?: byte;
3720
3912
  }
@@ -3778,7 +3970,7 @@ export interface MappingDenseVectorProperty extends MappingPropertyBase {
3778
3970
  export interface MappingDocValuesPropertyBase extends MappingCorePropertyBase {
3779
3971
  doc_values?: boolean;
3780
3972
  }
3781
- export interface MappingDoubleNumberProperty extends MappingStandardNumberProperty {
3973
+ export interface MappingDoubleNumberProperty extends MappingNumberPropertyBase {
3782
3974
  type: 'double';
3783
3975
  null_value?: double;
3784
3976
  }
@@ -3844,7 +4036,7 @@ export interface MappingFlattenedProperty extends MappingPropertyBase {
3844
4036
  split_queries_on_whitespace?: boolean;
3845
4037
  type: 'flattened';
3846
4038
  }
3847
- export interface MappingFloatNumberProperty extends MappingStandardNumberProperty {
4039
+ export interface MappingFloatNumberProperty extends MappingNumberPropertyBase {
3848
4040
  type: 'float';
3849
4041
  null_value?: float;
3850
4042
  }
@@ -3867,7 +4059,7 @@ export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
3867
4059
  type: 'geo_shape';
3868
4060
  }
3869
4061
  export type MappingGeoStrategy = 'recursive' | 'term';
3870
- export interface MappingHalfFloatNumberProperty extends MappingStandardNumberProperty {
4062
+ export interface MappingHalfFloatNumberProperty extends MappingNumberPropertyBase {
3871
4063
  type: 'half_float';
3872
4064
  null_value?: float;
3873
4065
  }
@@ -3879,7 +4071,7 @@ export interface MappingIndexField {
3879
4071
  enabled: boolean;
3880
4072
  }
3881
4073
  export type MappingIndexOptions = 'docs' | 'freqs' | 'positions' | 'offsets';
3882
- export interface MappingIntegerNumberProperty extends MappingStandardNumberProperty {
4074
+ export interface MappingIntegerNumberProperty extends MappingNumberPropertyBase {
3883
4075
  type: 'integer';
3884
4076
  null_value?: integer;
3885
4077
  }
@@ -3889,8 +4081,11 @@ export interface MappingIntegerRangeProperty extends MappingRangePropertyBase {
3889
4081
  export interface MappingIpProperty extends MappingDocValuesPropertyBase {
3890
4082
  boost?: double;
3891
4083
  index?: boolean;
3892
- null_value?: string;
3893
4084
  ignore_malformed?: boolean;
4085
+ null_value?: string;
4086
+ on_script_error?: MappingOnScriptError;
4087
+ script?: Script;
4088
+ time_series_dimension?: boolean;
3894
4089
  type: 'ip';
3895
4090
  }
3896
4091
  export interface MappingIpRangeProperty extends MappingRangePropertyBase {
@@ -3898,6 +4093,7 @@ export interface MappingIpRangeProperty extends MappingRangePropertyBase {
3898
4093
  }
3899
4094
  export interface MappingJoinProperty extends MappingPropertyBase {
3900
4095
  relations?: Record<RelationName, RelationName | RelationName[]>;
4096
+ eager_global_ordinals?: boolean;
3901
4097
  type: 'join';
3902
4098
  }
3903
4099
  export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
@@ -3912,7 +4108,7 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
3912
4108
  time_series_dimension?: boolean;
3913
4109
  type: 'keyword';
3914
4110
  }
3915
- export interface MappingLongNumberProperty extends MappingStandardNumberProperty {
4111
+ export interface MappingLongNumberProperty extends MappingNumberPropertyBase {
3916
4112
  type: 'long';
3917
4113
  null_value?: long;
3918
4114
  }
@@ -3936,9 +4132,14 @@ export interface MappingNestedProperty extends MappingCorePropertyBase {
3936
4132
  type: 'nested';
3937
4133
  }
3938
4134
  export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase {
3939
- index?: boolean;
4135
+ boost?: double;
4136
+ coerce?: boolean;
3940
4137
  ignore_malformed?: boolean;
4138
+ index?: boolean;
4139
+ on_script_error?: MappingOnScriptError;
4140
+ script?: Script;
3941
4141
  time_series_metric?: MappingTimeSeriesMetricType;
4142
+ time_series_dimension?: boolean;
3942
4143
  }
3943
4144
  export interface MappingObjectProperty extends MappingCorePropertyBase {
3944
4145
  enabled?: boolean;
@@ -3956,7 +4157,6 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
3956
4157
  }
3957
4158
  export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | 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;
3958
4159
  export interface MappingPropertyBase {
3959
- local_metadata?: Metadata;
3960
4160
  meta?: Record<string, string>;
3961
4161
  properties?: Record<PropertyName, MappingProperty>;
3962
4162
  ignore_above?: integer;
@@ -3979,15 +4179,22 @@ export interface MappingRoutingField {
3979
4179
  required: boolean;
3980
4180
  }
3981
4181
  export interface MappingRuntimeField {
4182
+ fetch_fields?: (MappingRuntimeFieldFetchFields | Field)[];
3982
4183
  format?: string;
4184
+ input_field?: Field;
4185
+ target_field?: Field;
4186
+ target_index?: IndexName;
3983
4187
  script?: Script;
3984
4188
  type: MappingRuntimeFieldType;
3985
4189
  }
3986
- export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long';
4190
+ export interface MappingRuntimeFieldFetchFields {
4191
+ field: Field;
4192
+ format?: string;
4193
+ }
4194
+ export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup';
3987
4195
  export type MappingRuntimeFields = Record<Field, MappingRuntimeField>;
3988
4196
  export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
3989
4197
  type: 'scaled_float';
3990
- coerce?: boolean;
3991
4198
  null_value?: double;
3992
4199
  scaling_factor?: double;
3993
4200
  }
@@ -4009,7 +4216,7 @@ export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
4009
4216
  orientation?: MappingGeoOrientation;
4010
4217
  type: 'shape';
4011
4218
  }
4012
- export interface MappingShortNumberProperty extends MappingStandardNumberProperty {
4219
+ export interface MappingShortNumberProperty extends MappingNumberPropertyBase {
4013
4220
  type: 'short';
4014
4221
  null_value?: short;
4015
4222
  }
@@ -4022,12 +4229,9 @@ export interface MappingSourceField {
4022
4229
  enabled?: boolean;
4023
4230
  excludes?: string[];
4024
4231
  includes?: string[];
4232
+ mode?: MappingSourceFieldMode;
4025
4233
  }
4026
- export interface MappingStandardNumberProperty extends MappingNumberPropertyBase {
4027
- coerce?: boolean;
4028
- script?: Script;
4029
- on_script_error?: MappingOnScriptError;
4030
- }
4234
+ export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic';
4031
4235
  export interface MappingSuggestContext {
4032
4236
  name: Name;
4033
4237
  path?: Field;
@@ -4070,7 +4274,7 @@ export interface MappingTypeMapping {
4070
4274
  date_detection?: boolean;
4071
4275
  dynamic?: MappingDynamicMapping;
4072
4276
  dynamic_date_formats?: string[];
4073
- dynamic_templates?: Record<string, MappingDynamicTemplate> | Record<string, MappingDynamicTemplate>[];
4277
+ dynamic_templates?: Record<string, MappingDynamicTemplate>[];
4074
4278
  _field_names?: MappingFieldNamesField;
4075
4279
  index_field?: MappingIndexField;
4076
4280
  _meta?: Metadata;
@@ -4827,7 +5031,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
4827
5031
  track_total_hits?: SearchTrackHits;
4828
5032
  indices_boost?: Record<IndexName, double>[];
4829
5033
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
4830
- knn?: KnnQuery;
5034
+ knn?: KnnQuery | KnnQuery[];
4831
5035
  min_score?: double;
4832
5036
  post_filter?: QueryDslQueryContainer;
4833
5037
  profile?: boolean;
@@ -4904,7 +5108,7 @@ export type CatCatDfaColumn = 'assignment_explanation' | 'ae' | 'create_time' |
4904
5108
  export type CatCatDfaColumns = CatCatDfaColumn | CatCatDfaColumn[];
4905
5109
  export interface CatCatRequestBase extends RequestBase, SpecUtilsCommonCatQueryParameters {
4906
5110
  }
4907
- export type CatCatTrainedModelsColumn = 'create_time' | 'ct' | 'created_by' | 'c' | 'createdBy' | 'data_frame_analytics_id' | 'df' | 'dataFrameAnalytics' | 'description' | 'd' | 'heap_size' | 'hs' | 'modelHeapSize' | 'id' | 'ingest.count' | 'ic' | 'ingestCount' | 'ingest.current' | 'icurr' | 'ingestCurrent' | 'ingest.failed' | 'if' | 'ingestFailed' | 'ingest.pipelines' | 'ip' | 'ingestPipelines' | 'ingest.time' | 'it' | 'ingestTime' | 'license' | 'l' | 'operations' | 'o' | 'modelOperations' | 'version' | 'v';
5111
+ export type CatCatTrainedModelsColumn = 'create_time' | 'ct' | 'created_by' | 'c' | 'createdBy' | 'data_frame_analytics_id' | 'df' | 'dataFrameAnalytics' | 'dfid' | 'description' | 'd' | 'heap_size' | 'hs' | 'modelHeapSize' | 'id' | 'ingest.count' | 'ic' | 'ingestCount' | 'ingest.current' | 'icurr' | 'ingestCurrent' | 'ingest.failed' | 'if' | 'ingestFailed' | 'ingest.pipelines' | 'ip' | 'ingestPipelines' | 'ingest.time' | 'it' | 'ingestTime' | 'license' | 'l' | 'operations' | 'o' | 'modelOperations' | 'version' | 'v';
4908
5112
  export type CatCatTrainedModelsColumns = CatCatTrainedModelsColumn | CatCatTrainedModelsColumn[];
4909
5113
  export type CatCatTransformColumn = 'changes_last_detection_time' | 'cldt' | 'checkpoint' | 'cp' | 'checkpoint_duration_time_exp_avg' | 'cdtea' | 'checkpointTimeExpAvg' | 'checkpoint_progress' | 'c' | 'checkpointProgress' | 'create_time' | 'ct' | 'createTime' | 'delete_time' | 'dtime' | 'description' | 'd' | 'dest_index' | 'di' | 'destIndex' | 'documents_deleted' | 'docd' | 'documents_indexed' | 'doci' | 'docs_per_second' | 'dps' | 'documents_processed' | 'docp' | 'frequency' | 'f' | 'id' | 'index_failure' | 'if' | 'index_time' | 'itime' | 'index_total' | 'it' | 'indexed_documents_exp_avg' | 'idea' | 'last_search_time' | 'lst' | 'lastSearchTime' | 'max_page_search_size' | 'mpsz' | 'pages_processed' | 'pp' | 'pipeline' | 'p' | 'processed_documents_exp_avg' | 'pdea' | 'processing_time' | 'pt' | 'reason' | 'r' | 'search_failure' | 'sf' | 'search_time' | 'stime' | 'search_total' | 'st' | 'source_index' | 'si' | 'sourceIndex' | 'state' | 's' | 'transform_type' | 'tt' | 'trigger_count' | 'tc' | 'version' | 'v';
4910
5114
  export type CatCatTransformColumns = CatCatTransformColumn | CatCatTransformColumn[];
@@ -5361,6 +5565,7 @@ export interface CatIndicesRequest extends CatCatRequestBase {
5361
5565
  health?: HealthStatus;
5362
5566
  include_unloaded_segments?: boolean;
5363
5567
  pri?: boolean;
5568
+ time?: TimeUnit;
5364
5569
  }
5365
5570
  export type CatIndicesResponse = CatIndicesIndicesRecord[];
5366
5571
  export interface CatMasterMasterRecord {
@@ -6947,6 +7152,25 @@ export interface ClusterGetSettingsResponse {
6947
7152
  transient: Record<string, any>;
6948
7153
  defaults?: Record<string, any>;
6949
7154
  }
7155
+ export interface ClusterHealthHealthResponseBody {
7156
+ active_primary_shards: integer;
7157
+ active_shards: integer;
7158
+ active_shards_percent_as_number: Percentage;
7159
+ cluster_name: Name;
7160
+ delayed_unassigned_shards: integer;
7161
+ indices?: Record<IndexName, ClusterHealthIndexHealthStats>;
7162
+ initializing_shards: integer;
7163
+ number_of_data_nodes: integer;
7164
+ number_of_in_flight_fetch: integer;
7165
+ number_of_nodes: integer;
7166
+ number_of_pending_tasks: integer;
7167
+ relocating_shards: integer;
7168
+ status: HealthStatus;
7169
+ task_max_waiting_in_queue?: Duration;
7170
+ task_max_waiting_in_queue_millis: DurationValue<UnitMillis>;
7171
+ timed_out: boolean;
7172
+ unassigned_shards: integer;
7173
+ }
6950
7174
  export interface ClusterHealthIndexHealthStats {
6951
7175
  active_primary_shards: integer;
6952
7176
  active_shards: integer;
@@ -6972,25 +7196,7 @@ export interface ClusterHealthRequest extends RequestBase {
6972
7196
  wait_for_no_relocating_shards?: boolean;
6973
7197
  wait_for_status?: HealthStatus;
6974
7198
  }
6975
- export interface ClusterHealthResponse {
6976
- active_primary_shards: integer;
6977
- active_shards: integer;
6978
- active_shards_percent_as_number: Percentage;
6979
- cluster_name: Name;
6980
- delayed_unassigned_shards: integer;
6981
- indices?: Record<IndexName, ClusterHealthIndexHealthStats>;
6982
- initializing_shards: integer;
6983
- number_of_data_nodes: integer;
6984
- number_of_in_flight_fetch: integer;
6985
- number_of_nodes: integer;
6986
- number_of_pending_tasks: integer;
6987
- relocating_shards: integer;
6988
- status: HealthStatus;
6989
- task_max_waiting_in_queue?: Duration;
6990
- task_max_waiting_in_queue_millis: DurationValue<UnitMillis>;
6991
- timed_out: boolean;
6992
- unassigned_shards: integer;
6993
- }
7199
+ export type ClusterHealthResponse = ClusterHealthHealthResponseBody;
6994
7200
  export interface ClusterHealthShardHealthStats {
6995
7201
  active_shards: integer;
6996
7202
  initializing_shards: integer;
@@ -7025,11 +7231,9 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase {
7025
7231
  create?: boolean;
7026
7232
  master_timeout?: Duration;
7027
7233
  template: IndicesIndexState;
7028
- aliases?: Record<string, IndicesAliasDefinition>;
7029
- mappings?: MappingTypeMapping;
7030
- settings?: IndicesIndexSettings;
7031
7234
  version?: VersionNumber;
7032
7235
  _meta?: Metadata;
7236
+ allow_auto_create?: boolean;
7033
7237
  }
7034
7238
  export type ClusterPutComponentTemplateResponse = AcknowledgedResponseBase;
7035
7239
  export interface ClusterPutSettingsRequest extends RequestBase {
@@ -7127,7 +7331,7 @@ export interface ClusterRerouteRerouteParameters {
7127
7331
  export interface ClusterRerouteResponse {
7128
7332
  acknowledged: boolean;
7129
7333
  explanations?: ClusterRerouteRerouteExplanation[];
7130
- state: any;
7334
+ state?: any;
7131
7335
  }
7132
7336
  export interface ClusterStateRequest extends RequestBase {
7133
7337
  metric?: Metrics;
@@ -7286,11 +7490,18 @@ export interface ClusterStatsFieldTypes {
7286
7490
  name: Name;
7287
7491
  count: integer;
7288
7492
  index_count: integer;
7493
+ indexed_vector_count?: long;
7494
+ indexed_vector_dim_max?: long;
7495
+ indexed_vector_dim_min?: long;
7289
7496
  script_count?: integer;
7290
7497
  }
7291
7498
  export interface ClusterStatsFieldTypesMappings {
7292
7499
  field_types: ClusterStatsFieldTypes[];
7293
7500
  runtime_field_types?: ClusterStatsRuntimeFieldTypes[];
7501
+ total_field_count?: integer;
7502
+ total_deduplicated_field_count?: integer;
7503
+ total_deduplicated_mapping_size?: ByteSize;
7504
+ total_deduplicated_mapping_size_in_bytes?: long;
7294
7505
  }
7295
7506
  export interface ClusterStatsIndexingPressure {
7296
7507
  memory: ClusterStatsIndexingPressureMemory;
@@ -7384,20 +7595,17 @@ export interface DanglingIndicesListDanglingIndicesRequest extends RequestBase {
7384
7595
  export interface DanglingIndicesListDanglingIndicesResponse {
7385
7596
  dangling_indices: DanglingIndicesListDanglingIndicesDanglingIndex[];
7386
7597
  }
7387
- export interface EnrichConfiguration {
7388
- geo_match?: EnrichPolicy;
7389
- match: EnrichPolicy;
7390
- range: EnrichPolicy;
7391
- }
7392
7598
  export interface EnrichPolicy {
7393
7599
  enrich_fields: Fields;
7394
7600
  indices: Indices;
7395
7601
  match_field: Field;
7396
7602
  query?: string;
7397
7603
  name?: Name;
7604
+ elasticsearch_version?: string;
7398
7605
  }
7606
+ export type EnrichPolicyType = 'geo_match' | 'match' | 'range';
7399
7607
  export interface EnrichSummary {
7400
- config: EnrichConfiguration;
7608
+ config: Partial<Record<EnrichPolicyType, EnrichPolicy>>;
7401
7609
  }
7402
7610
  export interface EnrichDeletePolicyRequest extends RequestBase {
7403
7611
  name: Name;
@@ -7546,7 +7754,7 @@ export interface FleetGlobalCheckpointsResponse {
7546
7754
  timed_out: boolean;
7547
7755
  }
7548
7756
  export interface FleetMsearchRequest extends RequestBase {
7549
- index: IndexName | IndexAlias;
7757
+ index?: IndexName | IndexAlias;
7550
7758
  allow_no_indices?: boolean;
7551
7759
  ccs_minimize_roundtrips?: boolean;
7552
7760
  expand_wildcards?: ExpandWildcards;
@@ -7718,6 +7926,7 @@ export interface IlmPhase {
7718
7926
  export interface IlmPhases {
7719
7927
  cold?: IlmPhase;
7720
7928
  delete?: IlmPhase;
7929
+ frozen?: IlmPhase;
7721
7930
  hot?: IlmPhase;
7722
7931
  warm?: IlmPhase;
7723
7932
  }
@@ -7891,6 +8100,9 @@ export interface IndicesDataStreamTimestampField {
7891
8100
  export interface IndicesDataStreamVisibility {
7892
8101
  hidden?: boolean;
7893
8102
  }
8103
+ export interface IndicesDownsampleConfig {
8104
+ fixed_interval: DurationLarge;
8105
+ }
7894
8106
  export interface IndicesFielddataFrequencyFilter {
7895
8107
  max: double;
7896
8108
  min: double;
@@ -7933,7 +8145,7 @@ export interface IndicesIndexSettingBlocks {
7933
8145
  read_only_allow_delete?: boolean;
7934
8146
  read?: boolean;
7935
8147
  write?: boolean | string;
7936
- metadata?: boolean;
8148
+ metadata?: SpecUtilsStringified<boolean>;
7937
8149
  }
7938
8150
  export interface IndicesIndexSettingsKeys {
7939
8151
  index?: IndicesIndexSettings;
@@ -7946,7 +8158,7 @@ export interface IndicesIndexSettingsKeys {
7946
8158
  number_of_routing_shards?: integer;
7947
8159
  check_on_startup?: IndicesIndexCheckOnStartup;
7948
8160
  codec?: string;
7949
- routing_partition_size?: integer;
8161
+ routing_partition_size?: SpecUtilsStringified<integer>;
7950
8162
  load_fixed_bitset_filters_eagerly?: boolean;
7951
8163
  hidden?: boolean | string;
7952
8164
  auto_expand_replicas?: string;
@@ -8047,6 +8259,7 @@ export interface IndicesIndexTemplateSummary {
8047
8259
  }
8048
8260
  export interface IndicesIndexVersioning {
8049
8261
  created?: VersionString;
8262
+ created_string?: string;
8050
8263
  }
8051
8264
  export interface IndicesIndexingPressure {
8052
8265
  memory: IndicesIndexingPressureMemory;
@@ -8055,6 +8268,7 @@ export interface IndicesIndexingPressureMemory {
8055
8268
  limit?: integer;
8056
8269
  }
8057
8270
  export interface IndicesMappingLimitSettings {
8271
+ coerce?: boolean;
8058
8272
  total_fields?: IndicesMappingLimitSettingsTotalFields;
8059
8273
  depth?: IndicesMappingLimitSettingsDepth;
8060
8274
  nested_fields?: IndicesMappingLimitSettingsNestedFields;
@@ -8085,8 +8299,8 @@ export interface IndicesMerge {
8085
8299
  scheduler?: IndicesMergeScheduler;
8086
8300
  }
8087
8301
  export interface IndicesMergeScheduler {
8088
- max_thread_count?: integer;
8089
- max_merge_count?: integer;
8302
+ max_thread_count?: SpecUtilsStringified<integer>;
8303
+ max_merge_count?: SpecUtilsStringified<integer>;
8090
8304
  }
8091
8305
  export interface IndicesNumericFielddata {
8092
8306
  format: IndicesNumericFielddataFormat;
@@ -8105,13 +8319,13 @@ export type IndicesSegmentSortMissing = '_last' | '_first';
8105
8319
  export type IndicesSegmentSortMode = 'min' | 'MIN' | 'max' | 'MAX';
8106
8320
  export type IndicesSegmentSortOrder = 'asc' | 'ASC' | 'desc' | 'DESC';
8107
8321
  export interface IndicesSettingsAnalyze {
8108
- max_token_count?: integer;
8322
+ max_token_count?: SpecUtilsStringified<integer>;
8109
8323
  }
8110
8324
  export interface IndicesSettingsHighlight {
8111
8325
  max_analyzed_offset?: integer;
8112
8326
  }
8113
8327
  export interface IndicesSettingsQueryString {
8114
- lenient: boolean;
8328
+ lenient: SpecUtilsStringified<boolean>;
8115
8329
  }
8116
8330
  export interface IndicesSettingsSearch {
8117
8331
  idle?: IndicesSearchIdle;
@@ -8127,7 +8341,7 @@ export interface IndicesSettingsSimilarity {
8127
8341
  scripted_tfidf?: IndicesSettingsSimilarityScriptedTfidf;
8128
8342
  }
8129
8343
  export interface IndicesSettingsSimilarityBm25 {
8130
- b: integer;
8344
+ b: double;
8131
8345
  discount_overlaps: boolean;
8132
8346
  k1: double;
8133
8347
  type: 'BM25';
@@ -8185,7 +8399,7 @@ export interface IndicesStorage {
8185
8399
  type: IndicesStorageType;
8186
8400
  allow_mmap?: boolean;
8187
8401
  }
8188
- export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs';
8402
+ export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string;
8189
8403
  export interface IndicesTemplateMapping {
8190
8404
  aliases: Record<IndexName, IndicesAlias>;
8191
8405
  index_patterns: Name[];
@@ -8410,7 +8624,7 @@ export type IndicesDiskUsageResponse = any;
8410
8624
  export interface IndicesDownsampleRequest extends RequestBase {
8411
8625
  index: IndexName;
8412
8626
  target_index: IndexName;
8413
- config?: any;
8627
+ config?: IndicesDownsampleConfig;
8414
8628
  }
8415
8629
  export type IndicesDownsampleResponse = any;
8416
8630
  export interface IndicesExistsRequest extends RequestBase {
@@ -8512,7 +8726,10 @@ export interface IndicesForcemergeRequest extends RequestBase {
8512
8726
  only_expunge_deletes?: boolean;
8513
8727
  wait_for_completion?: boolean;
8514
8728
  }
8515
- export type IndicesForcemergeResponse = ShardsOperationResponseBase;
8729
+ export type IndicesForcemergeResponse = IndicesForcemergeForceMergeResponseBody;
8730
+ export interface IndicesForcemergeForceMergeResponseBody extends ShardsOperationResponseBase {
8731
+ task?: string;
8732
+ }
8516
8733
  export type IndicesGetFeature = 'aliases' | 'mappings' | 'settings';
8517
8734
  export type IndicesGetFeatures = IndicesGetFeature | IndicesGetFeature[];
8518
8735
  export interface IndicesGetRequest extends RequestBase {
@@ -8876,13 +9093,21 @@ export interface IndicesRolloverResponse {
8876
9093
  shards_acknowledged: boolean;
8877
9094
  }
8878
9095
  export interface IndicesRolloverRolloverConditions {
9096
+ min_age?: Duration;
8879
9097
  max_age?: Duration;
8880
9098
  max_age_millis?: DurationValue<UnitMillis>;
9099
+ min_docs?: long;
8881
9100
  max_docs?: long;
8882
- max_size?: string;
8883
- max_size_bytes?: ByteSize;
9101
+ max_size?: ByteSize;
9102
+ max_size_bytes?: long;
9103
+ min_size?: ByteSize;
9104
+ min_size_bytes?: long;
8884
9105
  max_primary_shard_size?: ByteSize;
8885
- max_primary_shard_size_bytes?: ByteSize;
9106
+ max_primary_shard_size_bytes?: long;
9107
+ min_primary_shard_size?: ByteSize;
9108
+ min_primary_shard_size_bytes?: long;
9109
+ max_primary_shard_docs?: long;
9110
+ min_primary_shard_docs?: long;
8886
9111
  }
8887
9112
  export interface IndicesSegmentsIndexSegment {
8888
9113
  shards: Record<string, IndicesSegmentsShardsSegment | IndicesSegmentsShardsSegment[]>;
@@ -8904,7 +9129,6 @@ export interface IndicesSegmentsSegment {
8904
9129
  compound: boolean;
8905
9130
  deleted_docs: long;
8906
9131
  generation: integer;
8907
- memory_in_bytes: double;
8908
9132
  search: boolean;
8909
9133
  size_in_bytes: double;
8910
9134
  num_docs: long;
@@ -8934,21 +9158,27 @@ export interface IndicesShardStoresRequest extends RequestBase {
8934
9158
  export interface IndicesShardStoresResponse {
8935
9159
  indices: Record<IndexName, IndicesShardStoresIndicesShardStores>;
8936
9160
  }
8937
- export interface IndicesShardStoresShardStore {
9161
+ export interface IndicesShardStoresShardStoreKeys {
8938
9162
  allocation: IndicesShardStoresShardStoreAllocation;
8939
- allocation_id: Id;
8940
- attributes: Record<string, any>;
8941
- id: Id;
8942
- legacy_version: VersionNumber;
8943
- name: Name;
8944
- store_exception: IndicesShardStoresShardStoreException;
8945
- transport_address: TransportAddress;
9163
+ allocation_id?: Id;
9164
+ store_exception?: IndicesShardStoresShardStoreException;
8946
9165
  }
9166
+ export type IndicesShardStoresShardStore = IndicesShardStoresShardStoreKeys & {
9167
+ [property: string]: IndicesShardStoresShardStoreNode | IndicesShardStoresShardStoreAllocation | Id | IndicesShardStoresShardStoreException;
9168
+ };
8947
9169
  export type IndicesShardStoresShardStoreAllocation = 'primary' | 'replica' | 'unused';
8948
9170
  export interface IndicesShardStoresShardStoreException {
8949
9171
  reason: string;
8950
9172
  type: string;
8951
9173
  }
9174
+ export interface IndicesShardStoresShardStoreNode {
9175
+ attributes: Record<string, string>;
9176
+ ephemeral_id?: string;
9177
+ external_id?: string;
9178
+ name: Name;
9179
+ roles: string[];
9180
+ transport_address: TransportAddress;
9181
+ }
8952
9182
  export type IndicesShardStoresShardStoreStatus = 'green' | 'yellow' | 'red' | 'all';
8953
9183
  export interface IndicesShardStoresShardStoreWrapper {
8954
9184
  stores: IndicesShardStoresShardStore[];
@@ -9045,6 +9275,11 @@ export interface IndicesStatsIndicesStats {
9045
9275
  health?: HealthStatus;
9046
9276
  status?: IndicesStatsIndexMetadataState;
9047
9277
  }
9278
+ export interface IndicesStatsMappingStats {
9279
+ total_count: long;
9280
+ total_estimated_overhead?: ByteSize;
9281
+ total_estimated_overhead_in_bytes: long;
9282
+ }
9048
9283
  export interface IndicesStatsRequest extends RequestBase {
9049
9284
  metric?: Metrics;
9050
9285
  index?: Indices;
@@ -9122,6 +9357,7 @@ export interface IndicesStatsShardStats {
9122
9357
  flush?: FlushStats;
9123
9358
  get?: GetStats;
9124
9359
  indexing?: IndexingStats;
9360
+ mappings?: IndicesStatsMappingStats;
9125
9361
  merges?: MergesStats;
9126
9362
  shard_path?: IndicesStatsShardPath;
9127
9363
  query_cache?: IndicesStatsShardQueryCache;
@@ -9137,7 +9373,7 @@ export interface IndicesStatsShardStats {
9137
9373
  translog?: TranslogStats;
9138
9374
  warmer?: WarmerStats;
9139
9375
  bulk?: BulkStats;
9140
- shards?: IndicesStatsShardsTotalStats;
9376
+ shards?: Record<IndexName, any>;
9141
9377
  shard_stats?: IndicesStatsShardsTotalStats;
9142
9378
  indices?: IndicesStatsIndicesStats;
9143
9379
  }
@@ -9243,35 +9479,34 @@ export interface IngestBytesProcessor extends IngestProcessorBase {
9243
9479
  export interface IngestCircleProcessor extends IngestProcessorBase {
9244
9480
  error_distance: double;
9245
9481
  field: Field;
9246
- ignore_missing: boolean;
9482
+ ignore_missing?: boolean;
9247
9483
  shape_type: IngestShapeType;
9248
- target_field: Field;
9484
+ target_field?: Field;
9249
9485
  }
9250
9486
  export interface IngestConvertProcessor extends IngestProcessorBase {
9251
9487
  field: Field;
9252
9488
  ignore_missing?: boolean;
9253
- target_field: Field;
9489
+ target_field?: Field;
9254
9490
  type: IngestConvertType;
9255
9491
  }
9256
9492
  export type IngestConvertType = 'integer' | 'long' | 'float' | 'double' | 'string' | 'boolean' | 'auto';
9257
9493
  export interface IngestCsvProcessor extends IngestProcessorBase {
9258
- empty_value: any;
9259
- description?: string;
9494
+ empty_value?: any;
9260
9495
  field: Field;
9261
9496
  ignore_missing?: boolean;
9262
9497
  quote?: string;
9263
9498
  separator?: string;
9264
9499
  target_fields: Fields;
9265
- trim: boolean;
9500
+ trim?: boolean;
9266
9501
  }
9267
9502
  export interface IngestDateIndexNameProcessor extends IngestProcessorBase {
9268
9503
  date_formats: string[];
9269
9504
  date_rounding: string;
9270
9505
  field: Field;
9271
- index_name_format: string;
9272
- index_name_prefix: string;
9273
- locale: string;
9274
- timezone: string;
9506
+ index_name_format?: string;
9507
+ index_name_prefix?: string;
9508
+ locale?: string;
9509
+ timezone?: string;
9275
9510
  }
9276
9511
  export interface IngestDateProcessor extends IngestProcessorBase {
9277
9512
  field: Field;
@@ -9281,9 +9516,9 @@ export interface IngestDateProcessor extends IngestProcessorBase {
9281
9516
  timezone?: string;
9282
9517
  }
9283
9518
  export interface IngestDissectProcessor extends IngestProcessorBase {
9284
- append_separator: string;
9519
+ append_separator?: string;
9285
9520
  field: Field;
9286
- ignore_missing: boolean;
9521
+ ignore_missing?: boolean;
9287
9522
  pattern: string;
9288
9523
  }
9289
9524
  export interface IngestDotExpanderProcessor extends IngestProcessorBase {
@@ -9310,17 +9545,17 @@ export interface IngestForeachProcessor extends IngestProcessorBase {
9310
9545
  processor: IngestProcessorContainer;
9311
9546
  }
9312
9547
  export interface IngestGeoIpProcessor extends IngestProcessorBase {
9313
- database_file: string;
9548
+ database_file?: string;
9314
9549
  field: Field;
9315
- first_only: boolean;
9316
- ignore_missing: boolean;
9317
- properties: string[];
9318
- target_field: Field;
9550
+ first_only?: boolean;
9551
+ ignore_missing?: boolean;
9552
+ properties?: string[];
9553
+ target_field?: Field;
9319
9554
  }
9320
9555
  export interface IngestGrokProcessor extends IngestProcessorBase {
9321
9556
  field: Field;
9322
9557
  ignore_missing?: boolean;
9323
- pattern_definitions: Record<string, string>;
9558
+ pattern_definitions?: Record<string, string>;
9324
9559
  patterns: string[];
9325
9560
  trace_match?: boolean;
9326
9561
  }
@@ -9348,7 +9583,7 @@ export interface IngestInferenceConfigRegression {
9348
9583
  }
9349
9584
  export interface IngestInferenceProcessor extends IngestProcessorBase {
9350
9585
  model_id: Id;
9351
- target_field: Field;
9586
+ target_field?: Field;
9352
9587
  field_map?: Record<Field, any>;
9353
9588
  inference_config?: IngestInferenceConfig;
9354
9589
  }
@@ -9358,10 +9593,13 @@ export interface IngestJoinProcessor extends IngestProcessorBase {
9358
9593
  target_field?: Field;
9359
9594
  }
9360
9595
  export interface IngestJsonProcessor extends IngestProcessorBase {
9361
- add_to_root: boolean;
9596
+ add_to_root?: boolean;
9597
+ add_to_root_conflict_strategy?: IngestJsonProcessorConflictStrategy;
9598
+ allow_duplicate_keys?: boolean;
9362
9599
  field: Field;
9363
- target_field: Field;
9600
+ target_field?: Field;
9364
9601
  }
9602
+ export type IngestJsonProcessorConflictStrategy = 'replace' | 'merge';
9365
9603
  export interface IngestKeyValueProcessor extends IngestProcessorBase {
9366
9604
  exclude_keys?: string[];
9367
9605
  field: Field;
@@ -9393,8 +9631,10 @@ export interface IngestPipelineConfig {
9393
9631
  }
9394
9632
  export interface IngestPipelineProcessor extends IngestProcessorBase {
9395
9633
  name: Name;
9634
+ ignore_missing_pipeline?: boolean;
9396
9635
  }
9397
9636
  export interface IngestProcessorBase {
9637
+ description?: string;
9398
9638
  if?: string;
9399
9639
  ignore_failure?: boolean;
9400
9640
  on_failure?: IngestProcessorContainer[];
@@ -9446,9 +9686,12 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
9446
9686
  target_field: Field;
9447
9687
  }
9448
9688
  export interface IngestSetProcessor extends IngestProcessorBase {
9689
+ copy_from?: Field;
9449
9690
  field: Field;
9691
+ ignore_empty_value?: boolean;
9692
+ media_type?: string;
9450
9693
  override?: boolean;
9451
- value: any;
9694
+ value?: any;
9452
9695
  }
9453
9696
  export interface IngestSetSecurityUserProcessor extends IngestProcessorBase {
9454
9697
  field: Field;
@@ -9457,8 +9700,8 @@ export interface IngestSetSecurityUserProcessor extends IngestProcessorBase {
9457
9700
  export type IngestShapeType = 'geo_shape' | 'shape';
9458
9701
  export interface IngestSortProcessor extends IngestProcessorBase {
9459
9702
  field: Field;
9460
- order: SortOrder;
9461
- target_field: Field;
9703
+ order?: SortOrder;
9704
+ target_field?: Field;
9462
9705
  }
9463
9706
  export interface IngestSplitProcessor extends IngestProcessorBase {
9464
9707
  field: Field;
@@ -9484,10 +9727,10 @@ export interface IngestUrlDecodeProcessor extends IngestProcessorBase {
9484
9727
  }
9485
9728
  export interface IngestUserAgentProcessor extends IngestProcessorBase {
9486
9729
  field: Field;
9487
- ignore_missing: boolean;
9488
- options: IngestUserAgentProperty[];
9489
- regex_file: string;
9490
- target_field: Field;
9730
+ ignore_missing?: boolean;
9731
+ options?: IngestUserAgentProperty[];
9732
+ regex_file?: string;
9733
+ target_field?: Field;
9491
9734
  }
9492
9735
  export type IngestUserAgentProperty = 'NAME' | 'MAJOR' | 'MINOR' | 'PATCH' | 'OS' | 'OS_NAME' | 'OS_MAJOR' | 'OS_MINOR' | 'DEVICE' | 'BUILD';
9493
9736
  export interface IngestDeletePipelineRequest extends RequestBase {
@@ -9544,14 +9787,18 @@ export interface IngestSimulateDocument {
9544
9787
  _index?: IndexName;
9545
9788
  _source: any;
9546
9789
  }
9547
- export interface IngestSimulateDocumentSimulation {
9790
+ export interface IngestSimulateDocumentSimulationKeys {
9548
9791
  _id: Id;
9549
9792
  _index: IndexName;
9550
9793
  _ingest: IngestSimulateIngest;
9551
- _parent?: string;
9552
9794
  _routing?: string;
9553
9795
  _source: Record<string, any>;
9796
+ _version?: SpecUtilsStringified<VersionNumber>;
9797
+ _version_type?: VersionType;
9554
9798
  }
9799
+ export type IngestSimulateDocumentSimulation = IngestSimulateDocumentSimulationKeys & {
9800
+ [property: string]: string | Id | IndexName | IngestSimulateIngest | Record<string, any> | SpecUtilsStringified<VersionNumber> | VersionType;
9801
+ };
9555
9802
  export interface IngestSimulateIngest {
9556
9803
  timestamp: DateTime;
9557
9804
  pipeline?: Name;
@@ -9627,7 +9874,7 @@ export interface LicensePostAcknowledgement {
9627
9874
  export interface LicensePostRequest extends RequestBase {
9628
9875
  acknowledge?: boolean;
9629
9876
  license?: LicenseLicense;
9630
- licenses: LicenseLicense[];
9877
+ licenses?: LicenseLicense[];
9631
9878
  }
9632
9879
  export interface LicensePostResponse {
9633
9880
  acknowledge?: LicensePostAcknowledgement;
@@ -9732,7 +9979,7 @@ export interface MigrationPostFeatureUpgradeResponse {
9732
9979
  features: MigrationPostFeatureUpgradeMigrationFeature[];
9733
9980
  }
9734
9981
  export interface MlAnalysisConfig {
9735
- bucket_span: Duration;
9982
+ bucket_span?: Duration;
9736
9983
  categorization_analyzer?: MlCategorizationAnalyzer;
9737
9984
  categorization_field_name?: Field;
9738
9985
  categorization_filters?: string[];
@@ -9766,6 +10013,7 @@ export interface MlAnalysisMemoryLimit {
9766
10013
  }
9767
10014
  export interface MlAnomaly {
9768
10015
  actual?: double[];
10016
+ anomaly_score_explanation?: MlAnomalyExplanation;
9769
10017
  bucket_span: DurationValue<UnitSeconds>;
9770
10018
  by_field_name?: string;
9771
10019
  by_field_value?: string;
@@ -9774,6 +10022,7 @@ export interface MlAnomaly {
9774
10022
  field_name?: string;
9775
10023
  function?: string;
9776
10024
  function_description?: string;
10025
+ geo_results?: MlGeoResults;
9777
10026
  influencers?: MlInfluence[];
9778
10027
  initial_record_score: double;
9779
10028
  is_interim: boolean;
@@ -9804,6 +10053,18 @@ export interface MlAnomalyCause {
9804
10053
  probability: double;
9805
10054
  typical: double[];
9806
10055
  }
10056
+ export interface MlAnomalyExplanation {
10057
+ anomaly_characteristics_impact?: integer;
10058
+ anomaly_length?: integer;
10059
+ anomaly_type?: string;
10060
+ high_variance_penalty?: boolean;
10061
+ incomplete_bucket_penalty?: boolean;
10062
+ lower_confidence_bound?: double;
10063
+ multi_bucket_impact?: integer;
10064
+ single_bucket_impact?: integer;
10065
+ typical_value?: double;
10066
+ upper_confidence_bound?: double;
10067
+ }
9807
10068
  export interface MlApiKeyAuthorization {
9808
10069
  id: string;
9809
10070
  name: string;
@@ -9937,12 +10198,12 @@ export interface MlDatafeedConfig {
9937
10198
  datafeed_id?: Id;
9938
10199
  delayed_data_check_config?: MlDelayedDataCheckConfig;
9939
10200
  frequency?: Duration;
10201
+ indices?: string[];
9940
10202
  indexes?: string[];
9941
- indices: string[];
9942
10203
  indices_options?: IndicesOptions;
9943
10204
  job_id?: Id;
9944
10205
  max_empty_searches?: integer;
9945
- query: QueryDslQueryContainer;
10206
+ query?: QueryDslQueryContainer;
9946
10207
  query_delay?: Duration;
9947
10208
  runtime_mappings?: MappingRuntimeFields;
9948
10209
  script_fields?: Record<string, ScriptField>;
@@ -10201,7 +10462,7 @@ export interface MlDetector {
10201
10462
  detector_index?: integer;
10202
10463
  exclude_frequent?: MlExcludeFrequent;
10203
10464
  field_name?: Field;
10204
- function: string;
10465
+ function?: string;
10205
10466
  over_field_name?: Field;
10206
10467
  partition_field_name?: Field;
10207
10468
  use_null?: boolean;
@@ -10246,6 +10507,10 @@ export interface MlFilterRef {
10246
10507
  filter_type?: MlFilterType;
10247
10508
  }
10248
10509
  export type MlFilterType = 'include' | 'exclude';
10510
+ export interface MlGeoResults {
10511
+ actual_point: string;
10512
+ typical_point: string;
10513
+ }
10249
10514
  export interface MlHyperparameter {
10250
10515
  absolute_importance?: double;
10251
10516
  name: Name;
@@ -10458,6 +10723,7 @@ export interface MlNerInferenceOptions {
10458
10723
  tokenization?: MlTokenizationConfigContainer;
10459
10724
  results_field?: string;
10460
10725
  classification_labels?: string[];
10726
+ vocabulary?: MlVocabulary;
10461
10727
  }
10462
10728
  export interface MlNerInferenceUpdateOptions {
10463
10729
  tokenization?: MlNlpTokenizationUpdateOptions;
@@ -10509,6 +10775,7 @@ export interface MlPage {
10509
10775
  export interface MlPassThroughInferenceOptions {
10510
10776
  tokenization?: MlTokenizationConfigContainer;
10511
10777
  results_field?: string;
10778
+ vocabulary?: MlVocabulary;
10512
10779
  }
10513
10780
  export interface MlPassThroughInferenceUpdateOptions {
10514
10781
  tokenization?: MlNlpTokenizationUpdateOptions;
@@ -10601,6 +10868,7 @@ export interface MlTotalFeatureImportanceStatistics {
10601
10868
  }
10602
10869
  export interface MlTrainedModelAssignment {
10603
10870
  assignment_state: MlDeploymentAssignmentState;
10871
+ max_assigned_allocations?: integer;
10604
10872
  routing_table: Record<string, MlTrainedModelAssignmentRoutingTable>;
10605
10873
  start_time: DateTime;
10606
10874
  task_parameters: MlTrainedModelAssignmentTaskParameters;
@@ -10616,6 +10884,7 @@ export interface MlTrainedModelAssignmentTaskParameters {
10616
10884
  model_id: Id;
10617
10885
  cache_size: ByteSize;
10618
10886
  number_of_allocations: integer;
10887
+ priority: MlTrainingPriority;
10619
10888
  queue_capacity: integer;
10620
10889
  threads_per_allocation: integer;
10621
10890
  }
@@ -10668,6 +10937,7 @@ export interface MlTrainedModelDeploymentNodesStats {
10668
10937
  }
10669
10938
  export interface MlTrainedModelDeploymentStats {
10670
10939
  allocation_status: MlTrainedModelDeploymentAllocationStatus;
10940
+ cache_size?: ByteSize;
10671
10941
  error_count: integer;
10672
10942
  inference_count: integer;
10673
10943
  model_id: Id;
@@ -10723,6 +10993,7 @@ export interface MlTrainedModelStats {
10723
10993
  pipeline_count: integer;
10724
10994
  }
10725
10995
  export type MlTrainedModelType = 'tree_ensemble' | 'lang_ident' | 'pytorch';
10996
+ export type MlTrainingPriority = 'normal' | 'low';
10726
10997
  export interface MlTransformAuthorization {
10727
10998
  api_key?: MlApiKeyAuthorization;
10728
10999
  roles?: string[];
@@ -10732,6 +11003,9 @@ export interface MlValidationLoss {
10732
11003
  fold_values: string[];
10733
11004
  loss_type: string;
10734
11005
  }
11006
+ export interface MlVocabulary {
11007
+ index: IndexName;
11008
+ }
10735
11009
  export interface MlZeroShotClassificationInferenceOptions {
10736
11010
  tokenization?: MlTokenizationConfigContainer;
10737
11011
  hypothesis_template?: string;
@@ -10746,6 +11020,12 @@ export interface MlZeroShotClassificationInferenceUpdateOptions {
10746
11020
  multi_label?: boolean;
10747
11021
  labels: string[];
10748
11022
  }
11023
+ export interface MlClearTrainedModelDeploymentCacheRequest extends RequestBase {
11024
+ model_id: Id;
11025
+ }
11026
+ export interface MlClearTrainedModelDeploymentCacheResponse {
11027
+ cleared: boolean;
11028
+ }
10749
11029
  export interface MlCloseJobRequest extends RequestBase {
10750
11030
  job_id: Id;
10751
11031
  allow_no_match?: boolean;
@@ -10806,6 +11086,7 @@ export type MlDeleteForecastResponse = AcknowledgedResponseBase;
10806
11086
  export interface MlDeleteJobRequest extends RequestBase {
10807
11087
  job_id: Id;
10808
11088
  force?: boolean;
11089
+ delete_user_annotations?: boolean;
10809
11090
  wait_for_completion?: boolean;
10810
11091
  }
10811
11092
  export type MlDeleteJobResponse = AcknowledgedResponseBase;
@@ -11253,6 +11534,7 @@ export interface MlOpenJobRequest extends RequestBase {
11253
11534
  }
11254
11535
  export interface MlOpenJobResponse {
11255
11536
  opened: boolean;
11537
+ node: NodeId;
11256
11538
  }
11257
11539
  export interface MlPostCalendarEventsRequest extends RequestBase {
11258
11540
  calendar_id: Id;
@@ -11300,12 +11582,12 @@ export interface MlPreviewDataFrameAnalyticsResponse {
11300
11582
  }
11301
11583
  export interface MlPreviewDatafeedRequest extends RequestBase {
11302
11584
  datafeed_id?: Id;
11585
+ start?: DateTime;
11586
+ end?: DateTime;
11303
11587
  datafeed_config?: MlDatafeedConfig;
11304
11588
  job_config?: MlJobConfig;
11305
11589
  }
11306
- export interface MlPreviewDatafeedResponse<TDocument = unknown> {
11307
- data: TDocument[];
11308
- }
11590
+ export type MlPreviewDatafeedResponse<TDocument = unknown> = TDocument[];
11309
11591
  export interface MlPutCalendarRequest extends RequestBase {
11310
11592
  calendar_id: Id;
11311
11593
  job_ids?: Id[];
@@ -11375,16 +11657,16 @@ export interface MlPutDatafeedRequest extends RequestBase {
11375
11657
  headers?: HttpHeaders;
11376
11658
  }
11377
11659
  export interface MlPutDatafeedResponse {
11378
- aggregations: Record<string, AggregationsAggregationContainer>;
11660
+ aggregations?: Record<string, AggregationsAggregationContainer>;
11379
11661
  authorization?: MlDatafeedAuthorization;
11380
11662
  chunking_config: MlChunkingConfig;
11381
11663
  delayed_data_check_config?: MlDelayedDataCheckConfig;
11382
11664
  datafeed_id: Id;
11383
- frequency: Duration;
11665
+ frequency?: Duration;
11384
11666
  indices: string[];
11385
11667
  job_id: Id;
11386
11668
  indices_options?: IndicesOptions;
11387
- max_empty_searches: integer;
11669
+ max_empty_searches?: integer;
11388
11670
  query: QueryDslQueryContainer;
11389
11671
  query_delay: Duration;
11390
11672
  runtime_mappings?: MappingRuntimeFields;
@@ -11482,7 +11764,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
11482
11764
  definition?: MlPutTrainedModelDefinition;
11483
11765
  description?: string;
11484
11766
  inference_config: MlInferenceConfigCreateContainer;
11485
- input: MlPutTrainedModelInput;
11767
+ input?: MlPutTrainedModelInput;
11486
11768
  metadata?: any;
11487
11769
  model_type?: MlTrainedModelType;
11488
11770
  model_size_bytes?: long;
@@ -11543,6 +11825,7 @@ export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase;
11543
11825
  export interface MlResetJobRequest extends RequestBase {
11544
11826
  job_id: Id;
11545
11827
  wait_for_completion?: boolean;
11828
+ delete_user_annotations?: boolean;
11546
11829
  }
11547
11830
  export type MlResetJobResponse = AcknowledgedResponseBase;
11548
11831
  export interface MlRevertModelSnapshotRequest extends RequestBase {
@@ -11580,6 +11863,7 @@ export interface MlStartTrainedModelDeploymentRequest extends RequestBase {
11580
11863
  model_id: Id;
11581
11864
  cache_size?: ByteSize;
11582
11865
  number_of_allocations?: integer;
11866
+ priority?: MlTrainingPriority;
11583
11867
  queue_capacity?: integer;
11584
11868
  threads_per_allocation?: integer;
11585
11869
  timeout?: Duration;
@@ -11648,6 +11932,7 @@ export interface MlUpdateDatafeedRequest extends RequestBase {
11648
11932
  indices?: string[];
11649
11933
  indexes?: string[];
11650
11934
  indices_options?: IndicesOptions;
11935
+ job_id?: Id;
11651
11936
  max_empty_searches?: integer;
11652
11937
  query?: QueryDslQueryContainer;
11653
11938
  query_delay?: Duration;
@@ -11657,15 +11942,15 @@ export interface MlUpdateDatafeedRequest extends RequestBase {
11657
11942
  }
11658
11943
  export interface MlUpdateDatafeedResponse {
11659
11944
  authorization?: MlDatafeedAuthorization;
11660
- aggregations: Record<string, AggregationsAggregationContainer>;
11945
+ aggregations?: Record<string, AggregationsAggregationContainer>;
11661
11946
  chunking_config: MlChunkingConfig;
11662
11947
  delayed_data_check_config?: MlDelayedDataCheckConfig;
11663
11948
  datafeed_id: Id;
11664
- frequency: Duration;
11949
+ frequency?: Duration;
11665
11950
  indices: string[];
11666
11951
  indices_options?: IndicesOptions;
11667
11952
  job_id: Id;
11668
- max_empty_searches: integer;
11953
+ max_empty_searches?: integer;
11669
11954
  query: QueryDslQueryContainer;
11670
11955
  query_delay: Duration;
11671
11956
  runtime_mappings?: MappingRuntimeFields;
@@ -11692,6 +11977,7 @@ export interface MlUpdateJobRequest extends RequestBase {
11692
11977
  categorization_filters?: string[];
11693
11978
  description?: string;
11694
11979
  model_plot_config?: MlModelPlotConfig;
11980
+ model_prune_window?: Duration;
11695
11981
  daily_model_snapshot_retention_after_days?: long;
11696
11982
  model_snapshot_retention_days?: long;
11697
11983
  renormalization_window_days?: long;
@@ -11774,9 +12060,9 @@ export interface MonitoringBulkResponse {
11774
12060
  }
11775
12061
  export interface NodesAdaptiveSelection {
11776
12062
  avg_queue_size?: long;
11777
- avg_response_time?: long;
12063
+ avg_response_time?: Duration;
11778
12064
  avg_response_time_ns?: long;
11779
- avg_service_time?: string;
12065
+ avg_service_time?: Duration;
11780
12066
  avg_service_time_ns?: long;
11781
12067
  outgoing_searches?: long;
11782
12068
  rank?: string;
@@ -11928,6 +12214,7 @@ export interface NodesIndexingPressure {
11928
12214
  memory?: NodesIndexingPressureMemory;
11929
12215
  }
11930
12216
  export interface NodesIndexingPressureMemory {
12217
+ limit?: ByteSize;
11931
12218
  limit_in_bytes?: long;
11932
12219
  current?: NodesPressureMemory;
11933
12220
  total?: NodesPressureMemory;
@@ -12028,11 +12315,16 @@ export interface NodesPool {
12028
12315
  peak_max_in_bytes?: long;
12029
12316
  }
12030
12317
  export interface NodesPressureMemory {
12318
+ all?: ByteSize;
12319
+ all_in_bytes?: long;
12320
+ combined_coordinating_and_primary?: ByteSize;
12031
12321
  combined_coordinating_and_primary_in_bytes?: long;
12322
+ coordinating?: ByteSize;
12032
12323
  coordinating_in_bytes?: long;
12324
+ primary?: ByteSize;
12033
12325
  primary_in_bytes?: long;
12326
+ replica?: ByteSize;
12034
12327
  replica_in_bytes?: long;
12035
- all_in_bytes?: long;
12036
12328
  coordinating_rejections?: long;
12037
12329
  primary_rejections?: long;
12038
12330
  replica_rejections?: long;
@@ -12099,6 +12391,7 @@ export interface NodesScriptCache {
12099
12391
  export interface NodesScripting {
12100
12392
  cache_evictions?: long;
12101
12393
  compilations?: long;
12394
+ compilations_history?: Record<string, long>;
12102
12395
  compilation_limit_triggered?: long;
12103
12396
  contexts?: NodesContext[];
12104
12397
  }
@@ -12460,8 +12753,8 @@ export interface NodesInfoNodeJvmInfo {
12460
12753
  vm_name: Name;
12461
12754
  vm_vendor: string;
12462
12755
  vm_version: VersionString;
12463
- bundled_jdk: boolean;
12464
12756
  using_bundled_jdk: boolean;
12757
+ bundled_jdk: boolean;
12465
12758
  using_compressed_ordinary_object_pointers?: boolean | string;
12466
12759
  input_arguments: string[];
12467
12760
  }
@@ -12630,11 +12923,16 @@ export interface RollupGetRollupCapsRollupCapabilities {
12630
12923
  rollup_jobs: RollupGetRollupCapsRollupCapabilitySummary[];
12631
12924
  }
12632
12925
  export interface RollupGetRollupCapsRollupCapabilitySummary {
12633
- fields: Record<Field, Record<string, any>>;
12926
+ fields: Record<Field, RollupGetRollupCapsRollupFieldSummary[]>;
12634
12927
  index_pattern: string;
12635
12928
  job_id: string;
12636
12929
  rollup_index: string;
12637
12930
  }
12931
+ export interface RollupGetRollupCapsRollupFieldSummary {
12932
+ agg: string;
12933
+ calendar_interval?: Duration;
12934
+ time_zone?: TimeZone;
12935
+ }
12638
12936
  export interface RollupGetRollupIndexCapsIndexCapabilities {
12639
12937
  rollup_jobs: RollupGetRollupIndexCapsRollupJobSummary[];
12640
12938
  }
@@ -12777,7 +13075,7 @@ export interface SecurityApplicationPrivileges {
12777
13075
  export interface SecurityClusterNode {
12778
13076
  name: Name;
12779
13077
  }
12780
- export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_ccr' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'read_ccr' | 'read_ilm' | 'read_pipeline' | 'read_slm' | 'transport_client';
13078
+ export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_ccr' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'read_ccr' | 'read_ilm' | 'read_pipeline' | 'read_slm' | 'transport_client' | string;
12781
13079
  export interface SecurityCreatedStatus {
12782
13080
  created: boolean;
12783
13081
  }
@@ -12790,15 +13088,15 @@ export interface SecurityFieldRule {
12790
13088
  }
12791
13089
  export interface SecurityFieldSecurity {
12792
13090
  except?: Fields;
12793
- grant: Fields;
13091
+ grant?: Fields;
12794
13092
  }
12795
13093
  export interface SecurityGlobalPrivilege {
12796
13094
  application: SecurityApplicationGlobalUserPrivileges;
12797
13095
  }
12798
13096
  export type SecurityGrantType = 'password' | 'access_token';
12799
- export type SecurityIndexPrivilege = 'none' | 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write';
13097
+ export type SecurityIndexPrivilege = 'none' | 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write' | string;
12800
13098
  export interface SecurityIndicesPrivileges {
12801
- field_security?: SecurityFieldSecurity | SecurityFieldSecurity[];
13099
+ field_security?: SecurityFieldSecurity;
12802
13100
  names: Indices;
12803
13101
  privileges: SecurityIndexPrivilege[];
12804
13102
  query?: SecurityIndicesPrivilegesQuery;
@@ -12848,15 +13146,16 @@ export interface SecurityRoleMappingRule {
12848
13146
  field?: SecurityFieldRule;
12849
13147
  except?: SecurityRoleMappingRule;
12850
13148
  }
13149
+ export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer;
12851
13150
  export interface SecurityRoleTemplateInlineScript extends ScriptBase {
12852
13151
  lang?: ScriptLanguage;
12853
13152
  options?: Record<string, string>;
12854
- source: string | QueryDslQueryContainer;
13153
+ source: SecurityRoleTemplateInlineQuery;
12855
13154
  }
12856
13155
  export interface SecurityRoleTemplateQuery {
12857
13156
  template?: SecurityRoleTemplateScript;
12858
13157
  }
12859
- export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | string | QueryDslQueryContainer | StoredScriptId;
13158
+ export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId;
12860
13159
  export interface SecurityTransientMetadataConfig {
12861
13160
  enabled: boolean;
12862
13161
  }
@@ -12869,6 +13168,13 @@ export interface SecurityUser {
12869
13168
  enabled: boolean;
12870
13169
  profile_uid?: SecurityUserProfileId;
12871
13170
  }
13171
+ export interface SecurityUserIndicesPrivileges {
13172
+ field_security?: SecurityFieldSecurity[];
13173
+ names: Indices;
13174
+ privileges: SecurityIndexPrivilege[];
13175
+ query?: SecurityIndicesPrivilegesQuery[];
13176
+ allow_restricted_indices: boolean;
13177
+ }
12872
13178
  export interface SecurityUserProfile {
12873
13179
  uid: SecurityUserProfileId;
12874
13180
  user: SecurityUserProfileUser;
@@ -13195,7 +13501,7 @@ export interface SecurityGetUserPrivilegesResponse {
13195
13501
  applications: SecurityApplicationPrivileges[];
13196
13502
  cluster: string[];
13197
13503
  global: SecurityGlobalPrivilege[];
13198
- indices: SecurityIndicesPrivileges[];
13504
+ indices: SecurityUserIndicesPrivileges[];
13199
13505
  run_as: string[];
13200
13506
  }
13201
13507
  export interface SecurityGetUserProfileGetUserProfileErrors {
@@ -13502,7 +13808,7 @@ export interface ShutdownPutNodeRequest extends RequestBase {
13502
13808
  export type ShutdownPutNodeResponse = AcknowledgedResponseBase;
13503
13809
  export interface SlmConfiguration {
13504
13810
  ignore_unavailable?: boolean;
13505
- indices: Indices;
13811
+ indices?: Indices;
13506
13812
  include_global_state?: boolean;
13507
13813
  feature_states?: string[];
13508
13814
  metadata?: Metadata;
@@ -13519,10 +13825,10 @@ export interface SlmInvocation {
13519
13825
  time: DateTime;
13520
13826
  }
13521
13827
  export interface SlmPolicy {
13522
- config: SlmConfiguration;
13828
+ config?: SlmConfiguration;
13523
13829
  name: Name;
13524
13830
  repository: string;
13525
- retention: SlmRetention;
13831
+ retention?: SlmRetention;
13526
13832
  schedule: WatcherCronExpression;
13527
13833
  }
13528
13834
  export interface SlmRetention {
@@ -13688,7 +13994,7 @@ export interface SnapshotSnapshotInfo {
13688
13994
  }
13689
13995
  export interface SnapshotSnapshotShardFailure {
13690
13996
  index: IndexName;
13691
- node_id: Id;
13997
+ node_id?: Id;
13692
13998
  reason: string;
13693
13999
  shard_id: Id;
13694
14000
  status: string;
@@ -13813,6 +14119,7 @@ export interface SnapshotRestoreRequest extends RequestBase {
13813
14119
  snapshot: Name;
13814
14120
  master_timeout?: Duration;
13815
14121
  wait_for_completion?: boolean;
14122
+ feature_states?: string[];
13816
14123
  ignore_index_settings?: string[];
13817
14124
  ignore_unavailable?: boolean;
13818
14125
  include_aliases?: boolean;
@@ -13938,6 +14245,7 @@ export interface SslCertificatesCertificateInformation {
13938
14245
  expiry: DateTime;
13939
14246
  format: string;
13940
14247
  has_private_key: boolean;
14248
+ issuer?: string;
13941
14249
  path: string;
13942
14250
  serial_number: string;
13943
14251
  subject_dn: string;
@@ -14117,6 +14425,7 @@ export interface TransformSettings {
14117
14425
  deduce_mappings?: boolean;
14118
14426
  docs_per_second?: float;
14119
14427
  max_page_search_size?: integer;
14428
+ unattended?: boolean;
14120
14429
  }
14121
14430
  export interface TransformSource {
14122
14431
  index: Indices;
@@ -14184,6 +14493,7 @@ export interface TransformGetTransformStatsRequest extends RequestBase {
14184
14493
  allow_no_match?: boolean;
14185
14494
  from?: long;
14186
14495
  size?: long;
14496
+ timeout?: Duration;
14187
14497
  }
14188
14498
  export interface TransformGetTransformStatsResponse {
14189
14499
  count: long;
@@ -14217,12 +14527,16 @@ export interface TransformGetTransformStatsTransformProgress {
14217
14527
  }
14218
14528
  export interface TransformGetTransformStatsTransformStats {
14219
14529
  checkpointing: TransformGetTransformStatsCheckpointing;
14530
+ health?: TransformGetTransformStatsTransformStatsHealth;
14220
14531
  id: Id;
14221
14532
  node?: NodeAttributes;
14222
14533
  reason?: string;
14223
14534
  state: string;
14224
14535
  stats: TransformGetTransformStatsTransformIndexerStats;
14225
14536
  }
14537
+ export interface TransformGetTransformStatsTransformStatsHealth {
14538
+ status: HealthStatus;
14539
+ }
14226
14540
  export interface TransformPreviewTransformRequest extends RequestBase {
14227
14541
  transform_id?: Id;
14228
14542
  timeout?: Duration;
@@ -14261,9 +14575,15 @@ export interface TransformResetTransformRequest extends RequestBase {
14261
14575
  force?: boolean;
14262
14576
  }
14263
14577
  export type TransformResetTransformResponse = AcknowledgedResponseBase;
14578
+ export interface TransformScheduleNowTransformRequest extends RequestBase {
14579
+ transform_id: Id;
14580
+ timeout?: Duration;
14581
+ }
14582
+ export type TransformScheduleNowTransformResponse = AcknowledgedResponseBase;
14264
14583
  export interface TransformStartTransformRequest extends RequestBase {
14265
14584
  transform_id: Id;
14266
14585
  timeout?: Duration;
14586
+ from?: string;
14267
14587
  }
14268
14588
  export type TransformStartTransformResponse = AcknowledgedResponseBase;
14269
14589
  export interface TransformStopTransformRequest extends RequestBase {
@@ -14932,13 +15252,6 @@ export interface XpackInfoResponse {
14932
15252
  license: XpackInfoMinimalLicenseInformation;
14933
15253
  tagline: string;
14934
15254
  }
14935
- export interface XpackUsageAllJobs {
14936
- count: integer;
14937
- detectors: Record<string, integer>;
14938
- created_by: Record<string, string | integer>;
14939
- model_size: Record<string, integer>;
14940
- forecasts: Record<string, integer>;
14941
- }
14942
15255
  export interface XpackUsageAnalytics extends XpackUsageBase {
14943
15256
  stats: XpackUsageAnalyticsStatistics;
14944
15257
  }
@@ -15045,6 +15358,9 @@ export interface XpackUsageFlattened extends XpackUsageBase {
15045
15358
  export interface XpackUsageFrozenIndices extends XpackUsageBase {
15046
15359
  indices_count: long;
15047
15360
  }
15361
+ export interface XpackUsageHealthStatistics extends XpackUsageBase {
15362
+ invocations: XpackUsageInvocations;
15363
+ }
15048
15364
  export interface XpackUsageIlm {
15049
15365
  policy_count: integer;
15050
15366
  policy_stats: XpackUsageIlmPolicyStatistics[];
@@ -15053,19 +15369,23 @@ export interface XpackUsageIlmPolicyStatistics {
15053
15369
  indices_managed: integer;
15054
15370
  phases: IlmPhases;
15055
15371
  }
15372
+ export interface XpackUsageInvocations {
15373
+ total: long;
15374
+ }
15056
15375
  export interface XpackUsageIpFilter {
15057
15376
  http: boolean;
15058
15377
  transport: boolean;
15059
15378
  }
15060
- export interface XpackUsageJobsKeys {
15061
- _all?: XpackUsageAllJobs;
15379
+ export interface XpackUsageJobUsage {
15380
+ count: integer;
15381
+ created_by: Record<string, long>;
15382
+ detectors: MlJobStatistics;
15383
+ forecasts: XpackUsageMlJobForecasts;
15384
+ model_size: MlJobStatistics;
15062
15385
  }
15063
- export type XpackUsageJobs = XpackUsageJobsKeys & {
15064
- [property: string]: MlJob | XpackUsageAllJobs;
15065
- };
15066
15386
  export interface XpackUsageMachineLearning extends XpackUsageBase {
15067
15387
  datafeeds: Record<string, XpackUsageDatafeed>;
15068
- jobs: XpackUsageJobs;
15388
+ jobs: Record<string, XpackUsageJobUsage>;
15069
15389
  node_count: integer;
15070
15390
  data_frame_analytics_jobs: XpackUsageMlDataFrameAnalyticsJobs;
15071
15391
  inference: XpackUsageMlInference;
@@ -15126,9 +15446,15 @@ export interface XpackUsageMlInferenceTrainedModelsCount {
15126
15446
  total: long;
15127
15447
  prepackaged: long;
15128
15448
  other: long;
15449
+ pass_through?: long;
15129
15450
  regression?: long;
15130
15451
  classification?: long;
15131
15452
  ner?: long;
15453
+ text_embedding?: long;
15454
+ }
15455
+ export interface XpackUsageMlJobForecasts {
15456
+ total: long;
15457
+ forecasted_jobs: long;
15132
15458
  }
15133
15459
  export interface XpackUsageMonitoring extends XpackUsageBase {
15134
15460
  collection_enabled: boolean;
@@ -15171,6 +15497,7 @@ export interface XpackUsageResponse {
15171
15497
  flattened?: XpackUsageFlattened;
15172
15498
  frozen_indices: XpackUsageFrozenIndices;
15173
15499
  graph: XpackUsageBase;
15500
+ health_api?: XpackUsageHealthStatistics;
15174
15501
  ilm: XpackUsageIlm;
15175
15502
  logstash: XpackUsageBase;
15176
15503
  ml: XpackUsageMachineLearning;