@elastic/elasticsearch 8.9.1 → 8.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/.tool-versions +1 -0
  2. package/catalog-info.yaml +5 -4
  3. package/lib/api/api/async_search.d.ts +4 -4
  4. package/lib/api/api/autoscaling.d.ts +4 -4
  5. package/lib/api/api/bulk.d.ts +1 -1
  6. package/lib/api/api/cat.d.ts +26 -26
  7. package/lib/api/api/ccr.d.ts +13 -13
  8. package/lib/api/api/clear_scroll.d.ts +1 -1
  9. package/lib/api/api/close_point_in_time.d.ts +1 -1
  10. package/lib/api/api/cluster.d.ts +16 -16
  11. package/lib/api/api/cluster.js +1 -1
  12. package/lib/api/api/cluster.js.map +1 -1
  13. package/lib/api/api/count.d.ts +1 -1
  14. package/lib/api/api/create.d.ts +1 -1
  15. package/lib/api/api/dangling_indices.d.ts +3 -3
  16. package/lib/api/api/delete.d.ts +1 -1
  17. package/lib/api/api/delete_by_query.d.ts +1 -1
  18. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  19. package/lib/api/api/delete_script.d.ts +1 -1
  20. package/lib/api/api/enrich.d.ts +5 -5
  21. package/lib/api/api/eql.d.ts +4 -4
  22. package/lib/api/api/exists.d.ts +1 -1
  23. package/lib/api/api/exists_source.d.ts +1 -1
  24. package/lib/api/api/explain.d.ts +1 -1
  25. package/lib/api/api/features.d.ts +2 -2
  26. package/lib/api/api/field_caps.d.ts +1 -1
  27. package/lib/api/api/fleet.d.ts +1 -1
  28. package/lib/api/api/get.d.ts +1 -1
  29. package/lib/api/api/get_script.d.ts +1 -1
  30. package/lib/api/api/get_script_context.d.ts +1 -1
  31. package/lib/api/api/get_script_languages.d.ts +1 -1
  32. package/lib/api/api/get_source.d.ts +1 -1
  33. package/lib/api/api/graph.d.ts +1 -1
  34. package/lib/api/api/health_report.d.ts +1 -1
  35. package/lib/api/api/ilm.d.ts +11 -11
  36. package/lib/api/api/index.d.ts +1 -1
  37. package/lib/api/api/indices.d.ts +58 -58
  38. package/lib/api/api/info.d.ts +1 -1
  39. package/lib/api/api/ingest.d.ts +6 -6
  40. package/lib/api/api/knn_search.d.ts +1 -1
  41. package/lib/api/api/license.d.ts +7 -7
  42. package/lib/api/api/logstash.d.ts +3 -3
  43. package/lib/api/api/mget.d.ts +1 -1
  44. package/lib/api/api/migration.d.ts +3 -3
  45. package/lib/api/api/ml.d.ts +73 -73
  46. package/lib/api/api/monitoring.d.ts +1 -1
  47. package/lib/api/api/msearch.d.ts +1 -1
  48. package/lib/api/api/msearch_template.d.ts +1 -1
  49. package/lib/api/api/mtermvectors.d.ts +1 -1
  50. package/lib/api/api/nodes.d.ts +7 -7
  51. package/lib/api/api/open_point_in_time.d.ts +1 -1
  52. package/lib/api/api/ping.d.ts +1 -1
  53. package/lib/api/api/put_script.d.ts +1 -1
  54. package/lib/api/api/query_ruleset.d.ts +39 -0
  55. package/lib/api/api/query_ruleset.js +116 -0
  56. package/lib/api/api/query_ruleset.js.map +1 -0
  57. package/lib/api/api/rank_eval.d.ts +1 -1
  58. package/lib/api/api/reindex.d.ts +1 -1
  59. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  60. package/lib/api/api/render_search_template.d.ts +1 -1
  61. package/lib/api/api/rollup.d.ts +8 -8
  62. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  63. package/lib/api/api/scroll.d.ts +1 -1
  64. package/lib/api/api/search.d.ts +1 -1
  65. package/lib/api/api/search_application.d.ts +9 -9
  66. package/lib/api/api/search_mvt.d.ts +1 -1
  67. package/lib/api/api/search_shards.d.ts +1 -1
  68. package/lib/api/api/search_template.d.ts +1 -1
  69. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  70. package/lib/api/api/security.d.ts +57 -57
  71. package/lib/api/api/slm.d.ts +9 -9
  72. package/lib/api/api/snapshot.d.ts +12 -12
  73. package/lib/api/api/sql.d.ts +6 -6
  74. package/lib/api/api/ssl.d.ts +1 -1
  75. package/lib/api/api/synonyms.d.ts +40 -12
  76. package/lib/api/api/synonyms.js +108 -11
  77. package/lib/api/api/synonyms.js.map +1 -1
  78. package/lib/api/api/tasks.d.ts +3 -3
  79. package/lib/api/api/terms_enum.d.ts +1 -1
  80. package/lib/api/api/termvectors.d.ts +1 -1
  81. package/lib/api/api/text_structure.d.ts +1 -1
  82. package/lib/api/api/transform.d.ts +11 -11
  83. package/lib/api/api/update.d.ts +1 -1
  84. package/lib/api/api/update_by_query.d.ts +1 -1
  85. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  86. package/lib/api/api/watcher.d.ts +13 -13
  87. package/lib/api/api/xpack.d.ts +2 -2
  88. package/lib/api/index.d.ts +4 -0
  89. package/lib/api/index.js +14 -2
  90. package/lib/api/index.js.map +1 -1
  91. package/lib/api/types.d.ts +235 -78
  92. package/lib/api/typesWithBodyKey.d.ts +244 -78
  93. package/package.json +3 -7
@@ -428,6 +428,7 @@ export interface HealthReportIndicators {
428
428
  repository_integrity?: HealthReportRepositoryIntegrityIndicator;
429
429
  ilm?: HealthReportIlmIndicator;
430
430
  slm?: HealthReportSlmIndicator;
431
+ shards_capacity?: HealthReportShardsCapacityIndicator;
431
432
  }
432
433
  export interface HealthReportMasterIsStableIndicator extends HealthReportBaseIndicator {
433
434
  details?: HealthReportMasterIsStableIndicatorDetails;
@@ -464,6 +465,7 @@ export interface HealthReportRequest extends RequestBase {
464
465
  export interface HealthReportResponse {
465
466
  cluster_name: string;
466
467
  indicators: HealthReportIndicators;
468
+ status?: HealthReportIndicatorHealthStatus;
467
469
  }
468
470
  export interface HealthReportShardsAvailabilityIndicator extends HealthReportBaseIndicator {
469
471
  details?: HealthReportShardsAvailabilityIndicatorDetails;
@@ -479,6 +481,17 @@ export interface HealthReportShardsAvailabilityIndicatorDetails {
479
481
  unassigned_primaries: long;
480
482
  unassigned_replicas: long;
481
483
  }
484
+ export interface HealthReportShardsCapacityIndicator extends HealthReportBaseIndicator {
485
+ details?: HealthReportShardsCapacityIndicatorDetails;
486
+ }
487
+ export interface HealthReportShardsCapacityIndicatorDetails {
488
+ data: HealthReportShardsCapacityIndicatorTierDetail;
489
+ frozen: HealthReportShardsCapacityIndicatorTierDetail;
490
+ }
491
+ export interface HealthReportShardsCapacityIndicatorTierDetail {
492
+ max_shards_in_cluster: integer;
493
+ current_used_shards?: integer;
494
+ }
482
495
  export interface HealthReportSlmIndicator extends HealthReportBaseIndicator {
483
496
  details?: HealthReportSlmIndicatorDetails;
484
497
  }
@@ -959,6 +972,7 @@ export interface SearchRequest extends RequestBase {
959
972
  _source_includes?: Fields;
960
973
  q?: string;
961
974
  aggregations?: Record<string, AggregationsAggregationContainer>;
975
+ /** @alias aggregations */
962
976
  aggs?: Record<string, AggregationsAggregationContainer>;
963
977
  collapse?: SearchFieldCollapse;
964
978
  explain?: boolean;
@@ -1668,6 +1682,7 @@ export interface SpecUtilsBaseNode {
1668
1682
  roles?: NodeRoles;
1669
1683
  transport_address: TransportAddress;
1670
1684
  }
1685
+ export type SpecUtilsPipeSeparatedFlags<T = unknown> = T | string;
1671
1686
  export type SpecUtilsStringified<T = unknown> = T | string;
1672
1687
  export interface AcknowledgedResponseBase {
1673
1688
  acknowledged: boolean;
@@ -1694,12 +1709,23 @@ export interface BulkStats {
1694
1709
  export type ByteSize = long | string;
1695
1710
  export type Bytes = 'b' | 'kb' | 'mb' | 'gb' | 'tb' | 'pb';
1696
1711
  export type CategoryId = string;
1712
+ export type ClusterAlias = string;
1713
+ export interface ClusterDetails {
1714
+ status: ClusterSearchStatus;
1715
+ indices: string;
1716
+ took?: DurationValue<UnitMillis>;
1717
+ timed_out: boolean;
1718
+ _shards?: ShardStatistics;
1719
+ failures?: ShardFailure[];
1720
+ }
1697
1721
  export type ClusterInfoTarget = '_all' | 'http' | 'ingest' | 'thread_pool' | 'script';
1698
1722
  export type ClusterInfoTargets = ClusterInfoTarget | ClusterInfoTarget[];
1723
+ export type ClusterSearchStatus = 'running' | 'successful' | 'partial' | 'skipped' | 'failed';
1699
1724
  export interface ClusterStatistics {
1700
1725
  skipped: integer;
1701
1726
  successful: integer;
1702
1727
  total: integer;
1728
+ details?: Record<ClusterAlias, ClusterDetails>;
1703
1729
  }
1704
1730
  export interface CompletionStats {
1705
1731
  size_in_bytes: long;
@@ -2491,11 +2517,19 @@ export interface AggregationsCompositeAggregation extends AggregationsBucketAggr
2491
2517
  size?: integer;
2492
2518
  sources?: Record<string, AggregationsCompositeAggregationSource>[];
2493
2519
  }
2520
+ export interface AggregationsCompositeAggregationBase {
2521
+ field?: Field;
2522
+ missing_bucket?: boolean;
2523
+ missing_order?: AggregationsMissingOrder;
2524
+ script?: Script;
2525
+ value_type?: AggregationsValueType;
2526
+ order?: SortOrder;
2527
+ }
2494
2528
  export interface AggregationsCompositeAggregationSource {
2495
- terms?: AggregationsTermsAggregation;
2496
- histogram?: AggregationsHistogramAggregation;
2497
- date_histogram?: AggregationsDateHistogramAggregation;
2498
- geotile_grid?: AggregationsGeoTileGridAggregation;
2529
+ terms?: AggregationsCompositeTermsAggregation;
2530
+ histogram?: AggregationsCompositeHistogramAggregation;
2531
+ date_histogram?: AggregationsCompositeDateHistogramAggregation;
2532
+ geotile_grid?: AggregationsCompositeGeoTileGridAggregation;
2499
2533
  }
2500
2534
  export interface AggregationsCompositeBucketKeys extends AggregationsMultiBucketBase {
2501
2535
  key: AggregationsCompositeAggregateKey;
@@ -2503,6 +2537,22 @@ export interface AggregationsCompositeBucketKeys extends AggregationsMultiBucket
2503
2537
  export type AggregationsCompositeBucket = AggregationsCompositeBucketKeys & {
2504
2538
  [property: string]: AggregationsAggregate | AggregationsCompositeAggregateKey | long;
2505
2539
  };
2540
+ export interface AggregationsCompositeDateHistogramAggregation extends AggregationsCompositeAggregationBase {
2541
+ format?: string;
2542
+ calendar_interval?: DurationLarge;
2543
+ fixed_interval?: DurationLarge;
2544
+ offset?: Duration;
2545
+ time_zone?: TimeZone;
2546
+ }
2547
+ export interface AggregationsCompositeGeoTileGridAggregation extends AggregationsCompositeAggregationBase {
2548
+ precision?: integer;
2549
+ bounds?: GeoBounds;
2550
+ }
2551
+ export interface AggregationsCompositeHistogramAggregation extends AggregationsCompositeAggregationBase {
2552
+ interval: double;
2553
+ }
2554
+ export interface AggregationsCompositeTermsAggregation extends AggregationsCompositeAggregationBase {
2555
+ }
2506
2556
  export interface AggregationsCumulativeCardinalityAggregate extends AggregationsAggregateBase {
2507
2557
  value: long;
2508
2558
  value_as_string?: string;
@@ -3481,7 +3531,7 @@ export interface AnalysisElisionTokenFilter extends AnalysisTokenFilterBase {
3481
3531
  type: 'elision';
3482
3532
  articles?: string[];
3483
3533
  articles_path?: string;
3484
- articles_case?: boolean;
3534
+ articles_case?: SpecUtilsStringified<boolean>;
3485
3535
  }
3486
3536
  export interface AnalysisFingerprintAnalyzer {
3487
3537
  type: 'fingerprint';
@@ -3699,11 +3749,11 @@ export interface AnalysisNoriTokenizer extends AnalysisTokenizerBase {
3699
3749
  export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNormalizer;
3700
3750
  export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
3701
3751
  type: 'path_hierarchy';
3702
- buffer_size: integer;
3752
+ buffer_size: SpecUtilsStringified<integer>;
3703
3753
  delimiter: string;
3704
3754
  replacement: string;
3705
- reverse: boolean;
3706
- skip: integer;
3755
+ reverse: SpecUtilsStringified<boolean>;
3756
+ skip: SpecUtilsStringified<integer>;
3707
3757
  }
3708
3758
  export interface AnalysisPatternAnalyzer {
3709
3759
  type: 'pattern';
@@ -3733,9 +3783,9 @@ export interface AnalysisPatternReplaceTokenFilter extends AnalysisTokenFilterBa
3733
3783
  }
3734
3784
  export interface AnalysisPatternTokenizer extends AnalysisTokenizerBase {
3735
3785
  type: 'pattern';
3736
- flags: string;
3737
- group: integer;
3738
- pattern: string;
3786
+ flags?: string;
3787
+ group?: integer;
3788
+ pattern?: string;
3739
3789
  }
3740
3790
  export type AnalysisPhoneticEncoder = 'metaphone' | 'double_metaphone' | 'soundex' | 'refined_soundex' | 'caverphone1' | 'caverphone2' | 'cologne' | 'nysiis' | 'koelnerphonetik' | 'haasephonetik' | 'beider_morse' | 'daitch_mokotoff';
3741
3791
  export type AnalysisPhoneticLanguage = 'any' | 'common' | 'cyrillic' | 'english' | 'french' | 'german' | 'hebrew' | 'hungarian' | 'polish' | 'romanian' | 'russian' | 'spanish';
@@ -4468,7 +4518,7 @@ export type QueryDslGeoDecayFunction = QueryDslGeoDecayFunctionKeys & {
4468
4518
  export interface QueryDslGeoDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<GeoLocation, Distance> {
4469
4519
  }
4470
4520
  export interface QueryDslGeoDistanceQueryKeys extends QueryDslQueryBase {
4471
- distance?: Distance;
4521
+ distance: Distance;
4472
4522
  distance_type?: GeoDistanceType;
4473
4523
  validation_method?: QueryDslGeoValidationMethod;
4474
4524
  }
@@ -4766,6 +4816,7 @@ export interface QueryDslQueryContainer {
4766
4816
  range?: Partial<Record<Field, QueryDslRangeQuery>>;
4767
4817
  rank_feature?: QueryDslRankFeatureQuery;
4768
4818
  regexp?: Partial<Record<Field, QueryDslRegexpQuery | string>>;
4819
+ rule_query?: QueryDslRuleQuery;
4769
4820
  script?: QueryDslScriptQuery;
4770
4821
  script_score?: QueryDslScriptScoreQuery;
4771
4822
  shape?: QueryDslShapeQuery;
@@ -4851,6 +4902,11 @@ export interface QueryDslRegexpQuery extends QueryDslQueryBase {
4851
4902
  rewrite?: MultiTermQueryRewrite;
4852
4903
  value: string;
4853
4904
  }
4905
+ export interface QueryDslRuleQuery extends QueryDslQueryBase {
4906
+ organic: QueryDslQueryContainer;
4907
+ ruleset_id: Id;
4908
+ match_criteria: any;
4909
+ }
4854
4910
  export interface QueryDslScriptQuery extends QueryDslQueryBase {
4855
4911
  script: Script;
4856
4912
  }
@@ -4873,8 +4929,8 @@ export interface QueryDslShapeQueryKeys extends QueryDslQueryBase {
4873
4929
  export type QueryDslShapeQuery = QueryDslShapeQueryKeys & {
4874
4930
  [property: string]: QueryDslShapeFieldQuery | boolean | float | string;
4875
4931
  };
4876
- export type QueryDslSimpleQueryStringFlag = 'NONE' | 'AND' | 'OR' | 'NOT' | 'PREFIX' | 'PHRASE' | 'PRECEDENCE' | 'ESCAPE' | 'WHITESPACE' | 'FUZZY' | 'NEAR' | 'SLOP' | 'ALL';
4877
- export type QueryDslSimpleQueryStringFlags = QueryDslSimpleQueryStringFlag | string;
4932
+ export type QueryDslSimpleQueryStringFlag = 'NONE' | 'AND' | 'NOT' | 'OR' | 'PREFIX' | 'PHRASE' | 'PRECEDENCE' | 'ESCAPE' | 'WHITESPACE' | 'FUZZY' | 'NEAR' | 'SLOP' | 'ALL';
4933
+ export type QueryDslSimpleQueryStringFlags = SpecUtilsPipeSeparatedFlags<QueryDslSimpleQueryStringFlag>;
4878
4934
  export interface QueryDslSimpleQueryStringQuery extends QueryDslQueryBase {
4879
4935
  analyzer?: string;
4880
4936
  analyze_wildcard?: boolean;
@@ -5006,6 +5062,8 @@ export interface AsyncSearchAsyncSearchResponseBase {
5006
5062
  expiration_time_in_millis: EpochTime<UnitMillis>;
5007
5063
  start_time?: DateTime;
5008
5064
  start_time_in_millis: EpochTime<UnitMillis>;
5065
+ completion_time?: DateTime;
5066
+ completion_time_in_millis?: EpochTime<UnitMillis>;
5009
5067
  }
5010
5068
  export interface AsyncSearchDeleteRequest extends RequestBase {
5011
5069
  id: Id;
@@ -5024,6 +5082,7 @@ export interface AsyncSearchStatusRequest extends RequestBase {
5024
5082
  export type AsyncSearchStatusResponse = AsyncSearchStatusStatusResponseBase;
5025
5083
  export interface AsyncSearchStatusStatusResponseBase extends AsyncSearchAsyncSearchResponseBase {
5026
5084
  _shards: ShardStatistics;
5085
+ _clusters?: ClusterStatistics;
5027
5086
  completion_status?: integer;
5028
5087
  }
5029
5088
  export interface AsyncSearchSubmitRequest extends RequestBase {
@@ -5061,6 +5120,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
5061
5120
  _source_includes?: Fields;
5062
5121
  q?: string;
5063
5122
  aggregations?: Record<string, AggregationsAggregationContainer>;
5123
+ /** @alias aggregations */
5064
5124
  aggs?: Record<string, AggregationsAggregationContainer>;
5065
5125
  collapse?: SearchFieldCollapse;
5066
5126
  explain?: boolean;
@@ -6654,7 +6714,7 @@ export interface CatTasksRequest extends CatCatRequestBase {
6654
6714
  actions?: string[];
6655
6715
  detailed?: boolean;
6656
6716
  node_id?: string[];
6657
- parent_task?: long;
6717
+ parent_task_id?: string;
6658
6718
  }
6659
6719
  export type CatTasksResponse = CatTasksTasksRecord[];
6660
6720
  export interface CatTasksTasksRecord {
@@ -7177,9 +7237,9 @@ export type ClusterExistsComponentTemplateResponse = boolean;
7177
7237
  export interface ClusterGetComponentTemplateRequest extends RequestBase {
7178
7238
  name?: Name;
7179
7239
  flat_settings?: boolean;
7240
+ include_defaults?: boolean;
7180
7241
  local?: boolean;
7181
7242
  master_timeout?: Duration;
7182
- include_defaults?: boolean;
7183
7243
  }
7184
7244
  export interface ClusterGetComponentTemplateResponse {
7185
7245
  component_templates: ClusterComponentTemplate[];
@@ -7283,10 +7343,10 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase {
7283
7343
  name: Name;
7284
7344
  create?: boolean;
7285
7345
  master_timeout?: Duration;
7346
+ allow_auto_create?: boolean;
7286
7347
  template: IndicesIndexState;
7287
7348
  version?: VersionNumber;
7288
7349
  _meta?: Metadata;
7289
- allow_auto_create?: boolean;
7290
7350
  }
7291
7351
  export type ClusterPutComponentTemplateResponse = AcknowledgedResponseBase;
7292
7352
  export interface ClusterPutSettingsRequest extends RequestBase {
@@ -7400,14 +7460,14 @@ export interface ClusterStateRequest extends RequestBase {
7400
7460
  }
7401
7461
  export type ClusterStateResponse = any;
7402
7462
  export interface ClusterStatsCharFilterTypes {
7403
- char_filter_types: ClusterStatsFieldTypes[];
7404
- tokenizer_types: ClusterStatsFieldTypes[];
7405
- filter_types: ClusterStatsFieldTypes[];
7406
7463
  analyzer_types: ClusterStatsFieldTypes[];
7464
+ built_in_analyzers: ClusterStatsFieldTypes[];
7407
7465
  built_in_char_filters: ClusterStatsFieldTypes[];
7408
- built_in_tokenizers: ClusterStatsFieldTypes[];
7409
7466
  built_in_filters: ClusterStatsFieldTypes[];
7410
- built_in_analyzers: ClusterStatsFieldTypes[];
7467
+ built_in_tokenizers: ClusterStatsFieldTypes[];
7468
+ char_filter_types: ClusterStatsFieldTypes[];
7469
+ filter_types: ClusterStatsFieldTypes[];
7470
+ tokenizer_types: ClusterStatsFieldTypes[];
7411
7471
  }
7412
7472
  export interface ClusterStatsClusterFileSystem {
7413
7473
  available_in_bytes: long;
@@ -7415,6 +7475,7 @@ export interface ClusterStatsClusterFileSystem {
7415
7475
  total_in_bytes: long;
7416
7476
  }
7417
7477
  export interface ClusterStatsClusterIndices {
7478
+ analysis: ClusterStatsCharFilterTypes;
7418
7479
  completion: CompletionStats;
7419
7480
  count: long;
7420
7481
  docs: DocStats;
@@ -7424,7 +7485,6 @@ export interface ClusterStatsClusterIndices {
7424
7485
  shards: ClusterStatsClusterIndicesShards;
7425
7486
  store: StoreStats;
7426
7487
  mappings: ClusterStatsFieldTypesMappings;
7427
- analysis: ClusterStatsCharFilterTypes;
7428
7488
  versions?: ClusterStatsIndicesVersions[];
7429
7489
  }
7430
7490
  export interface ClusterStatsClusterIndicesShards {
@@ -7468,23 +7528,24 @@ export interface ClusterStatsClusterNetworkTypes {
7468
7528
  export interface ClusterStatsClusterNodeCount {
7469
7529
  coordinating_only: integer;
7470
7530
  data: integer;
7471
- ingest: integer;
7472
- master: integer;
7473
- total: integer;
7474
- voting_only: integer;
7475
7531
  data_cold: integer;
7476
- data_frozen?: integer;
7477
7532
  data_content: integer;
7478
- data_warm: integer;
7533
+ data_frozen?: integer;
7479
7534
  data_hot: integer;
7535
+ data_warm: integer;
7536
+ ingest: integer;
7537
+ master: integer;
7480
7538
  ml: integer;
7481
7539
  remote_cluster_client: integer;
7540
+ total: integer;
7482
7541
  transform: integer;
7542
+ voting_only: integer;
7483
7543
  }
7484
7544
  export interface ClusterStatsClusterNodes {
7485
7545
  count: ClusterStatsClusterNodeCount;
7486
7546
  discovery_types: Record<string, integer>;
7487
7547
  fs: ClusterStatsClusterFileSystem;
7548
+ indexing_pressure: ClusterStatsIndexingPressure;
7488
7549
  ingest: ClusterStatsClusterIngest;
7489
7550
  jvm: ClusterStatsClusterJvm;
7490
7551
  network_types: ClusterStatsClusterNetworkTypes;
@@ -7493,19 +7554,18 @@ export interface ClusterStatsClusterNodes {
7493
7554
  plugins: PluginStats[];
7494
7555
  process: ClusterStatsClusterProcess;
7495
7556
  versions: VersionString[];
7496
- indexing_pressure: ClusterStatsIndexingPressure;
7497
7557
  }
7498
7558
  export interface ClusterStatsClusterOperatingSystem {
7499
7559
  allocated_processors: integer;
7560
+ architectures?: ClusterStatsClusterOperatingSystemArchitecture[];
7500
7561
  available_processors: integer;
7501
7562
  mem: ClusterStatsOperatingSystemMemoryInfo;
7502
7563
  names: ClusterStatsClusterOperatingSystemName[];
7503
7564
  pretty_names: ClusterStatsClusterOperatingSystemPrettyName[];
7504
- architectures?: ClusterStatsClusterOperatingSystemArchitecture[];
7505
7565
  }
7506
7566
  export interface ClusterStatsClusterOperatingSystemArchitecture {
7507
- count: integer;
7508
7567
  arch: string;
7568
+ count: integer;
7509
7569
  }
7510
7570
  export interface ClusterStatsClusterOperatingSystemName {
7511
7571
  count: integer;
@@ -7560,8 +7620,8 @@ export interface ClusterStatsIndexingPressure {
7560
7620
  memory: ClusterStatsIndexingPressureMemory;
7561
7621
  }
7562
7622
  export interface ClusterStatsIndexingPressureMemory {
7563
- limit_in_bytes: long;
7564
7623
  current: ClusterStatsIndexingPressureMemorySummary;
7624
+ limit_in_bytes: long;
7565
7625
  total: ClusterStatsIndexingPressureMemorySummary;
7566
7626
  }
7567
7627
  export interface ClusterStatsIndexingPressureMemorySummary {
@@ -7586,12 +7646,12 @@ export interface ClusterStatsNodePackagingType {
7586
7646
  type: string;
7587
7647
  }
7588
7648
  export interface ClusterStatsOperatingSystemMemoryInfo {
7649
+ adjusted_total_in_bytes?: long;
7589
7650
  free_in_bytes: long;
7590
7651
  free_percent: integer;
7591
7652
  total_in_bytes: long;
7592
7653
  used_in_bytes: long;
7593
7654
  used_percent: integer;
7594
- adjusted_total_in_bytes?: long;
7595
7655
  }
7596
7656
  export interface ClusterStatsRequest extends RequestBase {
7597
7657
  node_id?: NodeIds;
@@ -7600,20 +7660,20 @@ export interface ClusterStatsRequest extends RequestBase {
7600
7660
  }
7601
7661
  export type ClusterStatsResponse = ClusterStatsStatsResponseBase;
7602
7662
  export interface ClusterStatsRuntimeFieldTypes {
7603
- name: Name;
7663
+ chars_max: integer;
7664
+ chars_total: integer;
7604
7665
  count: integer;
7666
+ doc_max: integer;
7667
+ doc_total: integer;
7605
7668
  index_count: integer;
7606
- scriptless_count: integer;
7607
- shadowed_count: integer;
7608
7669
  lang: string[];
7609
7670
  lines_max: integer;
7610
7671
  lines_total: integer;
7611
- chars_max: integer;
7612
- chars_total: integer;
7672
+ name: Name;
7673
+ scriptless_count: integer;
7674
+ shadowed_count: integer;
7613
7675
  source_max: integer;
7614
7676
  source_total: integer;
7615
- doc_max: integer;
7616
- doc_total: integer;
7617
7677
  }
7618
7678
  export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase {
7619
7679
  cluster_name: Name;
@@ -7859,6 +7919,7 @@ export interface FleetSearchRequest extends RequestBase {
7859
7919
  wait_for_checkpoints?: FleetCheckpoint[];
7860
7920
  allow_partial_search_results?: boolean;
7861
7921
  aggregations?: Record<string, AggregationsAggregationContainer>;
7922
+ /** @alias aggregations */
7862
7923
  aggs?: Record<string, AggregationsAggregationContainer>;
7863
7924
  collapse?: SearchFieldCollapse;
7864
7925
  explain?: boolean;
@@ -8137,19 +8198,19 @@ export interface IndicesDataLifecycleWithRollover {
8137
8198
  rollover?: IndicesDlmRolloverConditions;
8138
8199
  }
8139
8200
  export interface IndicesDataStream {
8140
- name: DataStreamName;
8141
- timestamp_field: IndicesDataStreamTimestampField;
8142
- indices: IndicesDataStreamIndex[];
8201
+ _meta?: Metadata;
8202
+ allow_custom_routing?: boolean;
8143
8203
  generation: integer;
8144
- template: Name;
8145
8204
  hidden: boolean;
8146
- replicated?: boolean;
8147
- system?: boolean;
8148
- status: HealthStatus;
8149
8205
  ilm_policy?: Name;
8150
- _meta?: Metadata;
8151
- allow_custom_routing?: boolean;
8206
+ indices: IndicesDataStreamIndex[];
8152
8207
  lifecycle?: IndicesDataLifecycleWithRollover;
8208
+ name: DataStreamName;
8209
+ replicated?: boolean;
8210
+ status: HealthStatus;
8211
+ system?: boolean;
8212
+ template: Name;
8213
+ timestamp_field: IndicesDataStreamTimestampField;
8153
8214
  }
8154
8215
  export interface IndicesDataStreamIndex {
8155
8216
  index_name: IndexName;
@@ -8646,9 +8707,9 @@ export type IndicesCreateDataStreamResponse = AcknowledgedResponseBase;
8646
8707
  export interface IndicesDataStreamsStatsDataStreamsStatsItem {
8647
8708
  backing_indices: integer;
8648
8709
  data_stream: Name;
8710
+ maximum_timestamp: EpochTime<UnitMillis>;
8649
8711
  store_size?: ByteSize;
8650
8712
  store_size_bytes: integer;
8651
- maximum_timestamp: EpochTime<UnitMillis>;
8652
8713
  }
8653
8714
  export interface IndicesDataStreamsStatsRequest extends RequestBase {
8654
8715
  name?: IndexName;
@@ -8658,9 +8719,9 @@ export interface IndicesDataStreamsStatsResponse {
8658
8719
  _shards: ShardStatistics;
8659
8720
  backing_indices: integer;
8660
8721
  data_stream_count: integer;
8722
+ data_streams: IndicesDataStreamsStatsDataStreamsStatsItem[];
8661
8723
  total_store_sizes?: ByteSize;
8662
8724
  total_store_size_bytes: integer;
8663
- data_streams: IndicesDataStreamsStatsDataStreamsStatsItem[];
8664
8725
  }
8665
8726
  export interface IndicesDeleteRequest extends RequestBase {
8666
8727
  index: Indices;
@@ -8953,8 +9014,8 @@ export interface IndicesModifyDataStreamAction {
8953
9014
  remove_backing_index?: IndicesModifyDataStreamIndexAndDataStreamAction;
8954
9015
  }
8955
9016
  export interface IndicesModifyDataStreamIndexAndDataStreamAction {
8956
- index: IndexName;
8957
9017
  data_stream: DataStreamName;
9018
+ index: IndexName;
8958
9019
  }
8959
9020
  export interface IndicesModifyDataStreamRequest extends RequestBase {
8960
9021
  actions: IndicesModifyDataStreamAction[];
@@ -9169,16 +9230,17 @@ export interface IndicesReloadSearchAnalyzersReloadDetails {
9169
9230
  reloaded_analyzers: string[];
9170
9231
  reloaded_node_ids: string[];
9171
9232
  }
9233
+ export interface IndicesReloadSearchAnalyzersReloadResult {
9234
+ reload_details: IndicesReloadSearchAnalyzersReloadDetails[];
9235
+ _shards: ShardStatistics;
9236
+ }
9172
9237
  export interface IndicesReloadSearchAnalyzersRequest extends RequestBase {
9173
9238
  index: Indices;
9174
9239
  allow_no_indices?: boolean;
9175
9240
  expand_wildcards?: ExpandWildcards;
9176
9241
  ignore_unavailable?: boolean;
9177
9242
  }
9178
- export interface IndicesReloadSearchAnalyzersResponse {
9179
- reload_details: IndicesReloadSearchAnalyzersReloadDetails[];
9180
- _shards: ShardStatistics;
9181
- }
9243
+ export type IndicesReloadSearchAnalyzersResponse = IndicesReloadSearchAnalyzersReloadResult;
9182
9244
  export interface IndicesResolveIndexRequest extends RequestBase {
9183
9245
  name: Names;
9184
9246
  expand_wildcards?: ExpandWildcards;
@@ -10622,6 +10684,7 @@ export interface MlDiscoveryNode {
10622
10684
  }
10623
10685
  export type MlExcludeFrequent = 'all' | 'none' | 'by' | 'over';
10624
10686
  export interface MlFillMaskInferenceOptions {
10687
+ mask_token?: string;
10625
10688
  num_top_classes?: integer;
10626
10689
  tokenization?: MlTokenizationConfigContainer;
10627
10690
  results_field?: string;
@@ -11793,6 +11856,7 @@ export interface MlPutDatafeedRequest extends RequestBase {
11793
11856
  delayed_data_check_config?: MlDelayedDataCheckConfig;
11794
11857
  frequency?: Duration;
11795
11858
  indices?: Indices;
11859
+ /** @alias indices */
11796
11860
  indexes?: Indices;
11797
11861
  indices_options?: IndicesOptions;
11798
11862
  job_id?: Id;
@@ -12078,6 +12142,7 @@ export interface MlUpdateDatafeedRequest extends RequestBase {
12078
12142
  delayed_data_check_config?: MlDelayedDataCheckConfig;
12079
12143
  frequency?: Duration;
12080
12144
  indices?: string[];
12145
+ /** @alias indices */
12081
12146
  indexes?: string[];
12082
12147
  indices_options?: IndicesOptions;
12083
12148
  job_id?: Id;
@@ -12989,6 +13054,54 @@ export interface NodesUsageResponseBase extends NodesNodesResponseBase {
12989
13054
  cluster_name: Name;
12990
13055
  nodes: Record<string, NodesUsageNodeUsage>;
12991
13056
  }
13057
+ export interface QueryRulesetQueryRule {
13058
+ rule_id: Id;
13059
+ type: QueryRulesetQueryRuleType;
13060
+ criteria: QueryRulesetQueryRuleCriteria[];
13061
+ actions: QueryRulesetQueryRuleActions;
13062
+ }
13063
+ export interface QueryRulesetQueryRuleActions {
13064
+ ids?: Id[];
13065
+ docs?: QueryDslPinnedDoc[];
13066
+ }
13067
+ export interface QueryRulesetQueryRuleCriteria {
13068
+ type: QueryRulesetQueryRuleCriteriaType;
13069
+ metadata: string;
13070
+ values?: any[];
13071
+ }
13072
+ export type QueryRulesetQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte';
13073
+ export type QueryRulesetQueryRuleType = 'pinned';
13074
+ export interface QueryRulesetQueryRuleset {
13075
+ ruleset_id: Id;
13076
+ rules: QueryRulesetQueryRule[];
13077
+ }
13078
+ export interface QueryRulesetDeleteRequest extends RequestBase {
13079
+ ruleset_id: Id;
13080
+ }
13081
+ export type QueryRulesetDeleteResponse = AcknowledgedResponseBase;
13082
+ export interface QueryRulesetGetRequest extends RequestBase {
13083
+ ruleset_id: Id;
13084
+ }
13085
+ export type QueryRulesetGetResponse = QueryRulesetQueryRuleset;
13086
+ export interface QueryRulesetListQueryRulesetListItem {
13087
+ ruleset_id: Id;
13088
+ rules_count: integer;
13089
+ }
13090
+ export interface QueryRulesetListRequest extends RequestBase {
13091
+ from?: integer;
13092
+ size?: integer;
13093
+ }
13094
+ export interface QueryRulesetListResponse {
13095
+ count: long;
13096
+ results: QueryRulesetListQueryRulesetListItem[];
13097
+ }
13098
+ export interface QueryRulesetPutRequest extends RequestBase {
13099
+ ruleset_id: Id;
13100
+ rules: QueryRulesetQueryRule[];
13101
+ }
13102
+ export interface QueryRulesetPutResponse {
13103
+ result: Result;
13104
+ }
12992
13105
  export interface RollupDateHistogramGrouping {
12993
13106
  delay?: Duration;
12994
13107
  field: Field;
@@ -13116,6 +13229,7 @@ export interface RollupRollupSearchRequest extends RequestBase {
13116
13229
  rest_total_hits_as_int?: boolean;
13117
13230
  typed_keys?: boolean;
13118
13231
  aggregations?: Record<string, AggregationsAggregationContainer>;
13232
+ /** @alias aggregations */
13119
13233
  aggs?: Record<string, AggregationsAggregationContainer>;
13120
13234
  query?: QueryDslQueryContainer;
13121
13235
  size?: integer;
@@ -14468,6 +14582,68 @@ export interface SslCertificatesCertificateInformation {
14468
14582
  export interface SslCertificatesRequest extends RequestBase {
14469
14583
  }
14470
14584
  export type SslCertificatesResponse = SslCertificatesCertificateInformation[];
14585
+ export interface SynonymsSynonymRule {
14586
+ id?: Id;
14587
+ synonyms: SynonymsSynonymString;
14588
+ }
14589
+ export interface SynonymsSynonymRuleRead {
14590
+ id: Id;
14591
+ synonyms: SynonymsSynonymString;
14592
+ }
14593
+ export type SynonymsSynonymString = string;
14594
+ export interface SynonymsSynonymsUpdateResult {
14595
+ result: Result;
14596
+ reload_analyzers_details: IndicesReloadSearchAnalyzersReloadResult;
14597
+ }
14598
+ export interface SynonymsDeleteSynonymRequest extends RequestBase {
14599
+ id: Id;
14600
+ }
14601
+ export type SynonymsDeleteSynonymResponse = AcknowledgedResponseBase;
14602
+ export interface SynonymsDeleteSynonymRuleRequest extends RequestBase {
14603
+ set_id: Id;
14604
+ rule_id: Id;
14605
+ }
14606
+ export type SynonymsDeleteSynonymRuleResponse = SynonymsSynonymsUpdateResult;
14607
+ export interface SynonymsGetSynonymRequest extends RequestBase {
14608
+ id: Id;
14609
+ from?: integer;
14610
+ size?: integer;
14611
+ }
14612
+ export interface SynonymsGetSynonymResponse {
14613
+ count: integer;
14614
+ synonyms_set: SynonymsSynonymRuleRead[];
14615
+ }
14616
+ export interface SynonymsGetSynonymRuleRequest extends RequestBase {
14617
+ set_id: Id;
14618
+ rule_id: Id;
14619
+ }
14620
+ export type SynonymsGetSynonymRuleResponse = SynonymsSynonymRuleRead;
14621
+ export interface SynonymsGetSynonymsSetsRequest extends RequestBase {
14622
+ from?: integer;
14623
+ size?: integer;
14624
+ }
14625
+ export interface SynonymsGetSynonymsSetsResponse {
14626
+ count: integer;
14627
+ results: SynonymsGetSynonymsSetsSynonymsSetItem[];
14628
+ }
14629
+ export interface SynonymsGetSynonymsSetsSynonymsSetItem {
14630
+ synonyms_set: Id;
14631
+ count: integer;
14632
+ }
14633
+ export interface SynonymsPutSynonymRequest extends RequestBase {
14634
+ id: Id;
14635
+ synonyms_set: SynonymsSynonymRule[];
14636
+ }
14637
+ export interface SynonymsPutSynonymResponse {
14638
+ result: Result;
14639
+ reload_analyzers_details: IndicesReloadSearchAnalyzersReloadDetails;
14640
+ }
14641
+ export interface SynonymsPutSynonymRuleRequest extends RequestBase {
14642
+ set_id: Id;
14643
+ rule_id: Id;
14644
+ synonyms: SynonymsSynonymString[];
14645
+ }
14646
+ export type SynonymsPutSynonymRuleResponse = SynonymsSynonymsUpdateResult;
14471
14647
  export type TasksGroupBy = 'nodes' | 'parents' | 'none';
14472
14648
  export interface TasksNodeTasks {
14473
14649
  name?: NodeId;
@@ -14492,7 +14668,7 @@ export interface TasksTaskInfo {
14492
14668
  running_time?: Duration;
14493
14669
  running_time_in_nanos: DurationValue<UnitNanos>;
14494
14670
  start_time_in_millis: EpochTime<UnitMillis>;
14495
- status?: TasksTaskStatus;
14671
+ status?: any;
14496
14672
  type: string;
14497
14673
  parent_task_id?: TaskId;
14498
14674
  }
@@ -14503,25 +14679,6 @@ export interface TasksTaskListResponseBase {
14503
14679
  nodes?: Record<string, TasksNodeTasks>;
14504
14680
  tasks?: TasksTaskInfos;
14505
14681
  }
14506
- export interface TasksTaskStatus {
14507
- batches: long;
14508
- canceled?: string;
14509
- created: long;
14510
- deleted: long;
14511
- noops: long;
14512
- failures?: string[];
14513
- requests_per_second: float;
14514
- retries: Retries;
14515
- throttled?: Duration;
14516
- throttled_millis: DurationValue<UnitMillis>;
14517
- throttled_until?: Duration;
14518
- throttled_until_millis: DurationValue<UnitMillis>;
14519
- timed_out?: boolean;
14520
- took?: DurationValue<UnitMillis>;
14521
- total: long;
14522
- updated: long;
14523
- version_conflicts: long;
14524
- }
14525
14682
  export interface TasksCancelRequest extends RequestBase {
14526
14683
  task_id?: TaskId;
14527
14684
  actions?: string | string[];
@@ -14538,7 +14695,7 @@ export interface TasksGetRequest extends RequestBase {
14538
14695
  export interface TasksGetResponse {
14539
14696
  completed: boolean;
14540
14697
  task: TasksTaskInfo;
14541
- response?: TasksTaskStatus;
14698
+ response?: any;
14542
14699
  error?: ErrorCause;
14543
14700
  }
14544
14701
  export interface TasksListRequest extends RequestBase {