@elastic/elasticsearch 8.12.2 → 8.13.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 (100) hide show
  1. package/README.md +19 -0
  2. package/catalog-info.yaml +4 -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/count.d.ts +1 -1
  12. package/lib/api/api/create.d.ts +1 -1
  13. package/lib/api/api/dangling_indices.d.ts +3 -3
  14. package/lib/api/api/delete.d.ts +1 -1
  15. package/lib/api/api/delete_by_query.d.ts +1 -1
  16. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  17. package/lib/api/api/delete_script.d.ts +1 -1
  18. package/lib/api/api/enrich.d.ts +5 -5
  19. package/lib/api/api/eql.d.ts +4 -4
  20. package/lib/api/api/esql.d.ts +1 -1
  21. package/lib/api/api/exists.d.ts +1 -1
  22. package/lib/api/api/exists_source.d.ts +1 -1
  23. package/lib/api/api/explain.d.ts +1 -1
  24. package/lib/api/api/features.d.ts +2 -2
  25. package/lib/api/api/field_caps.d.ts +1 -1
  26. package/lib/api/api/fleet.d.ts +1 -1
  27. package/lib/api/api/get.d.ts +1 -1
  28. package/lib/api/api/get_script.d.ts +1 -1
  29. package/lib/api/api/get_script_context.d.ts +1 -1
  30. package/lib/api/api/get_script_languages.d.ts +1 -1
  31. package/lib/api/api/get_source.d.ts +1 -1
  32. package/lib/api/api/graph.d.ts +1 -1
  33. package/lib/api/api/health_report.d.ts +1 -1
  34. package/lib/api/api/ilm.d.ts +11 -11
  35. package/lib/api/api/index.d.ts +1 -1
  36. package/lib/api/api/indices.d.ts +65 -58
  37. package/lib/api/api/indices.js +17 -0
  38. package/lib/api/api/indices.js.map +1 -1
  39. package/lib/api/api/inference.d.ts +4 -4
  40. package/lib/api/api/inference.js +44 -12
  41. package/lib/api/api/inference.js.map +1 -1
  42. package/lib/api/api/info.d.ts +1 -1
  43. package/lib/api/api/ingest.d.ts +6 -6
  44. package/lib/api/api/knn_search.d.ts +1 -1
  45. package/lib/api/api/license.d.ts +7 -7
  46. package/lib/api/api/logstash.d.ts +3 -3
  47. package/lib/api/api/mget.d.ts +1 -1
  48. package/lib/api/api/migration.d.ts +3 -3
  49. package/lib/api/api/ml.d.ts +73 -73
  50. package/lib/api/api/ml.js +1 -1
  51. package/lib/api/api/ml.js.map +1 -1
  52. package/lib/api/api/monitoring.d.ts +1 -1
  53. package/lib/api/api/msearch.d.ts +1 -1
  54. package/lib/api/api/msearch_template.d.ts +1 -1
  55. package/lib/api/api/mtermvectors.d.ts +1 -1
  56. package/lib/api/api/nodes.d.ts +7 -7
  57. package/lib/api/api/open_point_in_time.d.ts +1 -1
  58. package/lib/api/api/ping.d.ts +1 -1
  59. package/lib/api/api/put_script.d.ts +1 -1
  60. package/lib/api/api/query_ruleset.d.ts +4 -4
  61. package/lib/api/api/rank_eval.d.ts +1 -1
  62. package/lib/api/api/reindex.d.ts +1 -1
  63. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  64. package/lib/api/api/render_search_template.d.ts +1 -1
  65. package/lib/api/api/rollup.d.ts +8 -8
  66. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  67. package/lib/api/api/scroll.d.ts +1 -1
  68. package/lib/api/api/search.d.ts +1 -1
  69. package/lib/api/api/search_application.d.ts +9 -9
  70. package/lib/api/api/search_mvt.d.ts +1 -1
  71. package/lib/api/api/search_shards.d.ts +1 -1
  72. package/lib/api/api/search_template.d.ts +1 -1
  73. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  74. package/lib/api/api/security.d.ts +59 -59
  75. package/lib/api/api/security.js +1 -1
  76. package/lib/api/api/security.js.map +1 -1
  77. package/lib/api/api/slm.d.ts +9 -9
  78. package/lib/api/api/snapshot.d.ts +12 -12
  79. package/lib/api/api/snapshot.js +4 -11
  80. package/lib/api/api/snapshot.js.map +1 -1
  81. package/lib/api/api/sql.d.ts +6 -6
  82. package/lib/api/api/ssl.d.ts +1 -1
  83. package/lib/api/api/synonyms.d.ts +7 -7
  84. package/lib/api/api/tasks.d.ts +3 -3
  85. package/lib/api/api/terms_enum.d.ts +1 -1
  86. package/lib/api/api/termvectors.d.ts +1 -1
  87. package/lib/api/api/text_structure.d.ts +8 -1
  88. package/lib/api/api/text_structure.js +31 -0
  89. package/lib/api/api/text_structure.js.map +1 -1
  90. package/lib/api/api/transform.d.ts +11 -11
  91. package/lib/api/api/update.d.ts +1 -1
  92. package/lib/api/api/update_by_query.d.ts +2 -2
  93. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  94. package/lib/api/api/watcher.d.ts +13 -13
  95. package/lib/api/api/xpack.d.ts +2 -2
  96. package/lib/api/types.d.ts +238 -65
  97. package/lib/api/typesWithBodyKey.d.ts +243 -69
  98. package/lib/client.js +27 -2
  99. package/lib/client.js.map +1 -1
  100. package/package.json +4 -4
@@ -286,6 +286,7 @@ export interface FieldCapsRequest extends RequestBase {
286
286
  include_unmapped?: boolean;
287
287
  filters?: string;
288
288
  types?: string[];
289
+ include_empty_fields?: boolean;
289
290
  fields?: Fields;
290
291
  index_filter?: QueryDslQueryContainer;
291
292
  runtime_mappings?: MappingRuntimeFields;
@@ -1244,7 +1245,7 @@ export interface SearchInnerHits {
1244
1245
  fields?: Fields;
1245
1246
  sort?: Sort;
1246
1247
  _source?: SearchSourceConfig;
1247
- stored_field?: Fields;
1248
+ stored_fields?: Fields;
1248
1249
  track_scores?: boolean;
1249
1250
  version?: boolean;
1250
1251
  }
@@ -1770,6 +1771,12 @@ export interface ElasticsearchVersionInfo {
1770
1771
  minimum_wire_compatibility_version: VersionString;
1771
1772
  number: string;
1772
1773
  }
1774
+ export interface ElasticsearchVersionMinInfo {
1775
+ build_flavor: string;
1776
+ minimum_index_compatibility_version: VersionString;
1777
+ minimum_wire_compatibility_version: VersionString;
1778
+ number: string;
1779
+ }
1773
1780
  export interface EmptyObject {
1774
1781
  }
1775
1782
  export type EpochTime<Unit = unknown> = Unit;
@@ -1908,7 +1915,7 @@ export interface InlineGetKeys<TDocument = unknown> {
1908
1915
  _seq_no?: SequenceNumber;
1909
1916
  _primary_term?: long;
1910
1917
  _routing?: Routing;
1911
- _source: TDocument;
1918
+ _source?: TDocument;
1912
1919
  }
1913
1920
  export type InlineGet<TDocument = unknown> = InlineGetKeys<TDocument> & {
1914
1921
  [property: string]: any;
@@ -1928,6 +1935,7 @@ export interface KnnQuery {
1928
1935
  boost?: float;
1929
1936
  filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
1930
1937
  similarity?: float;
1938
+ inner_hits?: SearchInnerHits;
1931
1939
  }
1932
1940
  export interface LatLonGeoLocation {
1933
1941
  lat: double;
@@ -4052,7 +4060,7 @@ export interface MappingDenseVectorIndexOptions {
4052
4060
  }
4053
4061
  export interface MappingDenseVectorProperty extends MappingPropertyBase {
4054
4062
  type: 'dense_vector';
4055
- dims: integer;
4063
+ dims?: integer;
4056
4064
  similarity?: string;
4057
4065
  index?: boolean;
4058
4066
  index_options?: MappingDenseVectorIndexOptions;
@@ -4138,6 +4146,9 @@ export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
4138
4146
  ignore_malformed?: boolean;
4139
4147
  ignore_z_value?: boolean;
4140
4148
  null_value?: GeoLocation;
4149
+ index?: boolean;
4150
+ on_script_error?: MappingOnScriptError;
4151
+ script?: Script;
4141
4152
  type: 'geo_point';
4142
4153
  }
4143
4154
  export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
@@ -4233,6 +4244,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
4233
4244
  }
4234
4245
  export interface MappingObjectProperty extends MappingCorePropertyBase {
4235
4246
  enabled?: boolean;
4247
+ subobjects?: boolean;
4236
4248
  type?: 'object';
4237
4249
  }
4238
4250
  export type MappingOnScriptError = 'fail' | 'continue';
@@ -4263,6 +4275,7 @@ export interface MappingRankFeatureProperty extends MappingPropertyBase {
4263
4275
  type: 'rank_feature';
4264
4276
  }
4265
4277
  export interface MappingRankFeaturesProperty extends MappingPropertyBase {
4278
+ positive_score_impact?: boolean;
4266
4279
  type: 'rank_features';
4267
4280
  }
4268
4281
  export interface MappingRoutingField {
@@ -4378,6 +4391,7 @@ export interface MappingTypeMapping {
4378
4391
  _source?: MappingSourceField;
4379
4392
  runtime?: Record<string, MappingRuntimeField>;
4380
4393
  enabled?: boolean;
4394
+ subobjects?: boolean;
4381
4395
  _data_stream_timestamp?: MappingDataStreamTimestamp;
4382
4396
  }
4383
4397
  export interface MappingUnsignedLongNumberProperty extends MappingNumberPropertyBase {
@@ -4809,6 +4823,7 @@ export interface QueryDslQueryContainer {
4809
4823
  has_parent?: QueryDslHasParentQuery;
4810
4824
  ids?: QueryDslIdsQuery;
4811
4825
  intervals?: Partial<Record<Field, QueryDslIntervalsQuery>>;
4826
+ knn?: KnnQuery;
4812
4827
  match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
4813
4828
  match_all?: QueryDslMatchAllQuery;
4814
4829
  match_bool_prefix?: Partial<Record<Field, QueryDslMatchBoolPrefixQuery | string>>;
@@ -4844,6 +4859,7 @@ export interface QueryDslQueryContainer {
4844
4859
  terms?: QueryDslTermsQuery;
4845
4860
  terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>;
4846
4861
  text_expansion?: Partial<Record<Field, QueryDslTextExpansionQuery>>;
4862
+ weighted_tokens?: Partial<Record<Field, QueryDslWeightedTokensQuery>>;
4847
4863
  wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
4848
4864
  wrapper?: QueryDslWrapperQuery;
4849
4865
  type?: QueryDslTypeQuery;
@@ -5030,11 +5046,21 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
5030
5046
  export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
5031
5047
  model_id: string;
5032
5048
  model_text: string;
5049
+ pruning_config?: QueryDslTokenPruningConfig;
5033
5050
  }
5034
5051
  export type QueryDslTextQueryType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix';
5052
+ export interface QueryDslTokenPruningConfig {
5053
+ tokens_freq_ratio_threshold?: integer;
5054
+ tokens_weight_threshold?: float;
5055
+ only_score_pruned_tokens?: boolean;
5056
+ }
5035
5057
  export interface QueryDslTypeQuery extends QueryDslQueryBase {
5036
5058
  value: string;
5037
5059
  }
5060
+ export interface QueryDslWeightedTokensQuery extends QueryDslQueryBase {
5061
+ tokens: Record<string, float>;
5062
+ pruning_config?: QueryDslTokenPruningConfig;
5063
+ }
5038
5064
  export interface QueryDslWildcardQuery extends QueryDslQueryBase {
5039
5065
  case_insensitive?: boolean;
5040
5066
  rewrite?: MultiTermQueryRewrite;
@@ -7722,7 +7748,7 @@ export interface EnrichPolicy {
7722
7748
  enrich_fields: Fields;
7723
7749
  indices: Indices;
7724
7750
  match_field: Field;
7725
- query?: string;
7751
+ query?: QueryDslQueryContainer;
7726
7752
  name?: Name;
7727
7753
  elasticsearch_version?: string;
7728
7754
  }
@@ -7743,7 +7769,7 @@ export interface EnrichExecutePolicyRequest extends RequestBase {
7743
7769
  wait_for_completion?: boolean;
7744
7770
  }
7745
7771
  export interface EnrichExecutePolicyResponse {
7746
- status: EnrichExecutePolicyExecuteEnrichPolicyStatus;
7772
+ status?: EnrichExecutePolicyExecuteEnrichPolicyStatus;
7747
7773
  task_id?: TaskId;
7748
7774
  }
7749
7775
  export interface EnrichGetPolicyRequest extends RequestBase {
@@ -8367,7 +8393,7 @@ export interface IndicesIndexSettingsKeys {
8367
8393
  settings?: IndicesIndexSettings;
8368
8394
  time_series?: IndicesIndexSettingsTimeSeries;
8369
8395
  queries?: IndicesQueries;
8370
- similarity?: IndicesSettingsSimilarity;
8396
+ similarity?: Record<string, IndicesSettingsSimilarity>;
8371
8397
  mapping?: IndicesMappingLimitSettings;
8372
8398
  'indexing.slowlog'?: IndicesIndexingSlowlogSettings;
8373
8399
  indexing_pressure?: IndicesIndexingPressure;
@@ -8510,48 +8536,44 @@ export interface IndicesSettingsSearch {
8510
8536
  idle?: IndicesSearchIdle;
8511
8537
  slowlog?: IndicesSlowlogSettings;
8512
8538
  }
8513
- export interface IndicesSettingsSimilarity {
8514
- bm25?: IndicesSettingsSimilarityBm25;
8515
- dfi?: IndicesSettingsSimilarityDfi;
8516
- dfr?: IndicesSettingsSimilarityDfr;
8517
- ib?: IndicesSettingsSimilarityIb;
8518
- lmd?: IndicesSettingsSimilarityLmd;
8519
- lmj?: IndicesSettingsSimilarityLmj;
8520
- scripted_tfidf?: IndicesSettingsSimilarityScriptedTfidf;
8521
- }
8539
+ export type IndicesSettingsSimilarity = IndicesSettingsSimilarityBm25 | IndicesSettingsSimilarityBoolean | IndicesSettingsSimilarityDfi | IndicesSettingsSimilarityDfr | IndicesSettingsSimilarityIb | IndicesSettingsSimilarityLmd | IndicesSettingsSimilarityLmj | IndicesSettingsSimilarityScripted;
8522
8540
  export interface IndicesSettingsSimilarityBm25 {
8523
- b: double;
8524
- discount_overlaps: boolean;
8525
- k1: double;
8526
8541
  type: 'BM25';
8542
+ b?: double;
8543
+ discount_overlaps?: boolean;
8544
+ k1?: double;
8545
+ }
8546
+ export interface IndicesSettingsSimilarityBoolean {
8547
+ type: 'boolean';
8527
8548
  }
8528
8549
  export interface IndicesSettingsSimilarityDfi {
8529
- independence_measure: DFIIndependenceMeasure;
8530
8550
  type: 'DFI';
8551
+ independence_measure: DFIIndependenceMeasure;
8531
8552
  }
8532
8553
  export interface IndicesSettingsSimilarityDfr {
8554
+ type: 'DFR';
8533
8555
  after_effect: DFRAfterEffect;
8534
8556
  basic_model: DFRBasicModel;
8535
8557
  normalization: Normalization;
8536
- type: 'DFR';
8537
8558
  }
8538
8559
  export interface IndicesSettingsSimilarityIb {
8560
+ type: 'IB';
8539
8561
  distribution: IBDistribution;
8540
8562
  lambda: IBLambda;
8541
8563
  normalization: Normalization;
8542
- type: 'IB';
8543
8564
  }
8544
8565
  export interface IndicesSettingsSimilarityLmd {
8545
- mu: integer;
8546
8566
  type: 'LMDirichlet';
8567
+ mu?: double;
8547
8568
  }
8548
8569
  export interface IndicesSettingsSimilarityLmj {
8549
- lambda: double;
8550
8570
  type: 'LMJelinekMercer';
8571
+ lambda?: double;
8551
8572
  }
8552
- export interface IndicesSettingsSimilarityScriptedTfidf {
8553
- script: Script;
8573
+ export interface IndicesSettingsSimilarityScripted {
8554
8574
  type: 'scripted';
8575
+ script: Script;
8576
+ weight_script?: Script;
8555
8577
  }
8556
8578
  export interface IndicesSlowlogSettings {
8557
8579
  level?: string;
@@ -8743,7 +8765,7 @@ export interface IndicesDataStreamsStatsDataStreamsStatsItem {
8743
8765
  data_stream: Name;
8744
8766
  maximum_timestamp: EpochTime<UnitMillis>;
8745
8767
  store_size?: ByteSize;
8746
- store_size_bytes: integer;
8768
+ store_size_bytes: long;
8747
8769
  }
8748
8770
  export interface IndicesDataStreamsStatsRequest extends RequestBase {
8749
8771
  name?: IndexName;
@@ -8755,7 +8777,7 @@ export interface IndicesDataStreamsStatsResponse {
8755
8777
  data_stream_count: integer;
8756
8778
  data_streams: IndicesDataStreamsStatsDataStreamsStatsItem[];
8757
8779
  total_store_sizes?: ByteSize;
8758
- total_store_size_bytes: integer;
8780
+ total_store_size_bytes: long;
8759
8781
  }
8760
8782
  export interface IndicesDeleteRequest extends RequestBase {
8761
8783
  index: Indices;
@@ -9276,6 +9298,21 @@ export interface IndicesReloadSearchAnalyzersRequest extends RequestBase {
9276
9298
  ignore_unavailable?: boolean;
9277
9299
  }
9278
9300
  export type IndicesReloadSearchAnalyzersResponse = IndicesReloadSearchAnalyzersReloadResult;
9301
+ export interface IndicesResolveClusterRequest extends RequestBase {
9302
+ name: Names;
9303
+ allow_no_indices?: boolean;
9304
+ expand_wildcards?: ExpandWildcards;
9305
+ ignore_throttled?: boolean;
9306
+ ignore_unavailable?: boolean;
9307
+ }
9308
+ export interface IndicesResolveClusterResolveClusterInfo {
9309
+ connected: boolean;
9310
+ skip_unavailable: boolean;
9311
+ matching_indices?: boolean;
9312
+ error?: string;
9313
+ version?: ElasticsearchVersionMinInfo;
9314
+ }
9315
+ export type IndicesResolveClusterResponse = Record<ClusterAlias, IndicesResolveClusterResolveClusterInfo>;
9279
9316
  export interface IndicesResolveIndexRequest extends RequestBase {
9280
9317
  name: Names;
9281
9318
  expand_wildcards?: ExpandWildcards;
@@ -9688,8 +9725,10 @@ export interface IndicesValidateQueryResponse {
9688
9725
  valid: boolean;
9689
9726
  error?: string;
9690
9727
  }
9728
+ export type InferenceDenseByteVector = byte[];
9691
9729
  export type InferenceDenseVector = float[];
9692
9730
  export interface InferenceInferenceResult {
9731
+ text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
9693
9732
  text_embedding?: InferenceTextEmbeddingResult[];
9694
9733
  sparse_embedding?: InferenceSparseEmbeddingResult[];
9695
9734
  }
@@ -9709,31 +9748,34 @@ export interface InferenceSparseEmbeddingResult {
9709
9748
  export type InferenceSparseVector = Record<string, float>;
9710
9749
  export type InferenceTaskSettings = any;
9711
9750
  export type InferenceTaskType = 'sparse_embedding' | 'text_embedding';
9751
+ export interface InferenceTextEmbeddingByteResult {
9752
+ embedding: InferenceDenseByteVector;
9753
+ }
9712
9754
  export interface InferenceTextEmbeddingResult {
9713
9755
  embedding: InferenceDenseVector;
9714
9756
  }
9715
9757
  export interface InferenceDeleteModelRequest extends RequestBase {
9716
- task_type: InferenceTaskType;
9717
- model_id: Id;
9758
+ task_type?: InferenceTaskType;
9759
+ inference_id: Id;
9718
9760
  }
9719
9761
  export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
9720
9762
  export interface InferenceGetModelRequest extends RequestBase {
9721
- task_type: InferenceTaskType;
9722
- model_id: Id;
9763
+ task_type?: InferenceTaskType;
9764
+ inference_id: Id;
9723
9765
  }
9724
9766
  export interface InferenceGetModelResponse {
9725
9767
  models: InferenceModelConfigContainer[];
9726
9768
  }
9727
9769
  export interface InferenceInferenceRequest extends RequestBase {
9728
- task_type: InferenceTaskType;
9729
- model_id: Id;
9770
+ task_type?: InferenceTaskType;
9771
+ inference_id: Id;
9730
9772
  input: string | string[];
9731
9773
  task_settings?: InferenceTaskSettings;
9732
9774
  }
9733
9775
  export type InferenceInferenceResponse = InferenceInferenceResult;
9734
9776
  export interface InferencePutModelRequest extends RequestBase {
9735
- task_type: InferenceTaskType;
9736
- model_id: Id;
9777
+ task_type?: InferenceTaskType;
9778
+ inference_id: Id;
9737
9779
  model_config?: InferenceModelConfig;
9738
9780
  }
9739
9781
  export type InferencePutModelResponse = InferenceModelConfigContainer;
@@ -9749,6 +9791,7 @@ export interface IngestAttachmentProcessor extends IngestProcessorBase {
9749
9791
  indexed_chars_field?: Field;
9750
9792
  properties?: string[];
9751
9793
  target_field?: Field;
9794
+ remove_binary?: boolean;
9752
9795
  resource_name?: string;
9753
9796
  }
9754
9797
  export interface IngestBytesProcessor extends IngestProcessorBase {
@@ -9903,7 +9946,7 @@ export interface IngestPipeline {
9903
9946
  on_failure?: IngestProcessorContainer[];
9904
9947
  processors?: IngestProcessorContainer[];
9905
9948
  version?: VersionNumber;
9906
- _meta: Metadata;
9949
+ _meta?: Metadata;
9907
9950
  }
9908
9951
  export interface IngestPipelineConfig {
9909
9952
  description?: string;
@@ -9943,7 +9986,7 @@ export interface IngestProcessorContainer {
9943
9986
  remove?: IngestRemoveProcessor;
9944
9987
  rename?: IngestRenameProcessor;
9945
9988
  reroute?: IngestRerouteProcessor;
9946
- script?: Script;
9989
+ script?: IngestScriptProcessor;
9947
9990
  set?: IngestSetProcessor;
9948
9991
  sort?: IngestSortProcessor;
9949
9992
  split?: IngestSplitProcessor;
@@ -9972,6 +10015,12 @@ export interface IngestRerouteProcessor extends IngestProcessorBase {
9972
10015
  dataset?: string | string[];
9973
10016
  namespace?: string | string[];
9974
10017
  }
10018
+ export interface IngestScriptProcessor extends IngestProcessorBase {
10019
+ id?: Id;
10020
+ lang?: string;
10021
+ params?: Record<string, any>;
10022
+ source?: string;
10023
+ }
9975
10024
  export interface IngestSetProcessor extends IngestProcessorBase {
9976
10025
  copy_from?: Field;
9977
10026
  field: Field;
@@ -11207,6 +11256,7 @@ export interface MlTrainedModelConfig {
11207
11256
  metadata?: MlTrainedModelConfigMetadata;
11208
11257
  model_size_bytes?: ByteSize;
11209
11258
  location?: MlTrainedModelLocation;
11259
+ prefix_strings?: MlTrainedModelPrefixStrings;
11210
11260
  }
11211
11261
  export interface MlTrainedModelConfigInput {
11212
11262
  field_names: Field[];
@@ -11282,6 +11332,10 @@ export interface MlTrainedModelLocation {
11282
11332
  export interface MlTrainedModelLocationIndex {
11283
11333
  name: IndexName;
11284
11334
  }
11335
+ export interface MlTrainedModelPrefixStrings {
11336
+ ingest?: string;
11337
+ search?: string;
11338
+ }
11285
11339
  export interface MlTrainedModelSizeStats {
11286
11340
  model_size_bytes: ByteSize;
11287
11341
  required_native_memory_bytes: integer;
@@ -12073,6 +12127,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
12073
12127
  model_size_bytes?: long;
12074
12128
  platform_architecture?: string;
12075
12129
  tags?: string[];
12130
+ prefix_strings?: MlTrainedModelPrefixStrings;
12076
12131
  }
12077
12132
  export type MlPutTrainedModelResponse = MlTrainedModelConfig;
12078
12133
  export interface MlPutTrainedModelTargetMeanEncodingPreprocessor {
@@ -12840,9 +12895,14 @@ export interface NodesInfoNodeInfoBootstrap {
12840
12895
  export interface NodesInfoNodeInfoClient {
12841
12896
  type: string;
12842
12897
  }
12843
- export interface NodesInfoNodeInfoDiscover {
12844
- seed_hosts: string;
12898
+ export interface NodesInfoNodeInfoDiscoverKeys {
12899
+ seed_hosts?: string[];
12900
+ type?: string;
12901
+ seed_providers?: string[];
12845
12902
  }
12903
+ export type NodesInfoNodeInfoDiscover = NodesInfoNodeInfoDiscoverKeys & {
12904
+ [property: string]: any;
12905
+ };
12846
12906
  export interface NodesInfoNodeInfoHttp {
12847
12907
  bound_address: string[];
12848
12908
  max_content_length?: ByteSize;
@@ -12897,9 +12957,9 @@ export interface NodesInfoNodeInfoOSCPU {
12897
12957
  vendor: string;
12898
12958
  }
12899
12959
  export interface NodesInfoNodeInfoPath {
12900
- logs: string;
12901
- home: string;
12902
- repo: string[];
12960
+ logs?: string;
12961
+ home?: string;
12962
+ repo?: string[];
12903
12963
  data?: string[];
12904
12964
  }
12905
12965
  export interface NodesInfoNodeInfoRepositories {
@@ -12921,7 +12981,7 @@ export interface NodesInfoNodeInfoSearchRemote {
12921
12981
  export interface NodesInfoNodeInfoSettings {
12922
12982
  cluster: NodesInfoNodeInfoSettingsCluster;
12923
12983
  node: NodesInfoNodeInfoSettingsNode;
12924
- path: NodesInfoNodeInfoPath;
12984
+ path?: NodesInfoNodeInfoPath;
12925
12985
  repositories?: NodesInfoNodeInfoRepositories;
12926
12986
  discovery?: NodesInfoNodeInfoDiscover;
12927
12987
  action?: NodesInfoNodeInfoAction;
@@ -12939,7 +12999,7 @@ export interface NodesInfoNodeInfoSettingsCluster {
12939
12999
  name: Name;
12940
13000
  routing?: IndicesIndexRouting;
12941
13001
  election: NodesInfoNodeInfoSettingsClusterElection;
12942
- initial_master_nodes?: string;
13002
+ initial_master_nodes?: string[];
12943
13003
  deprecation_indexing?: NodesInfoDeprecationIndexing;
12944
13004
  }
12945
13005
  export interface NodesInfoNodeInfoSettingsClusterElection {
@@ -13539,7 +13599,7 @@ export interface SecurityRoleDescriptor {
13539
13599
  applications?: SecurityApplicationPrivileges[];
13540
13600
  metadata?: Metadata;
13541
13601
  run_as?: string[];
13542
- transient_metadata?: SecurityTransientMetadataConfig;
13602
+ transient_metadata?: Record<string, any>;
13543
13603
  }
13544
13604
  export interface SecurityRoleDescriptorRead {
13545
13605
  cluster: string[];
@@ -13549,7 +13609,7 @@ export interface SecurityRoleDescriptorRead {
13549
13609
  applications?: SecurityApplicationPrivileges[];
13550
13610
  metadata?: Metadata;
13551
13611
  run_as?: string[];
13552
- transient_metadata?: SecurityTransientMetadataConfig;
13612
+ transient_metadata?: Record<string, any>;
13553
13613
  }
13554
13614
  export interface SecurityRoleMapping {
13555
13615
  enabled: boolean;
@@ -13579,9 +13639,6 @@ export interface SecurityRoleTemplateQuery {
13579
13639
  }
13580
13640
  export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId;
13581
13641
  export type SecurityTemplateFormat = 'string' | 'json';
13582
- export interface SecurityTransientMetadataConfig {
13583
- enabled: boolean;
13584
- }
13585
13642
  export interface SecurityUser {
13586
13643
  email?: string | null;
13587
13644
  full_name?: Name | null;
@@ -13840,7 +13897,7 @@ export interface SecurityGetRoleRole {
13840
13897
  indices: SecurityIndicesPrivileges[];
13841
13898
  metadata: Metadata;
13842
13899
  run_as: string[];
13843
- transient_metadata: SecurityTransientMetadataConfig;
13900
+ transient_metadata?: Record<string, any>;
13844
13901
  applications: SecurityApplicationPrivileges[];
13845
13902
  role_templates?: SecurityRoleTemplate[];
13846
13903
  global?: Record<string, Record<string, Record<string, string[]>>>;
@@ -14046,7 +14103,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
14046
14103
  indices?: SecurityIndicesPrivileges[];
14047
14104
  metadata?: Metadata;
14048
14105
  run_as?: string[];
14049
- transient_metadata?: SecurityTransientMetadataConfig;
14106
+ transient_metadata?: Record<string, any>;
14050
14107
  }
14051
14108
  export interface SecurityPutRoleResponse {
14052
14109
  role: SecurityCreatedStatus;
@@ -14079,9 +14136,46 @@ export interface SecurityPutUserRequest extends RequestBase {
14079
14136
  export interface SecurityPutUserResponse {
14080
14137
  created: boolean;
14081
14138
  }
14139
+ export type SecurityQueryApiKeysAPIKeyAggregate = AggregationsCardinalityAggregate | AggregationsValueCountAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsFilterAggregate | AggregationsFiltersAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsCompositeAggregate;
14140
+ export interface SecurityQueryApiKeysAPIKeyAggregationContainer {
14141
+ aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
14142
+ aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
14143
+ meta?: Metadata;
14144
+ cardinality?: AggregationsCardinalityAggregation;
14145
+ composite?: AggregationsCompositeAggregation;
14146
+ date_range?: AggregationsDateRangeAggregation;
14147
+ filter?: SecurityQueryApiKeysAPIKeyQueryContainer;
14148
+ filters?: SecurityQueryApiKeysAPIKeyFiltersAggregation;
14149
+ missing?: AggregationsMissingAggregation;
14150
+ range?: AggregationsRangeAggregation;
14151
+ terms?: AggregationsTermsAggregation;
14152
+ value_count?: AggregationsValueCountAggregation;
14153
+ }
14154
+ export interface SecurityQueryApiKeysAPIKeyFiltersAggregation extends AggregationsBucketAggregationBase {
14155
+ filters?: AggregationsBuckets<SecurityQueryApiKeysAPIKeyQueryContainer>;
14156
+ other_bucket?: boolean;
14157
+ other_bucket_key?: string;
14158
+ keyed?: boolean;
14159
+ }
14160
+ export interface SecurityQueryApiKeysAPIKeyQueryContainer {
14161
+ bool?: QueryDslBoolQuery;
14162
+ exists?: QueryDslExistsQuery;
14163
+ ids?: QueryDslIdsQuery;
14164
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
14165
+ match_all?: QueryDslMatchAllQuery;
14166
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
14167
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
14168
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
14169
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
14170
+ terms?: QueryDslTermsQuery;
14171
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
14172
+ }
14082
14173
  export interface SecurityQueryApiKeysRequest extends RequestBase {
14083
14174
  with_limited_by?: boolean;
14084
- query?: QueryDslQueryContainer;
14175
+ aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
14176
+ /** @alias aggregations */
14177
+ aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
14178
+ query?: SecurityQueryApiKeysAPIKeyQueryContainer;
14085
14179
  from?: integer;
14086
14180
  sort?: Sort;
14087
14181
  size?: integer;
@@ -14091,6 +14185,7 @@ export interface SecurityQueryApiKeysResponse {
14091
14185
  total: integer;
14092
14186
  count: integer;
14093
14187
  api_keys: SecurityApiKey[];
14188
+ aggregations?: Record<AggregateName, SecurityQueryApiKeysAPIKeyAggregate>;
14094
14189
  }
14095
14190
  export interface SecuritySamlAuthenticateRequest extends RequestBase {
14096
14191
  content: string;
@@ -14338,10 +14433,32 @@ export type SlmStartResponse = AcknowledgedResponseBase;
14338
14433
  export interface SlmStopRequest extends RequestBase {
14339
14434
  }
14340
14435
  export type SlmStopResponse = AcknowledgedResponseBase;
14436
+ export interface SnapshotAzureRepository extends SnapshotRepositoryBase {
14437
+ type: 'azure';
14438
+ settings: SnapshotAzureRepositorySettings;
14439
+ }
14440
+ export interface SnapshotAzureRepositorySettings extends SnapshotRepositorySettingsBase {
14441
+ client?: string;
14442
+ container?: string;
14443
+ base_path?: string;
14444
+ readonly?: boolean;
14445
+ location_mode?: string;
14446
+ }
14341
14447
  export interface SnapshotFileCountSnapshotStats {
14342
14448
  file_count: integer;
14343
14449
  size_in_bytes: long;
14344
14450
  }
14451
+ export interface SnapshotGcsRepository extends SnapshotRepositoryBase {
14452
+ type: 'gcs';
14453
+ settings: SnapshotGcsRepositorySettings;
14454
+ }
14455
+ export interface SnapshotGcsRepositorySettings extends SnapshotRepositorySettingsBase {
14456
+ bucket: string;
14457
+ client?: string;
14458
+ base_path?: string;
14459
+ readonly?: boolean;
14460
+ application_name?: string;
14461
+ }
14345
14462
  export interface SnapshotIndexDetails {
14346
14463
  shard_count: integer;
14347
14464
  size?: ByteSize;
@@ -14352,18 +14469,39 @@ export interface SnapshotInfoFeatureState {
14352
14469
  feature_name: string;
14353
14470
  indices: Indices;
14354
14471
  }
14355
- export interface SnapshotRepository {
14356
- type: string;
14472
+ export interface SnapshotReadOnlyUrlRepository extends SnapshotRepositoryBase {
14473
+ type: 'url';
14474
+ settings: SnapshotReadOnlyUrlRepositorySettings;
14475
+ }
14476
+ export interface SnapshotReadOnlyUrlRepositorySettings extends SnapshotRepositorySettingsBase {
14477
+ http_max_retries?: integer;
14478
+ http_socket_timeout?: Duration;
14479
+ max_number_of_snapshots?: integer;
14480
+ url: string;
14481
+ }
14482
+ export type SnapshotRepository = SnapshotAzureRepository | SnapshotGcsRepository | SnapshotS3Repository | SnapshotSharedFileSystemRepository | SnapshotReadOnlyUrlRepository | SnapshotSourceOnlyRepository;
14483
+ export interface SnapshotRepositoryBase {
14357
14484
  uuid?: Uuid;
14358
- settings: SnapshotRepositorySettings;
14359
14485
  }
14360
- export interface SnapshotRepositorySettings {
14361
- chunk_size?: string;
14362
- compress?: string | boolean;
14363
- concurrent_streams?: string | integer;
14364
- location: string;
14365
- read_only?: string | boolean;
14366
- readonly?: string | boolean;
14486
+ export interface SnapshotRepositorySettingsBase {
14487
+ chunk_size?: ByteSize;
14488
+ compress?: boolean;
14489
+ max_restore_bytes_per_sec?: ByteSize;
14490
+ max_snapshot_bytes_per_sec?: ByteSize;
14491
+ }
14492
+ export interface SnapshotS3Repository extends SnapshotRepositoryBase {
14493
+ type: 's3';
14494
+ settings: SnapshotS3RepositorySettings;
14495
+ }
14496
+ export interface SnapshotS3RepositorySettings extends SnapshotRepositorySettingsBase {
14497
+ bucket: string;
14498
+ client?: string;
14499
+ base_path?: string;
14500
+ readonly?: boolean;
14501
+ server_side_encryption?: boolean;
14502
+ buffer_size?: ByteSize;
14503
+ canned_acl?: string;
14504
+ storage_class?: string;
14367
14505
  }
14368
14506
  export interface SnapshotShardsStats {
14369
14507
  done: long;
@@ -14385,6 +14523,15 @@ export interface SnapshotShardsStatsSummaryItem {
14385
14523
  file_count: long;
14386
14524
  size_in_bytes: long;
14387
14525
  }
14526
+ export interface SnapshotSharedFileSystemRepository extends SnapshotRepositoryBase {
14527
+ type: 'fs';
14528
+ settings: SnapshotSharedFileSystemRepositorySettings;
14529
+ }
14530
+ export interface SnapshotSharedFileSystemRepositorySettings extends SnapshotRepositorySettingsBase {
14531
+ location: string;
14532
+ max_number_of_snapshots?: integer;
14533
+ readonly?: boolean;
14534
+ }
14388
14535
  export interface SnapshotSnapshotIndexStats {
14389
14536
  shards: Record<string, SnapshotSnapshotShardsStatus>;
14390
14537
  shards_stats: SnapshotShardsStats;
@@ -14432,6 +14579,16 @@ export interface SnapshotSnapshotStats {
14432
14579
  time_in_millis: DurationValue<UnitMillis>;
14433
14580
  total: SnapshotFileCountSnapshotStats;
14434
14581
  }
14582
+ export interface SnapshotSourceOnlyRepository extends SnapshotRepositoryBase {
14583
+ type: 'source';
14584
+ settings: SnapshotSourceOnlyRepositorySettings;
14585
+ }
14586
+ export interface SnapshotSourceOnlyRepositorySettings extends SnapshotRepositorySettingsBase {
14587
+ delegate_type?: string;
14588
+ max_number_of_snapshots?: integer;
14589
+ read_only?: boolean;
14590
+ readonly?: boolean;
14591
+ }
14435
14592
  export interface SnapshotStatus {
14436
14593
  include_global_state: boolean;
14437
14594
  indices: Record<string, SnapshotSnapshotIndexStats>;
@@ -14485,8 +14642,6 @@ export interface SnapshotCreateRepositoryRequest extends RequestBase {
14485
14642
  timeout?: Duration;
14486
14643
  verify?: boolean;
14487
14644
  repository?: SnapshotRepository;
14488
- type: string;
14489
- settings: SnapshotRepositorySettings;
14490
14645
  }
14491
14646
  export type SnapshotCreateRepositoryResponse = AcknowledgedResponseBase;
14492
14647
  export interface SnapshotDeleteRequest extends RequestBase {
@@ -14733,7 +14888,7 @@ export interface SynonymsPutSynonymResponse {
14733
14888
  export interface SynonymsPutSynonymRuleRequest extends RequestBase {
14734
14889
  set_id: Id;
14735
14890
  rule_id: Id;
14736
- synonyms: SynonymsSynonymString[];
14891
+ synonyms: SynonymsSynonymString;
14737
14892
  }
14738
14893
  export type SynonymsPutSynonymRuleResponse = SynonymsSynonymsUpdateResult;
14739
14894
  export type TasksGroupBy = 'nodes' | 'parents' | 'none';
@@ -14816,6 +14971,7 @@ export interface TextStructureFindStructureRequest<TJsonDocument = unknown> {
14816
14971
  charset?: string;
14817
14972
  column_names?: string;
14818
14973
  delimiter?: string;
14974
+ ecs_compatibility?: string;
14819
14975
  explain?: boolean;
14820
14976
  format?: string;
14821
14977
  grok_pattern?: string;
@@ -14857,6 +15013,23 @@ export interface TextStructureFindStructureTopHit {
14857
15013
  count: long;
14858
15014
  value: any;
14859
15015
  }
15016
+ export interface TextStructureTestGrokPatternMatchedField {
15017
+ match: string;
15018
+ offset: integer;
15019
+ length: integer;
15020
+ }
15021
+ export interface TextStructureTestGrokPatternMatchedText {
15022
+ matched: boolean;
15023
+ fields?: Record<string, TextStructureTestGrokPatternMatchedField[]>;
15024
+ }
15025
+ export interface TextStructureTestGrokPatternRequest extends RequestBase {
15026
+ ecs_compatibility?: string;
15027
+ grok_pattern: string;
15028
+ text: string[];
15029
+ }
15030
+ export interface TextStructureTestGrokPatternResponse {
15031
+ matches: TextStructureTestGrokPatternMatchedText[];
15032
+ }
14860
15033
  export interface TransformDestination {
14861
15034
  index?: IndexName;
14862
15035
  pipeline?: string;