@elastic/elasticsearch 8.1.0 → 8.2.0-patch.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.
@@ -192,7 +192,7 @@ export interface DeleteByQueryRethrottleRequest extends RequestBase {
192
192
  task_id: Id;
193
193
  requests_per_second?: long;
194
194
  }
195
- export declare type DeleteByQueryRethrottleResponse = TasksListResponse;
195
+ export declare type DeleteByQueryRethrottleResponse = TasksTaskListResponseBase;
196
196
  export interface DeleteScriptRequest extends RequestBase {
197
197
  id: Id;
198
198
  master_timeout?: Time;
@@ -283,6 +283,8 @@ export interface FieldCapsRequest extends RequestBase {
283
283
  fields: Fields;
284
284
  ignore_unavailable?: boolean;
285
285
  include_unmapped?: boolean;
286
+ filters?: string;
287
+ types?: string[];
286
288
  index_filter?: QueryDslQueryContainer;
287
289
  runtime_mappings?: MappingRuntimeFields;
288
290
  }
@@ -401,6 +403,7 @@ export interface KnnSearchRequest extends RequestBase {
401
403
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
402
404
  stored_fields?: Fields;
403
405
  fields?: Fields;
406
+ filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
404
407
  knn: KnnSearchQuery;
405
408
  }
406
409
  export interface KnnSearchResponse<TDocument = unknown> {
@@ -558,6 +561,7 @@ export interface MtermvectorsTermVectorsResult {
558
561
  export interface OpenPointInTimeRequest extends RequestBase {
559
562
  index: Indices;
560
563
  keep_alive: Time;
564
+ ignore_unavailable?: boolean;
561
565
  }
562
566
  export interface OpenPointInTimeResponse {
563
567
  id: Id;
@@ -926,12 +930,13 @@ export interface SearchCompletionSuggestOption<TDocument = unknown> {
926
930
  collate_match?: boolean;
927
931
  contexts?: Record<string, SearchContext[]>;
928
932
  fields?: Record<string, any>;
929
- _id: string;
930
- _index: IndexName;
933
+ _id?: string;
934
+ _index?: IndexName;
931
935
  _routing?: Routing;
932
936
  _score?: double;
933
937
  _source?: TDocument;
934
938
  text: string;
939
+ score?: double;
935
940
  }
936
941
  export interface SearchCompletionSuggester extends SearchSuggesterBase {
937
942
  contexts?: Record<Field, SearchCompletionContext | SearchContext | (SearchCompletionContext | SearchContext)[]>;
@@ -983,9 +988,9 @@ export interface SearchFieldCollapse {
983
988
  export interface SearchFieldSuggester {
984
989
  completion?: SearchCompletionSuggester;
985
990
  phrase?: SearchPhraseSuggester;
991
+ term?: SearchTermSuggester;
986
992
  prefix?: string;
987
993
  regex?: string;
988
- term?: SearchTermSuggester;
989
994
  text?: string;
990
995
  }
991
996
  export interface SearchHighlight {
@@ -2098,6 +2103,7 @@ export interface AggregationsAggregationContainer {
2098
2103
  geohash_grid?: AggregationsGeoHashGridAggregation;
2099
2104
  geo_line?: AggregationsGeoLineAggregation;
2100
2105
  geotile_grid?: AggregationsGeoTileGridAggregation;
2106
+ geohex_grid?: AggregationsGeohexGridAggregation;
2101
2107
  global?: AggregationsGlobalAggregation;
2102
2108
  histogram?: AggregationsHistogramAggregation;
2103
2109
  ip_range?: AggregationsIpRangeAggregation;
@@ -2265,13 +2271,6 @@ export declare type AggregationsChildrenAggregate = AggregationsChildrenAggregat
2265
2271
  export interface AggregationsChildrenAggregation extends AggregationsBucketAggregationBase {
2266
2272
  type?: RelationName;
2267
2273
  }
2268
- export interface AggregationsClassificationInferenceOptions {
2269
- num_top_classes?: integer;
2270
- num_top_feature_importance_values?: integer;
2271
- prediction_field_type?: string;
2272
- results_field?: string;
2273
- top_classes_results_field?: string;
2274
- }
2275
2274
  export interface AggregationsCompositeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsCompositeBucket> {
2276
2275
  after_key?: Record<string, any>;
2277
2276
  }
@@ -2497,6 +2496,13 @@ export interface AggregationsGeoTileGridBucketKeys extends AggregationsMultiBuck
2497
2496
  export declare type AggregationsGeoTileGridBucket = AggregationsGeoTileGridBucketKeys & {
2498
2497
  [property: string]: AggregationsAggregate | GeoTile | long;
2499
2498
  };
2499
+ export interface AggregationsGeohexGridAggregation extends AggregationsBucketAggregationBase {
2500
+ field: Field;
2501
+ precision?: integer;
2502
+ bounds?: GeoBounds;
2503
+ size?: integer;
2504
+ shard_size?: integer;
2505
+ }
2500
2506
  export interface AggregationsGlobalAggregateKeys extends AggregationsSingleBucketAggregateBase {
2501
2507
  }
2502
2508
  export declare type AggregationsGlobalAggregate = AggregationsGlobalAggregateKeys & {
@@ -2579,8 +2585,8 @@ export interface AggregationsInferenceClassImportance {
2579
2585
  importance: double;
2580
2586
  }
2581
2587
  export interface AggregationsInferenceConfigContainer {
2582
- regression?: AggregationsRegressionInferenceOptions;
2583
- classification?: AggregationsClassificationInferenceOptions;
2588
+ regression?: MlRegressionInferenceOptions;
2589
+ classification?: MlClassificationInferenceOptions;
2584
2590
  }
2585
2591
  export interface AggregationsInferenceFeatureImportance {
2586
2592
  feature_name: string;
@@ -2815,10 +2821,6 @@ export interface AggregationsRateAggregation extends AggregationsFormatMetricAgg
2815
2821
  mode?: AggregationsRateMode;
2816
2822
  }
2817
2823
  export declare type AggregationsRateMode = 'sum' | 'value_count';
2818
- export interface AggregationsRegressionInferenceOptions {
2819
- results_field?: Field;
2820
- num_top_feature_importance_values?: integer;
2821
- }
2822
2824
  export interface AggregationsReverseNestedAggregateKeys extends AggregationsSingleBucketAggregateBase {
2823
2825
  }
2824
2826
  export declare type AggregationsReverseNestedAggregate = AggregationsReverseNestedAggregateKeys & {
@@ -2876,7 +2878,8 @@ export interface AggregationsSignificantTermsAggregation extends AggregationsBuc
2876
2878
  execution_hint?: AggregationsTermsAggregationExecutionHint;
2877
2879
  field?: Field;
2878
2880
  gnd?: AggregationsGoogleNormalizedDistanceHeuristic;
2879
- include?: string | string[];
2881
+ include?: AggregationsTermsInclude;
2882
+ jlh?: EmptyObject;
2880
2883
  min_doc_count?: long;
2881
2884
  mutual_information?: AggregationsMutualInformationHeuristic;
2882
2885
  percentage?: AggregationsPercentageScoreHeuristic;
@@ -2898,6 +2901,7 @@ export interface AggregationsSignificantTextAggregation extends AggregationsBuck
2898
2901
  filter_duplicate_text?: boolean;
2899
2902
  gnd?: AggregationsGoogleNormalizedDistanceHeuristic;
2900
2903
  include?: string | string[];
2904
+ jlh?: EmptyObject;
2901
2905
  min_doc_count?: long;
2902
2906
  mutual_information?: AggregationsMutualInformationHeuristic;
2903
2907
  percentage?: AggregationsPercentageScoreHeuristic;
@@ -3677,7 +3681,7 @@ export interface MappingConstantKeywordProperty extends MappingPropertyBase {
3677
3681
  value?: any;
3678
3682
  type: 'constant_keyword';
3679
3683
  }
3680
- export declare type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty;
3684
+ export declare type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty | MappingMatchOnlyTextProperty;
3681
3685
  export interface MappingCorePropertyBase extends MappingPropertyBase {
3682
3686
  copy_to?: Fields;
3683
3687
  similarity?: string;
@@ -3722,7 +3726,7 @@ export interface MappingDenseVectorProperty extends MappingPropertyBase {
3722
3726
  index?: boolean;
3723
3727
  index_options?: MappingDenseVectorIndexOptions;
3724
3728
  }
3725
- export declare type MappingDocValuesProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDateProperty | MappingDateNanosProperty | MappingKeywordProperty | MappingNumberProperty | MappingRangeProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingCompletionProperty | MappingGenericProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingShapeProperty | MappingTokenCountProperty | MappingVersionProperty | MappingWildcardProperty | MappingPointProperty;
3729
+ export declare type MappingDocValuesProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDateProperty | MappingDateNanosProperty | MappingKeywordProperty | MappingNumberProperty | MappingRangeProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingCompletionProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingShapeProperty | MappingTokenCountProperty | MappingVersionProperty | MappingWildcardProperty | MappingPointProperty;
3726
3730
  export interface MappingDocValuesPropertyBase extends MappingCorePropertyBase {
3727
3731
  doc_values?: boolean;
3728
3732
  }
@@ -3754,7 +3758,7 @@ export interface MappingFieldMapping {
3754
3758
  export interface MappingFieldNamesField {
3755
3759
  enabled: boolean;
3756
3760
  }
3757
- export declare type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector';
3761
+ export declare type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'match_only_text';
3758
3762
  export interface MappingFlattenedProperty extends MappingPropertyBase {
3759
3763
  boost?: double;
3760
3764
  depth_limit?: integer;
@@ -3774,20 +3778,6 @@ export interface MappingFloatNumberProperty extends MappingStandardNumberPropert
3774
3778
  export interface MappingFloatRangeProperty extends MappingRangePropertyBase {
3775
3779
  type: 'float_range';
3776
3780
  }
3777
- export interface MappingGenericProperty extends MappingDocValuesPropertyBase {
3778
- analyzer: string;
3779
- boost: double;
3780
- fielddata: IndicesStringFielddata;
3781
- ignore_malformed: boolean;
3782
- index: boolean;
3783
- index_options: MappingIndexOptions;
3784
- norms: boolean;
3785
- null_value: string;
3786
- position_increment_gap: integer;
3787
- search_analyzer: string;
3788
- term_vector: MappingTermVectorOption;
3789
- type: string;
3790
- }
3791
3781
  export declare type MappingGeoOrientation = 'right' | 'RIGHT' | 'counterclockwise' | 'ccw' | 'left' | 'LEFT' | 'clockwise' | 'cw';
3792
3782
  export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
3793
3783
  ignore_malformed?: boolean;
@@ -3856,6 +3846,12 @@ export interface MappingLongNumberProperty extends MappingStandardNumberProperty
3856
3846
  export interface MappingLongRangeProperty extends MappingRangePropertyBase {
3857
3847
  type: 'long_range';
3858
3848
  }
3849
+ export interface MappingMatchOnlyTextProperty {
3850
+ type: 'match_only_text';
3851
+ fields?: Record<PropertyName, MappingProperty>;
3852
+ meta?: Record<string, string>;
3853
+ copy_to?: Fields;
3854
+ }
3859
3855
  export declare type MappingMatchType = 'simple' | 'regex';
3860
3856
  export interface MappingMurmur3HashProperty extends MappingDocValuesPropertyBase {
3861
3857
  type: 'murmur3';
@@ -4065,7 +4061,7 @@ export interface QueryDslConstantScoreQuery extends QueryDslQueryBase {
4065
4061
  export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase {
4066
4062
  }
4067
4063
  export declare type QueryDslDateDecayFunction = QueryDslDateDecayFunctionKeys & {
4068
- [property: string]: QueryDslDecayPlacement<DateMath, Time> | QueryDslMultiValueMode | QueryDslQueryContainer | double;
4064
+ [property: string]: QueryDslDecayPlacement<DateMath, Time> | QueryDslMultiValueMode;
4069
4065
  };
4070
4066
  export interface QueryDslDateDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<DateMath, Time> {
4071
4067
  }
@@ -4080,7 +4076,7 @@ export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase {
4080
4076
  time_zone?: TimeZone;
4081
4077
  }
4082
4078
  export declare type QueryDslDecayFunction = QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4083
- export interface QueryDslDecayFunctionBase extends QueryDslScoreFunctionBase {
4079
+ export interface QueryDslDecayFunctionBase {
4084
4080
  multi_value_mode?: QueryDslMultiValueMode;
4085
4081
  }
4086
4082
  export interface QueryDslDecayPlacement<TOrigin = unknown, TScale = unknown> {
@@ -4114,7 +4110,7 @@ export interface QueryDslFieldLookup {
4114
4110
  routing?: Routing;
4115
4111
  }
4116
4112
  export declare type QueryDslFieldValueFactorModifier = 'none' | 'log' | 'log1p' | 'log2p' | 'ln' | 'ln1p' | 'ln2p' | 'square' | 'sqrt' | 'reciprocal';
4117
- export interface QueryDslFieldValueFactorScoreFunction extends QueryDslScoreFunctionBase {
4113
+ export interface QueryDslFieldValueFactorScoreFunction {
4118
4114
  field: Field;
4119
4115
  factor?: double;
4120
4116
  missing?: double;
@@ -4159,7 +4155,7 @@ export declare type QueryDslGeoBoundingBoxQuery = QueryDslGeoBoundingBoxQueryKey
4159
4155
  export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase {
4160
4156
  }
4161
4157
  export declare type QueryDslGeoDecayFunction = QueryDslGeoDecayFunctionKeys & {
4162
- [property: string]: QueryDslDecayPlacement<GeoLocation, Distance> | QueryDslMultiValueMode | QueryDslQueryContainer | double;
4158
+ [property: string]: QueryDslDecayPlacement<GeoLocation, Distance> | QueryDslMultiValueMode;
4163
4159
  };
4164
4160
  export interface QueryDslGeoDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<GeoLocation, Distance> {
4165
4161
  }
@@ -4394,7 +4390,7 @@ export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase {
4394
4390
  export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase {
4395
4391
  }
4396
4392
  export declare type QueryDslNumericDecayFunction = QueryDslNumericDecayFunctionKeys & {
4397
- [property: string]: QueryDslDecayPlacement<double, double> | QueryDslMultiValueMode | QueryDslQueryContainer | double;
4393
+ [property: string]: QueryDslDecayPlacement<double, double> | QueryDslMultiValueMode;
4398
4394
  };
4399
4395
  export declare type QueryDslOperator = 'and' | 'AND' | 'or' | 'OR';
4400
4396
  export interface QueryDslParentIdQuery extends QueryDslQueryBase {
@@ -4515,7 +4511,7 @@ export interface QueryDslQueryStringQuery extends QueryDslQueryBase {
4515
4511
  time_zone?: TimeZone;
4516
4512
  type?: QueryDslTextQueryType;
4517
4513
  }
4518
- export interface QueryDslRandomScoreFunction extends QueryDslScoreFunctionBase {
4514
+ export interface QueryDslRandomScoreFunction {
4519
4515
  field?: Field;
4520
4516
  seed?: long | string;
4521
4517
  }
@@ -4552,14 +4548,10 @@ export interface QueryDslRegexpQuery extends QueryDslQueryBase {
4552
4548
  rewrite?: MultiTermQueryRewrite;
4553
4549
  value: string;
4554
4550
  }
4555
- export interface QueryDslScoreFunctionBase {
4556
- filter?: QueryDslQueryContainer;
4557
- weight?: double;
4558
- }
4559
4551
  export interface QueryDslScriptQuery extends QueryDslQueryBase {
4560
4552
  script: Script;
4561
4553
  }
4562
- export interface QueryDslScriptScoreFunction extends QueryDslScoreFunctionBase {
4554
+ export interface QueryDslScriptScoreFunction {
4563
4555
  script: Script;
4564
4556
  }
4565
4557
  export interface QueryDslScriptScoreQuery extends QueryDslQueryBase {
@@ -4716,8 +4708,7 @@ export interface AsyncSearchGetRequest extends RequestBase {
4716
4708
  typed_keys?: boolean;
4717
4709
  wait_for_completion_timeout?: Time;
4718
4710
  }
4719
- export interface AsyncSearchGetResponse<TDocument = unknown> extends AsyncSearchAsyncSearchDocumentResponseBase<TDocument> {
4720
- }
4711
+ export declare type AsyncSearchGetResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = AsyncSearchAsyncSearchDocumentResponseBase<TDocument, TAggregations>;
4721
4712
  export interface AsyncSearchStatusRequest extends RequestBase {
4722
4713
  id: Id;
4723
4714
  }
@@ -4792,8 +4783,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
4792
4783
  pit?: SearchPointInTimeReference;
4793
4784
  runtime_mappings?: MappingRuntimeFields;
4794
4785
  }
4795
- export interface AsyncSearchSubmitResponse<TDocument = unknown> extends AsyncSearchAsyncSearchDocumentResponseBase<TDocument> {
4796
- }
4786
+ export declare type AsyncSearchSubmitResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = AsyncSearchAsyncSearchDocumentResponseBase<TDocument, TAggregations>;
4797
4787
  export interface AutoscalingAutoscalingPolicy {
4798
4788
  roles: string[];
4799
4789
  deciders: Record<string, any>;
@@ -7406,8 +7396,7 @@ export interface EqlGetRequest extends RequestBase {
7406
7396
  keep_alive?: Time;
7407
7397
  wait_for_completion_timeout?: Time;
7408
7398
  }
7409
- export interface EqlGetResponse<TEvent = unknown> extends EqlEqlSearchResponseBase<TEvent> {
7410
- }
7399
+ export declare type EqlGetResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
7411
7400
  export interface EqlGetStatusRequest extends RequestBase {
7412
7401
  id: Id;
7413
7402
  }
@@ -7439,8 +7428,7 @@ export interface EqlSearchRequest extends RequestBase {
7439
7428
  result_position?: EqlSearchResultPosition;
7440
7429
  runtime_mappings?: MappingRuntimeFields;
7441
7430
  }
7442
- export interface EqlSearchResponse<TEvent = unknown> extends EqlEqlSearchResponseBase<TEvent> {
7443
- }
7431
+ export declare type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
7444
7432
  export declare type EqlSearchResultPosition = 'tail' | 'head';
7445
7433
  export interface FeaturesFeature {
7446
7434
  name: string;
@@ -7906,6 +7894,10 @@ export interface IndicesIndexSettings {
7906
7894
  shards?: integer;
7907
7895
  queries?: IndicesQueries;
7908
7896
  similarity?: IndicesSettingsSimilarity;
7897
+ mappings?: IndicesMappingLimitSettings;
7898
+ 'indexing.slowlog'?: IndicesSlowlogSettings;
7899
+ indexing_pressure?: IndicesIndexingPressure;
7900
+ store?: IndicesStorage;
7909
7901
  }
7910
7902
  export interface IndicesIndexSettingsAnalysis {
7911
7903
  analyzer?: Record<string, AnalysisAnalyzer>;
@@ -7916,6 +7908,14 @@ export interface IndicesIndexSettingsAnalysis {
7916
7908
  }
7917
7909
  export interface IndicesIndexSettingsLifecycle {
7918
7910
  name: Name;
7911
+ indexing_complete?: boolean;
7912
+ origination_date?: long;
7913
+ parse_origination_date?: boolean;
7914
+ step?: IndicesIndexSettingsLifecycleStep;
7915
+ rollover_alias?: string;
7916
+ }
7917
+ export interface IndicesIndexSettingsLifecycleStep {
7918
+ wait_time_threshold?: Time;
7919
7919
  }
7920
7920
  export interface IndicesIndexSettingsTimeSeries {
7921
7921
  end_time?: DateOrEpochMillis;
@@ -7951,6 +7951,39 @@ export interface IndicesIndexVersioning {
7951
7951
  created: VersionString;
7952
7952
  created_string?: VersionString;
7953
7953
  }
7954
+ export interface IndicesIndexingPressure {
7955
+ memory: IndicesIndexingPressureMemory;
7956
+ }
7957
+ export interface IndicesIndexingPressureMemory {
7958
+ limit?: integer;
7959
+ }
7960
+ export interface IndicesMappingLimitSettings {
7961
+ total_fields?: IndicesMappingLimitSettingsTotalFields;
7962
+ depth?: IndicesMappingLimitSettingsDepth;
7963
+ nested_fields?: IndicesMappingLimitSettingsNestedFields;
7964
+ nested_objects?: IndicesMappingLimitSettingsNestedObjects;
7965
+ field_name_length?: IndicesMappingLimitSettingsFieldNameLength;
7966
+ dimension_fields?: IndicesMappingLimitSettingsDimensionFields;
7967
+ ignore_malformed?: boolean;
7968
+ }
7969
+ export interface IndicesMappingLimitSettingsDepth {
7970
+ limit?: integer;
7971
+ }
7972
+ export interface IndicesMappingLimitSettingsDimensionFields {
7973
+ limit?: integer;
7974
+ }
7975
+ export interface IndicesMappingLimitSettingsFieldNameLength {
7976
+ limit?: long;
7977
+ }
7978
+ export interface IndicesMappingLimitSettingsNestedFields {
7979
+ limit?: integer;
7980
+ }
7981
+ export interface IndicesMappingLimitSettingsNestedObjects {
7982
+ limit?: integer;
7983
+ }
7984
+ export interface IndicesMappingLimitSettingsTotalFields {
7985
+ limit?: integer;
7986
+ }
7954
7987
  export interface IndicesMerge {
7955
7988
  scheduler?: IndicesMergeScheduler;
7956
7989
  }
@@ -7984,7 +8017,8 @@ export interface IndicesSettingsQueryString {
7984
8017
  lenient: boolean;
7985
8018
  }
7986
8019
  export interface IndicesSettingsSearch {
7987
- idle: IndicesSearchIdle;
8020
+ idle?: IndicesSearchIdle;
8021
+ slowlog?: IndicesSlowlogSettings;
7988
8022
  }
7989
8023
  export interface IndicesSettingsSimilarity {
7990
8024
  bm25?: IndicesSettingsSimilarityBm25;
@@ -8029,14 +8063,32 @@ export interface IndicesSettingsSimilarityScriptedTfidf {
8029
8063
  script: Script;
8030
8064
  type: 'scripted';
8031
8065
  }
8066
+ export interface IndicesSlowlogSettings {
8067
+ level?: string;
8068
+ source?: integer;
8069
+ reformat?: boolean;
8070
+ threshold?: IndicesSlowlogTresholds;
8071
+ }
8072
+ export interface IndicesSlowlogTresholdLevels {
8073
+ warn?: Time;
8074
+ info?: Time;
8075
+ debug?: Time;
8076
+ trace?: Time;
8077
+ }
8078
+ export interface IndicesSlowlogTresholds {
8079
+ query?: IndicesSlowlogTresholdLevels;
8080
+ fetch?: IndicesSlowlogTresholdLevels;
8081
+ index?: IndicesSlowlogTresholdLevels;
8082
+ }
8032
8083
  export interface IndicesSoftDeletes {
8033
- enabled: boolean;
8084
+ enabled?: boolean;
8034
8085
  retention_lease?: IndicesRetentionLease;
8035
8086
  }
8036
- export interface IndicesStringFielddata {
8037
- format: IndicesStringFielddataFormat;
8087
+ export interface IndicesStorage {
8088
+ type: IndicesStorageType;
8089
+ allow_mmap?: boolean;
8038
8090
  }
8039
- export declare type IndicesStringFielddataFormat = 'paged_bytes' | 'disabled';
8091
+ export declare type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs';
8040
8092
  export interface IndicesTemplateMapping {
8041
8093
  aliases: Record<IndexName, IndicesAlias>;
8042
8094
  index_patterns: Name[];
@@ -8046,12 +8098,15 @@ export interface IndicesTemplateMapping {
8046
8098
  version?: VersionNumber;
8047
8099
  }
8048
8100
  export interface IndicesTranslog {
8049
- durability?: string;
8050
- flush_threshold_size?: string;
8101
+ sync_interval?: Time;
8102
+ durability?: IndicesTranslogDurability;
8103
+ flush_threshold_size?: ByteSize;
8051
8104
  retention?: IndicesTranslogRetention;
8052
8105
  }
8106
+ export declare type IndicesTranslogDurability = 'request' | 'REQUEST' | 'async' | 'ASYNC';
8053
8107
  export interface IndicesTranslogRetention {
8054
- size: ByteSize;
8108
+ size?: ByteSize;
8109
+ age?: Time;
8055
8110
  }
8056
8111
  export declare type IndicesAddBlockIndicesBlockOptions = 'metadata' | 'read' | 'read_only' | 'write';
8057
8112
  export interface IndicesAddBlockIndicesBlockStatus {
@@ -8185,7 +8240,7 @@ export interface IndicesCreateRequest extends RequestBase {
8185
8240
  export interface IndicesCreateResponse {
8186
8241
  index: IndexName;
8187
8242
  shards_acknowledged: boolean;
8188
- acknowledged?: boolean;
8243
+ acknowledged: boolean;
8189
8244
  }
8190
8245
  export interface IndicesCreateDataStreamRequest extends RequestBase {
8191
8246
  name: DataStreamName;
@@ -8355,6 +8410,8 @@ export interface IndicesForcemergeRequest extends RequestBase {
8355
8410
  wait_for_completion?: boolean;
8356
8411
  }
8357
8412
  export declare type IndicesForcemergeResponse = ShardsOperationResponseBase;
8413
+ export declare type IndicesGetFeature = 'aliases' | 'mappings' | 'settings';
8414
+ export declare type IndicesGetFeatures = IndicesGetFeature | IndicesGetFeature[];
8358
8415
  export interface IndicesGetRequest extends RequestBase {
8359
8416
  index: Indices;
8360
8417
  allow_no_indices?: boolean;
@@ -8364,6 +8421,7 @@ export interface IndicesGetRequest extends RequestBase {
8364
8421
  include_defaults?: boolean;
8365
8422
  local?: boolean;
8366
8423
  master_timeout?: Time;
8424
+ features?: IndicesGetFeatures;
8367
8425
  }
8368
8426
  export declare type IndicesGetResponse = Record<IndexName, IndicesIndexState>;
8369
8427
  export interface IndicesGetAliasIndexAliases {
@@ -8447,6 +8505,18 @@ export interface IndicesMigrateToDataStreamRequest extends RequestBase {
8447
8505
  name: IndexName;
8448
8506
  }
8449
8507
  export declare type IndicesMigrateToDataStreamResponse = AcknowledgedResponseBase;
8508
+ export interface IndicesModifyDataStreamAction {
8509
+ add_backing_index?: IndicesModifyDataStreamIndexAndDataStreamAction;
8510
+ remove_backing_index?: IndicesModifyDataStreamIndexAndDataStreamAction;
8511
+ }
8512
+ export interface IndicesModifyDataStreamIndexAndDataStreamAction {
8513
+ index: IndexName;
8514
+ data_stream: DataStreamName;
8515
+ }
8516
+ export interface IndicesModifyDataStreamRequest extends RequestBase {
8517
+ actions: IndicesModifyDataStreamAction[];
8518
+ }
8519
+ export declare type IndicesModifyDataStreamResponse = AcknowledgedResponseBase;
8450
8520
  export interface IndicesOpenRequest extends RequestBase {
8451
8521
  index: Indices;
8452
8522
  allow_no_indices?: boolean;
@@ -9158,9 +9228,18 @@ export interface IngestGsubProcessor extends IngestProcessorBase {
9158
9228
  }
9159
9229
  export interface IngestInferenceConfig {
9160
9230
  regression?: IngestInferenceConfigRegression;
9231
+ classification?: IngestInferenceConfigClassification;
9232
+ }
9233
+ export interface IngestInferenceConfigClassification {
9234
+ num_top_classes?: integer;
9235
+ num_top_feature_importance_values?: integer;
9236
+ results_field?: Field;
9237
+ top_classes_results_field?: Field;
9238
+ prediction_field_type?: string;
9161
9239
  }
9162
9240
  export interface IngestInferenceConfigRegression {
9163
- results_field: string;
9241
+ results_field?: Field;
9242
+ num_top_feature_importance_values?: integer;
9164
9243
  }
9165
9244
  export interface IngestInferenceProcessor extends IngestProcessorBase {
9166
9245
  model_id: Id;
@@ -9519,6 +9598,33 @@ export interface MigrationDeprecationsResponse {
9519
9598
  node_settings: MigrationDeprecationsDeprecation[];
9520
9599
  ml_settings: MigrationDeprecationsDeprecation[];
9521
9600
  }
9601
+ export interface MigrationGetFeatureUpgradeStatusMigrationFeature {
9602
+ feature_name: string;
9603
+ minimum_index_version: VersionString;
9604
+ migration_status: MigrationGetFeatureUpgradeStatusMigrationStatus;
9605
+ indices: MigrationGetFeatureUpgradeStatusMigrationFeatureIndexInfo[];
9606
+ }
9607
+ export interface MigrationGetFeatureUpgradeStatusMigrationFeatureIndexInfo {
9608
+ index: IndexName;
9609
+ version: VersionString;
9610
+ failure_cause?: ErrorCause;
9611
+ }
9612
+ export declare type MigrationGetFeatureUpgradeStatusMigrationStatus = 'NO_MIGRATION_NEEDED' | 'MIGRATION_NEEDED' | 'IN_PROGRESS' | 'ERROR';
9613
+ export interface MigrationGetFeatureUpgradeStatusRequest extends RequestBase {
9614
+ }
9615
+ export interface MigrationGetFeatureUpgradeStatusResponse {
9616
+ features: MigrationGetFeatureUpgradeStatusMigrationFeature[];
9617
+ migration_status: MigrationGetFeatureUpgradeStatusMigrationStatus;
9618
+ }
9619
+ export interface MigrationPostFeatureUpgradeMigrationFeature {
9620
+ feature_name: string;
9621
+ }
9622
+ export interface MigrationPostFeatureUpgradeRequest extends RequestBase {
9623
+ }
9624
+ export interface MigrationPostFeatureUpgradeResponse {
9625
+ accepted: boolean;
9626
+ features: MigrationPostFeatureUpgradeMigrationFeature[];
9627
+ }
9522
9628
  export interface MlAnalysisConfig {
9523
9629
  bucket_span: TimeSpan;
9524
9630
  categorization_analyzer?: MlCategorizationAnalyzer;
@@ -9652,6 +9758,13 @@ export interface MlChunkingConfig {
9652
9758
  time_span?: Time;
9653
9759
  }
9654
9760
  export declare type MlChunkingMode = 'auto' | 'manual' | 'off';
9761
+ export interface MlClassificationInferenceOptions {
9762
+ num_top_classes?: integer;
9763
+ num_top_feature_importance_values?: integer;
9764
+ prediction_field_type?: string;
9765
+ results_field?: string;
9766
+ top_classes_results_field?: string;
9767
+ }
9655
9768
  export declare type MlConditionOperator = 'gt' | 'gte' | 'lt' | 'lte';
9656
9769
  export declare type MlCustomSettings = any;
9657
9770
  export interface MlDataCounts {
@@ -9988,6 +10101,16 @@ export interface MlDiscoveryNode {
9988
10101
  transport_address: TransportAddress;
9989
10102
  }
9990
10103
  export declare type MlExcludeFrequent = 'all' | 'none' | 'by' | 'over';
10104
+ export interface MlFillMaskInferenceOptions {
10105
+ num_top_classes?: integer;
10106
+ tokenization?: MlTokenizationConfigContainer;
10107
+ results_field?: string;
10108
+ }
10109
+ export interface MlFillMaskInferenceUpdateOptions {
10110
+ num_top_classes?: integer;
10111
+ tokenization?: MlNlpTokenizationUpdateOptions;
10112
+ results_field?: string;
10113
+ }
9991
10114
  export interface MlFilter {
9992
10115
  description?: string;
9993
10116
  filter_id: Id;
@@ -10022,6 +10145,16 @@ export interface MlHyperparameters {
10022
10145
  soft_tree_depth_tolerance?: double;
10023
10146
  }
10024
10147
  export declare type MlInclude = 'definition' | 'feature_importance_baseline' | 'hyperparameters' | 'total_feature_importance';
10148
+ export interface MlInferenceConfigCreateContainer {
10149
+ regression?: MlRegressionInferenceOptions;
10150
+ classification?: MlClassificationInferenceOptions;
10151
+ text_classification?: MlTextClassificationInferenceOptions;
10152
+ zero_shot_classification?: MlZeroShotClassificationInferenceOptions;
10153
+ fill_mask?: MlFillMaskInferenceOptions;
10154
+ ner?: MlNerInferenceOptions;
10155
+ pass_through?: MlPassThroughInferenceOptions;
10156
+ text_embedding?: MlTextEmbeddingInferenceOptions;
10157
+ }
10025
10158
  export interface MlInfluence {
10026
10159
  influencer_field_name: string;
10027
10160
  influencer_field_values: string[];
@@ -10166,6 +10299,41 @@ export interface MlModelSnapshot {
10166
10299
  snapshot_id: Id;
10167
10300
  timestamp: long;
10168
10301
  }
10302
+ export interface MlNerInferenceOptions {
10303
+ tokenization?: MlTokenizationConfigContainer;
10304
+ results_field?: string;
10305
+ classification_labels?: string[];
10306
+ }
10307
+ export interface MlNerInferenceUpdateOptions {
10308
+ tokenization?: MlNlpTokenizationUpdateOptions;
10309
+ results_field?: string;
10310
+ }
10311
+ export interface MlNlpBertTokenizationConfig {
10312
+ do_lower_case?: boolean;
10313
+ with_special_tokens?: boolean;
10314
+ max_sequence_length?: integer;
10315
+ truncate?: MlTokenizationTruncate;
10316
+ span?: integer;
10317
+ }
10318
+ export interface MlNlpInferenceConfigUpdateContainer {
10319
+ text_classification?: MlTextClassificationInferenceUpdateOptions;
10320
+ zero_shot_classification?: MlZeroShotClassificationInferenceUpdateOptions;
10321
+ fill_mask?: MlFillMaskInferenceUpdateOptions;
10322
+ ner?: MlNerInferenceUpdateOptions;
10323
+ pass_through?: MlPassThroughInferenceUpdateOptions;
10324
+ text_embedding?: MlTextEmbeddingInferenceUpdateOptions;
10325
+ }
10326
+ export interface MlNlpRobertaTokenizationConfig {
10327
+ add_prefix_space?: boolean;
10328
+ with_special_tokens?: boolean;
10329
+ max_sequence_length?: integer;
10330
+ truncate?: MlTokenizationTruncate;
10331
+ span?: integer;
10332
+ }
10333
+ export interface MlNlpTokenizationUpdateOptions {
10334
+ truncate?: MlTokenizationTruncate;
10335
+ span?: integer;
10336
+ }
10169
10337
  export interface MlOutlierDetectionParameters {
10170
10338
  compute_feature_influence?: boolean;
10171
10339
  feature_influence_threshold?: double;
@@ -10190,11 +10358,23 @@ export interface MlPage {
10190
10358
  from?: integer;
10191
10359
  size?: integer;
10192
10360
  }
10361
+ export interface MlPassThroughInferenceOptions {
10362
+ tokenization?: MlTokenizationConfigContainer;
10363
+ results_field?: string;
10364
+ }
10365
+ export interface MlPassThroughInferenceUpdateOptions {
10366
+ tokenization?: MlNlpTokenizationUpdateOptions;
10367
+ results_field?: string;
10368
+ }
10193
10369
  export interface MlPerPartitionCategorization {
10194
10370
  enabled?: boolean;
10195
10371
  stop_on_warn?: boolean;
10196
10372
  }
10197
10373
  export declare type MlPredictedValue = string | double;
10374
+ export interface MlRegressionInferenceOptions {
10375
+ results_field?: Field;
10376
+ num_top_feature_importance_values?: integer;
10377
+ }
10198
10378
  export declare type MlRoutingState = 'failed' | 'started' | 'starting' | 'stopped' | 'stopping';
10199
10379
  export declare type MlRuleAction = 'skip_result' | 'skip_model_update';
10200
10380
  export interface MlRuleCondition {
@@ -10206,10 +10386,36 @@ export interface MlRunningStateSearchInterval {
10206
10386
  end_ms: long;
10207
10387
  start_ms: long;
10208
10388
  }
10389
+ export interface MlTextClassificationInferenceOptions {
10390
+ num_top_classes?: integer;
10391
+ tokenization?: MlTokenizationConfigContainer;
10392
+ results_field?: string;
10393
+ classification_labels?: string[];
10394
+ }
10395
+ export interface MlTextClassificationInferenceUpdateOptions {
10396
+ num_top_classes?: integer;
10397
+ tokenization?: MlNlpTokenizationUpdateOptions;
10398
+ results_field?: string;
10399
+ classification_labels?: string[];
10400
+ }
10401
+ export interface MlTextEmbeddingInferenceOptions {
10402
+ tokenization?: MlTokenizationConfigContainer;
10403
+ results_field?: string;
10404
+ }
10405
+ export interface MlTextEmbeddingInferenceUpdateOptions {
10406
+ tokenization?: MlNlpTokenizationUpdateOptions;
10407
+ results_field?: string;
10408
+ }
10209
10409
  export interface MlTimingStats {
10210
10410
  elapsed_time: integer;
10211
10411
  iteration_time?: integer;
10212
10412
  }
10413
+ export interface MlTokenizationConfigContainer {
10414
+ bert?: MlNlpBertTokenizationConfig;
10415
+ mpnet?: MlNlpBertTokenizationConfig;
10416
+ roberta?: MlNlpRobertaTokenizationConfig;
10417
+ }
10418
+ export declare type MlTokenizationTruncate = 'first' | 'second' | 'none';
10213
10419
  export interface MlTopClassEntry {
10214
10420
  class_name: string;
10215
10421
  class_probability: double;
@@ -10255,7 +10461,7 @@ export interface MlTrainedModelConfig {
10255
10461
  description?: string;
10256
10462
  estimated_heap_memory_usage_bytes?: integer;
10257
10463
  estimated_operations?: integer;
10258
- inference_config: AggregationsInferenceConfigContainer;
10464
+ inference_config: MlInferenceConfigCreateContainer;
10259
10465
  input: MlTrainedModelConfigInput;
10260
10466
  license_level?: string;
10261
10467
  metadata?: MlTrainedModelConfigMetadata;
@@ -10342,6 +10548,20 @@ export interface MlValidationLoss {
10342
10548
  fold_values: string[];
10343
10549
  loss_type: string;
10344
10550
  }
10551
+ export interface MlZeroShotClassificationInferenceOptions {
10552
+ tokenization?: MlTokenizationConfigContainer;
10553
+ hypothesis_template?: string;
10554
+ classification_labels: string[];
10555
+ results_field?: string;
10556
+ multi_label?: boolean;
10557
+ labels?: string[];
10558
+ }
10559
+ export interface MlZeroShotClassificationInferenceUpdateOptions {
10560
+ tokenization?: MlNlpTokenizationUpdateOptions;
10561
+ results_field?: string;
10562
+ multi_label?: boolean;
10563
+ labels: string[];
10564
+ }
10345
10565
  export interface MlCloseJobRequest extends RequestBase {
10346
10566
  job_id: Id;
10347
10567
  allow_no_match?: boolean;
@@ -10678,6 +10898,53 @@ export interface MlGetJobsResponse {
10678
10898
  count: long;
10679
10899
  jobs: MlJob[];
10680
10900
  }
10901
+ export interface MlGetMemoryStatsJvmStats {
10902
+ heap_max?: ByteSize;
10903
+ heap_max_in_bytes: integer;
10904
+ java_inference?: ByteSize;
10905
+ java_inference_in_bytes: integer;
10906
+ java_inference_max?: ByteSize;
10907
+ java_inference_max_in_bytes: integer;
10908
+ }
10909
+ export interface MlGetMemoryStatsMemMlStats {
10910
+ anomaly_detectors?: ByteSize;
10911
+ anomaly_detectors_in_bytes: integer;
10912
+ data_frame_analytics?: ByteSize;
10913
+ data_frame_analytics_in_bytes: integer;
10914
+ max?: ByteSize;
10915
+ max_in_bytes: integer;
10916
+ native_code_overhead?: ByteSize;
10917
+ native_code_overhead_in_bytes: integer;
10918
+ native_inference?: ByteSize;
10919
+ native_inference_in_bytes: integer;
10920
+ }
10921
+ export interface MlGetMemoryStatsMemStats {
10922
+ adjusted_total?: ByteSize;
10923
+ adjusted_total_in_bytes: integer;
10924
+ total?: ByteSize;
10925
+ total_in_bytes: integer;
10926
+ ml: MlGetMemoryStatsMemMlStats;
10927
+ }
10928
+ export interface MlGetMemoryStatsMemory {
10929
+ attributes: Record<string, string>;
10930
+ jvm: MlGetMemoryStatsJvmStats;
10931
+ mem: MlGetMemoryStatsMemStats;
10932
+ name: Name;
10933
+ roles: string[];
10934
+ transport_address: TransportAddress;
10935
+ ephemeral_id: Id;
10936
+ }
10937
+ export interface MlGetMemoryStatsRequest extends RequestBase {
10938
+ node_id?: Id;
10939
+ human?: boolean;
10940
+ master_timeout?: Time;
10941
+ timeout?: Time;
10942
+ }
10943
+ export interface MlGetMemoryStatsResponse {
10944
+ _nodes: NodeStatistics;
10945
+ cluster_name: Name;
10946
+ nodes: Record<Id, MlGetMemoryStatsMemory>;
10947
+ }
10681
10948
  export interface MlGetModelSnapshotsRequest extends RequestBase {
10682
10949
  job_id: Id;
10683
10950
  snapshot_id?: Id;
@@ -10751,6 +11018,7 @@ export interface MlInferTrainedModelDeploymentRequest extends RequestBase {
10751
11018
  model_id: Id;
10752
11019
  timeout?: Time;
10753
11020
  docs: Record<string, string>[];
11021
+ inference_config?: MlNlpInferenceConfigUpdateContainer;
10754
11022
  }
10755
11023
  export interface MlInferTrainedModelDeploymentResponse {
10756
11024
  entities?: MlTrainedModelEntities[];
@@ -11024,7 +11292,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
11024
11292
  compressed_definition?: string;
11025
11293
  definition?: MlPutTrainedModelDefinition;
11026
11294
  description?: string;
11027
- inference_config: AggregationsInferenceConfigContainer;
11295
+ inference_config: MlInferenceConfigCreateContainer;
11028
11296
  input: MlPutTrainedModelInput;
11029
11297
  metadata?: any;
11030
11298
  model_type?: MlTrainedModelType;
@@ -11080,6 +11348,7 @@ export declare type MlPutTrainedModelDefinitionPartResponse = AcknowledgedRespon
11080
11348
  export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
11081
11349
  model_id: Id;
11082
11350
  vocabulary: string[];
11351
+ merges?: string[];
11083
11352
  }
11084
11353
  export declare type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase;
11085
11354
  export interface MlResetJobRequest extends RequestBase {
@@ -12337,6 +12606,7 @@ export interface SecurityFieldSecurity {
12337
12606
  export interface SecurityGlobalPrivilege {
12338
12607
  application: SecurityApplicationGlobalUserPrivileges;
12339
12608
  }
12609
+ export declare type SecurityGrantType = 'password' | 'access_token';
12340
12610
  export declare type SecurityIndexPrivilege = 'none' | 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write';
12341
12611
  export interface SecurityIndicesPrivileges {
12342
12612
  field_security?: SecurityFieldSecurity | SecurityFieldSecurity[];
@@ -12388,6 +12658,35 @@ export interface SecurityUser {
12388
12658
  username: Username;
12389
12659
  enabled: boolean;
12390
12660
  }
12661
+ export interface SecurityUserProfile {
12662
+ uid: string;
12663
+ user: SecurityUserProfileUser;
12664
+ data?: Record<string, any>;
12665
+ labels?: Record<string, any>;
12666
+ enabled?: boolean;
12667
+ }
12668
+ export interface SecurityUserProfileHitMetadata {
12669
+ _primary_term: long;
12670
+ _seq_no: SequenceNumber;
12671
+ }
12672
+ export interface SecurityUserProfileUser {
12673
+ email?: string | null;
12674
+ full_name?: Name | null;
12675
+ metadata: Metadata;
12676
+ roles: string[];
12677
+ username: Username;
12678
+ }
12679
+ export interface SecurityUserProfileWithMetadata extends SecurityUserProfile {
12680
+ last_synchronized: long;
12681
+ _doc?: SecurityUserProfileHitMetadata;
12682
+ }
12683
+ export interface SecurityActivateUserProfileRequest extends RequestBase {
12684
+ access_token?: string;
12685
+ grant_type: SecurityGrantType;
12686
+ password?: string;
12687
+ username?: string;
12688
+ }
12689
+ export declare type SecurityActivateUserProfileResponse = SecurityUserProfileWithMetadata;
12391
12690
  export interface SecurityAuthenticateRequest extends RequestBase {
12392
12691
  }
12393
12692
  export interface SecurityAuthenticateResponse {
@@ -12539,12 +12838,22 @@ export interface SecurityDisableUserRequest extends RequestBase {
12539
12838
  }
12540
12839
  export interface SecurityDisableUserResponse {
12541
12840
  }
12841
+ export interface SecurityDisableUserProfileRequest extends RequestBase {
12842
+ uid: string;
12843
+ refresh?: Refresh;
12844
+ }
12845
+ export declare type SecurityDisableUserProfileResponse = AcknowledgedResponseBase;
12542
12846
  export interface SecurityEnableUserRequest extends RequestBase {
12543
12847
  username: Username;
12544
12848
  refresh?: Refresh;
12545
12849
  }
12546
12850
  export interface SecurityEnableUserResponse {
12547
12851
  }
12852
+ export interface SecurityEnableUserProfileRequest extends RequestBase {
12853
+ uid: string;
12854
+ refresh?: Refresh;
12855
+ }
12856
+ export declare type SecurityEnableUserProfileResponse = AcknowledgedResponseBase;
12548
12857
  export interface SecurityEnrollKibanaRequest extends RequestBase {
12549
12858
  }
12550
12859
  export interface SecurityEnrollKibanaResponse {
@@ -12691,6 +13000,11 @@ export interface SecurityGetUserPrivilegesResponse {
12691
13000
  indices: SecurityIndicesPrivileges[];
12692
13001
  run_as: string[];
12693
13002
  }
13003
+ export interface SecurityGetUserProfileRequest extends RequestBase {
13004
+ uid: string;
13005
+ data?: string | string[];
13006
+ }
13007
+ export declare type SecurityGetUserProfileResponse = Record<string, SecurityUserProfileWithMetadata>;
12694
13008
  export declare type SecurityGrantApiKeyApiKeyGrantType = 'access_token' | 'password';
12695
13009
  export interface SecurityGrantApiKeyGrantApiKey {
12696
13010
  name: Name;
@@ -12878,6 +13192,29 @@ export interface SecuritySamlServiceProviderMetadataRequest extends RequestBase
12878
13192
  export interface SecuritySamlServiceProviderMetadataResponse {
12879
13193
  metadata: string;
12880
13194
  }
13195
+ export interface SecuritySuggestUserProfilesRequest extends RequestBase {
13196
+ data?: string | string[];
13197
+ name?: string;
13198
+ size?: long;
13199
+ }
13200
+ export interface SecuritySuggestUserProfilesResponse {
13201
+ total: SecuritySuggestUserProfilesTotalUserProfiles;
13202
+ took: long;
13203
+ profiles: SecurityUserProfile[];
13204
+ }
13205
+ export interface SecuritySuggestUserProfilesTotalUserProfiles {
13206
+ value: long;
13207
+ relation: RelationName;
13208
+ }
13209
+ export interface SecurityUpdateUserProfileDataRequest extends RequestBase {
13210
+ uid: string;
13211
+ if_seq_no?: SequenceNumber;
13212
+ if_primary_term?: long;
13213
+ refresh?: Refresh;
13214
+ access?: Record<string, any>;
13215
+ data?: Record<string, any>;
13216
+ }
13217
+ export declare type SecurityUpdateUserProfileDataResponse = AcknowledgedResponseBase;
12881
13218
  export interface ShutdownDeleteNodeRequest extends RequestBase {
12882
13219
  node_id: NodeId;
12883
13220
  }
@@ -13228,7 +13565,7 @@ export interface SnapshotRestoreRequest extends RequestBase {
13228
13565
  ignore_unavailable?: boolean;
13229
13566
  include_aliases?: boolean;
13230
13567
  include_global_state?: boolean;
13231
- index_settings?: IndicesPutSettingsRequest;
13568
+ index_settings?: IndicesIndexSettings;
13232
13569
  indices?: Indices;
13233
13570
  partial?: boolean;
13234
13571
  rename_pattern?: string;
@@ -13692,7 +14029,7 @@ export interface TransformUpdateTransformRequest extends RequestBase {
13692
14029
  source?: TransformSource;
13693
14030
  settings?: TransformSettings;
13694
14031
  sync?: TransformSyncContainer;
13695
- retention_policy?: TransformRetentionPolicyContainer;
14032
+ retention_policy?: TransformRetentionPolicyContainer | null;
13696
14033
  }
13697
14034
  export interface TransformUpdateTransformResponse {
13698
14035
  create_time: long;
@@ -14040,9 +14377,16 @@ export interface WatcherSearchInputRequestDefinition {
14040
14377
  indices?: IndexName[];
14041
14378
  indices_options?: IndicesOptions;
14042
14379
  search_type?: SearchType;
14043
- template?: SearchTemplateRequest;
14380
+ template?: WatcherSearchTemplateRequestBody;
14044
14381
  rest_total_hits_as_int?: boolean;
14045
14382
  }
14383
+ export interface WatcherSearchTemplateRequestBody {
14384
+ explain?: boolean;
14385
+ id?: Id;
14386
+ params?: Record<string, any>;
14387
+ profile?: boolean;
14388
+ source?: string;
14389
+ }
14046
14390
  export interface WatcherSimulatedActions {
14047
14391
  actions: string[];
14048
14392
  all: WatcherSimulatedActions;
@@ -14317,6 +14661,7 @@ export interface XpackInfoFeatures {
14317
14661
  vectors?: XpackInfoFeature;
14318
14662
  voting_only: XpackInfoFeature;
14319
14663
  watcher: XpackInfoFeature;
14664
+ archive: XpackInfoFeature;
14320
14665
  }
14321
14666
  export interface XpackInfoMinimalLicenseInformation {
14322
14667
  expiry_date_in_millis: EpochMillis;
@@ -14332,6 +14677,7 @@ export interface XpackInfoNativeCodeInformation {
14332
14677
  export interface XpackInfoRequest extends RequestBase {
14333
14678
  categories?: string[];
14334
14679
  accept_enterprise?: boolean;
14680
+ human?: boolean;
14335
14681
  }
14336
14682
  export interface XpackInfoResponse {
14337
14683
  build: XpackInfoBuildInformation;
@@ -14360,6 +14706,9 @@ export interface XpackUsageAnalyticsStatistics {
14360
14706
  rate_usage: long;
14361
14707
  multi_terms_usage?: long;
14362
14708
  }
14709
+ export interface XpackUsageArchive extends XpackUsageBase {
14710
+ indices_count: long;
14711
+ }
14363
14712
  export interface XpackUsageAudit extends XpackUsageFeatureToggle {
14364
14713
  outputs?: string[];
14365
14714
  }
@@ -14563,6 +14912,7 @@ export interface XpackUsageRequest extends RequestBase {
14563
14912
  export interface XpackUsageResponse {
14564
14913
  aggregate_metric: XpackUsageBase;
14565
14914
  analytics: XpackUsageAnalytics;
14915
+ archive: XpackUsageArchive;
14566
14916
  watcher: XpackUsageWatcher;
14567
14917
  ccr: XpackUsageCcr;
14568
14918
  data_frame?: XpackUsageBase;