@elastic/elasticsearch 8.13.0 → 8.14.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 (99) hide show
  1. package/catalog-info.yaml +3 -6
  2. package/lib/api/api/async_search.d.ts +4 -4
  3. package/lib/api/api/autoscaling.d.ts +4 -4
  4. package/lib/api/api/bulk.d.ts +1 -1
  5. package/lib/api/api/cat.d.ts +26 -26
  6. package/lib/api/api/ccr.d.ts +13 -13
  7. package/lib/api/api/clear_scroll.d.ts +1 -1
  8. package/lib/api/api/close_point_in_time.d.ts +1 -1
  9. package/lib/api/api/cluster.d.ts +16 -16
  10. package/lib/api/api/cluster.js +1 -1
  11. package/lib/api/api/cluster.js.map +1 -1
  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 +1 -1
  22. package/lib/api/api/exists.d.ts +1 -1
  23. package/lib/api/api/exists_source.d.ts +1 -1
  24. package/lib/api/api/explain.d.ts +1 -1
  25. package/lib/api/api/features.d.ts +2 -2
  26. package/lib/api/api/field_caps.d.ts +1 -1
  27. package/lib/api/api/fleet.d.ts +1 -1
  28. package/lib/api/api/get.d.ts +1 -1
  29. package/lib/api/api/get_script.d.ts +1 -1
  30. package/lib/api/api/get_script_context.d.ts +1 -1
  31. package/lib/api/api/get_script_languages.d.ts +1 -1
  32. package/lib/api/api/get_source.d.ts +1 -1
  33. package/lib/api/api/graph.d.ts +1 -1
  34. package/lib/api/api/health_report.d.ts +1 -1
  35. package/lib/api/api/ilm.d.ts +11 -11
  36. package/lib/api/api/index.d.ts +1 -1
  37. package/lib/api/api/indices.d.ts +62 -62
  38. package/lib/api/api/indices.js +15 -21
  39. package/lib/api/api/indices.js.map +1 -1
  40. package/lib/api/api/inference.d.ts +4 -4
  41. package/lib/api/api/inference.js +1 -1
  42. package/lib/api/api/inference.js.map +1 -1
  43. package/lib/api/api/info.d.ts +1 -1
  44. package/lib/api/api/ingest.d.ts +6 -6
  45. package/lib/api/api/knn_search.d.ts +1 -1
  46. package/lib/api/api/license.d.ts +7 -7
  47. package/lib/api/api/logstash.d.ts +3 -3
  48. package/lib/api/api/mget.d.ts +1 -1
  49. package/lib/api/api/migration.d.ts +3 -3
  50. package/lib/api/api/ml.d.ts +76 -76
  51. package/lib/api/api/ml.js +17 -3
  52. package/lib/api/api/ml.js.map +1 -1
  53. package/lib/api/api/monitoring.d.ts +1 -1
  54. package/lib/api/api/msearch.d.ts +1 -1
  55. package/lib/api/api/msearch_template.d.ts +1 -1
  56. package/lib/api/api/mtermvectors.d.ts +1 -1
  57. package/lib/api/api/nodes.d.ts +7 -7
  58. package/lib/api/api/open_point_in_time.d.ts +1 -1
  59. package/lib/api/api/ping.d.ts +1 -1
  60. package/lib/api/api/put_script.d.ts +1 -1
  61. package/lib/api/api/query_ruleset.d.ts +4 -4
  62. package/lib/api/api/rank_eval.d.ts +1 -1
  63. package/lib/api/api/reindex.d.ts +1 -1
  64. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  65. package/lib/api/api/render_search_template.d.ts +1 -1
  66. package/lib/api/api/rollup.d.ts +8 -8
  67. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  68. package/lib/api/api/scroll.d.ts +1 -1
  69. package/lib/api/api/search.d.ts +1 -1
  70. package/lib/api/api/search.js +1 -1
  71. package/lib/api/api/search.js.map +1 -1
  72. package/lib/api/api/search_application.d.ts +9 -9
  73. package/lib/api/api/search_mvt.d.ts +1 -1
  74. package/lib/api/api/search_shards.d.ts +1 -1
  75. package/lib/api/api/search_template.d.ts +1 -1
  76. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  77. package/lib/api/api/security.d.ts +59 -59
  78. package/lib/api/api/slm.d.ts +9 -9
  79. package/lib/api/api/snapshot.d.ts +12 -12
  80. package/lib/api/api/sql.d.ts +6 -6
  81. package/lib/api/api/ssl.d.ts +1 -1
  82. package/lib/api/api/synonyms.d.ts +7 -7
  83. package/lib/api/api/tasks.d.ts +3 -3
  84. package/lib/api/api/terms_enum.d.ts +1 -1
  85. package/lib/api/api/termvectors.d.ts +1 -1
  86. package/lib/api/api/text_structure.d.ts +2 -2
  87. package/lib/api/api/transform.d.ts +11 -11
  88. package/lib/api/api/update.d.ts +1 -1
  89. package/lib/api/api/update_by_query.d.ts +1 -1
  90. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  91. package/lib/api/api/watcher.d.ts +13 -13
  92. package/lib/api/api/xpack.d.ts +2 -2
  93. package/lib/api/types.d.ts +594 -99
  94. package/lib/api/typesWithBodyKey.d.ts +648 -103
  95. package/lib/helpers.d.ts +29 -0
  96. package/lib/helpers.js +96 -20
  97. package/lib/helpers.js.map +1 -1
  98. package/package.json +4 -4
  99. package/Makefile +0 -11
@@ -330,6 +330,7 @@ export interface GetGetResult<TDocument = unknown> {
330
330
  export interface GetRequest extends RequestBase {
331
331
  id: Id;
332
332
  index: IndexName;
333
+ force_synthetic_source?: boolean;
333
334
  preference?: string;
334
335
  realtime?: boolean;
335
336
  refresh?: boolean;
@@ -577,8 +578,8 @@ export interface KnnSearchResponse<TDocument = unknown> {
577
578
  export interface KnnSearchQuery {
578
579
  field: Field;
579
580
  query_vector: QueryVector;
580
- k: long;
581
- num_candidates: long;
581
+ k: integer;
582
+ num_candidates: integer;
582
583
  }
583
584
  export interface MgetMultiGetError {
584
585
  error: ErrorCause;
@@ -596,6 +597,7 @@ export interface MgetOperation {
596
597
  }
597
598
  export interface MgetRequest extends RequestBase {
598
599
  index?: IndexName;
600
+ force_synthetic_source?: boolean;
599
601
  preference?: string;
600
602
  realtime?: boolean;
601
603
  refresh?: boolean;
@@ -630,7 +632,7 @@ export interface MsearchMultisearchBody {
630
632
  ext?: Record<string, any>;
631
633
  stored_fields?: Fields;
632
634
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
633
- knn?: KnnQuery | KnnQuery[];
635
+ knn?: KnnSearch | KnnSearch[];
634
636
  from?: integer;
635
637
  highlight?: SearchHighlight;
636
638
  indices_boost?: Record<IndexName, double>[];
@@ -708,7 +710,7 @@ export interface MsearchTemplateTemplateConfig {
708
710
  source?: string;
709
711
  }
710
712
  export interface MtermvectorsOperation {
711
- _id: Id;
713
+ _id?: Id;
712
714
  _index?: IndexName;
713
715
  doc?: any;
714
716
  fields?: Fields;
@@ -1024,6 +1026,7 @@ export interface SearchRequest extends RequestBase {
1024
1026
  _source_excludes?: Fields;
1025
1027
  _source_includes?: Fields;
1026
1028
  q?: string;
1029
+ force_synthetic_source?: boolean;
1027
1030
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
1028
1031
  body?: {
1029
1032
  aggregations?: Record<string, AggregationsAggregationContainer>;
@@ -1037,13 +1040,14 @@ export interface SearchRequest extends RequestBase {
1037
1040
  track_total_hits?: SearchTrackHits;
1038
1041
  indices_boost?: Record<IndexName, double>[];
1039
1042
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
1040
- knn?: KnnQuery | KnnQuery[];
1043
+ knn?: KnnSearch | KnnSearch[];
1041
1044
  rank?: RankContainer;
1042
1045
  min_score?: double;
1043
1046
  post_filter?: QueryDslQueryContainer;
1044
1047
  profile?: boolean;
1045
1048
  query?: QueryDslQueryContainer;
1046
1049
  rescore?: SearchRescore | SearchRescore[];
1050
+ retriever?: RetrieverContainer;
1047
1051
  script_fields?: Record<string, ScriptField>;
1048
1052
  search_after?: SortResults;
1049
1053
  size?: integer;
@@ -1262,7 +1266,7 @@ export type SearchHighlighterTagsSchema = 'styled';
1262
1266
  export type SearchHighlighterType = 'plain' | 'fvh' | 'unified' | string;
1263
1267
  export interface SearchHit<TDocument = unknown> {
1264
1268
  _index: IndexName;
1265
- _id: Id;
1269
+ _id?: Id;
1266
1270
  _score?: double | null;
1267
1271
  _explanation?: ExplainExplanation;
1268
1272
  fields?: Record<string, any>;
@@ -1310,6 +1314,10 @@ export interface SearchInnerHitsResult {
1310
1314
  export interface SearchLaplaceSmoothingModel {
1311
1315
  alpha: double;
1312
1316
  }
1317
+ export interface SearchLearningToRank {
1318
+ model_id: string;
1319
+ params?: Record<string, any>;
1320
+ }
1313
1321
  export interface SearchLinearInterpolationSmoothingModel {
1314
1322
  bigram_lambda: double;
1315
1323
  trigram_lambda: double;
@@ -1396,8 +1404,9 @@ export interface SearchRegexOptions {
1396
1404
  max_determinized_states?: integer;
1397
1405
  }
1398
1406
  export interface SearchRescore {
1399
- query: SearchRescoreQuery;
1400
1407
  window_size?: integer;
1408
+ query?: SearchRescoreQuery;
1409
+ learning_to_rank?: SearchLearningToRank;
1401
1410
  }
1402
1411
  export interface SearchRescoreQuery {
1403
1412
  rescore_query: QueryDslQueryContainer;
@@ -1756,8 +1765,10 @@ export interface SpecUtilsBaseNode {
1756
1765
  roles?: NodeRoles;
1757
1766
  transport_address: TransportAddress;
1758
1767
  }
1768
+ export type SpecUtilsNullValue = null;
1759
1769
  export type SpecUtilsPipeSeparatedFlags<T = unknown> = T | string;
1760
1770
  export type SpecUtilsStringified<T = unknown> = T | string;
1771
+ export type SpecUtilsWithNullValue<T = unknown> = T | SpecUtilsNullValue;
1761
1772
  export interface AcknowledgedResponseBase {
1762
1773
  acknowledged: boolean;
1763
1774
  }
@@ -1822,8 +1833,8 @@ export type DFRBasicModel = 'be' | 'd' | 'g' | 'if' | 'in' | 'ine' | 'p';
1822
1833
  export type DataStreamName = string;
1823
1834
  export type DataStreamNames = DataStreamName | DataStreamName[];
1824
1835
  export type DateFormat = string;
1825
- export type DateMath = string;
1826
- export type DateTime = string | EpochTime<UnitMillis>;
1836
+ export type DateMath = string | Date;
1837
+ export type DateTime = string | EpochTime<UnitMillis> | Date;
1827
1838
  export type Distance = string;
1828
1839
  export type DistanceUnit = 'in' | 'ft' | 'yd' | 'mi' | 'nmi' | 'km' | 'm' | 'cm' | 'mm';
1829
1840
  export interface DocStats {
@@ -1999,12 +2010,28 @@ export interface InlineScript extends ScriptBase {
1999
2010
  source: string;
2000
2011
  }
2001
2012
  export type Ip = string;
2002
- export interface KnnQuery {
2013
+ export interface KnnQuery extends QueryDslQueryBase {
2003
2014
  field: Field;
2004
2015
  query_vector?: QueryVector;
2005
2016
  query_vector_builder?: QueryVectorBuilder;
2006
- k: long;
2007
- num_candidates: long;
2017
+ num_candidates?: integer;
2018
+ filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
2019
+ similarity?: float;
2020
+ }
2021
+ export interface KnnRetriever extends RetrieverBase {
2022
+ field: string;
2023
+ query_vector?: QueryVector;
2024
+ query_vector_builder?: QueryVectorBuilder;
2025
+ k: integer;
2026
+ num_candidates: integer;
2027
+ similarity?: float;
2028
+ }
2029
+ export interface KnnSearch {
2030
+ field: Field;
2031
+ query_vector?: QueryVector;
2032
+ query_vector_builder?: QueryVectorBuilder;
2033
+ k?: integer;
2034
+ num_candidates?: integer;
2008
2035
  boost?: float;
2009
2036
  filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
2010
2037
  similarity?: float;
@@ -2098,19 +2125,24 @@ export interface PluginStats {
2098
2125
  }
2099
2126
  export type PropertyName = string;
2100
2127
  export interface QueryCacheStats {
2101
- cache_count: integer;
2102
- cache_size: integer;
2103
- evictions: integer;
2104
- hit_count: integer;
2128
+ cache_count: long;
2129
+ cache_size: long;
2130
+ evictions: long;
2131
+ hit_count: long;
2105
2132
  memory_size?: ByteSize;
2106
2133
  memory_size_in_bytes: long;
2107
- miss_count: integer;
2108
- total_count: integer;
2134
+ miss_count: long;
2135
+ total_count: long;
2109
2136
  }
2110
2137
  export type QueryVector = float[];
2111
2138
  export interface QueryVectorBuilder {
2112
2139
  text_embedding?: TextEmbedding;
2113
2140
  }
2141
+ export interface RRFRetriever extends RetrieverBase {
2142
+ retrievers: RetrieverContainer[];
2143
+ rank_constant?: integer;
2144
+ window_size?: integer;
2145
+ }
2114
2146
  export interface RankBase {
2115
2147
  }
2116
2148
  export interface RankContainer {
@@ -2149,6 +2181,14 @@ export interface Retries {
2149
2181
  bulk: long;
2150
2182
  search: long;
2151
2183
  }
2184
+ export interface RetrieverBase {
2185
+ filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
2186
+ }
2187
+ export interface RetrieverContainer {
2188
+ standard?: StandardRetriever;
2189
+ knn?: KnnRetriever;
2190
+ rrf?: RRFRetriever;
2191
+ }
2152
2192
  export type Routing = string;
2153
2193
  export interface RrfRank {
2154
2194
  rank_constant?: long;
@@ -2274,6 +2314,14 @@ export type SortOptions = SortOptionsKeys & {
2274
2314
  };
2275
2315
  export type SortOrder = 'asc' | 'desc';
2276
2316
  export type SortResults = FieldValue[];
2317
+ export interface StandardRetriever extends RetrieverBase {
2318
+ query?: QueryDslQueryContainer;
2319
+ search_after?: SortResults;
2320
+ terminate_after?: integer;
2321
+ sort?: Sort;
2322
+ min_score?: float;
2323
+ collapse?: SearchFieldCollapse;
2324
+ }
2277
2325
  export interface StoreStats {
2278
2326
  size?: ByteSize;
2279
2327
  size_in_bytes: long;
@@ -2354,9 +2402,9 @@ export interface WktGeoBounds {
2354
2402
  export interface WriteResponseBase {
2355
2403
  _id: Id;
2356
2404
  _index: IndexName;
2357
- _primary_term: long;
2405
+ _primary_term?: long;
2358
2406
  result: Result;
2359
- _seq_no: SequenceNumber;
2407
+ _seq_no?: SequenceNumber;
2360
2408
  _shards: ShardStatistics;
2361
2409
  _version: VersionNumber;
2362
2410
  forced_refresh?: boolean;
@@ -2373,6 +2421,7 @@ export interface AggregationsAdjacencyMatrixAggregate extends AggregationsMultiB
2373
2421
  }
2374
2422
  export interface AggregationsAdjacencyMatrixAggregation extends AggregationsBucketAggregationBase {
2375
2423
  filters?: Record<string, QueryDslQueryContainer>;
2424
+ separator?: string;
2376
2425
  }
2377
2426
  export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMultiBucketBase {
2378
2427
  key: string;
@@ -2386,8 +2435,6 @@ export interface AggregationsAggregateBase {
2386
2435
  }
2387
2436
  export type AggregationsAggregateOrder = Partial<Record<Field, SortOrder>> | Partial<Record<Field, SortOrder>>[];
2388
2437
  export interface AggregationsAggregation {
2389
- meta?: Metadata;
2390
- name?: string;
2391
2438
  }
2392
2439
  export interface AggregationsAggregationContainer {
2393
2440
  aggregations?: Record<string, AggregationsAggregationContainer>;
@@ -2471,9 +2518,9 @@ export interface AggregationsAggregationContainer {
2471
2518
  variable_width_histogram?: AggregationsVariableWidthHistogramAggregation;
2472
2519
  }
2473
2520
  export interface AggregationsAggregationRange {
2474
- from?: double | string | null;
2521
+ from?: double;
2475
2522
  key?: string;
2476
- to?: double | string | null;
2523
+ to?: double;
2477
2524
  }
2478
2525
  export interface AggregationsArrayPercentilesItem {
2479
2526
  key: string;
@@ -2519,7 +2566,7 @@ export interface AggregationsBoxPlotAggregate extends AggregationsAggregateBase
2519
2566
  export interface AggregationsBoxplotAggregation extends AggregationsMetricAggregationBase {
2520
2567
  compression?: double;
2521
2568
  }
2522
- export interface AggregationsBucketAggregationBase extends AggregationsAggregation {
2569
+ export interface AggregationsBucketAggregationBase {
2523
2570
  }
2524
2571
  export interface AggregationsBucketCorrelationAggregation extends AggregationsBucketPathAggregation {
2525
2572
  function: AggregationsBucketCorrelationFunction;
@@ -2543,7 +2590,7 @@ export interface AggregationsBucketKsAggregation extends AggregationsBucketPathA
2543
2590
  export interface AggregationsBucketMetricValueAggregate extends AggregationsSingleMetricAggregateBase {
2544
2591
  keys: string[];
2545
2592
  }
2546
- export interface AggregationsBucketPathAggregation extends AggregationsAggregation {
2593
+ export interface AggregationsBucketPathAggregation {
2547
2594
  buckets_path?: AggregationsBucketsPath;
2548
2595
  }
2549
2596
  export interface AggregationsBucketScriptAggregation extends AggregationsPipelineAggregationBase {
@@ -2552,7 +2599,7 @@ export interface AggregationsBucketScriptAggregation extends AggregationsPipelin
2552
2599
  export interface AggregationsBucketSelectorAggregation extends AggregationsPipelineAggregationBase {
2553
2600
  script?: Script;
2554
2601
  }
2555
- export interface AggregationsBucketSortAggregation extends AggregationsAggregation {
2602
+ export interface AggregationsBucketSortAggregation {
2556
2603
  from?: integer;
2557
2604
  gap_policy?: AggregationsGapPolicy;
2558
2605
  size?: integer;
@@ -2570,7 +2617,7 @@ export interface AggregationsCardinalityAggregation extends AggregationsMetricAg
2570
2617
  execution_hint?: AggregationsCardinalityExecutionMode;
2571
2618
  }
2572
2619
  export type AggregationsCardinalityExecutionMode = 'global_ordinals' | 'segment_ordinals' | 'direct' | 'save_memory_heuristic' | 'save_time_heuristic';
2573
- export interface AggregationsCategorizeTextAggregation extends AggregationsAggregation {
2620
+ export interface AggregationsCategorizeTextAggregation {
2574
2621
  field: Field;
2575
2622
  max_unique_tokens?: integer;
2576
2623
  max_matched_tokens?: integer;
@@ -2724,8 +2771,8 @@ export interface AggregationsEwmaMovingAverageAggregation extends AggregationsMo
2724
2771
  settings: AggregationsEwmaModelSettings;
2725
2772
  }
2726
2773
  export interface AggregationsExtendedBounds<T = unknown> {
2727
- max: T;
2728
- min: T;
2774
+ max?: T;
2775
+ min?: T;
2729
2776
  }
2730
2777
  export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAggregate {
2731
2778
  sum_of_squares: double | null;
@@ -3036,7 +3083,7 @@ export interface AggregationsLongTermsBucketKeys extends AggregationsTermsBucket
3036
3083
  export type AggregationsLongTermsBucket = AggregationsLongTermsBucketKeys & {
3037
3084
  [property: string]: AggregationsAggregate | long | string;
3038
3085
  };
3039
- export interface AggregationsMatrixAggregation extends AggregationsAggregation {
3086
+ export interface AggregationsMatrixAggregation {
3040
3087
  fields?: Fields;
3041
3088
  missing?: Record<Field, double>;
3042
3089
  }
@@ -3413,7 +3460,7 @@ export interface AggregationsTTestAggregate extends AggregationsAggregateBase {
3413
3460
  value: double | null;
3414
3461
  value_as_string?: string;
3415
3462
  }
3416
- export interface AggregationsTTestAggregation extends AggregationsAggregation {
3463
+ export interface AggregationsTTestAggregation {
3417
3464
  a?: AggregationsTestPopulation;
3418
3465
  b?: AggregationsTestPopulation;
3419
3466
  type?: AggregationsTTestType;
@@ -3444,7 +3491,7 @@ export interface AggregationsTermsAggregation extends AggregationsBucketAggregat
3444
3491
  export type AggregationsTermsAggregationCollectMode = 'depth_first' | 'breadth_first';
3445
3492
  export type AggregationsTermsAggregationExecutionHint = 'map' | 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality';
3446
3493
  export interface AggregationsTermsBucketBase extends AggregationsMultiBucketBase {
3447
- doc_count_error?: long;
3494
+ doc_count_error_upper_bound?: long;
3448
3495
  }
3449
3496
  export type AggregationsTermsExclude = string | string[];
3450
3497
  export type AggregationsTermsInclude = string | string[] | AggregationsTermsPartition;
@@ -3461,8 +3508,9 @@ export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase
3461
3508
  hits: SearchHitsMetadata<any>;
3462
3509
  }
3463
3510
  export interface AggregationsTopHitsAggregation extends AggregationsMetricAggregationBase {
3464
- docvalue_fields?: Fields;
3511
+ docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
3465
3512
  explain?: boolean;
3513
+ fields?: (QueryDslFieldAndFormat | Field)[];
3466
3514
  from?: integer;
3467
3515
  highlight?: SearchHighlight;
3468
3516
  script_fields?: Record<string, ScriptField>;
@@ -3512,6 +3560,7 @@ export interface AggregationsVariableWidthHistogramAggregation {
3512
3560
  buckets?: integer;
3513
3561
  shard_size?: integer;
3514
3562
  initial_buffer?: integer;
3563
+ script?: Script;
3515
3564
  }
3516
3565
  export interface AggregationsVariableWidthHistogramBucketKeys extends AggregationsMultiBucketBase {
3517
3566
  min: double;
@@ -3524,7 +3573,7 @@ export interface AggregationsVariableWidthHistogramBucketKeys extends Aggregatio
3524
3573
  export type AggregationsVariableWidthHistogramBucket = AggregationsVariableWidthHistogramBucketKeys & {
3525
3574
  [property: string]: AggregationsAggregate | double | string | long;
3526
3575
  };
3527
- export interface AggregationsWeightedAverageAggregation extends AggregationsAggregation {
3576
+ export interface AggregationsWeightedAverageAggregation {
3528
3577
  format?: string;
3529
3578
  value?: AggregationsWeightedAverageValue;
3530
3579
  value_type?: AggregationsValueType;
@@ -3636,6 +3685,7 @@ export interface AnalysisFingerprintTokenFilter extends AnalysisTokenFilterBase
3636
3685
  }
3637
3686
  export interface AnalysisHtmlStripCharFilter extends AnalysisCharFilterBase {
3638
3687
  type: 'html_strip';
3688
+ escaped_tags?: string[];
3639
3689
  }
3640
3690
  export interface AnalysisHunspellTokenFilter extends AnalysisTokenFilterBase {
3641
3691
  type: 'hunspell';
@@ -3659,16 +3709,16 @@ export type AnalysisIcuCollationStrength = 'primary' | 'secondary' | 'tertiary'
3659
3709
  export interface AnalysisIcuCollationTokenFilter extends AnalysisTokenFilterBase {
3660
3710
  type: 'icu_collation';
3661
3711
  alternate?: AnalysisIcuCollationAlternate;
3662
- caseFirst?: AnalysisIcuCollationCaseFirst;
3663
- caseLevel?: boolean;
3712
+ case_first?: AnalysisIcuCollationCaseFirst;
3713
+ case_level?: boolean;
3664
3714
  country?: string;
3665
3715
  decomposition?: AnalysisIcuCollationDecomposition;
3666
- hiraganaQuaternaryMode?: boolean;
3716
+ hiragana_quaternary_mode?: boolean;
3667
3717
  language?: string;
3668
3718
  numeric?: boolean;
3669
3719
  rules?: string;
3670
3720
  strength?: AnalysisIcuCollationStrength;
3671
- variableTop?: string;
3721
+ variable_top?: string;
3672
3722
  variant?: string;
3673
3723
  }
3674
3724
  export interface AnalysisIcuFoldingTokenFilter extends AnalysisTokenFilterBase {
@@ -3881,7 +3931,7 @@ export type AnalysisPhoneticRuleType = 'approx' | 'exact';
3881
3931
  export interface AnalysisPhoneticTokenFilter extends AnalysisTokenFilterBase {
3882
3932
  type: 'phonetic';
3883
3933
  encoder: AnalysisPhoneticEncoder;
3884
- languageset: AnalysisPhoneticLanguage[];
3934
+ languageset: AnalysisPhoneticLanguage | AnalysisPhoneticLanguage[];
3885
3935
  max_code_len?: integer;
3886
3936
  name_type: AnalysisPhoneticNameType;
3887
3937
  replace?: boolean;
@@ -3965,6 +4015,7 @@ export interface AnalysisSynonymGraphTokenFilter extends AnalysisTokenFilterBase
3965
4015
  lenient?: boolean;
3966
4016
  synonyms?: string[];
3967
4017
  synonyms_path?: string;
4018
+ synonyms_set?: string;
3968
4019
  tokenizer?: string;
3969
4020
  updateable?: boolean;
3970
4021
  }
@@ -3975,6 +4026,7 @@ export interface AnalysisSynonymTokenFilter extends AnalysisTokenFilterBase {
3975
4026
  lenient?: boolean;
3976
4027
  synonyms?: string[];
3977
4028
  synonyms_path?: string;
4029
+ synonyms_set?: string;
3978
4030
  tokenizer?: string;
3979
4031
  updateable?: boolean;
3980
4032
  }
@@ -3983,7 +4035,7 @@ export type AnalysisTokenFilter = string | AnalysisTokenFilterDefinition;
3983
4035
  export interface AnalysisTokenFilterBase {
3984
4036
  version?: VersionString;
3985
4037
  }
3986
- export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuTokenizer | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter;
4038
+ export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter;
3987
4039
  export type AnalysisTokenizer = string | AnalysisTokenizerDefinition;
3988
4040
  export interface AnalysisTokenizerBase {
3989
4041
  version?: VersionString;
@@ -4133,6 +4185,7 @@ export interface MappingDenseVectorIndexOptions {
4133
4185
  }
4134
4186
  export interface MappingDenseVectorProperty extends MappingPropertyBase {
4135
4187
  type: 'dense_vector';
4188
+ element_type?: string;
4136
4189
  dims?: integer;
4137
4190
  similarity?: string;
4138
4191
  index?: boolean;
@@ -4150,7 +4203,7 @@ export interface MappingDoubleRangeProperty extends MappingRangePropertyBase {
4150
4203
  }
4151
4204
  export type MappingDynamicMapping = boolean | 'strict' | 'runtime' | 'true' | 'false';
4152
4205
  export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4153
- type: '{dynamic_property}';
4206
+ type: '{dynamic_type}';
4154
4207
  enabled?: boolean;
4155
4208
  null_value?: FieldValue;
4156
4209
  boost?: double;
@@ -4176,12 +4229,14 @@ export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4176
4229
  }
4177
4230
  export interface MappingDynamicTemplate {
4178
4231
  mapping?: MappingProperty;
4179
- match?: string;
4180
- match_mapping_type?: string;
4232
+ runtime?: MappingProperty;
4233
+ match?: string | string[];
4234
+ path_match?: string | string[];
4235
+ unmatch?: string | string[];
4236
+ path_unmatch?: string | string[];
4237
+ match_mapping_type?: string | string[];
4238
+ unmatch_mapping_type?: string | string[];
4181
4239
  match_pattern?: MappingMatchType;
4182
- path_match?: string;
4183
- path_unmatch?: string;
4184
- unmatch?: string;
4185
4240
  }
4186
4241
  export interface MappingFieldAliasProperty extends MappingPropertyBase {
4187
4242
  path?: Field;
@@ -4194,7 +4249,7 @@ export interface MappingFieldMapping {
4194
4249
  export interface MappingFieldNamesField {
4195
4250
  enabled: boolean;
4196
4251
  }
4197
- 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';
4252
+ export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'version' | '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' | 'icu_collation_keyword';
4198
4253
  export interface MappingFlattenedProperty extends MappingPropertyBase {
4199
4254
  boost?: double;
4200
4255
  depth_limit?: integer;
@@ -4241,6 +4296,25 @@ export interface MappingHistogramProperty extends MappingPropertyBase {
4241
4296
  ignore_malformed?: boolean;
4242
4297
  type: 'histogram';
4243
4298
  }
4299
+ export interface MappingIcuCollationProperty extends MappingDocValuesPropertyBase {
4300
+ type: 'icu_collation_keyword';
4301
+ norms?: boolean;
4302
+ index_options?: MappingIndexOptions;
4303
+ index?: boolean;
4304
+ null_value?: string;
4305
+ rules?: string;
4306
+ language?: string;
4307
+ country?: string;
4308
+ variant?: string;
4309
+ strength?: AnalysisIcuCollationStrength;
4310
+ decomposition?: AnalysisIcuCollationDecomposition;
4311
+ alternate?: AnalysisIcuCollationAlternate;
4312
+ case_level?: boolean;
4313
+ case_first?: AnalysisIcuCollationCaseFirst;
4314
+ numeric?: boolean;
4315
+ variable_top?: string;
4316
+ hiragana_quaternary_mode?: boolean;
4317
+ }
4244
4318
  export interface MappingIndexField {
4245
4319
  enabled: boolean;
4246
4320
  }
@@ -4275,6 +4349,8 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
4275
4349
  eager_global_ordinals?: boolean;
4276
4350
  index?: boolean;
4277
4351
  index_options?: MappingIndexOptions;
4352
+ script?: Script;
4353
+ on_script_error?: MappingOnScriptError;
4278
4354
  normalizer?: string;
4279
4355
  norms?: boolean;
4280
4356
  null_value?: string;
@@ -4330,7 +4406,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
4330
4406
  null_value?: string;
4331
4407
  type: 'point';
4332
4408
  }
4333
- 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;
4409
+ 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 | MappingIcuCollationProperty;
4334
4410
  export interface MappingPropertyBase {
4335
4411
  meta?: Record<string, string>;
4336
4412
  properties?: Record<PropertyName, MappingProperty>;
@@ -4367,7 +4443,7 @@ export interface MappingRuntimeFieldFetchFields {
4367
4443
  field: Field;
4368
4444
  format?: string;
4369
4445
  }
4370
- export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup';
4446
+ export type MappingRuntimeFieldType = 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup';
4371
4447
  export type MappingRuntimeFields = Record<Field, MappingRuntimeField>;
4372
4448
  export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
4373
4449
  type: 'scaled_float';
@@ -4795,7 +4871,6 @@ export interface QueryDslMoreLikeThisQuery extends QueryDslQueryBase {
4795
4871
  minimum_should_match?: MinimumShouldMatch;
4796
4872
  min_term_freq?: integer;
4797
4873
  min_word_length?: integer;
4798
- per_field_analyzer?: Record<Field, string>;
4799
4874
  routing?: Routing;
4800
4875
  stop_words?: AnalysisStopWords;
4801
4876
  unlike?: QueryDslLike | QueryDslLike[];
@@ -4920,7 +4995,7 @@ export interface QueryDslQueryContainer {
4920
4995
  shape?: QueryDslShapeQuery;
4921
4996
  simple_query_string?: QueryDslSimpleQueryStringQuery;
4922
4997
  span_containing?: QueryDslSpanContainingQuery;
4923
- field_masking_span?: QueryDslSpanFieldMaskingQuery;
4998
+ span_field_masking?: QueryDslSpanFieldMaskingQuery;
4924
4999
  span_first?: QueryDslSpanFirstQuery;
4925
5000
  span_multi?: QueryDslSpanMultiTermQuery;
4926
5001
  span_near?: QueryDslSpanNearQuery;
@@ -5078,7 +5153,7 @@ export interface QueryDslSpanOrQuery extends QueryDslQueryBase {
5078
5153
  }
5079
5154
  export interface QueryDslSpanQuery {
5080
5155
  span_containing?: QueryDslSpanContainingQuery;
5081
- field_masking_span?: QueryDslSpanFieldMaskingQuery;
5156
+ span_field_masking?: QueryDslSpanFieldMaskingQuery;
5082
5157
  span_first?: QueryDslSpanFirstQuery;
5083
5158
  span_gap?: QueryDslSpanGapQuery;
5084
5159
  span_multi?: QueryDslSpanMultiTermQuery;
@@ -5241,7 +5316,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
5241
5316
  track_total_hits?: SearchTrackHits;
5242
5317
  indices_boost?: Record<IndexName, double>[];
5243
5318
  docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
5244
- knn?: KnnQuery | KnnQuery[];
5319
+ knn?: KnnSearch | KnnSearch[];
5245
5320
  min_score?: double;
5246
5321
  post_filter?: QueryDslQueryContainer;
5247
5322
  profile?: boolean;
@@ -7473,10 +7548,10 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase {
7473
7548
  master_timeout?: Duration;
7474
7549
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
7475
7550
  body?: {
7476
- allow_auto_create?: boolean;
7477
7551
  template: IndicesIndexState;
7478
7552
  version?: VersionNumber;
7479
7553
  _meta?: Metadata;
7554
+ deprecated?: boolean;
7480
7555
  };
7481
7556
  }
7482
7557
  export type ClusterPutComponentTemplateResponse = AcknowledgedResponseBase;
@@ -7820,6 +7895,441 @@ export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase {
7820
7895
  status: HealthStatus;
7821
7896
  timestamp: long;
7822
7897
  }
7898
+ export interface ConnectorConnector {
7899
+ api_key_id?: string;
7900
+ configuration: ConnectorConnectorConfiguration;
7901
+ custom_scheduling: ConnectorConnectorCustomScheduling;
7902
+ description?: string;
7903
+ error?: string;
7904
+ features?: ConnectorConnectorFeatures;
7905
+ filtering: ConnectorFilteringConfig[];
7906
+ id?: Id;
7907
+ index_name?: IndexName;
7908
+ is_native: boolean;
7909
+ language?: string;
7910
+ last_access_control_sync_error?: string;
7911
+ last_access_control_sync_scheduled_at?: DateTime;
7912
+ last_access_control_sync_status?: ConnectorSyncStatus;
7913
+ last_deleted_document_count?: long;
7914
+ last_incremental_sync_scheduled_at?: DateTime;
7915
+ last_indexed_document_count?: long;
7916
+ last_seen?: DateTime;
7917
+ last_sync_error?: string;
7918
+ last_sync_scheduled_at?: DateTime;
7919
+ last_sync_status?: ConnectorSyncStatus;
7920
+ last_synced?: DateTime;
7921
+ name?: string;
7922
+ pipeline?: ConnectorIngestPipelineParams;
7923
+ scheduling: ConnectorSchedulingConfiguration;
7924
+ service_type: string;
7925
+ status: ConnectorConnectorStatus;
7926
+ sync_now: boolean;
7927
+ }
7928
+ export interface ConnectorConnectorConfigProperties {
7929
+ category?: string;
7930
+ default_value: ScalarValue;
7931
+ depends_on: ConnectorDependency[];
7932
+ display: ConnectorDisplayType;
7933
+ label: string;
7934
+ options: ConnectorSelectOption[];
7935
+ order?: integer;
7936
+ placeholder?: string;
7937
+ required: boolean;
7938
+ sensitive: boolean;
7939
+ tooltip?: string;
7940
+ type: ConnectorConnectorFieldType;
7941
+ ui_restrictions: string[];
7942
+ validations: ConnectorValidation[];
7943
+ value: ScalarValue;
7944
+ }
7945
+ export type ConnectorConnectorConfiguration = Record<string, ConnectorConnectorConfigProperties>;
7946
+ export type ConnectorConnectorCustomScheduling = Record<string, ConnectorCustomScheduling>;
7947
+ export interface ConnectorConnectorFeatures {
7948
+ document_level_security?: ConnectorFeatureEnabled;
7949
+ filtering_advanced_config?: boolean;
7950
+ filtering_rules?: boolean;
7951
+ incremental_sync?: ConnectorFeatureEnabled;
7952
+ sync_rules?: ConnectorSyncRulesFeature;
7953
+ }
7954
+ export type ConnectorConnectorFieldType = 'str' | 'int' | 'list' | 'bool';
7955
+ export interface ConnectorConnectorScheduling {
7956
+ enabled: boolean;
7957
+ interval: string;
7958
+ }
7959
+ export type ConnectorConnectorStatus = 'created' | 'needs_configuration' | 'configured' | 'connected' | 'error';
7960
+ export interface ConnectorConnectorSyncJob {
7961
+ cancelation_requested_at?: DateTime;
7962
+ canceled_at?: DateTime;
7963
+ completed_at?: DateTime;
7964
+ connector: ConnectorSyncJobConnectorReference;
7965
+ created_at: DateTime;
7966
+ deleted_document_count: long;
7967
+ error?: string;
7968
+ id: Id;
7969
+ indexed_document_count: long;
7970
+ indexed_document_volume: long;
7971
+ job_type: ConnectorSyncJobType;
7972
+ last_seen?: DateTime;
7973
+ metadata: Record<string, any>;
7974
+ started_at?: DateTime;
7975
+ status: ConnectorSyncStatus;
7976
+ total_document_count: long;
7977
+ trigger_method: ConnectorSyncJobTriggerMethod;
7978
+ worker_hostname?: string;
7979
+ }
7980
+ export interface ConnectorCustomScheduling {
7981
+ configuration_overrides: ConnectorCustomSchedulingConfigurationOverrides;
7982
+ enabled: boolean;
7983
+ interval: string;
7984
+ last_synced?: DateTime;
7985
+ name: string;
7986
+ }
7987
+ export interface ConnectorCustomSchedulingConfigurationOverrides {
7988
+ max_crawl_depth?: integer;
7989
+ sitemap_discovery_disabled?: boolean;
7990
+ domain_allowlist?: string[];
7991
+ sitemap_urls?: string[];
7992
+ seed_urls?: string[];
7993
+ }
7994
+ export interface ConnectorDependency {
7995
+ field: string;
7996
+ value: ScalarValue;
7997
+ }
7998
+ export type ConnectorDisplayType = 'textbox' | 'textarea' | 'numeric' | 'toggle' | 'dropdown';
7999
+ export interface ConnectorFeatureEnabled {
8000
+ enabled: boolean;
8001
+ }
8002
+ export interface ConnectorFilteringAdvancedSnippet {
8003
+ created_at?: DateTime;
8004
+ updated_at?: DateTime;
8005
+ value: Record<string, any>;
8006
+ }
8007
+ export interface ConnectorFilteringConfig {
8008
+ active: ConnectorFilteringRules;
8009
+ domain: string;
8010
+ draft: ConnectorFilteringRules;
8011
+ }
8012
+ export type ConnectorFilteringPolicy = 'exclude' | 'include';
8013
+ export interface ConnectorFilteringRule {
8014
+ created_at?: DateTime;
8015
+ field: Field;
8016
+ id: Id;
8017
+ order: integer;
8018
+ policy: ConnectorFilteringPolicy;
8019
+ rule: ConnectorFilteringRuleRule;
8020
+ updated_at?: DateTime;
8021
+ value: string;
8022
+ }
8023
+ export type ConnectorFilteringRuleRule = 'contains' | 'ends_with' | 'equals' | 'regex' | 'starts_with' | '>' | '<';
8024
+ export interface ConnectorFilteringRules {
8025
+ advanced_snippet: ConnectorFilteringAdvancedSnippet;
8026
+ rules: ConnectorFilteringRule[];
8027
+ validation: ConnectorFilteringRulesValidation;
8028
+ }
8029
+ export interface ConnectorFilteringRulesValidation {
8030
+ errors: ConnectorFilteringValidation[];
8031
+ state: ConnectorFilteringValidationState;
8032
+ }
8033
+ export interface ConnectorFilteringValidation {
8034
+ ids: Id[];
8035
+ messages: string[];
8036
+ }
8037
+ export type ConnectorFilteringValidationState = 'edited' | 'invalid' | 'valid';
8038
+ export interface ConnectorGreaterThanValidation {
8039
+ type: 'greater_than';
8040
+ constraint: double;
8041
+ }
8042
+ export interface ConnectorIncludedInValidation {
8043
+ type: 'included_in';
8044
+ constraint: string;
8045
+ }
8046
+ export interface ConnectorIngestPipelineParams {
8047
+ extract_binary_content: boolean;
8048
+ name: string;
8049
+ reduce_whitespace: boolean;
8050
+ run_ml_inference: boolean;
8051
+ }
8052
+ export interface ConnectorLessThanValidation {
8053
+ type: 'less_than';
8054
+ constraint: double;
8055
+ }
8056
+ export interface ConnectorListTypeValidation {
8057
+ type: 'list_type';
8058
+ constraint: ScalarValue[];
8059
+ }
8060
+ export interface ConnectorRegexValidation {
8061
+ type: 'regex';
8062
+ constraint: string;
8063
+ }
8064
+ export interface ConnectorSchedulingConfiguration {
8065
+ access_control?: ConnectorConnectorScheduling;
8066
+ full?: ConnectorConnectorScheduling;
8067
+ incremental?: ConnectorConnectorScheduling;
8068
+ }
8069
+ export interface ConnectorSelectOption {
8070
+ label: string;
8071
+ value: string;
8072
+ }
8073
+ export interface ConnectorSyncJobConnectorReference {
8074
+ configuration: ConnectorConnectorConfiguration;
8075
+ filtering: ConnectorFilteringRules;
8076
+ id: Id;
8077
+ index_name: string;
8078
+ language?: string;
8079
+ pipeline?: ConnectorIngestPipelineParams;
8080
+ service_type: string;
8081
+ }
8082
+ export type ConnectorSyncJobTriggerMethod = 'on_demand' | 'scheduled';
8083
+ export type ConnectorSyncJobType = 'full' | 'incremental' | 'access_control';
8084
+ export interface ConnectorSyncRulesFeature {
8085
+ advanced?: ConnectorFeatureEnabled;
8086
+ basic?: ConnectorFeatureEnabled;
8087
+ }
8088
+ export type ConnectorSyncStatus = 'canceling' | 'canceled' | 'completed' | 'error' | 'in_progress' | 'pending' | 'suspended';
8089
+ export type ConnectorValidation = ConnectorLessThanValidation | ConnectorGreaterThanValidation | ConnectorListTypeValidation | ConnectorIncludedInValidation | ConnectorRegexValidation;
8090
+ export interface ConnectorCheckInRequest extends RequestBase {
8091
+ connector_id: Id;
8092
+ }
8093
+ export interface ConnectorCheckInResponse {
8094
+ result: Result;
8095
+ }
8096
+ export interface ConnectorDeleteRequest extends RequestBase {
8097
+ connector_id: Id;
8098
+ delete_sync_jobs: boolean;
8099
+ }
8100
+ export type ConnectorDeleteResponse = AcknowledgedResponseBase;
8101
+ export interface ConnectorGetRequest extends RequestBase {
8102
+ connector_id: Id;
8103
+ }
8104
+ export type ConnectorGetResponse = ConnectorConnector;
8105
+ export interface ConnectorLastSyncRequest extends RequestBase {
8106
+ connector_id: Id;
8107
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8108
+ body?: {
8109
+ last_access_control_sync_error?: SpecUtilsWithNullValue<string>;
8110
+ last_access_control_sync_scheduled_at?: DateTime;
8111
+ last_access_control_sync_status?: ConnectorSyncStatus;
8112
+ last_deleted_document_count?: long;
8113
+ last_incremental_sync_scheduled_at?: DateTime;
8114
+ last_indexed_document_count?: long;
8115
+ last_seen?: SpecUtilsWithNullValue<DateTime>;
8116
+ last_sync_error?: SpecUtilsWithNullValue<string>;
8117
+ last_sync_scheduled_at?: DateTime;
8118
+ last_sync_status?: ConnectorSyncStatus;
8119
+ last_synced?: DateTime;
8120
+ };
8121
+ }
8122
+ export interface ConnectorLastSyncResponse {
8123
+ result: Result;
8124
+ }
8125
+ export interface ConnectorListRequest extends RequestBase {
8126
+ from?: integer;
8127
+ size?: integer;
8128
+ index_name?: Indices;
8129
+ connector_name?: Names;
8130
+ service_type?: Names;
8131
+ query?: string;
8132
+ }
8133
+ export interface ConnectorListResponse {
8134
+ count: long;
8135
+ results: ConnectorConnector[];
8136
+ }
8137
+ export interface ConnectorPostRequest extends RequestBase {
8138
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8139
+ body?: {
8140
+ description?: string;
8141
+ index_name: SpecUtilsWithNullValue<IndexName>;
8142
+ is_native?: boolean;
8143
+ language?: string;
8144
+ name?: string;
8145
+ service_type?: string;
8146
+ };
8147
+ }
8148
+ export interface ConnectorPostResponse {
8149
+ id: Id;
8150
+ }
8151
+ export interface ConnectorPutRequest extends RequestBase {
8152
+ connector_id: Id;
8153
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8154
+ body?: {
8155
+ description?: string;
8156
+ index_name: SpecUtilsWithNullValue<IndexName>;
8157
+ is_native?: boolean;
8158
+ language?: string;
8159
+ name?: string;
8160
+ service_type?: string;
8161
+ };
8162
+ }
8163
+ export interface ConnectorPutResponse {
8164
+ result: Result;
8165
+ }
8166
+ export interface ConnectorSyncJobCancelRequest extends RequestBase {
8167
+ connector_sync_job_id: Id;
8168
+ }
8169
+ export interface ConnectorSyncJobCancelResponse {
8170
+ result: Result;
8171
+ }
8172
+ export interface ConnectorSyncJobDeleteRequest extends RequestBase {
8173
+ connector_sync_job_id: Id;
8174
+ }
8175
+ export type ConnectorSyncJobDeleteResponse = AcknowledgedResponseBase;
8176
+ export interface ConnectorSyncJobGetRequest extends RequestBase {
8177
+ connector_sync_job_id: Id;
8178
+ }
8179
+ export type ConnectorSyncJobGetResponse = ConnectorConnectorSyncJob;
8180
+ export interface ConnectorSyncJobListRequest extends RequestBase {
8181
+ from?: integer;
8182
+ size?: integer;
8183
+ status?: ConnectorSyncStatus;
8184
+ connector_id?: Id;
8185
+ job_type?: ConnectorSyncJobType[];
8186
+ }
8187
+ export interface ConnectorSyncJobListResponse {
8188
+ count: long;
8189
+ results: ConnectorConnectorSyncJob[];
8190
+ }
8191
+ export interface ConnectorSyncJobPostRequest extends RequestBase {
8192
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8193
+ body?: {
8194
+ id: Id;
8195
+ job_type?: ConnectorSyncJobType;
8196
+ trigger_method?: ConnectorSyncJobTriggerMethod;
8197
+ };
8198
+ }
8199
+ export interface ConnectorSyncJobPostResponse {
8200
+ id: Id;
8201
+ }
8202
+ export interface ConnectorUpdateActiveFilteringRequest extends RequestBase {
8203
+ connector_id: Id;
8204
+ }
8205
+ export interface ConnectorUpdateActiveFilteringResponse {
8206
+ result: Result;
8207
+ }
8208
+ export interface ConnectorUpdateApiKeyIdRequest extends RequestBase {
8209
+ connector_id: Id;
8210
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8211
+ body?: {
8212
+ api_key_id?: SpecUtilsWithNullValue<string>;
8213
+ api_key_secret_id?: SpecUtilsWithNullValue<string>;
8214
+ };
8215
+ }
8216
+ export interface ConnectorUpdateApiKeyIdResponse {
8217
+ result: Result;
8218
+ }
8219
+ export interface ConnectorUpdateConfigurationRequest extends RequestBase {
8220
+ connector_id: Id;
8221
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8222
+ body?: {
8223
+ configuration?: ConnectorConnectorConfiguration;
8224
+ values?: Record<string, any>;
8225
+ };
8226
+ }
8227
+ export interface ConnectorUpdateConfigurationResponse {
8228
+ result: Result;
8229
+ }
8230
+ export interface ConnectorUpdateErrorRequest extends RequestBase {
8231
+ connector_id: Id;
8232
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8233
+ body?: {
8234
+ error: SpecUtilsWithNullValue<string>;
8235
+ };
8236
+ }
8237
+ export interface ConnectorUpdateErrorResponse {
8238
+ result: Result;
8239
+ }
8240
+ export interface ConnectorUpdateFilteringRequest extends RequestBase {
8241
+ connector_id: Id;
8242
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8243
+ body?: {
8244
+ filtering?: ConnectorFilteringConfig[];
8245
+ rules?: ConnectorFilteringRule[];
8246
+ advanced_snippet?: ConnectorFilteringAdvancedSnippet;
8247
+ };
8248
+ }
8249
+ export interface ConnectorUpdateFilteringResponse {
8250
+ result: Result;
8251
+ }
8252
+ export interface ConnectorUpdateFilteringValidationRequest extends RequestBase {
8253
+ connector_id: Id;
8254
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8255
+ body?: {
8256
+ validation: ConnectorFilteringRulesValidation;
8257
+ };
8258
+ }
8259
+ export interface ConnectorUpdateFilteringValidationResponse {
8260
+ result: Result;
8261
+ }
8262
+ export interface ConnectorUpdateIndexNameRequest extends RequestBase {
8263
+ connector_id: Id;
8264
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8265
+ body?: {
8266
+ index_name: SpecUtilsWithNullValue<IndexName>;
8267
+ };
8268
+ }
8269
+ export interface ConnectorUpdateIndexNameResponse {
8270
+ result: Result;
8271
+ }
8272
+ export interface ConnectorUpdateNameRequest extends RequestBase {
8273
+ connector_id: Id;
8274
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8275
+ body?: {
8276
+ name: string;
8277
+ description?: string;
8278
+ };
8279
+ }
8280
+ export interface ConnectorUpdateNameResponse {
8281
+ result: Result;
8282
+ }
8283
+ export interface ConnectorUpdateNativeRequest extends RequestBase {
8284
+ connector_id: Id;
8285
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8286
+ body?: {
8287
+ is_native: boolean;
8288
+ };
8289
+ }
8290
+ export interface ConnectorUpdateNativeResponse {
8291
+ result: Result;
8292
+ }
8293
+ export interface ConnectorUpdatePipelineRequest extends RequestBase {
8294
+ connector_id: Id;
8295
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8296
+ body?: {
8297
+ pipeline: ConnectorIngestPipelineParams;
8298
+ };
8299
+ }
8300
+ export interface ConnectorUpdatePipelineResponse {
8301
+ result: Result;
8302
+ }
8303
+ export interface ConnectorUpdateSchedulingRequest extends RequestBase {
8304
+ connector_id: Id;
8305
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8306
+ body?: {
8307
+ scheduling: ConnectorSchedulingConfiguration;
8308
+ };
8309
+ }
8310
+ export interface ConnectorUpdateSchedulingResponse {
8311
+ result: Result;
8312
+ }
8313
+ export interface ConnectorUpdateServiceTypeRequest extends RequestBase {
8314
+ connector_id: Id;
8315
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8316
+ body?: {
8317
+ service_type: string;
8318
+ };
8319
+ }
8320
+ export interface ConnectorUpdateServiceTypeResponse {
8321
+ result: Result;
8322
+ }
8323
+ export interface ConnectorUpdateStatusRequest extends RequestBase {
8324
+ connector_id: Id;
8325
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8326
+ body?: {
8327
+ status: ConnectorConnectorStatus;
8328
+ };
8329
+ }
8330
+ export interface ConnectorUpdateStatusResponse {
8331
+ result: Result;
8332
+ }
7823
8333
  export interface DanglingIndicesDeleteDanglingIndexRequest extends RequestBase {
7824
8334
  index_uuid: Uuid;
7825
8335
  accept_data_loss: boolean;
@@ -8536,7 +9046,7 @@ export interface IndicesIndexSettingsAnalysis {
8536
9046
  tokenizer?: Record<string, AnalysisTokenizer>;
8537
9047
  }
8538
9048
  export interface IndicesIndexSettingsLifecycle {
8539
- name: Name;
9049
+ name?: Name;
8540
9050
  indexing_complete?: SpecUtilsStringified<boolean>;
8541
9051
  origination_date?: long;
8542
9052
  parse_origination_date?: boolean;
@@ -8609,22 +9119,22 @@ export interface IndicesMappingLimitSettings {
8609
9119
  ignore_malformed?: boolean;
8610
9120
  }
8611
9121
  export interface IndicesMappingLimitSettingsDepth {
8612
- limit?: integer;
9122
+ limit?: long;
8613
9123
  }
8614
9124
  export interface IndicesMappingLimitSettingsDimensionFields {
8615
- limit?: integer;
9125
+ limit?: long;
8616
9126
  }
8617
9127
  export interface IndicesMappingLimitSettingsFieldNameLength {
8618
9128
  limit?: long;
8619
9129
  }
8620
9130
  export interface IndicesMappingLimitSettingsNestedFields {
8621
- limit?: integer;
9131
+ limit?: long;
8622
9132
  }
8623
9133
  export interface IndicesMappingLimitSettingsNestedObjects {
8624
- limit?: integer;
9134
+ limit?: long;
8625
9135
  }
8626
9136
  export interface IndicesMappingLimitSettingsTotalFields {
8627
- limit?: integer;
9137
+ limit?: long;
8628
9138
  }
8629
9139
  export interface IndicesMerge {
8630
9140
  scheduler?: IndicesMergeScheduler;
@@ -8725,7 +9235,7 @@ export interface IndicesStorage {
8725
9235
  type: IndicesStorageType;
8726
9236
  allow_mmap?: boolean;
8727
9237
  }
8728
- export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string;
9238
+ export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' | string;
8729
9239
  export interface IndicesTemplateMapping {
8730
9240
  aliases: Record<IndexName, IndicesAlias>;
8731
9241
  index_patterns: Name[];
@@ -9269,15 +9779,20 @@ export interface IndicesPutIndexTemplateIndexTemplateMapping {
9269
9779
  export interface IndicesPutIndexTemplateRequest extends RequestBase {
9270
9780
  name: Name;
9271
9781
  create?: boolean;
9782
+ master_timeout?: Duration;
9783
+ cause?: string;
9272
9784
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
9273
9785
  body?: {
9274
9786
  index_patterns?: Indices;
9275
9787
  composed_of?: Name[];
9276
9788
  template?: IndicesPutIndexTemplateIndexTemplateMapping;
9277
9789
  data_stream?: IndicesDataStreamVisibility;
9278
- priority?: integer;
9790
+ priority?: long;
9279
9791
  version?: VersionNumber;
9280
9792
  _meta?: Metadata;
9793
+ allow_auto_create?: boolean;
9794
+ ignore_missing_component_templates?: string[];
9795
+ deprecated?: boolean;
9281
9796
  };
9282
9797
  }
9283
9798
  export type IndicesPutIndexTemplateResponse = AcknowledgedResponseBase;
@@ -9321,16 +9836,15 @@ export type IndicesPutSettingsResponse = AcknowledgedResponseBase;
9321
9836
  export interface IndicesPutTemplateRequest extends RequestBase {
9322
9837
  name: Name;
9323
9838
  create?: boolean;
9324
- flat_settings?: boolean;
9325
9839
  master_timeout?: Duration;
9326
- timeout?: Duration;
9840
+ cause?: string;
9327
9841
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
9328
9842
  body?: {
9329
9843
  aliases?: Record<IndexName, IndicesAlias>;
9330
9844
  index_patterns?: string | string[];
9331
9845
  mappings?: MappingTypeMapping;
9332
9846
  order?: integer;
9333
- settings?: Record<string, any>;
9847
+ settings?: IndicesIndexSettings;
9334
9848
  version?: VersionNumber;
9335
9849
  };
9336
9850
  }
@@ -9626,22 +10140,12 @@ export interface IndicesShrinkResponse {
9626
10140
  }
9627
10141
  export interface IndicesSimulateIndexTemplateRequest extends RequestBase {
9628
10142
  name: Name;
9629
- create?: boolean;
9630
10143
  master_timeout?: Duration;
9631
10144
  include_defaults?: boolean;
9632
- /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
9633
- body?: {
9634
- allow_auto_create?: boolean;
9635
- index_patterns?: Indices;
9636
- composed_of?: Name[];
9637
- template?: IndicesPutIndexTemplateIndexTemplateMapping;
9638
- data_stream?: IndicesDataStreamVisibility;
9639
- priority?: integer;
9640
- version?: VersionNumber;
9641
- _meta?: Metadata;
9642
- };
9643
10145
  }
9644
10146
  export interface IndicesSimulateIndexTemplateResponse {
10147
+ overlapping?: IndicesSimulateTemplateOverlapping[];
10148
+ template: IndicesSimulateTemplateTemplate;
9645
10149
  }
9646
10150
  export interface IndicesSimulateTemplateOverlapping {
9647
10151
  name: Name;
@@ -9652,8 +10156,19 @@ export interface IndicesSimulateTemplateRequest extends RequestBase {
9652
10156
  create?: boolean;
9653
10157
  master_timeout?: Duration;
9654
10158
  include_defaults?: boolean;
9655
- /** @deprecated The use of the 'body' key has been deprecated, use 'template' instead. */
9656
- body?: IndicesIndexTemplate;
10159
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
10160
+ body?: {
10161
+ allow_auto_create?: boolean;
10162
+ index_patterns?: Indices;
10163
+ composed_of?: Name[];
10164
+ template?: IndicesPutIndexTemplateIndexTemplateMapping;
10165
+ data_stream?: IndicesDataStreamVisibility;
10166
+ priority?: long;
10167
+ version?: VersionNumber;
10168
+ _meta?: Metadata;
10169
+ ignore_missing_component_templates?: string[];
10170
+ deprecated?: boolean;
10171
+ };
9657
10172
  }
9658
10173
  export interface IndicesSimulateTemplateResponse {
9659
10174
  overlapping?: IndicesSimulateTemplateOverlapping[];
@@ -9899,12 +10414,17 @@ export interface IndicesValidateQueryResponse {
9899
10414
  valid: boolean;
9900
10415
  error?: string;
9901
10416
  }
10417
+ export interface InferenceCompletionResult {
10418
+ result: string;
10419
+ }
9902
10420
  export type InferenceDenseByteVector = byte[];
9903
10421
  export type InferenceDenseVector = float[];
9904
10422
  export interface InferenceInferenceResult {
9905
10423
  text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
9906
10424
  text_embedding?: InferenceTextEmbeddingResult[];
9907
10425
  sparse_embedding?: InferenceSparseEmbeddingResult[];
10426
+ completion?: InferenceCompletionResult[];
10427
+ rerank?: InferenceRankedDocument[];
9908
10428
  }
9909
10429
  export interface InferenceModelConfig {
9910
10430
  service: string;
@@ -9915,13 +10435,18 @@ export interface InferenceModelConfigContainer extends InferenceModelConfig {
9915
10435
  model_id: string;
9916
10436
  task_type: InferenceTaskType;
9917
10437
  }
10438
+ export interface InferenceRankedDocument {
10439
+ index: integer;
10440
+ score: float;
10441
+ text?: string;
10442
+ }
9918
10443
  export type InferenceServiceSettings = any;
9919
10444
  export interface InferenceSparseEmbeddingResult {
9920
10445
  embedding: InferenceSparseVector;
9921
10446
  }
9922
10447
  export type InferenceSparseVector = Record<string, float>;
9923
10448
  export type InferenceTaskSettings = any;
9924
- export type InferenceTaskType = 'sparse_embedding' | 'text_embedding';
10449
+ export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' | 'completion';
9925
10450
  export interface InferenceTextEmbeddingByteResult {
9926
10451
  embedding: InferenceDenseByteVector;
9927
10452
  }
@@ -9943,8 +10468,10 @@ export interface InferenceGetModelResponse {
9943
10468
  export interface InferenceInferenceRequest extends RequestBase {
9944
10469
  task_type?: InferenceTaskType;
9945
10470
  inference_id: Id;
10471
+ timeout?: Duration;
9946
10472
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
9947
10473
  body?: {
10474
+ query?: string;
9948
10475
  input: string | string[];
9949
10476
  task_settings?: InferenceTaskSettings;
9950
10477
  };
@@ -10181,6 +10708,7 @@ export interface IngestProcessorContainer {
10181
10708
  }
10182
10709
  export interface IngestRemoveProcessor extends IngestProcessorBase {
10183
10710
  field: Fields;
10711
+ keep?: Fields;
10184
10712
  ignore_missing?: boolean;
10185
10713
  }
10186
10714
  export interface IngestRenameProcessor extends IngestProcessorBase {
@@ -11087,7 +11615,7 @@ export interface MlInferenceConfigUpdateContainer {
11087
11615
  export interface MlInferenceResponseResult {
11088
11616
  entities?: MlTrainedModelEntities[];
11089
11617
  is_truncated?: boolean;
11090
- predicted_value?: MlPredictedValue[];
11618
+ predicted_value?: MlPredictedValue | MlPredictedValue[];
11091
11619
  predicted_value_sequence?: string;
11092
11620
  prediction_probability?: double;
11093
11621
  prediction_score?: double;
@@ -12378,6 +12906,7 @@ export interface MlPutTrainedModelPreprocessor {
12378
12906
  export interface MlPutTrainedModelRequest extends RequestBase {
12379
12907
  model_id: Id;
12380
12908
  defer_definition_decompression?: boolean;
12909
+ wait_for_completion?: boolean;
12381
12910
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
12382
12911
  body?: {
12383
12912
  compressed_definition?: string;
@@ -12675,6 +13204,16 @@ export interface MlUpdateModelSnapshotResponse {
12675
13204
  acknowledged: boolean;
12676
13205
  model: MlModelSnapshot;
12677
13206
  }
13207
+ export interface MlUpdateTrainedModelDeploymentRequest extends RequestBase {
13208
+ model_id: Id;
13209
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
13210
+ body?: {
13211
+ number_of_allocations?: integer;
13212
+ };
13213
+ }
13214
+ export interface MlUpdateTrainedModelDeploymentResponse {
13215
+ assignment: MlTrainedModelAssignment;
13216
+ }
12678
13217
  export interface MlUpgradeJobSnapshotRequest extends RequestBase {
12679
13218
  job_id: Id;
12680
13219
  snapshot_id: Id;
@@ -13269,7 +13808,7 @@ export interface NodesInfoNodeInfoRepositoriesUrl {
13269
13808
  }
13270
13809
  export interface NodesInfoNodeInfoScript {
13271
13810
  allowed_types: string;
13272
- disable_max_compilations_rate: string;
13811
+ disable_max_compilations_rate?: string;
13273
13812
  }
13274
13813
  export interface NodesInfoNodeInfoSearch {
13275
13814
  remote: NodesInfoNodeInfoSearchRemote;
@@ -13284,7 +13823,7 @@ export interface NodesInfoNodeInfoSettings {
13284
13823
  repositories?: NodesInfoNodeInfoRepositories;
13285
13824
  discovery?: NodesInfoNodeInfoDiscover;
13286
13825
  action?: NodesInfoNodeInfoAction;
13287
- client: NodesInfoNodeInfoClient;
13826
+ client?: NodesInfoNodeInfoClient;
13288
13827
  http: NodesInfoNodeInfoSettingsHttp;
13289
13828
  bootstrap?: NodesInfoNodeInfoBootstrap;
13290
13829
  transport: NodesInfoNodeInfoSettingsTransport;
@@ -13350,7 +13889,7 @@ export interface NodesInfoNodeInfoSettingsIngest {
13350
13889
  inference?: NodesInfoNodeInfoIngestInfo;
13351
13890
  }
13352
13891
  export interface NodesInfoNodeInfoSettingsNetwork {
13353
- host: Host;
13892
+ host?: Host;
13354
13893
  }
13355
13894
  export interface NodesInfoNodeInfoSettingsNode {
13356
13895
  name: Name;
@@ -13786,6 +14325,7 @@ export interface SearchApplicationPutBehavioralAnalyticsRequest extends RequestB
13786
14325
  export type SearchApplicationPutBehavioralAnalyticsResponse = SearchApplicationPutBehavioralAnalyticsAnalyticsAcknowledgeResponseBase;
13787
14326
  export interface SearchApplicationSearchRequest extends RequestBase {
13788
14327
  name: Name;
14328
+ typed_keys?: boolean;
13789
14329
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
13790
14330
  body?: {
13791
14331
  params?: Record<string, any>;
@@ -13859,7 +14399,9 @@ export interface SecurityApiKey {
13859
14399
  invalidated?: boolean;
13860
14400
  name: Name;
13861
14401
  realm?: string;
14402
+ realm_type?: string;
13862
14403
  username?: Username;
14404
+ profile_uid?: string;
13863
14405
  metadata?: Metadata;
13864
14406
  role_descriptors?: Record<string, SecurityRoleDescriptor>;
13865
14407
  limited_by?: Record<string, SecurityRoleDescriptor>[];
@@ -13876,7 +14418,7 @@ export interface SecurityApplicationPrivileges {
13876
14418
  export interface SecurityClusterNode {
13877
14419
  name: Name;
13878
14420
  }
13879
- export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_ccr' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'read_ccr' | 'read_ilm' | 'read_pipeline' | 'read_slm' | 'transport_client' | string;
14421
+ export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'cross_cluster_replication' | 'cross_cluster_search' | 'delegate_pki' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_autoscaling' | 'manage_behavioral_analytics' | 'manage_ccr' | 'manage_data_frame_transforms' | 'manage_data_stream_global_retention' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_inference' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_search_application' | 'manage_search_query_rules' | 'manage_search_synonyms' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_data_frame_transforms' | 'monitor_data_stream_global_retention' | 'monitor_enrich' | 'monitor_inference' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'none' | 'post_behavioral_analytics_event' | 'read_ccr' | 'read_connector_secrets' | 'read_fleet_secrets' | 'read_ilm' | 'read_pipeline' | 'read_security' | 'read_slm' | 'transport_client' | 'write_connector_secrets' | 'write_fleet_secrets' | string;
13880
14422
  export interface SecurityCreatedStatus {
13881
14423
  created: boolean;
13882
14424
  }
@@ -13893,7 +14435,7 @@ export interface SecurityGlobalPrivilege {
13893
14435
  application: SecurityApplicationGlobalUserPrivileges;
13894
14436
  }
13895
14437
  export type SecurityGrantType = 'password' | 'access_token';
13896
- export 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' | string;
14438
+ export type SecurityIndexPrivilege = 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'cross_cluster_replication' | 'cross_cluster_replication_internal' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_data_stream_lifecycle' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'none' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write' | string;
13897
14439
  export interface SecurityIndicesPrivileges {
13898
14440
  field_security?: SecurityFieldSecurity;
13899
14441
  names: Indices;
@@ -13932,9 +14474,9 @@ export interface SecurityRoleDescriptorRead {
13932
14474
  export interface SecurityRoleMapping {
13933
14475
  enabled: boolean;
13934
14476
  metadata: Metadata;
13935
- roles: string[];
13936
- rules: SecurityRoleMappingRule;
14477
+ roles?: string[];
13937
14478
  role_templates?: SecurityRoleTemplate[];
14479
+ rules: SecurityRoleMappingRule;
13938
14480
  }
13939
14481
  export interface SecurityRoleMappingRule {
13940
14482
  any?: SecurityRoleMappingRule[];
@@ -14200,6 +14742,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
14200
14742
  username?: Username;
14201
14743
  with_limited_by?: boolean;
14202
14744
  active_only?: boolean;
14745
+ with_profile_uid?: boolean;
14203
14746
  }
14204
14747
  export interface SecurityGetApiKeyResponse {
14205
14748
  api_keys: SecurityApiKey[];
@@ -14492,28 +15035,28 @@ export interface SecurityPutUserRequest extends RequestBase {
14492
15035
  export interface SecurityPutUserResponse {
14493
15036
  created: boolean;
14494
15037
  }
14495
- export type SecurityQueryApiKeysAPIKeyAggregate = AggregationsCardinalityAggregate | AggregationsValueCountAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsFilterAggregate | AggregationsFiltersAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsCompositeAggregate;
14496
- export interface SecurityQueryApiKeysAPIKeyAggregationContainer {
14497
- aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
14498
- aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
15038
+ export type SecurityQueryApiKeysApiKeyAggregate = AggregationsCardinalityAggregate | AggregationsValueCountAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsFilterAggregate | AggregationsFiltersAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsCompositeAggregate;
15039
+ export interface SecurityQueryApiKeysApiKeyAggregationContainer {
15040
+ aggregations?: Record<string, SecurityQueryApiKeysApiKeyAggregationContainer>;
15041
+ aggs?: Record<string, SecurityQueryApiKeysApiKeyAggregationContainer>;
14499
15042
  meta?: Metadata;
14500
15043
  cardinality?: AggregationsCardinalityAggregation;
14501
15044
  composite?: AggregationsCompositeAggregation;
14502
15045
  date_range?: AggregationsDateRangeAggregation;
14503
- filter?: SecurityQueryApiKeysAPIKeyQueryContainer;
14504
- filters?: SecurityQueryApiKeysAPIKeyFiltersAggregation;
15046
+ filter?: SecurityQueryApiKeysApiKeyQueryContainer;
15047
+ filters?: SecurityQueryApiKeysApiKeyFiltersAggregation;
14505
15048
  missing?: AggregationsMissingAggregation;
14506
15049
  range?: AggregationsRangeAggregation;
14507
15050
  terms?: AggregationsTermsAggregation;
14508
15051
  value_count?: AggregationsValueCountAggregation;
14509
15052
  }
14510
- export interface SecurityQueryApiKeysAPIKeyFiltersAggregation extends AggregationsBucketAggregationBase {
14511
- filters?: AggregationsBuckets<SecurityQueryApiKeysAPIKeyQueryContainer>;
15053
+ export interface SecurityQueryApiKeysApiKeyFiltersAggregation extends AggregationsBucketAggregationBase {
15054
+ filters?: AggregationsBuckets<SecurityQueryApiKeysApiKeyQueryContainer>;
14512
15055
  other_bucket?: boolean;
14513
15056
  other_bucket_key?: string;
14514
15057
  keyed?: boolean;
14515
15058
  }
14516
- export interface SecurityQueryApiKeysAPIKeyQueryContainer {
15059
+ export interface SecurityQueryApiKeysApiKeyQueryContainer {
14517
15060
  bool?: QueryDslBoolQuery;
14518
15061
  exists?: QueryDslExistsQuery;
14519
15062
  ids?: QueryDslIdsQuery;
@@ -14528,12 +15071,14 @@ export interface SecurityQueryApiKeysAPIKeyQueryContainer {
14528
15071
  }
14529
15072
  export interface SecurityQueryApiKeysRequest extends RequestBase {
14530
15073
  with_limited_by?: boolean;
15074
+ with_profile_uid?: boolean;
15075
+ typed_keys?: boolean;
14531
15076
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14532
15077
  body?: {
14533
- aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
15078
+ aggregations?: Record<string, SecurityQueryApiKeysApiKeyAggregationContainer>;
14534
15079
  /** @alias aggregations */
14535
- aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>;
14536
- query?: SecurityQueryApiKeysAPIKeyQueryContainer;
15080
+ aggs?: Record<string, SecurityQueryApiKeysApiKeyAggregationContainer>;
15081
+ query?: SecurityQueryApiKeysApiKeyQueryContainer;
14537
15082
  from?: integer;
14538
15083
  sort?: Sort;
14539
15084
  size?: integer;
@@ -14544,7 +15089,7 @@ export interface SecurityQueryApiKeysResponse {
14544
15089
  total: integer;
14545
15090
  count: integer;
14546
15091
  api_keys: SecurityApiKey[];
14547
- aggregations?: Record<AggregateName, SecurityQueryApiKeysAPIKeyAggregate>;
15092
+ aggregations?: Record<AggregateName, SecurityQueryApiKeysApiKeyAggregate>;
14548
15093
  }
14549
15094
  export interface SecuritySamlAuthenticateRequest extends RequestBase {
14550
15095
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
@@ -15294,7 +15839,7 @@ export interface SynonymsPutSynonymRequest extends RequestBase {
15294
15839
  }
15295
15840
  export interface SynonymsPutSynonymResponse {
15296
15841
  result: Result;
15297
- reload_analyzers_details: IndicesReloadSearchAnalyzersReloadDetails;
15842
+ reload_analyzers_details: IndicesReloadSearchAnalyzersReloadResult;
15298
15843
  }
15299
15844
  export interface SynonymsPutSynonymRuleRequest extends RequestBase {
15300
15845
  set_id: Id;