@elastic/elasticsearch 8.15.0 → 8.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -679,6 +679,7 @@ export interface MsearchRequest extends RequestBase {
679
679
  expand_wildcards?: ExpandWildcards;
680
680
  ignore_throttled?: boolean;
681
681
  ignore_unavailable?: boolean;
682
+ include_named_queries_score?: boolean;
682
683
  max_concurrent_searches?: long;
683
684
  max_concurrent_shard_requests?: long;
684
685
  pre_filter_shard_size?: long;
@@ -1010,6 +1011,7 @@ export interface SearchRequest extends RequestBase {
1010
1011
  expand_wildcards?: ExpandWildcards;
1011
1012
  ignore_throttled?: boolean;
1012
1013
  ignore_unavailable?: boolean;
1014
+ include_named_queries_score?: boolean;
1013
1015
  lenient?: boolean;
1014
1016
  max_concurrent_shard_requests?: long;
1015
1017
  min_compatible_shard_node?: VersionString;
@@ -1137,6 +1139,10 @@ export interface SearchAggregationProfileDebug {
1137
1139
  segments_counted?: integer;
1138
1140
  segments_collected?: integer;
1139
1141
  map_reducer?: string;
1142
+ brute_force_used?: integer;
1143
+ dynamic_pruning_attempted?: integer;
1144
+ dynamic_pruning_used?: integer;
1145
+ skipped_due_to_no_data?: integer;
1140
1146
  }
1141
1147
  export interface SearchAggregationProfileDelegateDebugFilter {
1142
1148
  results_from_metadata?: integer;
@@ -1180,6 +1186,35 @@ export interface SearchCompletionSuggester extends SearchSuggesterBase {
1180
1186
  skip_duplicates?: boolean;
1181
1187
  }
1182
1188
  export type SearchContext = string | GeoLocation;
1189
+ export interface SearchDfsKnnProfile {
1190
+ vector_operations_count?: long;
1191
+ query: SearchKnnQueryProfileResult[];
1192
+ rewrite_time: long;
1193
+ collector: SearchKnnCollectorResult[];
1194
+ }
1195
+ export interface SearchDfsProfile {
1196
+ statistics?: SearchDfsStatisticsProfile;
1197
+ knn?: SearchDfsKnnProfile[];
1198
+ }
1199
+ export interface SearchDfsStatisticsBreakdown {
1200
+ collection_statistics: long;
1201
+ collection_statistics_count: long;
1202
+ create_weight: long;
1203
+ create_weight_count: long;
1204
+ rewrite: long;
1205
+ rewrite_count: long;
1206
+ term_statistics: long;
1207
+ term_statistics_count: long;
1208
+ }
1209
+ export interface SearchDfsStatisticsProfile {
1210
+ type: string;
1211
+ description: string;
1212
+ time?: Duration;
1213
+ time_in_nanos: DurationValue<UnitNanos>;
1214
+ breakdown: SearchDfsStatisticsBreakdown;
1215
+ debug?: Record<string, any>;
1216
+ children?: SearchDfsStatisticsProfile[];
1217
+ }
1183
1218
  export interface SearchDirectGenerator {
1184
1219
  field: Field;
1185
1220
  max_edits?: integer;
@@ -1274,10 +1309,10 @@ export interface SearchHit<TDocument = unknown> {
1274
1309
  fields?: Record<string, any>;
1275
1310
  highlight?: Record<string, string[]>;
1276
1311
  inner_hits?: Record<string, SearchInnerHitsResult>;
1277
- matched_queries?: string[];
1312
+ matched_queries?: string[] | Record<string, double>;
1278
1313
  _nested?: SearchNestedIdentity;
1279
1314
  _ignored?: string[];
1280
- ignored_field_values?: Record<string, string[]>;
1315
+ ignored_field_values?: Record<string, FieldValue[]>;
1281
1316
  _shard?: string;
1282
1317
  _node?: string;
1283
1318
  _routing?: string;
@@ -1314,6 +1349,44 @@ export interface SearchInnerHits {
1314
1349
  export interface SearchInnerHitsResult {
1315
1350
  hits: SearchHitsMetadata<any>;
1316
1351
  }
1352
+ export interface SearchKnnCollectorResult {
1353
+ name: string;
1354
+ reason: string;
1355
+ time?: Duration;
1356
+ time_in_nanos: DurationValue<UnitNanos>;
1357
+ children?: SearchKnnCollectorResult[];
1358
+ }
1359
+ export interface SearchKnnQueryProfileBreakdown {
1360
+ advance: long;
1361
+ advance_count: long;
1362
+ build_scorer: long;
1363
+ build_scorer_count: long;
1364
+ compute_max_score: long;
1365
+ compute_max_score_count: long;
1366
+ count_weight: long;
1367
+ count_weight_count: long;
1368
+ create_weight: long;
1369
+ create_weight_count: long;
1370
+ match: long;
1371
+ match_count: long;
1372
+ next_doc: long;
1373
+ next_doc_count: long;
1374
+ score: long;
1375
+ score_count: long;
1376
+ set_min_competitive_score: long;
1377
+ set_min_competitive_score_count: long;
1378
+ shallow_advance: long;
1379
+ shallow_advance_count: long;
1380
+ }
1381
+ export interface SearchKnnQueryProfileResult {
1382
+ type: string;
1383
+ description: string;
1384
+ time?: Duration;
1385
+ time_in_nanos: DurationValue<UnitNanos>;
1386
+ breakdown: SearchKnnQueryProfileBreakdown;
1387
+ debug?: Record<string, any>;
1388
+ children?: SearchKnnQueryProfileResult[];
1389
+ }
1317
1390
  export interface SearchLaplaceSmoothingModel {
1318
1391
  alpha: double;
1319
1392
  }
@@ -1392,6 +1465,8 @@ export interface SearchQueryBreakdown {
1392
1465
  score_count: long;
1393
1466
  compute_max_score: long;
1394
1467
  compute_max_score_count: long;
1468
+ count_weight: long;
1469
+ count_weight_count: long;
1395
1470
  set_min_competitive_score: long;
1396
1471
  set_min_competitive_score_count: long;
1397
1472
  }
@@ -1425,9 +1500,14 @@ export interface SearchSearchProfile {
1425
1500
  }
1426
1501
  export interface SearchShardProfile {
1427
1502
  aggregations: SearchAggregationProfile[];
1503
+ cluster: string;
1504
+ dfs?: SearchDfsProfile;
1505
+ fetch?: SearchFetchProfile;
1428
1506
  id: string;
1507
+ index: IndexName;
1508
+ node_id: NodeId;
1429
1509
  searches: SearchSearchProfile[];
1430
- fetch?: SearchFetchProfile;
1510
+ shard_id: long;
1431
1511
  }
1432
1512
  export interface SearchSmoothingModelContainer {
1433
1513
  laplace?: SearchLaplaceSmoothingModel;
@@ -1540,10 +1620,21 @@ export interface SearchShardsRequest extends RequestBase {
1540
1620
  routing?: Routing;
1541
1621
  }
1542
1622
  export interface SearchShardsResponse {
1543
- nodes: Record<string, NodeAttributes>;
1623
+ nodes: Record<NodeId, SearchShardsSearchShardsNodeAttributes>;
1544
1624
  shards: NodeShard[][];
1545
1625
  indices: Record<IndexName, SearchShardsShardStoreIndex>;
1546
1626
  }
1627
+ export interface SearchShardsSearchShardsNodeAttributes {
1628
+ name: NodeName;
1629
+ ephemeral_id: Id;
1630
+ transport_address: TransportAddress;
1631
+ external_id: string;
1632
+ attributes: Record<string, string>;
1633
+ roles: NodeRoles;
1634
+ version: VersionString;
1635
+ min_index_version: integer;
1636
+ max_index_version: integer;
1637
+ }
1547
1638
  export interface SearchShardsShardStoreIndex {
1548
1639
  aliases?: Name[];
1549
1640
  filter?: QueryDslQueryContainer;
@@ -1706,6 +1797,7 @@ export interface UpdateByQueryRequest extends RequestBase {
1706
1797
  lenient?: boolean;
1707
1798
  pipeline?: string;
1708
1799
  preference?: string;
1800
+ q?: string;
1709
1801
  refresh?: boolean;
1710
1802
  request_cache?: boolean;
1711
1803
  requests_per_second?: float;
@@ -1959,6 +2051,7 @@ export interface GetStats {
1959
2051
  time_in_millis: DurationValue<UnitMillis>;
1960
2052
  total: long;
1961
2053
  }
2054
+ export type GrokPattern = string;
1962
2055
  export type HealthStatus = 'green' | 'GREEN' | 'yellow' | 'YELLOW' | 'red' | 'RED';
1963
2056
  export type Host = string;
1964
2057
  export type HttpHeaders = Record<string, string | string[]>;
@@ -2014,6 +2107,7 @@ export interface KnnQuery extends QueryDslQueryBase {
2014
2107
  query_vector?: QueryVector;
2015
2108
  query_vector_builder?: QueryVectorBuilder;
2016
2109
  num_candidates?: integer;
2110
+ k?: integer;
2017
2111
  filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
2018
2112
  similarity?: float;
2019
2113
  }
@@ -2080,8 +2174,6 @@ export interface NodeAttributes {
2080
2174
  id?: NodeId;
2081
2175
  name: NodeName;
2082
2176
  transport_address: TransportAddress;
2083
- roles?: NodeRoles;
2084
- external_id?: string;
2085
2177
  }
2086
2178
  export type NodeId = string;
2087
2179
  export type NodeIds = NodeId | NodeId[];
@@ -2293,7 +2385,7 @@ export interface ShardStatistics {
2293
2385
  skipped?: uint;
2294
2386
  }
2295
2387
  export interface ShardsOperationResponseBase {
2296
- _shards: ShardStatistics;
2388
+ _shards?: ShardStatistics;
2297
2389
  }
2298
2390
  export interface SlicedScroll {
2299
2391
  field?: Field;
@@ -2428,7 +2520,7 @@ export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMulti
2428
2520
  export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys & {
2429
2521
  [property: string]: AggregationsAggregate | string | long;
2430
2522
  };
2431
- export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate;
2523
+ export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsTimeSeriesAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate;
2432
2524
  export interface AggregationsAggregateBase {
2433
2525
  meta?: Metadata;
2434
2526
  }
@@ -2498,6 +2590,7 @@ export interface AggregationsAggregationContainer {
2498
2590
  rare_terms?: AggregationsRareTermsAggregation;
2499
2591
  rate?: AggregationsRateAggregation;
2500
2592
  reverse_nested?: AggregationsReverseNestedAggregation;
2593
+ random_sampler?: AggregationsRandomSamplerAggregation;
2501
2594
  sampler?: AggregationsSamplerAggregation;
2502
2595
  scripted_metric?: AggregationsScriptedMetricAggregation;
2503
2596
  serial_diff?: AggregationsSerialDifferencingAggregation;
@@ -2509,6 +2602,7 @@ export interface AggregationsAggregationContainer {
2509
2602
  sum?: AggregationsSumAggregation;
2510
2603
  sum_bucket?: AggregationsSumBucketAggregation;
2511
2604
  terms?: AggregationsTermsAggregation;
2605
+ time_series?: AggregationsTimeSeriesAggregation;
2512
2606
  top_hits?: AggregationsTopHitsAggregation;
2513
2607
  t_test?: AggregationsTTestAggregation;
2514
2608
  top_metrics?: AggregationsTopMetricsAggregation;
@@ -3234,6 +3328,11 @@ export interface AggregationsPipelineAggregationBase extends AggregationsBucketP
3234
3328
  format?: string;
3235
3329
  gap_policy?: AggregationsGapPolicy;
3236
3330
  }
3331
+ export interface AggregationsRandomSamplerAggregation extends AggregationsBucketAggregationBase {
3332
+ probability: double;
3333
+ seed?: integer;
3334
+ shard_seed?: integer;
3335
+ }
3237
3336
  export interface AggregationsRangeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsRangeBucket> {
3238
3337
  }
3239
3338
  export interface AggregationsRangeAggregation extends AggregationsBucketAggregationBase {
@@ -3504,6 +3603,18 @@ export interface AggregationsTestPopulation {
3504
3603
  script?: Script | string;
3505
3604
  filter?: QueryDslQueryContainer;
3506
3605
  }
3606
+ export interface AggregationsTimeSeriesAggregate extends AggregationsMultiBucketAggregateBase<AggregationsTimeSeriesBucket> {
3607
+ }
3608
+ export interface AggregationsTimeSeriesAggregation extends AggregationsBucketAggregationBase {
3609
+ size?: integer;
3610
+ keyed?: boolean;
3611
+ }
3612
+ export interface AggregationsTimeSeriesBucketKeys extends AggregationsMultiBucketBase {
3613
+ key: Record<Field, FieldValue>;
3614
+ }
3615
+ export type AggregationsTimeSeriesBucket = AggregationsTimeSeriesBucketKeys & {
3616
+ [property: string]: AggregationsAggregate | Record<Field, FieldValue> | long;
3617
+ };
3507
3618
  export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase {
3508
3619
  hits: SearchHitsMetadata<any>;
3509
3620
  }
@@ -3931,11 +4042,11 @@ export type AnalysisPhoneticRuleType = 'approx' | 'exact';
3931
4042
  export interface AnalysisPhoneticTokenFilter extends AnalysisTokenFilterBase {
3932
4043
  type: 'phonetic';
3933
4044
  encoder: AnalysisPhoneticEncoder;
3934
- languageset: AnalysisPhoneticLanguage | AnalysisPhoneticLanguage[];
4045
+ languageset?: AnalysisPhoneticLanguage | AnalysisPhoneticLanguage[];
3935
4046
  max_code_len?: integer;
3936
- name_type: AnalysisPhoneticNameType;
4047
+ name_type?: AnalysisPhoneticNameType;
3937
4048
  replace?: boolean;
3938
- rule_type: AnalysisPhoneticRuleType;
4049
+ rule_type?: AnalysisPhoneticRuleType;
3939
4050
  }
3940
4051
  export interface AnalysisPorterStemTokenFilter extends AnalysisTokenFilterBase {
3941
4052
  type: 'porter_stem';
@@ -5203,6 +5314,7 @@ export type QueryDslTermsQuery = QueryDslTermsQueryKeys & {
5203
5314
  };
5204
5315
  export type QueryDslTermsQueryField = FieldValue[] | QueryDslTermsLookup;
5205
5316
  export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
5317
+ minimum_should_match?: MinimumShouldMatch;
5206
5318
  minimum_should_match_field?: Field;
5207
5319
  minimum_should_match_script?: Script | string;
5208
5320
  terms: string[];
@@ -5627,6 +5739,7 @@ export interface CatIndicesIndicesRecord {
5627
5739
  ss?: string | null;
5628
5740
  storeSize?: string | null;
5629
5741
  'pri.store.size'?: string | null;
5742
+ 'dataset.size'?: string | null;
5630
5743
  'completion.size'?: string;
5631
5744
  cs?: string;
5632
5745
  completionSize?: string;
@@ -6703,6 +6816,7 @@ export interface CatShardsShardsRecord {
6703
6816
  dc?: string | null;
6704
6817
  store?: string | null;
6705
6818
  sto?: string | null;
6819
+ dataset?: string | null;
6706
6820
  ip?: string | null;
6707
6821
  id?: string;
6708
6822
  node?: string | null;
@@ -8446,7 +8560,9 @@ export interface EnrichStatsCacheStats {
8446
8560
  node_id: Id;
8447
8561
  count: integer;
8448
8562
  hits: integer;
8563
+ hits_time_in_millis: DurationValue<UnitMillis>;
8449
8564
  misses: integer;
8565
+ misses_time_in_millis: DurationValue<UnitMillis>;
8450
8566
  evictions: integer;
8451
8567
  }
8452
8568
  export interface EnrichStatsCoordinatorStats {
@@ -8537,8 +8653,9 @@ export interface EqlSearchRequest extends RequestBase {
8537
8653
  }
8538
8654
  export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
8539
8655
  export type EqlSearchResultPosition = 'tail' | 'head';
8656
+ export type EsqlQueryEsqlFormat = 'csv' | 'json' | 'tsv' | 'txt' | 'yaml' | 'cbor' | 'smile' | 'arrow';
8540
8657
  export interface EsqlQueryRequest extends RequestBase {
8541
- format?: string;
8658
+ format?: EsqlQueryEsqlFormat;
8542
8659
  delimiter?: string;
8543
8660
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8544
8661
  body?: {
@@ -8906,14 +9023,14 @@ export interface IlmMoveToStepRequest extends RequestBase {
8906
9023
  index: IndexName;
8907
9024
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8908
9025
  body?: {
8909
- current_step?: IlmMoveToStepStepKey;
8910
- next_step?: IlmMoveToStepStepKey;
9026
+ current_step: IlmMoveToStepStepKey;
9027
+ next_step: IlmMoveToStepStepKey;
8911
9028
  };
8912
9029
  }
8913
9030
  export type IlmMoveToStepResponse = AcknowledgedResponseBase;
8914
9031
  export interface IlmMoveToStepStepKey {
8915
- action: string;
8916
- name: string;
9032
+ action?: string;
9033
+ name?: string;
8917
9034
  phase: string;
8918
9035
  }
8919
9036
  export interface IlmPutLifecycleRequest extends RequestBase {
@@ -9019,6 +9136,7 @@ export interface IndicesDataStreamTimestampField {
9019
9136
  }
9020
9137
  export interface IndicesDataStreamVisibility {
9021
9138
  hidden?: boolean;
9139
+ allow_custom_routing?: boolean;
9022
9140
  }
9023
9141
  export interface IndicesDownsampleConfig {
9024
9142
  fixed_interval: DurationLarge;
@@ -10080,6 +10198,8 @@ export type IndicesResolveClusterResponse = Record<ClusterAlias, IndicesResolveC
10080
10198
  export interface IndicesResolveIndexRequest extends RequestBase {
10081
10199
  name: Names;
10082
10200
  expand_wildcards?: ExpandWildcards;
10201
+ ignore_unavailable?: boolean;
10202
+ allow_no_indices?: boolean;
10083
10203
  }
10084
10204
  export interface IndicesResolveIndexResolveIndexAliasItem {
10085
10205
  name: Name;
@@ -10627,6 +10747,10 @@ export interface IngestCsvProcessor extends IngestProcessorBase {
10627
10747
  target_fields: Fields;
10628
10748
  trim?: boolean;
10629
10749
  }
10750
+ export interface IngestDatabaseConfiguration {
10751
+ name: Name;
10752
+ maxmind: IngestMaxmind;
10753
+ }
10630
10754
  export interface IngestDateIndexNameProcessor extends IngestProcessorBase {
10631
10755
  date_formats: string[];
10632
10756
  date_rounding: string;
@@ -10672,6 +10796,19 @@ export interface IngestForeachProcessor extends IngestProcessorBase {
10672
10796
  ignore_missing?: boolean;
10673
10797
  processor: IngestProcessorContainer;
10674
10798
  }
10799
+ export interface IngestGeoGridProcessor extends IngestProcessorBase {
10800
+ field: string;
10801
+ tile_type: IngestGeoGridTileType;
10802
+ target_field?: Field;
10803
+ parent_field?: Field;
10804
+ children_field?: Field;
10805
+ non_children_field?: Field;
10806
+ precision_field?: Field;
10807
+ ignore_missing?: boolean;
10808
+ target_format?: IngestGeoGridTargetFormat;
10809
+ }
10810
+ export type IngestGeoGridTargetFormat = 'geojson' | 'wkt';
10811
+ export type IngestGeoGridTileType = 'geotile' | 'geohex' | 'geohash';
10675
10812
  export interface IngestGeoIpProcessor extends IngestProcessorBase {
10676
10813
  database_file?: string;
10677
10814
  field: Field;
@@ -10684,7 +10821,7 @@ export interface IngestGrokProcessor extends IngestProcessorBase {
10684
10821
  field: Field;
10685
10822
  ignore_missing?: boolean;
10686
10823
  pattern_definitions?: Record<string, string>;
10687
- patterns: string[];
10824
+ patterns: GrokPattern[];
10688
10825
  trace_match?: boolean;
10689
10826
  }
10690
10827
  export interface IngestGsubProcessor extends IngestProcessorBase {
@@ -10694,6 +10831,11 @@ export interface IngestGsubProcessor extends IngestProcessorBase {
10694
10831
  replacement: string;
10695
10832
  target_field?: Field;
10696
10833
  }
10834
+ export interface IngestHtmlStripProcessor extends IngestProcessorBase {
10835
+ field: Field;
10836
+ ignore_missing?: boolean;
10837
+ target_field?: Field;
10838
+ }
10697
10839
  export interface IngestInferenceConfig {
10698
10840
  regression?: IngestInferenceConfigRegression;
10699
10841
  classification?: IngestInferenceConfigClassification;
@@ -10746,6 +10888,9 @@ export interface IngestLowercaseProcessor extends IngestProcessorBase {
10746
10888
  ignore_missing?: boolean;
10747
10889
  target_field?: Field;
10748
10890
  }
10891
+ export interface IngestMaxmind {
10892
+ account_id: Id;
10893
+ }
10749
10894
  export interface IngestPipeline {
10750
10895
  description?: string;
10751
10896
  on_failure?: IngestProcessorContainer[];
@@ -10784,15 +10929,18 @@ export interface IngestProcessorContainer {
10784
10929
  enrich?: IngestEnrichProcessor;
10785
10930
  fail?: IngestFailProcessor;
10786
10931
  foreach?: IngestForeachProcessor;
10932
+ geo_grid?: IngestGeoGridProcessor;
10787
10933
  geoip?: IngestGeoIpProcessor;
10788
10934
  grok?: IngestGrokProcessor;
10789
10935
  gsub?: IngestGsubProcessor;
10936
+ html_strip?: IngestHtmlStripProcessor;
10790
10937
  inference?: IngestInferenceProcessor;
10791
10938
  join?: IngestJoinProcessor;
10792
10939
  json?: IngestJsonProcessor;
10793
10940
  kv?: IngestKeyValueProcessor;
10794
10941
  lowercase?: IngestLowercaseProcessor;
10795
10942
  pipeline?: IngestPipelineProcessor;
10943
+ redact?: IngestRedactProcessor;
10796
10944
  remove?: IngestRemoveProcessor;
10797
10945
  rename?: IngestRenameProcessor;
10798
10946
  reroute?: IngestRerouteProcessor;
@@ -10804,8 +10952,18 @@ export interface IngestProcessorContainer {
10804
10952
  trim?: IngestTrimProcessor;
10805
10953
  uppercase?: IngestUppercaseProcessor;
10806
10954
  urldecode?: IngestUrlDecodeProcessor;
10955
+ uri_parts?: IngestUriPartsProcessor;
10807
10956
  user_agent?: IngestUserAgentProcessor;
10808
10957
  }
10958
+ export interface IngestRedactProcessor extends IngestProcessorBase {
10959
+ field: Field;
10960
+ patterns: GrokPattern[];
10961
+ pattern_definitions?: Record<string, string>;
10962
+ prefix?: string;
10963
+ suffix?: string;
10964
+ ignore_missing?: boolean;
10965
+ skip_if_unlicensed?: boolean;
10966
+ }
10809
10967
  export interface IngestRemoveProcessor extends IngestProcessorBase {
10810
10968
  field: Fields;
10811
10969
  keep?: Fields;
@@ -10862,6 +11020,13 @@ export interface IngestUppercaseProcessor extends IngestProcessorBase {
10862
11020
  ignore_missing?: boolean;
10863
11021
  target_field?: Field;
10864
11022
  }
11023
+ export interface IngestUriPartsProcessor extends IngestProcessorBase {
11024
+ field: Field;
11025
+ ignore_missing?: boolean;
11026
+ keep_original?: boolean;
11027
+ remove_if_successful?: boolean;
11028
+ target_field?: Field;
11029
+ }
10865
11030
  export interface IngestUrlDecodeProcessor extends IngestProcessorBase {
10866
11031
  field: Field;
10867
11032
  ignore_missing?: boolean;
@@ -10875,6 +11040,12 @@ export interface IngestUserAgentProcessor extends IngestProcessorBase {
10875
11040
  target_field?: Field;
10876
11041
  }
10877
11042
  export type IngestUserAgentProperty = 'NAME' | 'MAJOR' | 'MINOR' | 'PATCH' | 'OS' | 'OS_NAME' | 'OS_MAJOR' | 'OS_MINOR' | 'DEVICE' | 'BUILD';
11043
+ export interface IngestDeleteGeoipDatabaseRequest extends RequestBase {
11044
+ id: Ids;
11045
+ master_timeout?: Duration;
11046
+ timeout?: Duration;
11047
+ }
11048
+ export type IngestDeleteGeoipDatabaseResponse = AcknowledgedResponseBase;
10878
11049
  export interface IngestDeletePipelineRequest extends RequestBase {
10879
11050
  id: Id;
10880
11051
  master_timeout?: Duration;
@@ -10885,8 +11056,9 @@ export interface IngestGeoIpStatsGeoIpDownloadStatistics {
10885
11056
  successful_downloads: integer;
10886
11057
  failed_downloads: integer;
10887
11058
  total_download_time: DurationValue<UnitMillis>;
10888
- database_count: integer;
11059
+ databases_count: integer;
10889
11060
  skipped_updates: integer;
11061
+ expired_databases: integer;
10890
11062
  }
10891
11063
  export interface IngestGeoIpStatsGeoIpNodeDatabaseName {
10892
11064
  name: Name;
@@ -10901,6 +11073,19 @@ export interface IngestGeoIpStatsResponse {
10901
11073
  stats: IngestGeoIpStatsGeoIpDownloadStatistics;
10902
11074
  nodes: Record<Id, IngestGeoIpStatsGeoIpNodeDatabases>;
10903
11075
  }
11076
+ export interface IngestGetGeoipDatabaseDatabaseConfigurationMetadata {
11077
+ id: Id;
11078
+ version: long;
11079
+ modified_date_millis: EpochTime<UnitMillis>;
11080
+ database: IngestDatabaseConfiguration;
11081
+ }
11082
+ export interface IngestGetGeoipDatabaseRequest extends RequestBase {
11083
+ id?: Ids;
11084
+ master_timeout?: Duration;
11085
+ }
11086
+ export interface IngestGetGeoipDatabaseResponse {
11087
+ databases: IngestGetGeoipDatabaseDatabaseConfigurationMetadata[];
11088
+ }
10904
11089
  export interface IngestGetPipelineRequest extends RequestBase {
10905
11090
  id?: Id;
10906
11091
  master_timeout?: Duration;
@@ -10912,6 +11097,17 @@ export interface IngestProcessorGrokRequest extends RequestBase {
10912
11097
  export interface IngestProcessorGrokResponse {
10913
11098
  patterns: Record<string, string>;
10914
11099
  }
11100
+ export interface IngestPutGeoipDatabaseRequest extends RequestBase {
11101
+ id: Id;
11102
+ master_timeout?: Duration;
11103
+ timeout?: Duration;
11104
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
11105
+ body?: {
11106
+ name: Name;
11107
+ maxmind: IngestMaxmind;
11108
+ };
11109
+ }
11110
+ export type IngestPutGeoipDatabaseResponse = AcknowledgedResponseBase;
10915
11111
  export interface IngestPutPipelineRequest extends RequestBase {
10916
11112
  id: Id;
10917
11113
  master_timeout?: Duration;
@@ -11265,7 +11461,7 @@ export type MlCategorizationStatus = 'ok' | 'warn';
11265
11461
  export interface MlCategory {
11266
11462
  category_id: ulong;
11267
11463
  examples: string[];
11268
- grok_pattern?: string;
11464
+ grok_pattern?: GrokPattern;
11269
11465
  job_id: Id;
11270
11466
  max_matching_length: ulong;
11271
11467
  partition_field_name?: string;
@@ -12109,7 +12305,7 @@ export interface MlTrainedModelDeploymentStats {
12109
12305
  error_count: integer;
12110
12306
  inference_count: integer;
12111
12307
  model_id: Id;
12112
- nodes: MlTrainedModelDeploymentNodesStats;
12308
+ nodes: MlTrainedModelDeploymentNodesStats[];
12113
12309
  number_of_allocations: integer;
12114
12310
  queue_capacity: integer;
12115
12311
  rejected_execution_count: integer;
@@ -12140,7 +12336,7 @@ export interface MlTrainedModelInferenceStats {
12140
12336
  failure_count: integer;
12141
12337
  inference_count: integer;
12142
12338
  missing_all_fields_count: integer;
12143
- timestamp: DateTime;
12339
+ timestamp: EpochTime<UnitMillis>;
12144
12340
  }
12145
12341
  export interface MlTrainedModelLocation {
12146
12342
  index: MlTrainedModelLocationIndex;
@@ -13509,6 +13705,22 @@ export interface NodesHttp {
13509
13705
  current_open?: integer;
13510
13706
  total_opened?: long;
13511
13707
  clients?: NodesClient[];
13708
+ routes: Record<string, NodesHttpRoute>;
13709
+ }
13710
+ export interface NodesHttpRoute {
13711
+ requests: NodesHttpRouteRequests;
13712
+ responses: NodesHttpRouteResponses;
13713
+ }
13714
+ export interface NodesHttpRouteRequests {
13715
+ count: long;
13716
+ total_size_in_bytes: long;
13717
+ size_histogram: NodesSizeHttpHistogram[];
13718
+ }
13719
+ export interface NodesHttpRouteResponses {
13720
+ count: long;
13721
+ total_size_in_bytes: long;
13722
+ handling_time_histogram: NodesTimeHttpHistogram[];
13723
+ size_histogram: NodesSizeHttpHistogram[];
13512
13724
  }
13513
13725
  export interface NodesIndexingPressure {
13514
13726
  memory?: NodesIndexingPressureMemory;
@@ -13520,15 +13732,23 @@ export interface NodesIndexingPressureMemory {
13520
13732
  total?: NodesPressureMemory;
13521
13733
  }
13522
13734
  export interface NodesIngest {
13523
- pipelines?: Record<string, NodesIngestTotal>;
13735
+ pipelines?: Record<string, NodesIngestStats>;
13524
13736
  total?: NodesIngestTotal;
13525
13737
  }
13738
+ export interface NodesIngestStats {
13739
+ count: long;
13740
+ current: long;
13741
+ failed: long;
13742
+ processors: Record<string, NodesKeyedProcessor>[];
13743
+ time_in_millis: DurationValue<UnitMillis>;
13744
+ ingested_as_first_pipeline_in_bytes: long;
13745
+ produced_as_first_pipeline_in_bytes: long;
13746
+ }
13526
13747
  export interface NodesIngestTotal {
13527
- count?: long;
13528
- current?: long;
13529
- failed?: long;
13530
- processors?: Record<string, NodesKeyedProcessor>[];
13531
- time_in_millis?: DurationValue<UnitMillis>;
13748
+ count: long;
13749
+ current: long;
13750
+ failed: long;
13751
+ time_in_millis: DurationValue<UnitMillis>;
13532
13752
  }
13533
13753
  export interface NodesIoStatDevice {
13534
13754
  device_name?: string;
@@ -13706,6 +13926,11 @@ export interface NodesSerializedClusterStateDetail {
13706
13926
  compressed_size?: string;
13707
13927
  compressed_size_in_bytes?: long;
13708
13928
  }
13929
+ export interface NodesSizeHttpHistogram {
13930
+ count: long;
13931
+ ge_bytes?: long;
13932
+ lt_bytes?: long;
13933
+ }
13709
13934
  export interface NodesStats {
13710
13935
  adaptive_selection?: Record<string, NodesAdaptiveSelection>;
13711
13936
  breakers?: Record<string, NodesBreaker>;
@@ -13738,6 +13963,11 @@ export interface NodesThreadCount {
13738
13963
  rejected?: long;
13739
13964
  threads?: long;
13740
13965
  }
13966
+ export interface NodesTimeHttpHistogram {
13967
+ count: long;
13968
+ ge_millis?: long;
13969
+ lt_millis?: long;
13970
+ }
13741
13971
  export interface NodesTransport {
13742
13972
  inbound_handling_time_histogram?: NodesTransportHistogram[];
13743
13973
  outbound_handling_time_histogram?: NodesTransportHistogram[];
@@ -13772,12 +14002,6 @@ export interface NodesGetRepositoriesMeteringInfoResponseBase extends NodesNodes
13772
14002
  cluster_name: Name;
13773
14003
  nodes: Record<string, NodesRepositoryMeteringInformation>;
13774
14004
  }
13775
- export interface NodesHotThreadsHotThread {
13776
- hosts: Host[];
13777
- node_id: Id;
13778
- node_name: Name;
13779
- threads: string[];
13780
- }
13781
14005
  export interface NodesHotThreadsRequest extends RequestBase {
13782
14006
  node_id?: NodeIds;
13783
14007
  ignore_idle_threads?: boolean;
@@ -13790,7 +14014,6 @@ export interface NodesHotThreadsRequest extends RequestBase {
13790
14014
  sort?: ThreadType;
13791
14015
  }
13792
14016
  export interface NodesHotThreadsResponse {
13793
- hot_threads: NodesHotThreadsHotThread[];
13794
14017
  }
13795
14018
  export interface NodesInfoDeprecationIndexing {
13796
14019
  enabled: boolean | string;
@@ -16057,7 +16280,7 @@ export interface SynonymsPutSynonymRequest extends RequestBase {
16057
16280
  id: Id;
16058
16281
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
16059
16282
  body?: {
16060
- synonyms_set: SynonymsSynonymRule[];
16283
+ synonyms_set: SynonymsSynonymRule | SynonymsSynonymRule[];
16061
16284
  };
16062
16285
  }
16063
16286
  export interface SynonymsPutSynonymResponse {
@@ -16156,7 +16379,7 @@ export interface TextStructureFindStructureRequest<TJsonDocument = unknown> {
16156
16379
  ecs_compatibility?: string;
16157
16380
  explain?: boolean;
16158
16381
  format?: string;
16159
- grok_pattern?: string;
16382
+ grok_pattern?: GrokPattern;
16160
16383
  has_header_row?: boolean;
16161
16384
  line_merge_size_limit?: uint;
16162
16385
  lines_to_sample?: uint;
@@ -16183,7 +16406,7 @@ export interface TextStructureFindStructureResponse {
16183
16406
  num_lines_analyzed: integer;
16184
16407
  column_names?: string[];
16185
16408
  explanation?: string[];
16186
- grok_pattern?: string;
16409
+ grok_pattern?: GrokPattern;
16187
16410
  multiline_start_pattern?: string;
16188
16411
  exclude_lines_pattern?: string;
16189
16412
  java_timestamp_formats?: string[];
@@ -16209,7 +16432,7 @@ export interface TextStructureTestGrokPatternRequest extends RequestBase {
16209
16432
  ecs_compatibility?: string;
16210
16433
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
16211
16434
  body?: {
16212
- grok_pattern: string;
16435
+ grok_pattern: GrokPattern;
16213
16436
  text: string[];
16214
16437
  };
16215
16438
  }
package/lib/helpers.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
+ /// <reference types="node" />
3
4
  import { Readable } from 'stream';
4
5
  import { TransportResult, TransportRequestOptions } from '@elastic/transport';
5
6
  import Client from './client';