@elastic/elasticsearch 8.10.0 → 8.12.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 (110) hide show
  1. package/.dockerignore +2 -0
  2. package/README.md +9 -2
  3. package/catalog-info.yaml +4 -4
  4. package/lib/api/api/async_search.d.ts +4 -4
  5. package/lib/api/api/autoscaling.d.ts +4 -4
  6. package/lib/api/api/bulk.d.ts +1 -1
  7. package/lib/api/api/cat.d.ts +26 -26
  8. package/lib/api/api/ccr.d.ts +13 -13
  9. package/lib/api/api/clear_scroll.d.ts +1 -1
  10. package/lib/api/api/close_point_in_time.d.ts +1 -1
  11. package/lib/api/api/cluster.d.ts +16 -16
  12. package/lib/api/api/count.d.ts +1 -1
  13. package/lib/api/api/create.d.ts +1 -1
  14. package/lib/api/api/dangling_indices.d.ts +3 -3
  15. package/lib/api/api/delete.d.ts +1 -1
  16. package/lib/api/api/delete_by_query.d.ts +1 -1
  17. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  18. package/lib/api/api/delete_script.d.ts +1 -1
  19. package/lib/api/api/enrich.d.ts +5 -5
  20. package/lib/api/api/eql.d.ts +4 -4
  21. package/lib/api/api/esql.d.ts +18 -0
  22. package/lib/api/api/esql.js +64 -0
  23. package/lib/api/api/esql.js.map +1 -0
  24. package/lib/api/api/exists.d.ts +1 -1
  25. package/lib/api/api/exists_source.d.ts +1 -1
  26. package/lib/api/api/explain.d.ts +1 -1
  27. package/lib/api/api/features.d.ts +2 -2
  28. package/lib/api/api/field_caps.d.ts +1 -1
  29. package/lib/api/api/fleet.d.ts +19 -1
  30. package/lib/api/api/fleet.js +51 -0
  31. package/lib/api/api/fleet.js.map +1 -1
  32. package/lib/api/api/get.d.ts +1 -1
  33. package/lib/api/api/get_script.d.ts +1 -1
  34. package/lib/api/api/get_script_context.d.ts +1 -1
  35. package/lib/api/api/get_script_languages.d.ts +1 -1
  36. package/lib/api/api/get_source.d.ts +1 -1
  37. package/lib/api/api/graph.d.ts +1 -1
  38. package/lib/api/api/health_report.d.ts +1 -1
  39. package/lib/api/api/ilm.d.ts +11 -11
  40. package/lib/api/api/index.d.ts +1 -1
  41. package/lib/api/api/indices.d.ts +62 -62
  42. package/lib/api/api/indices.js +1 -1
  43. package/lib/api/api/indices.js.map +1 -1
  44. package/lib/api/api/inference.d.ts +39 -0
  45. package/lib/api/api/inference.js +122 -0
  46. package/lib/api/api/inference.js.map +1 -0
  47. package/lib/api/api/info.d.ts +1 -1
  48. package/lib/api/api/ingest.d.ts +6 -6
  49. package/lib/api/api/knn_search.d.ts +1 -1
  50. package/lib/api/api/license.d.ts +7 -7
  51. package/lib/api/api/logstash.d.ts +6 -6
  52. package/lib/api/api/logstash.js +1 -0
  53. package/lib/api/api/logstash.js.map +1 -1
  54. package/lib/api/api/mget.d.ts +1 -1
  55. package/lib/api/api/migration.d.ts +3 -3
  56. package/lib/api/api/ml.d.ts +73 -73
  57. package/lib/api/api/ml.js +2 -2
  58. package/lib/api/api/ml.js.map +1 -1
  59. package/lib/api/api/monitoring.d.ts +1 -1
  60. package/lib/api/api/msearch.d.ts +1 -1
  61. package/lib/api/api/msearch_template.d.ts +1 -1
  62. package/lib/api/api/mtermvectors.d.ts +1 -1
  63. package/lib/api/api/nodes.d.ts +7 -7
  64. package/lib/api/api/open_point_in_time.d.ts +1 -1
  65. package/lib/api/api/ping.d.ts +1 -1
  66. package/lib/api/api/put_script.d.ts +1 -1
  67. package/lib/api/api/query_ruleset.d.ts +4 -4
  68. package/lib/api/api/rank_eval.d.ts +1 -1
  69. package/lib/api/api/reindex.d.ts +1 -1
  70. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  71. package/lib/api/api/render_search_template.d.ts +1 -1
  72. package/lib/api/api/rollup.d.ts +8 -8
  73. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  74. package/lib/api/api/scroll.d.ts +1 -1
  75. package/lib/api/api/search.d.ts +1 -1
  76. package/lib/api/api/search_application.d.ts +9 -9
  77. package/lib/api/api/search_mvt.d.ts +1 -1
  78. package/lib/api/api/search_shards.d.ts +1 -1
  79. package/lib/api/api/search_template.d.ts +1 -1
  80. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  81. package/lib/api/api/security.d.ts +71 -57
  82. package/lib/api/api/security.js +36 -2
  83. package/lib/api/api/security.js.map +1 -1
  84. package/lib/api/api/slm.d.ts +9 -9
  85. package/lib/api/api/snapshot.d.ts +12 -12
  86. package/lib/api/api/sql.d.ts +6 -6
  87. package/lib/api/api/ssl.d.ts +1 -1
  88. package/lib/api/api/synonyms.d.ts +7 -7
  89. package/lib/api/api/tasks.d.ts +3 -3
  90. package/lib/api/api/terms_enum.d.ts +1 -1
  91. package/lib/api/api/termvectors.d.ts +1 -1
  92. package/lib/api/api/text_structure.d.ts +1 -1
  93. package/lib/api/api/transform.d.ts +11 -11
  94. package/lib/api/api/update.d.ts +1 -1
  95. package/lib/api/api/update_by_query.d.ts +1 -1
  96. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  97. package/lib/api/api/watcher.d.ts +13 -13
  98. package/lib/api/api/xpack.d.ts +2 -2
  99. package/lib/api/index.d.ts +8 -0
  100. package/lib/api/index.js +26 -2
  101. package/lib/api/index.js.map +1 -1
  102. package/lib/api/types.d.ts +143 -50
  103. package/lib/api/typesWithBodyKey.d.ts +150 -50
  104. package/lib/client.d.ts +2 -0
  105. package/lib/client.js +7 -2
  106. package/lib/client.js.map +1 -1
  107. package/lib/helpers.js +10 -5
  108. package/lib/helpers.js.map +1 -1
  109. package/package.json +6 -5
  110. package/.tool-versions +0 -1
@@ -588,7 +588,7 @@ export type MgetResponseItem<TDocument = unknown> = GetGetResult<TDocument> | Mg
588
588
  export interface MsearchMultiSearchItem<TDocument = unknown> extends SearchResponseBody<TDocument> {
589
589
  status?: integer;
590
590
  }
591
- export interface MsearchMultiSearchResult<TDocument = unknown> {
591
+ export interface MsearchMultiSearchResult<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> {
592
592
  took: long;
593
593
  responses: MsearchResponseItem<TDocument>[];
594
594
  }
@@ -656,7 +656,7 @@ export interface MsearchRequest extends RequestBase {
656
656
  searches?: MsearchRequestItem[];
657
657
  }
658
658
  export type MsearchRequestItem = MsearchMultisearchHeader | MsearchMultisearchBody;
659
- export type MsearchResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = MsearchMultiSearchResult<TDocument>;
659
+ export type MsearchResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = MsearchMultiSearchResult<TDocument, TAggregations>;
660
660
  export type MsearchResponseItem<TDocument = unknown> = MsearchMultiSearchItem<TDocument> | ErrorResponseBase;
661
661
  export interface MsearchTemplateRequest extends RequestBase {
662
662
  index?: Indices;
@@ -668,7 +668,7 @@ export interface MsearchTemplateRequest extends RequestBase {
668
668
  search_templates?: MsearchTemplateRequestItem[];
669
669
  }
670
670
  export type MsearchTemplateRequestItem = MsearchMultisearchHeader | MsearchTemplateTemplateConfig;
671
- export type MsearchTemplateResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = MsearchMultiSearchResult<TDocument>;
671
+ export type MsearchTemplateResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = MsearchMultiSearchResult<TDocument, TAggregations>;
672
672
  export interface MsearchTemplateTemplateConfig {
673
673
  explain?: boolean;
674
674
  id?: Id;
@@ -1725,6 +1725,9 @@ export interface ClusterStatistics {
1725
1725
  skipped: integer;
1726
1726
  successful: integer;
1727
1727
  total: integer;
1728
+ running: integer;
1729
+ partial: integer;
1730
+ failed: integer;
1728
1731
  details?: Record<ClusterAlias, ClusterDetails>;
1729
1732
  }
1730
1733
  export interface CompletionStats {
@@ -1785,6 +1788,7 @@ export interface ErrorResponseBase {
1785
1788
  error: ErrorCause;
1786
1789
  status: integer;
1787
1790
  }
1791
+ export type EsqlColumns = ArrayBuffer;
1788
1792
  export type ExpandWildcard = 'all' | 'open' | 'closed' | 'hidden' | 'none';
1789
1793
  export type ExpandWildcards = ExpandWildcard | ExpandWildcard[];
1790
1794
  export type Field = string;
@@ -1923,6 +1927,7 @@ export interface KnnQuery {
1923
1927
  num_candidates: long;
1924
1928
  boost?: float;
1925
1929
  filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
1930
+ similarity?: float;
1926
1931
  }
1927
1932
  export interface LatLonGeoLocation {
1928
1933
  lat: double;
@@ -2068,6 +2073,7 @@ export interface RrfRank {
2068
2073
  rank_constant?: long;
2069
2074
  window_size?: long;
2070
2075
  }
2076
+ export type ScalarValue = long | double | string | boolean | null;
2071
2077
  export interface ScoreSort {
2072
2078
  order?: SortOrder;
2073
2079
  }
@@ -3749,11 +3755,11 @@ export interface AnalysisNoriTokenizer extends AnalysisTokenizerBase {
3749
3755
  export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNormalizer;
3750
3756
  export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
3751
3757
  type: 'path_hierarchy';
3752
- buffer_size: SpecUtilsStringified<integer>;
3753
- delimiter: string;
3754
- replacement: string;
3755
- reverse: SpecUtilsStringified<boolean>;
3756
- skip: SpecUtilsStringified<integer>;
3758
+ buffer_size?: SpecUtilsStringified<integer>;
3759
+ delimiter?: string;
3760
+ replacement?: string;
3761
+ reverse?: SpecUtilsStringified<boolean>;
3762
+ skip?: SpecUtilsStringified<integer>;
3757
3763
  }
3758
3764
  export interface AnalysisPatternAnalyzer {
3759
3765
  type: 'pattern';
@@ -4107,7 +4113,7 @@ export interface MappingFieldMapping {
4107
4113
  export interface MappingFieldNamesField {
4108
4114
  enabled: boolean;
4109
4115
  }
4110
- export 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';
4116
+ export 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' | 'sparse_vector' | 'match_only_text';
4111
4117
  export interface MappingFlattenedProperty extends MappingPropertyBase {
4112
4118
  boost?: double;
4113
4119
  depth_limit?: integer;
@@ -4239,7 +4245,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
4239
4245
  null_value?: string;
4240
4246
  type: 'point';
4241
4247
  }
4242
- export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty;
4248
+ export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingSparseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty;
4243
4249
  export interface MappingPropertyBase {
4244
4250
  meta?: Record<string, string>;
4245
4251
  properties?: Record<PropertyName, MappingProperty>;
@@ -4316,6 +4322,9 @@ export interface MappingSourceField {
4316
4322
  mode?: MappingSourceFieldMode;
4317
4323
  }
4318
4324
  export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic';
4325
+ export interface MappingSparseVectorProperty extends MappingPropertyBase {
4326
+ type: 'sparse_vector';
4327
+ }
4319
4328
  export interface MappingSuggestContext {
4320
4329
  name: Name;
4321
4330
  path?: Field;
@@ -4521,9 +4530,10 @@ export interface QueryDslGeoDistanceQueryKeys extends QueryDslQueryBase {
4521
4530
  distance: Distance;
4522
4531
  distance_type?: GeoDistanceType;
4523
4532
  validation_method?: QueryDslGeoValidationMethod;
4533
+ ignore_unmapped?: boolean;
4524
4534
  }
4525
4535
  export type QueryDslGeoDistanceQuery = QueryDslGeoDistanceQueryKeys & {
4526
- [property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | float | string;
4536
+ [property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | boolean | float | string;
4527
4537
  };
4528
4538
  export type QueryDslGeoExecution = 'memory' | 'indexed';
4529
4539
  export interface QueryDslGeoPolygonPoints {
@@ -7113,7 +7123,7 @@ export interface ClusterComponentTemplateSummary {
7113
7123
  settings?: Record<IndexName, IndicesIndexSettings>;
7114
7124
  mappings?: MappingTypeMapping;
7115
7125
  aliases?: Record<string, IndicesAliasDefinition>;
7116
- lifecycle?: IndicesDataLifecycleWithRollover;
7126
+ lifecycle?: IndicesDataStreamLifecycleWithRollover;
7117
7127
  }
7118
7128
  export interface ClusterAllocationExplainAllocationDecision {
7119
7129
  decider: string;
@@ -7840,6 +7850,16 @@ export interface EqlSearchRequest extends RequestBase {
7840
7850
  }
7841
7851
  export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
7842
7852
  export type EqlSearchResultPosition = 'tail' | 'head';
7853
+ export interface EsqlQueryRequest extends RequestBase {
7854
+ format?: string;
7855
+ delimiter?: string;
7856
+ columnar?: boolean;
7857
+ filter?: QueryDslQueryContainer;
7858
+ locale?: string;
7859
+ params?: ScalarValue[];
7860
+ query: string;
7861
+ }
7862
+ export type EsqlQueryResponse = EsqlColumns;
7843
7863
  export interface FeaturesFeature {
7844
7864
  name: string;
7845
7865
  description: string;
@@ -8190,21 +8210,16 @@ export interface IndicesAliasDefinition {
8190
8210
  export interface IndicesCacheQueries {
8191
8211
  enabled: boolean;
8192
8212
  }
8193
- export interface IndicesDataLifecycle {
8194
- data_retention?: Duration;
8195
- }
8196
- export interface IndicesDataLifecycleWithRollover {
8197
- data_retention?: Duration;
8198
- rollover?: IndicesDlmRolloverConditions;
8199
- }
8200
8213
  export interface IndicesDataStream {
8201
8214
  _meta?: Metadata;
8202
8215
  allow_custom_routing?: boolean;
8203
8216
  generation: integer;
8204
8217
  hidden: boolean;
8205
8218
  ilm_policy?: Name;
8219
+ next_generation_managed_by: IndicesManagedBy;
8220
+ prefer_ilm: boolean;
8206
8221
  indices: IndicesDataStreamIndex[];
8207
- lifecycle?: IndicesDataLifecycleWithRollover;
8222
+ lifecycle?: IndicesDataStreamLifecycleWithRollover;
8208
8223
  name: DataStreamName;
8209
8224
  replicated?: boolean;
8210
8225
  status: HealthStatus;
@@ -8215,14 +8230,18 @@ export interface IndicesDataStream {
8215
8230
  export interface IndicesDataStreamIndex {
8216
8231
  index_name: IndexName;
8217
8232
  index_uuid: Uuid;
8233
+ ilm_policy?: Name;
8234
+ managed_by: IndicesManagedBy;
8235
+ prefer_ilm: boolean;
8218
8236
  }
8219
- export interface IndicesDataStreamTimestampField {
8220
- name: Field;
8237
+ export interface IndicesDataStreamLifecycle {
8238
+ data_retention?: Duration;
8239
+ downsampling?: IndicesDataStreamLifecycleDownsampling;
8221
8240
  }
8222
- export interface IndicesDataStreamVisibility {
8223
- hidden?: boolean;
8241
+ export interface IndicesDataStreamLifecycleDownsampling {
8242
+ rounds: IndicesDownsamplingRound[];
8224
8243
  }
8225
- export interface IndicesDlmRolloverConditions {
8244
+ export interface IndicesDataStreamLifecycleRolloverConditions {
8226
8245
  min_age?: Duration;
8227
8246
  max_age?: string;
8228
8247
  min_docs?: long;
@@ -8234,9 +8253,24 @@ export interface IndicesDlmRolloverConditions {
8234
8253
  min_primary_shard_docs?: long;
8235
8254
  max_primary_shard_docs?: long;
8236
8255
  }
8256
+ export interface IndicesDataStreamLifecycleWithRollover {
8257
+ data_retention?: Duration;
8258
+ downsampling?: IndicesDataStreamLifecycleDownsampling;
8259
+ rollover?: IndicesDataStreamLifecycleRolloverConditions;
8260
+ }
8261
+ export interface IndicesDataStreamTimestampField {
8262
+ name: Field;
8263
+ }
8264
+ export interface IndicesDataStreamVisibility {
8265
+ hidden?: boolean;
8266
+ }
8237
8267
  export interface IndicesDownsampleConfig {
8238
8268
  fixed_interval: DurationLarge;
8239
8269
  }
8270
+ export interface IndicesDownsamplingRound {
8271
+ after: Duration;
8272
+ config: IndicesDownsampleConfig;
8273
+ }
8240
8274
  export interface IndicesFielddataFrequencyFilter {
8241
8275
  max: double;
8242
8276
  min: double;
@@ -8332,7 +8366,6 @@ export interface IndicesIndexSettingsKeys {
8332
8366
  analysis?: IndicesIndexSettingsAnalysis;
8333
8367
  settings?: IndicesIndexSettings;
8334
8368
  time_series?: IndicesIndexSettingsTimeSeries;
8335
- shards?: integer;
8336
8369
  queries?: IndicesQueries;
8337
8370
  similarity?: IndicesSettingsSimilarity;
8338
8371
  mapping?: IndicesMappingLimitSettings;
@@ -8371,7 +8404,7 @@ export interface IndicesIndexState {
8371
8404
  settings?: IndicesIndexSettings;
8372
8405
  defaults?: IndicesIndexSettings;
8373
8406
  data_stream?: DataStreamName;
8374
- lifecycle?: IndicesDataLifecycle;
8407
+ lifecycle?: IndicesDataStreamLifecycle;
8375
8408
  }
8376
8409
  export interface IndicesIndexTemplate {
8377
8410
  index_patterns: Names;
@@ -8391,7 +8424,7 @@ export interface IndicesIndexTemplateSummary {
8391
8424
  aliases?: Record<IndexName, IndicesAlias>;
8392
8425
  mappings?: MappingTypeMapping;
8393
8426
  settings?: IndicesIndexSettings;
8394
- lifecycle?: IndicesDataLifecycleWithRollover;
8427
+ lifecycle?: IndicesDataStreamLifecycleWithRollover;
8395
8428
  }
8396
8429
  export interface IndicesIndexVersioning {
8397
8430
  created?: VersionString;
@@ -8412,6 +8445,7 @@ export interface IndicesIndexingSlowlogSettings {
8412
8445
  export interface IndicesIndexingSlowlogTresholds {
8413
8446
  index?: IndicesSlowlogTresholdLevels;
8414
8447
  }
8448
+ export type IndicesManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged';
8415
8449
  export interface IndicesMappingLimitSettings {
8416
8450
  coerce?: boolean;
8417
8451
  total_fields?: IndicesMappingLimitSettingsTotalFields;
@@ -8809,14 +8843,14 @@ export interface IndicesExistsTemplateRequest extends RequestBase {
8809
8843
  master_timeout?: Duration;
8810
8844
  }
8811
8845
  export type IndicesExistsTemplateResponse = boolean;
8812
- export interface IndicesExplainDataLifecycleDataLifecycleExplain {
8846
+ export interface IndicesExplainDataLifecycleDataStreamLifecycleExplain {
8813
8847
  index: IndexName;
8814
- managed_by_dlm: boolean;
8848
+ managed_by_lifecycle: boolean;
8815
8849
  index_creation_date_millis?: EpochTime<UnitMillis>;
8816
8850
  time_since_index_creation?: Duration;
8817
8851
  rollover_date_millis?: EpochTime<UnitMillis>;
8818
8852
  time_since_rollover?: Duration;
8819
- lifecycle?: IndicesDataLifecycleWithRollover;
8853
+ lifecycle?: IndicesDataStreamLifecycleWithRollover;
8820
8854
  generation_time?: Duration;
8821
8855
  error?: string;
8822
8856
  }
@@ -8826,7 +8860,7 @@ export interface IndicesExplainDataLifecycleRequest extends RequestBase {
8826
8860
  master_timeout?: Duration;
8827
8861
  }
8828
8862
  export interface IndicesExplainDataLifecycleResponse {
8829
- indices: Record<IndexName, IndicesExplainDataLifecycleDataLifecycleExplain>;
8863
+ indices: Record<IndexName, IndicesExplainDataLifecycleDataStreamLifecycleExplain>;
8830
8864
  }
8831
8865
  export interface IndicesFieldUsageStatsFieldSummary {
8832
8866
  any: uint;
@@ -8926,9 +8960,9 @@ export interface IndicesGetAliasRequest extends RequestBase {
8926
8960
  local?: boolean;
8927
8961
  }
8928
8962
  export type IndicesGetAliasResponse = Record<IndexName, IndicesGetAliasIndexAliases>;
8929
- export interface IndicesGetDataLifecycleDataStreamLifecycle {
8963
+ export interface IndicesGetDataLifecycleDataStreamWithLifecycle {
8930
8964
  name: DataStreamName;
8931
- lifecycle?: IndicesDataLifecycle;
8965
+ lifecycle?: IndicesDataStreamLifecycle;
8932
8966
  }
8933
8967
  export interface IndicesGetDataLifecycleRequest extends RequestBase {
8934
8968
  name: DataStreamNames;
@@ -8936,7 +8970,7 @@ export interface IndicesGetDataLifecycleRequest extends RequestBase {
8936
8970
  include_defaults?: boolean;
8937
8971
  }
8938
8972
  export interface IndicesGetDataLifecycleResponse {
8939
- data_streams: IndicesGetDataLifecycleDataStreamLifecycle[];
8973
+ data_streams: IndicesGetDataLifecycleDataStreamWithLifecycle[];
8940
8974
  }
8941
8975
  export interface IndicesGetDataStreamRequest extends RequestBase {
8942
8976
  name?: DataStreamNames;
@@ -9056,13 +9090,14 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
9056
9090
  master_timeout?: Duration;
9057
9091
  timeout?: Duration;
9058
9092
  data_retention?: Duration;
9093
+ downsampling?: IndicesDataStreamLifecycleDownsampling;
9059
9094
  }
9060
9095
  export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase;
9061
9096
  export interface IndicesPutIndexTemplateIndexTemplateMapping {
9062
9097
  aliases?: Record<IndexName, IndicesAlias>;
9063
9098
  mappings?: MappingTypeMapping;
9064
9099
  settings?: IndicesIndexSettings;
9065
- lifecycle?: IndicesDataLifecycle;
9100
+ lifecycle?: IndicesDataStreamLifecycle;
9066
9101
  }
9067
9102
  export interface IndicesPutIndexTemplateRequest extends RequestBase {
9068
9103
  name: Name;
@@ -9653,6 +9688,55 @@ export interface IndicesValidateQueryResponse {
9653
9688
  valid: boolean;
9654
9689
  error?: string;
9655
9690
  }
9691
+ export type InferenceDenseVector = float[];
9692
+ export interface InferenceInferenceResult {
9693
+ text_embedding?: InferenceTextEmbeddingResult[];
9694
+ sparse_embedding?: InferenceSparseEmbeddingResult[];
9695
+ }
9696
+ export interface InferenceModelConfig {
9697
+ service: string;
9698
+ service_settings: InferenceServiceSettings;
9699
+ task_settings: InferenceTaskSettings;
9700
+ }
9701
+ export interface InferenceModelConfigContainer extends InferenceModelConfig {
9702
+ model_id: string;
9703
+ task_type: InferenceTaskType;
9704
+ }
9705
+ export type InferenceServiceSettings = any;
9706
+ export interface InferenceSparseEmbeddingResult {
9707
+ embedding: InferenceSparseVector;
9708
+ }
9709
+ export type InferenceSparseVector = Record<string, float>;
9710
+ export type InferenceTaskSettings = any;
9711
+ export type InferenceTaskType = 'sparse_embedding' | 'text_embedding';
9712
+ export interface InferenceTextEmbeddingResult {
9713
+ embedding: InferenceDenseVector;
9714
+ }
9715
+ export interface InferenceDeleteModelRequest extends RequestBase {
9716
+ task_type: InferenceTaskType;
9717
+ model_id: Id;
9718
+ }
9719
+ export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
9720
+ export interface InferenceGetModelRequest extends RequestBase {
9721
+ task_type: InferenceTaskType;
9722
+ model_id: Id;
9723
+ }
9724
+ export interface InferenceGetModelResponse {
9725
+ models: InferenceModelConfigContainer[];
9726
+ }
9727
+ export interface InferenceInferenceRequest extends RequestBase {
9728
+ task_type: InferenceTaskType;
9729
+ model_id: Id;
9730
+ input: string | string[];
9731
+ task_settings?: InferenceTaskSettings;
9732
+ }
9733
+ export type InferenceInferenceResponse = InferenceInferenceResult;
9734
+ export interface InferencePutModelRequest extends RequestBase {
9735
+ task_type: InferenceTaskType;
9736
+ model_id: Id;
9737
+ model_config?: InferenceModelConfig;
9738
+ }
9739
+ export type InferencePutModelResponse = InferenceModelConfigContainer;
9656
9740
  export interface IngestAppendProcessor extends IngestProcessorBase {
9657
9741
  field: Field;
9658
9742
  value: any[];
@@ -9819,6 +9903,7 @@ export interface IngestPipeline {
9819
9903
  on_failure?: IngestProcessorContainer[];
9820
9904
  processors?: IngestProcessorContainer[];
9821
9905
  version?: VersionNumber;
9906
+ _meta: Metadata;
9822
9907
  }
9823
9908
  export interface IngestPipelineConfig {
9824
9909
  description?: string;
@@ -9857,6 +9942,7 @@ export interface IngestProcessorContainer {
9857
9942
  lowercase?: IngestLowercaseProcessor;
9858
9943
  remove?: IngestRemoveProcessor;
9859
9944
  rename?: IngestRenameProcessor;
9945
+ reroute?: IngestRerouteProcessor;
9860
9946
  script?: Script;
9861
9947
  set?: IngestSetProcessor;
9862
9948
  sort?: IngestSortProcessor;
@@ -9881,6 +9967,11 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
9881
9967
  ignore_missing?: boolean;
9882
9968
  target_field: Field;
9883
9969
  }
9970
+ export interface IngestRerouteProcessor extends IngestProcessorBase {
9971
+ destination?: string;
9972
+ dataset?: string | string[];
9973
+ namespace?: string | string[];
9974
+ }
9884
9975
  export interface IngestSetProcessor extends IngestProcessorBase {
9885
9976
  copy_from?: Field;
9886
9977
  field: Field;
@@ -10123,7 +10214,7 @@ export interface LogstashDeletePipelineRequest extends RequestBase {
10123
10214
  }
10124
10215
  export type LogstashDeletePipelineResponse = boolean;
10125
10216
  export interface LogstashGetPipelineRequest extends RequestBase {
10126
- id: Ids;
10217
+ id?: Ids;
10127
10218
  }
10128
10219
  export type LogstashGetPipelineResponse = Record<Id, LogstashPipeline>;
10129
10220
  export interface LogstashPutPipelineRequest extends RequestBase {
@@ -11980,6 +12071,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
11980
12071
  metadata?: any;
11981
12072
  model_type?: MlTrainedModelType;
11982
12073
  model_size_bytes?: long;
12074
+ platform_architecture?: string;
11983
12075
  tags?: string[];
11984
12076
  }
11985
12077
  export type MlPutTrainedModelResponse = MlTrainedModelConfig;
@@ -12032,6 +12124,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
12032
12124
  model_id: Id;
12033
12125
  vocabulary: string[];
12034
12126
  merges?: string[];
12127
+ scores?: double[];
12035
12128
  }
12036
12129
  export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase;
12037
12130
  export interface MlResetJobRequest extends RequestBase {
@@ -12074,6 +12167,7 @@ export interface MlStartDatafeedResponse {
12074
12167
  export interface MlStartTrainedModelDeploymentRequest extends RequestBase {
12075
12168
  model_id: Id;
12076
12169
  cache_size?: ByteSize;
12170
+ deployment_id?: string;
12077
12171
  number_of_allocations?: integer;
12078
12172
  priority?: MlTrainingPriority;
12079
12173
  queue_capacity?: integer;
@@ -13409,11 +13503,9 @@ export interface SecurityCreatedStatus {
13409
13503
  created: boolean;
13410
13504
  }
13411
13505
  export interface SecurityFieldRule {
13412
- username?: Name;
13506
+ username?: Names;
13413
13507
  dn?: Names;
13414
13508
  groups?: Names;
13415
- metadata?: any;
13416
- realm?: SecurityRealm;
13417
13509
  }
13418
13510
  export interface SecurityFieldSecurity {
13419
13511
  except?: Fields;
@@ -13435,9 +13527,6 @@ export type SecurityIndicesPrivilegesQuery = string | QueryDslQueryContainer | S
13435
13527
  export interface SecurityManageUserPrivileges {
13436
13528
  applications: string[];
13437
13529
  }
13438
- export interface SecurityRealm {
13439
- name: Name;
13440
- }
13441
13530
  export interface SecurityRealmInfo {
13442
13531
  name: Name;
13443
13532
  type: string;
@@ -13467,7 +13556,7 @@ export interface SecurityRoleMapping {
13467
13556
  metadata: Metadata;
13468
13557
  roles: string[];
13469
13558
  rules: SecurityRoleMappingRule;
13470
- role_templates?: SecurityGetRoleRoleTemplate[];
13559
+ role_templates?: SecurityRoleTemplate[];
13471
13560
  }
13472
13561
  export interface SecurityRoleMappingRule {
13473
13562
  any?: SecurityRoleMappingRule[];
@@ -13475,6 +13564,10 @@ export interface SecurityRoleMappingRule {
13475
13564
  field?: SecurityFieldRule;
13476
13565
  except?: SecurityRoleMappingRule;
13477
13566
  }
13567
+ export interface SecurityRoleTemplate {
13568
+ format?: SecurityTemplateFormat;
13569
+ template: Script;
13570
+ }
13478
13571
  export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer;
13479
13572
  export interface SecurityRoleTemplateInlineScript extends ScriptBase {
13480
13573
  lang?: ScriptLanguage;
@@ -13485,6 +13578,7 @@ export interface SecurityRoleTemplateQuery {
13485
13578
  template?: SecurityRoleTemplateScript;
13486
13579
  }
13487
13580
  export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId;
13581
+ export type SecurityTemplateFormat = 'string' | 'json';
13488
13582
  export interface SecurityTransientMetadataConfig {
13489
13583
  enabled: boolean;
13490
13584
  }
@@ -13721,6 +13815,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
13721
13815
  realm_name?: Name;
13722
13816
  username?: Username;
13723
13817
  with_limited_by?: boolean;
13818
+ active_only?: boolean;
13724
13819
  }
13725
13820
  export interface SecurityGetApiKeyResponse {
13726
13821
  api_keys: SecurityApiKey[];
@@ -13747,14 +13842,9 @@ export interface SecurityGetRoleRole {
13747
13842
  run_as: string[];
13748
13843
  transient_metadata: SecurityTransientMetadataConfig;
13749
13844
  applications: SecurityApplicationPrivileges[];
13750
- role_templates?: SecurityGetRoleRoleTemplate[];
13845
+ role_templates?: SecurityRoleTemplate[];
13751
13846
  global?: Record<string, Record<string, Record<string, string[]>>>;
13752
13847
  }
13753
- export interface SecurityGetRoleRoleTemplate {
13754
- format?: SecurityGetRoleTemplateFormat;
13755
- template: Script;
13756
- }
13757
- export type SecurityGetRoleTemplateFormat = 'string' | 'json';
13758
13848
  export interface SecurityGetRoleMappingRequest extends RequestBase {
13759
13849
  name?: Names;
13760
13850
  }
@@ -13967,6 +14057,7 @@ export interface SecurityPutRoleMappingRequest extends RequestBase {
13967
14057
  enabled?: boolean;
13968
14058
  metadata?: Metadata;
13969
14059
  roles?: string[];
14060
+ role_templates?: SecurityRoleTemplate[];
13970
14061
  rules?: SecurityRoleMappingRule;
13971
14062
  run_as?: string[];
13972
14063
  }
@@ -14076,6 +14167,7 @@ export interface SecurityUpdateApiKeyRequest extends RequestBase {
14076
14167
  id: Id;
14077
14168
  role_descriptors?: Record<string, SecurityRoleDescriptor>;
14078
14169
  metadata?: Metadata;
14170
+ expiration?: Duration;
14079
14171
  }
14080
14172
  export interface SecurityUpdateApiKeyResponse {
14081
14173
  updated: boolean;
@@ -14814,6 +14906,7 @@ export interface TransformTimeSync {
14814
14906
  export interface TransformDeleteTransformRequest extends RequestBase {
14815
14907
  transform_id: Id;
14816
14908
  force?: boolean;
14909
+ delete_dest_index?: boolean;
14817
14910
  timeout?: Duration;
14818
14911
  }
14819
14912
  export type TransformDeleteTransformResponse = AcknowledgedResponseBase;