@elastic/elasticsearch 8.14.1 → 8.15.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 (108) hide show
  1. package/catalog-info.yaml +9 -9
  2. package/lib/api/api/async_search.d.ts +8 -8
  3. package/lib/api/api/autoscaling.d.ts +4 -4
  4. package/lib/api/api/bulk.d.ts +2 -2
  5. package/lib/api/api/capabilities.d.ts +14 -0
  6. package/lib/api/api/capabilities.js +42 -0
  7. package/lib/api/api/capabilities.js.map +1 -0
  8. package/lib/api/api/cat.d.ts +51 -51
  9. package/lib/api/api/ccr.d.ts +13 -13
  10. package/lib/api/api/clear_scroll.d.ts +2 -2
  11. package/lib/api/api/close_point_in_time.d.ts +2 -2
  12. package/lib/api/api/cluster.d.ts +24 -24
  13. package/lib/api/api/connector.d.ts +67 -53
  14. package/lib/api/api/connector.js +59 -3
  15. package/lib/api/api/connector.js.map +1 -1
  16. package/lib/api/api/count.d.ts +1 -1
  17. package/lib/api/api/create.d.ts +2 -2
  18. package/lib/api/api/dangling_indices.d.ts +3 -3
  19. package/lib/api/api/delete.d.ts +2 -2
  20. package/lib/api/api/delete_by_query.d.ts +2 -2
  21. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  22. package/lib/api/api/delete_script.d.ts +2 -2
  23. package/lib/api/api/enrich.d.ts +8 -8
  24. package/lib/api/api/eql.d.ts +7 -7
  25. package/lib/api/api/esql.d.ts +4 -4
  26. package/lib/api/api/exists.d.ts +2 -2
  27. package/lib/api/api/exists_source.d.ts +2 -2
  28. package/lib/api/api/explain.d.ts +2 -2
  29. package/lib/api/api/features.d.ts +2 -2
  30. package/lib/api/api/field_caps.d.ts +2 -2
  31. package/lib/api/api/fleet.d.ts +3 -3
  32. package/lib/api/api/get.d.ts +1 -1
  33. package/lib/api/api/get_script.d.ts +2 -2
  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 +2 -2
  38. package/lib/api/api/health_report.d.ts +1 -1
  39. package/lib/api/api/ilm.d.ts +16 -16
  40. package/lib/api/api/index.d.ts +2 -2
  41. package/lib/api/api/indices.d.ts +111 -111
  42. package/lib/api/api/inference.d.ts +17 -17
  43. package/lib/api/api/inference.js +8 -7
  44. package/lib/api/api/inference.js.map +1 -1
  45. package/lib/api/api/info.d.ts +1 -1
  46. package/lib/api/api/ingest.d.ts +33 -12
  47. package/lib/api/api/ingest.js +77 -0
  48. package/lib/api/api/ingest.js.map +1 -1
  49. package/lib/api/api/knn_search.d.ts +1 -1
  50. package/lib/api/api/license.d.ts +10 -10
  51. package/lib/api/api/logstash.d.ts +6 -6
  52. package/lib/api/api/mget.d.ts +1 -1
  53. package/lib/api/api/migration.d.ts +3 -3
  54. package/lib/api/api/ml.d.ts +131 -131
  55. package/lib/api/api/monitoring.d.ts +1 -1
  56. package/lib/api/api/msearch.d.ts +1 -1
  57. package/lib/api/api/msearch_template.d.ts +2 -2
  58. package/lib/api/api/mtermvectors.d.ts +1 -1
  59. package/lib/api/api/nodes.d.ts +14 -14
  60. package/lib/api/api/open_point_in_time.d.ts +2 -2
  61. package/lib/api/api/ping.d.ts +1 -1
  62. package/lib/api/api/profiling.d.ts +4 -4
  63. package/lib/api/api/put_script.d.ts +2 -2
  64. package/lib/api/api/query_rules.d.ts +60 -0
  65. package/lib/api/api/{query_ruleset.js → query_rules.js} +97 -11
  66. package/lib/api/api/query_rules.js.map +1 -0
  67. package/lib/api/api/rank_eval.d.ts +2 -2
  68. package/lib/api/api/reindex.d.ts +1 -1
  69. package/lib/api/api/reindex_rethrottle.d.ts +2 -2
  70. package/lib/api/api/render_search_template.d.ts +2 -2
  71. package/lib/api/api/rollup.d.ts +10 -10
  72. package/lib/api/api/scripts_painless_execute.d.ts +2 -2
  73. package/lib/api/api/scroll.d.ts +1 -1
  74. package/lib/api/api/search.d.ts +2 -2
  75. package/lib/api/api/search_application.d.ts +11 -11
  76. package/lib/api/api/search_mvt.d.ts +1 -1
  77. package/lib/api/api/search_shards.d.ts +1 -1
  78. package/lib/api/api/search_template.d.ts +2 -2
  79. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  80. package/lib/api/api/security.d.ts +108 -87
  81. package/lib/api/api/security.js +121 -3
  82. package/lib/api/api/security.js.map +1 -1
  83. package/lib/api/api/simulate.d.ts +1 -1
  84. package/lib/api/api/slm.d.ts +9 -9
  85. package/lib/api/api/snapshot.d.ts +13 -13
  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 +8 -8
  89. package/lib/api/api/tasks.d.ts +4 -4
  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 +4 -4
  93. package/lib/api/api/transform.d.ts +26 -19
  94. package/lib/api/api/transform.js +20 -0
  95. package/lib/api/api/transform.js.map +1 -1
  96. package/lib/api/api/update.d.ts +1 -1
  97. package/lib/api/api/update_by_query.d.ts +2 -2
  98. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  99. package/lib/api/api/watcher.d.ts +14 -14
  100. package/lib/api/api/xpack.d.ts +4 -4
  101. package/lib/api/index.d.ts +6 -4
  102. package/lib/api/index.js +8 -6
  103. package/lib/api/index.js.map +1 -1
  104. package/lib/api/types.d.ts +418 -215
  105. package/lib/api/typesWithBodyKey.d.ts +434 -216
  106. package/package.json +3 -3
  107. package/lib/api/api/query_ruleset.d.ts +0 -39
  108. package/lib/api/api/query_ruleset.js.map +0 -1
@@ -63,7 +63,7 @@ export interface BulkUpdateAction<TDocument = unknown, TPartialDocument = unknow
63
63
  detect_noop?: boolean;
64
64
  doc?: TPartialDocument;
65
65
  doc_as_upsert?: boolean;
66
- script?: Script;
66
+ script?: Script | string;
67
67
  scripted_upsert?: boolean;
68
68
  _source?: SearchSourceConfig;
69
69
  upsert?: TDocument;
@@ -749,7 +749,7 @@ export interface MtermvectorsResponse {
749
749
  docs: MtermvectorsTermVectorsResult[];
750
750
  }
751
751
  export interface MtermvectorsTermVectorsResult {
752
- _id: Id;
752
+ _id?: Id;
753
753
  _index: IndexName;
754
754
  _version?: VersionNumber;
755
755
  took?: long;
@@ -889,7 +889,7 @@ export interface ReindexRequest extends RequestBase {
889
889
  conflicts?: Conflicts;
890
890
  dest: ReindexDestination;
891
891
  max_docs?: long;
892
- script?: Script;
892
+ script?: Script | string;
893
893
  size?: long;
894
894
  source: ReindexSource;
895
895
  };
@@ -981,7 +981,7 @@ export interface ScriptsPainlessExecuteRequest extends RequestBase {
981
981
  body?: {
982
982
  context?: string;
983
983
  context_setup?: ScriptsPainlessExecutePainlessContextSetup;
984
- script?: InlineScript | string;
984
+ script?: Script | string;
985
985
  };
986
986
  }
987
987
  export interface ScriptsPainlessExecuteResponse<TResult = unknown> {
@@ -1282,6 +1282,7 @@ export interface SearchHit<TDocument = unknown> {
1282
1282
  _node?: string;
1283
1283
  _routing?: string;
1284
1284
  _source?: TDocument;
1285
+ _rank?: integer;
1285
1286
  _seq_no?: SequenceNumber;
1286
1287
  _primary_term?: long;
1287
1288
  _version?: VersionNumber;
@@ -1640,7 +1641,7 @@ export interface TermvectorsRequest<TDocument = unknown> extends RequestBase {
1640
1641
  }
1641
1642
  export interface TermvectorsResponse {
1642
1643
  found: boolean;
1643
- _id: Id;
1644
+ _id?: Id;
1644
1645
  _index: IndexName;
1645
1646
  term_vectors?: Record<Field, TermvectorsTermVector>;
1646
1647
  took: long;
@@ -1654,7 +1655,7 @@ export interface TermvectorsTerm {
1654
1655
  ttf?: integer;
1655
1656
  }
1656
1657
  export interface TermvectorsTermVector {
1657
- field_statistics: TermvectorsFieldStatistics;
1658
+ field_statistics?: TermvectorsFieldStatistics;
1658
1659
  terms: Record<string, TermvectorsTerm>;
1659
1660
  }
1660
1661
  export interface TermvectorsToken {
@@ -1682,7 +1683,7 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
1682
1683
  detect_noop?: boolean;
1683
1684
  doc?: TPartialDocument;
1684
1685
  doc_as_upsert?: boolean;
1685
- script?: Script;
1686
+ script?: Script | string;
1686
1687
  scripted_upsert?: boolean;
1687
1688
  _source?: SearchSourceConfig;
1688
1689
  upsert?: TDocument;
@@ -1726,7 +1727,7 @@ export interface UpdateByQueryRequest extends RequestBase {
1726
1727
  body?: {
1727
1728
  max_docs?: long;
1728
1729
  query?: QueryDslQueryContainer;
1729
- script?: Script;
1730
+ script?: Script | string;
1730
1731
  slice?: SlicedScroll;
1731
1732
  conflicts?: Conflicts;
1732
1733
  };
@@ -2007,11 +2008,6 @@ export interface InlineGetKeys<TDocument = unknown> {
2007
2008
  export type InlineGet<TDocument = unknown> = InlineGetKeys<TDocument> & {
2008
2009
  [property: string]: any;
2009
2010
  };
2010
- export interface InlineScript extends ScriptBase {
2011
- lang?: ScriptLanguage;
2012
- options?: Record<string, string>;
2013
- source: string;
2014
- }
2015
2011
  export type Ip = string;
2016
2012
  export interface KnnQuery extends QueryDslQueryBase {
2017
2013
  field: Field;
@@ -2144,7 +2140,7 @@ export interface QueryVectorBuilder {
2144
2140
  export interface RRFRetriever extends RetrieverBase {
2145
2141
  retrievers: RetrieverContainer[];
2146
2142
  rank_constant?: integer;
2147
- window_size?: integer;
2143
+ rank_window_size?: integer;
2148
2144
  }
2149
2145
  export interface RankBase {
2150
2146
  }
@@ -2195,24 +2191,27 @@ export interface RetrieverContainer {
2195
2191
  export type Routing = string;
2196
2192
  export interface RrfRank {
2197
2193
  rank_constant?: long;
2198
- window_size?: long;
2194
+ rank_window_size?: long;
2199
2195
  }
2200
2196
  export type ScalarValue = long | double | string | boolean | null;
2201
2197
  export interface ScoreSort {
2202
2198
  order?: SortOrder;
2203
2199
  }
2204
- export type Script = InlineScript | string | StoredScriptId;
2205
- export interface ScriptBase {
2200
+ export interface Script {
2201
+ source?: string;
2202
+ id?: Id;
2206
2203
  params?: Record<string, any>;
2204
+ lang?: ScriptLanguage;
2205
+ options?: Record<string, string>;
2207
2206
  }
2208
2207
  export interface ScriptField {
2209
- script: Script;
2208
+ script: Script | string;
2210
2209
  ignore_failure?: boolean;
2211
2210
  }
2212
2211
  export type ScriptLanguage = 'painless' | 'expression' | 'mustache' | 'java' | string;
2213
2212
  export interface ScriptSort {
2214
2213
  order?: SortOrder;
2215
- script: Script;
2214
+ script: Script | string;
2216
2215
  type?: ScriptSortType;
2217
2216
  mode?: SortMode;
2218
2217
  nested?: NestedSortValue;
@@ -2338,9 +2337,6 @@ export interface StoredScript {
2338
2337
  options?: Record<string, string>;
2339
2338
  source: string;
2340
2339
  }
2341
- export interface StoredScriptId extends ScriptBase {
2342
- id: Id;
2343
- }
2344
2340
  export type SuggestMode = 'missing' | 'popular' | 'always';
2345
2341
  export type SuggestionName = string;
2346
2342
  export interface TaskFailure {
@@ -2541,7 +2537,7 @@ export interface AggregationsAutoDateHistogramAggregation extends AggregationsBu
2541
2537
  missing?: DateTime;
2542
2538
  offset?: string;
2543
2539
  params?: Record<string, any>;
2544
- script?: Script;
2540
+ script?: Script | string;
2545
2541
  time_zone?: TimeZone;
2546
2542
  }
2547
2543
  export interface AggregationsAverageAggregation extends AggregationsFormatMetricAggregationBase {
@@ -2597,10 +2593,10 @@ export interface AggregationsBucketPathAggregation {
2597
2593
  buckets_path?: AggregationsBucketsPath;
2598
2594
  }
2599
2595
  export interface AggregationsBucketScriptAggregation extends AggregationsPipelineAggregationBase {
2600
- script?: Script;
2596
+ script?: Script | string;
2601
2597
  }
2602
2598
  export interface AggregationsBucketSelectorAggregation extends AggregationsPipelineAggregationBase {
2603
- script?: Script;
2599
+ script?: Script | string;
2604
2600
  }
2605
2601
  export interface AggregationsBucketSortAggregation {
2606
2602
  from?: integer;
@@ -2658,7 +2654,7 @@ export interface AggregationsCompositeAggregationBase {
2658
2654
  field?: Field;
2659
2655
  missing_bucket?: boolean;
2660
2656
  missing_order?: AggregationsMissingOrder;
2661
- script?: Script;
2657
+ script?: Script | string;
2662
2658
  value_type?: AggregationsValueType;
2663
2659
  order?: SortOrder;
2664
2660
  }
@@ -2718,7 +2714,7 @@ export interface AggregationsDateHistogramAggregation extends AggregationsBucket
2718
2714
  offset?: Duration;
2719
2715
  order?: AggregationsAggregateOrder;
2720
2716
  params?: Record<string, any>;
2721
- script?: Script;
2717
+ script?: Script | string;
2722
2718
  time_zone?: TimeZone;
2723
2719
  keyed?: boolean;
2724
2720
  }
@@ -2753,7 +2749,7 @@ export interface AggregationsDerivativeAggregation extends AggregationsPipelineA
2753
2749
  export interface AggregationsDiversifiedSamplerAggregation extends AggregationsBucketAggregationBase {
2754
2750
  execution_hint?: AggregationsSamplerAggregationExecutionHint;
2755
2751
  max_docs_per_value?: integer;
2756
- script?: Script;
2752
+ script?: Script | string;
2757
2753
  shard_size?: integer;
2758
2754
  field?: Field;
2759
2755
  }
@@ -2962,7 +2958,7 @@ export interface AggregationsHistogramAggregation extends AggregationsBucketAggr
2962
2958
  missing?: double;
2963
2959
  offset?: double;
2964
2960
  order?: AggregationsAggregateOrder;
2965
- script?: Script;
2961
+ script?: Script | string;
2966
2962
  format?: string;
2967
2963
  keyed?: boolean;
2968
2964
  }
@@ -3121,7 +3117,7 @@ export interface AggregationsMedianAbsoluteDeviationAggregation extends Aggregat
3121
3117
  export interface AggregationsMetricAggregationBase {
3122
3118
  field?: Field;
3123
3119
  missing?: AggregationsMissing;
3124
- script?: Script;
3120
+ script?: Script | string;
3125
3121
  }
3126
3122
  export interface AggregationsMinAggregate extends AggregationsSingleMetricAggregateBase {
3127
3123
  }
@@ -3244,7 +3240,7 @@ export interface AggregationsRangeAggregation extends AggregationsBucketAggregat
3244
3240
  field?: Field;
3245
3241
  missing?: integer;
3246
3242
  ranges?: AggregationsAggregationRange[];
3247
- script?: Script;
3243
+ script?: Script | string;
3248
3244
  keyed?: boolean;
3249
3245
  format?: string;
3250
3246
  }
@@ -3294,17 +3290,17 @@ export interface AggregationsSamplerAggregation extends AggregationsBucketAggreg
3294
3290
  }
3295
3291
  export type AggregationsSamplerAggregationExecutionHint = 'map' | 'global_ordinals' | 'bytes_hash';
3296
3292
  export interface AggregationsScriptedHeuristic {
3297
- script: Script;
3293
+ script: Script | string;
3298
3294
  }
3299
3295
  export interface AggregationsScriptedMetricAggregate extends AggregationsAggregateBase {
3300
3296
  value: any;
3301
3297
  }
3302
3298
  export interface AggregationsScriptedMetricAggregation extends AggregationsMetricAggregationBase {
3303
- combine_script?: Script;
3304
- init_script?: Script;
3305
- map_script?: Script;
3299
+ combine_script?: Script | string;
3300
+ init_script?: Script | string;
3301
+ map_script?: Script | string;
3306
3302
  params?: Record<string, any>;
3307
- reduce_script?: Script;
3303
+ reduce_script?: Script | string;
3308
3304
  }
3309
3305
  export interface AggregationsSerialDifferencingAggregation extends AggregationsPipelineAggregationBase {
3310
3306
  lag?: integer;
@@ -3485,7 +3481,7 @@ export interface AggregationsTermsAggregation extends AggregationsBucketAggregat
3485
3481
  missing_bucket?: boolean;
3486
3482
  value_type?: string;
3487
3483
  order?: AggregationsAggregateOrder;
3488
- script?: Script;
3484
+ script?: Script | string;
3489
3485
  shard_min_doc_count?: long;
3490
3486
  shard_size?: integer;
3491
3487
  show_term_doc_count_error?: boolean;
@@ -3505,7 +3501,7 @@ export interface AggregationsTermsPartition {
3505
3501
  }
3506
3502
  export interface AggregationsTestPopulation {
3507
3503
  field: Field;
3508
- script?: Script;
3504
+ script?: Script | string;
3509
3505
  filter?: QueryDslQueryContainer;
3510
3506
  }
3511
3507
  export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase {
@@ -3564,7 +3560,7 @@ export interface AggregationsVariableWidthHistogramAggregation {
3564
3560
  buckets?: integer;
3565
3561
  shard_size?: integer;
3566
3562
  initial_buffer?: integer;
3567
- script?: Script;
3563
+ script?: Script | string;
3568
3564
  }
3569
3565
  export interface AggregationsVariableWidthHistogramBucketKeys extends AggregationsMultiBucketBase {
3570
3566
  min: double;
@@ -3586,7 +3582,7 @@ export interface AggregationsWeightedAverageAggregation {
3586
3582
  export interface AggregationsWeightedAverageValue {
3587
3583
  field?: Field;
3588
3584
  missing?: double;
3589
- script?: Script;
3585
+ script?: Script | string;
3590
3586
  }
3591
3587
  export interface AggregationsWeightedAvgAggregate extends AggregationsSingleMetricAggregateBase {
3592
3588
  }
@@ -3624,7 +3620,7 @@ export interface AnalysisCompoundWordTokenFilterBase extends AnalysisTokenFilter
3624
3620
  export interface AnalysisConditionTokenFilter extends AnalysisTokenFilterBase {
3625
3621
  type: 'condition';
3626
3622
  filter: string[];
3627
- script: Script;
3623
+ script: Script | string;
3628
3624
  }
3629
3625
  export interface AnalysisCustomAnalyzer {
3630
3626
  type: 'custom';
@@ -3946,7 +3942,7 @@ export interface AnalysisPorterStemTokenFilter extends AnalysisTokenFilterBase {
3946
3942
  }
3947
3943
  export interface AnalysisPredicateTokenFilter extends AnalysisTokenFilterBase {
3948
3944
  type: 'predicate_token_filter';
3949
- script: Script;
3945
+ script: Script | string;
3950
3946
  }
3951
3947
  export interface AnalysisRemoveDuplicatesTokenFilter extends AnalysisTokenFilterBase {
3952
3948
  type: 'remove_duplicates';
@@ -4184,8 +4180,9 @@ export interface MappingDateRangeProperty extends MappingRangePropertyBase {
4184
4180
  }
4185
4181
  export interface MappingDenseVectorIndexOptions {
4186
4182
  type: string;
4187
- m: integer;
4188
- ef_construction: integer;
4183
+ m?: integer;
4184
+ ef_construction?: integer;
4185
+ confidence_interval?: float;
4189
4186
  }
4190
4187
  export interface MappingDenseVectorProperty extends MappingPropertyBase {
4191
4188
  type: 'dense_vector';
@@ -4212,7 +4209,7 @@ export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4212
4209
  null_value?: FieldValue;
4213
4210
  boost?: double;
4214
4211
  coerce?: boolean;
4215
- script?: Script;
4212
+ script?: Script | string;
4216
4213
  on_script_error?: MappingOnScriptError;
4217
4214
  ignore_malformed?: boolean;
4218
4215
  time_series_metric?: MappingTimeSeriesMetricType;
@@ -4253,7 +4250,7 @@ export interface MappingFieldMapping {
4253
4250
  export interface MappingFieldNamesField {
4254
4251
  enabled: boolean;
4255
4252
  }
4256
- 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';
4253
+ 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' | 'semantic_text' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword';
4257
4254
  export interface MappingFlattenedProperty extends MappingPropertyBase {
4258
4255
  boost?: double;
4259
4256
  depth_limit?: integer;
@@ -4280,7 +4277,7 @@ export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
4280
4277
  null_value?: GeoLocation;
4281
4278
  index?: boolean;
4282
4279
  on_script_error?: MappingOnScriptError;
4283
- script?: Script;
4280
+ script?: Script | string;
4284
4281
  type: 'geo_point';
4285
4282
  }
4286
4283
  export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
@@ -4336,7 +4333,7 @@ export interface MappingIpProperty extends MappingDocValuesPropertyBase {
4336
4333
  ignore_malformed?: boolean;
4337
4334
  null_value?: string;
4338
4335
  on_script_error?: MappingOnScriptError;
4339
- script?: Script;
4336
+ script?: Script | string;
4340
4337
  time_series_dimension?: boolean;
4341
4338
  type: 'ip';
4342
4339
  }
@@ -4353,7 +4350,7 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
4353
4350
  eager_global_ordinals?: boolean;
4354
4351
  index?: boolean;
4355
4352
  index_options?: MappingIndexOptions;
4356
- script?: Script;
4353
+ script?: Script | string;
4357
4354
  on_script_error?: MappingOnScriptError;
4358
4355
  normalizer?: string;
4359
4356
  norms?: boolean;
@@ -4391,7 +4388,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
4391
4388
  ignore_malformed?: boolean;
4392
4389
  index?: boolean;
4393
4390
  on_script_error?: MappingOnScriptError;
4394
- script?: Script;
4391
+ script?: Script | string;
4395
4392
  time_series_metric?: MappingTimeSeriesMetricType;
4396
4393
  time_series_dimension?: boolean;
4397
4394
  }
@@ -4410,7 +4407,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
4410
4407
  null_value?: string;
4411
4408
  type: 'point';
4412
4409
  }
4413
- 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;
4410
+ export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingSemanticTextProperty | MappingSparseVectorProperty | 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;
4414
4411
  export interface MappingPropertyBase {
4415
4412
  meta?: Record<string, string>;
4416
4413
  properties?: Record<PropertyName, MappingProperty>;
@@ -4440,7 +4437,7 @@ export interface MappingRuntimeField {
4440
4437
  input_field?: Field;
4441
4438
  target_field?: Field;
4442
4439
  target_index?: IndexName;
4443
- script?: Script;
4440
+ script?: Script | string;
4444
4441
  type: MappingRuntimeFieldType;
4445
4442
  }
4446
4443
  export interface MappingRuntimeFieldFetchFields {
@@ -4465,6 +4462,11 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase
4465
4462
  term_vector?: MappingTermVectorOption;
4466
4463
  type: 'search_as_you_type';
4467
4464
  }
4465
+ export interface MappingSemanticTextProperty {
4466
+ type: 'semantic_text';
4467
+ meta?: Record<string, string>;
4468
+ inference_id: Id;
4469
+ }
4468
4470
  export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
4469
4471
  coerce?: boolean;
4470
4472
  ignore_malformed?: boolean;
@@ -4592,25 +4594,19 @@ export interface QueryDslCommonTermsQuery extends QueryDslQueryBase {
4592
4594
  export interface QueryDslConstantScoreQuery extends QueryDslQueryBase {
4593
4595
  filter: QueryDslQueryContainer;
4594
4596
  }
4595
- export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase {
4597
+ export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase<DateMath, Duration> {
4596
4598
  }
4597
4599
  export type QueryDslDateDecayFunction = QueryDslDateDecayFunctionKeys & {
4598
4600
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
4599
4601
  };
4600
4602
  export interface QueryDslDateDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<DateMath, Duration> {
4601
4603
  }
4602
- export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase {
4603
- gt?: DateMath;
4604
- gte?: DateMath;
4605
- lt?: DateMath;
4606
- lte?: DateMath;
4607
- from?: DateMath | null;
4608
- to?: DateMath | null;
4604
+ export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase<DateMath> {
4609
4605
  format?: DateFormat;
4610
4606
  time_zone?: TimeZone;
4611
4607
  }
4612
- export type QueryDslDecayFunction = QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4613
- export interface QueryDslDecayFunctionBase {
4608
+ export type QueryDslDecayFunction = QueryDslUntypedDecayFunction | QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4609
+ export interface QueryDslDecayFunctionBase<TOrigin = unknown, TScale = unknown> {
4614
4610
  multi_value_mode?: QueryDslMultiValueMode;
4615
4611
  }
4616
4612
  export interface QueryDslDecayPlacement<TOrigin = unknown, TScale = unknown> {
@@ -4623,7 +4619,7 @@ export interface QueryDslDisMaxQuery extends QueryDslQueryBase {
4623
4619
  queries: QueryDslQueryContainer[];
4624
4620
  tie_breaker?: double;
4625
4621
  }
4626
- export type QueryDslDistanceFeatureQuery = QueryDslGeoDistanceFeatureQuery | QueryDslDateDistanceFeatureQuery;
4622
+ export type QueryDslDistanceFeatureQuery = QueryDslUntypedDistanceFeatureQuery | QueryDslGeoDistanceFeatureQuery | QueryDslDateDistanceFeatureQuery;
4627
4623
  export interface QueryDslDistanceFeatureQueryBase<TOrigin = unknown, TDistance = unknown> extends QueryDslQueryBase {
4628
4624
  origin: TOrigin;
4629
4625
  pivot: TDistance;
@@ -4686,7 +4682,7 @@ export interface QueryDslGeoBoundingBoxQueryKeys extends QueryDslQueryBase {
4686
4682
  export type QueryDslGeoBoundingBoxQuery = QueryDslGeoBoundingBoxQueryKeys & {
4687
4683
  [property: string]: GeoBounds | QueryDslGeoExecution | QueryDslGeoValidationMethod | boolean | float | string;
4688
4684
  };
4689
- export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase {
4685
+ export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase<GeoLocation, Distance> {
4690
4686
  }
4691
4687
  export type QueryDslGeoDecayFunction = QueryDslGeoDecayFunctionKeys & {
4692
4688
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
@@ -4771,7 +4767,7 @@ export interface QueryDslIntervalsFilter {
4771
4767
  not_containing?: QueryDslIntervalsContainer;
4772
4768
  not_overlapping?: QueryDslIntervalsContainer;
4773
4769
  overlapping?: QueryDslIntervalsContainer;
4774
- script?: Script;
4770
+ script?: Script | string;
4775
4771
  }
4776
4772
  export interface QueryDslIntervalsFuzzy {
4777
4773
  analyzer?: string;
@@ -4908,15 +4904,9 @@ export interface QueryDslNestedQuery extends QueryDslQueryBase {
4908
4904
  query: QueryDslQueryContainer;
4909
4905
  score_mode?: QueryDslChildScoreMode;
4910
4906
  }
4911
- export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase {
4912
- gt?: double;
4913
- gte?: double;
4914
- lt?: double;
4915
- lte?: double;
4916
- from?: double | null;
4917
- to?: double | null;
4907
+ export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase<double> {
4918
4908
  }
4919
- export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase {
4909
+ export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase<double, double> {
4920
4910
  }
4921
4911
  export type QueryDslNumericDecayFunction = QueryDslNumericDecayFunctionKeys & {
4922
4912
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
@@ -4993,9 +4983,10 @@ export interface QueryDslQueryContainer {
4993
4983
  range?: Partial<Record<Field, QueryDslRangeQuery>>;
4994
4984
  rank_feature?: QueryDslRankFeatureQuery;
4995
4985
  regexp?: Partial<Record<Field, QueryDslRegexpQuery | string>>;
4996
- rule_query?: QueryDslRuleQuery;
4986
+ rule?: QueryDslRuleQuery;
4997
4987
  script?: QueryDslScriptQuery;
4998
4988
  script_score?: QueryDslScriptScoreQuery;
4989
+ semantic?: QueryDslSemanticQuery;
4999
4990
  shape?: QueryDslShapeQuery;
5000
4991
  simple_query_string?: QueryDslSimpleQueryStringQuery;
5001
4992
  span_containing?: QueryDslSpanContainingQuery;
@@ -5007,6 +4998,7 @@ export interface QueryDslQueryContainer {
5007
4998
  span_or?: QueryDslSpanOrQuery;
5008
4999
  span_term?: Partial<Record<Field, QueryDslSpanTermQuery | string>>;
5009
5000
  span_within?: QueryDslSpanWithinQuery;
5001
+ sparse_vector?: QueryDslSparseVectorQuery;
5010
5002
  term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
5011
5003
  terms?: QueryDslTermsQuery;
5012
5004
  terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>;
@@ -5047,9 +5039,15 @@ export interface QueryDslRandomScoreFunction {
5047
5039
  field?: Field;
5048
5040
  seed?: long | string;
5049
5041
  }
5050
- export type QueryDslRangeQuery = QueryDslDateRangeQuery | QueryDslNumberRangeQuery;
5051
- export interface QueryDslRangeQueryBase extends QueryDslQueryBase {
5042
+ export type QueryDslRangeQuery = QueryDslUntypedRangeQuery | QueryDslDateRangeQuery | QueryDslNumberRangeQuery | QueryDslTermRangeQuery;
5043
+ export interface QueryDslRangeQueryBase<T = unknown> extends QueryDslQueryBase {
5052
5044
  relation?: QueryDslRangeRelation;
5045
+ gt?: T;
5046
+ gte?: T;
5047
+ lt?: T;
5048
+ lte?: T;
5049
+ from?: T | null;
5050
+ to?: T | null;
5053
5051
  }
5054
5052
  export type QueryDslRangeRelation = 'within' | 'contains' | 'intersects';
5055
5053
  export interface QueryDslRankFeatureFunction {
@@ -5082,19 +5080,23 @@ export interface QueryDslRegexpQuery extends QueryDslQueryBase {
5082
5080
  }
5083
5081
  export interface QueryDslRuleQuery extends QueryDslQueryBase {
5084
5082
  organic: QueryDslQueryContainer;
5085
- ruleset_id: Id;
5083
+ ruleset_ids: Id[];
5086
5084
  match_criteria: any;
5087
5085
  }
5088
5086
  export interface QueryDslScriptQuery extends QueryDslQueryBase {
5089
- script: Script;
5087
+ script: Script | string;
5090
5088
  }
5091
5089
  export interface QueryDslScriptScoreFunction {
5092
- script: Script;
5090
+ script: Script | string;
5093
5091
  }
5094
5092
  export interface QueryDslScriptScoreQuery extends QueryDslQueryBase {
5095
5093
  min_score?: float;
5096
5094
  query: QueryDslQueryContainer;
5097
- script: Script;
5095
+ script: Script | string;
5096
+ }
5097
+ export interface QueryDslSemanticQuery extends QueryDslQueryBase {
5098
+ field: string;
5099
+ query: string;
5098
5100
  }
5099
5101
  export interface QueryDslShapeFieldQuery {
5100
5102
  indexed_shape?: QueryDslFieldLookup;
@@ -5174,10 +5176,20 @@ export interface QueryDslSpanWithinQuery extends QueryDslQueryBase {
5174
5176
  big: QueryDslSpanQuery;
5175
5177
  little: QueryDslSpanQuery;
5176
5178
  }
5179
+ export interface QueryDslSparseVectorQuery extends QueryDslQueryBase {
5180
+ field: Field;
5181
+ query_vector?: Record<string, float>;
5182
+ inference_id?: Id;
5183
+ query?: string;
5184
+ prune?: boolean;
5185
+ pruning_config?: QueryDslTokenPruningConfig;
5186
+ }
5177
5187
  export interface QueryDslTermQuery extends QueryDslQueryBase {
5178
5188
  value: FieldValue;
5179
5189
  case_insensitive?: boolean;
5180
5190
  }
5191
+ export interface QueryDslTermRangeQuery extends QueryDslRangeQueryBase<string> {
5192
+ }
5181
5193
  export interface QueryDslTermsLookup {
5182
5194
  index: IndexName;
5183
5195
  id: Id;
@@ -5192,7 +5204,7 @@ export type QueryDslTermsQuery = QueryDslTermsQueryKeys & {
5192
5204
  export type QueryDslTermsQueryField = FieldValue[] | QueryDslTermsLookup;
5193
5205
  export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
5194
5206
  minimum_should_match_field?: Field;
5195
- minimum_should_match_script?: Script;
5207
+ minimum_should_match_script?: Script | string;
5196
5208
  terms: string[];
5197
5209
  }
5198
5210
  export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
@@ -5209,6 +5221,17 @@ export interface QueryDslTokenPruningConfig {
5209
5221
  export interface QueryDslTypeQuery extends QueryDslQueryBase {
5210
5222
  value: string;
5211
5223
  }
5224
+ export interface QueryDslUntypedDecayFunctionKeys extends QueryDslDecayFunctionBase<any, any> {
5225
+ }
5226
+ export type QueryDslUntypedDecayFunction = QueryDslUntypedDecayFunctionKeys & {
5227
+ [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
5228
+ };
5229
+ export interface QueryDslUntypedDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<any, any> {
5230
+ }
5231
+ export interface QueryDslUntypedRangeQuery extends QueryDslRangeQueryBase<any> {
5232
+ format?: DateFormat;
5233
+ time_zone?: TimeZone;
5234
+ }
5212
5235
  export interface QueryDslWeightedTokensQuery extends QueryDslQueryBase {
5213
5236
  tokens: Record<string, float>;
5214
5237
  pruning_config?: QueryDslTokenPruningConfig;
@@ -5428,28 +5451,39 @@ export interface CatAliasesRequest extends CatCatRequestBase {
5428
5451
  }
5429
5452
  export type CatAliasesResponse = CatAliasesAliasesRecord[];
5430
5453
  export interface CatAllocationAllocationRecord {
5431
- shards?: string;
5432
- s?: string;
5433
- 'disk.indices'?: ByteSize | null;
5434
- di?: ByteSize | null;
5435
- diskIndices?: ByteSize | null;
5436
- 'disk.used'?: ByteSize | null;
5437
- du?: ByteSize | null;
5438
- diskUsed?: ByteSize | null;
5439
- 'disk.avail'?: ByteSize | null;
5440
- da?: ByteSize | null;
5441
- diskAvail?: ByteSize | null;
5442
- 'disk.total'?: ByteSize | null;
5443
- dt?: ByteSize | null;
5444
- diskTotal?: ByteSize | null;
5445
- 'disk.percent'?: Percentage | null;
5446
- dp?: Percentage | null;
5447
- diskPercent?: Percentage | null;
5448
- host?: Host | null;
5449
- h?: Host | null;
5450
- ip?: Ip | null;
5451
- node?: string;
5452
- n?: string;
5454
+ shards: string;
5455
+ s: string;
5456
+ 'shards.undesired': string | null;
5457
+ 'write_load.forecast': double | null;
5458
+ wlf: double | null;
5459
+ writeLoadForecast: double | null;
5460
+ 'disk.indices.forecast': ByteSize | null;
5461
+ dif: ByteSize | null;
5462
+ diskIndicesForecast: ByteSize | null;
5463
+ 'disk.indices': ByteSize | null;
5464
+ di: ByteSize | null;
5465
+ diskIndices: ByteSize | null;
5466
+ 'disk.used': ByteSize | null;
5467
+ du: ByteSize | null;
5468
+ diskUsed: ByteSize | null;
5469
+ 'disk.avail': ByteSize | null;
5470
+ da: ByteSize | null;
5471
+ diskAvail: ByteSize | null;
5472
+ 'disk.total': ByteSize | null;
5473
+ dt: ByteSize | null;
5474
+ diskTotal: ByteSize | null;
5475
+ 'disk.percent': Percentage | null;
5476
+ dp: Percentage | null;
5477
+ diskPercent: Percentage | null;
5478
+ host: Host | null;
5479
+ h: Host | null;
5480
+ ip: Ip | null;
5481
+ node: string;
5482
+ n: string;
5483
+ 'node.role': string | null;
5484
+ r: string | null;
5485
+ role: string | null;
5486
+ nodeRole: string | null;
5453
5487
  }
5454
5488
  export interface CatAllocationRequest extends CatCatRequestBase {
5455
5489
  node_id?: NodeIds;
@@ -7901,14 +7935,15 @@ export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase {
7901
7935
  }
7902
7936
  export interface ConnectorConnector {
7903
7937
  api_key_id?: string;
7938
+ api_key_secret_id?: string;
7904
7939
  configuration: ConnectorConnectorConfiguration;
7905
7940
  custom_scheduling: ConnectorConnectorCustomScheduling;
7906
7941
  description?: string;
7907
- error?: string;
7942
+ error?: string | null;
7908
7943
  features?: ConnectorConnectorFeatures;
7909
7944
  filtering: ConnectorFilteringConfig[];
7910
7945
  id?: Id;
7911
- index_name?: IndexName;
7946
+ index_name?: IndexName | null;
7912
7947
  is_native: boolean;
7913
7948
  language?: string;
7914
7949
  last_access_control_sync_error?: string;
@@ -7925,8 +7960,9 @@ export interface ConnectorConnector {
7925
7960
  name?: string;
7926
7961
  pipeline?: ConnectorIngestPipelineParams;
7927
7962
  scheduling: ConnectorSchedulingConfiguration;
7928
- service_type: string;
7963
+ service_type?: string;
7929
7964
  status: ConnectorConnectorStatus;
7965
+ sync_cursor?: any;
7930
7966
  sync_now: boolean;
7931
7967
  }
7932
7968
  export interface ConnectorConnectorConfigProperties {
@@ -7940,19 +7976,18 @@ export interface ConnectorConnectorConfigProperties {
7940
7976
  placeholder?: string;
7941
7977
  required: boolean;
7942
7978
  sensitive: boolean;
7943
- tooltip?: string;
7944
- type: ConnectorConnectorFieldType;
7945
- ui_restrictions: string[];
7946
- validations: ConnectorValidation[];
7947
- value: ScalarValue;
7979
+ tooltip?: string | null;
7980
+ type?: ConnectorConnectorFieldType;
7981
+ ui_restrictions?: string[];
7982
+ validations?: ConnectorValidation[];
7983
+ value: any;
7948
7984
  }
7949
7985
  export type ConnectorConnectorConfiguration = Record<string, ConnectorConnectorConfigProperties>;
7950
7986
  export type ConnectorConnectorCustomScheduling = Record<string, ConnectorCustomScheduling>;
7951
7987
  export interface ConnectorConnectorFeatures {
7952
7988
  document_level_security?: ConnectorFeatureEnabled;
7953
- filtering_advanced_config?: boolean;
7954
- filtering_rules?: boolean;
7955
7989
  incremental_sync?: ConnectorFeatureEnabled;
7990
+ native_connector_api_keys?: ConnectorFeatureEnabled;
7956
7991
  sync_rules?: ConnectorSyncRulesFeature;
7957
7992
  }
7958
7993
  export type ConnectorConnectorFieldType = 'str' | 'int' | 'list' | 'bool';
@@ -8010,7 +8045,7 @@ export interface ConnectorFilteringAdvancedSnippet {
8010
8045
  }
8011
8046
  export interface ConnectorFilteringConfig {
8012
8047
  active: ConnectorFilteringRules;
8013
- domain: string;
8048
+ domain?: string;
8014
8049
  draft: ConnectorFilteringRules;
8015
8050
  }
8016
8051
  export type ConnectorFilteringPolicy = 'exclude' | 'include';
@@ -8045,7 +8080,7 @@ export interface ConnectorGreaterThanValidation {
8045
8080
  }
8046
8081
  export interface ConnectorIncludedInValidation {
8047
8082
  type: 'included_in';
8048
- constraint: string;
8083
+ constraint: ScalarValue[];
8049
8084
  }
8050
8085
  export interface ConnectorIngestPipelineParams {
8051
8086
  extract_binary_content: boolean;
@@ -8059,7 +8094,7 @@ export interface ConnectorLessThanValidation {
8059
8094
  }
8060
8095
  export interface ConnectorListTypeValidation {
8061
8096
  type: 'list_type';
8062
- constraint: ScalarValue[];
8097
+ constraint: string;
8063
8098
  }
8064
8099
  export interface ConnectorRegexValidation {
8065
8100
  type: 'regex';
@@ -8072,7 +8107,7 @@ export interface ConnectorSchedulingConfiguration {
8072
8107
  }
8073
8108
  export interface ConnectorSelectOption {
8074
8109
  label: string;
8075
- value: string;
8110
+ value: ScalarValue;
8076
8111
  }
8077
8112
  export interface ConnectorSyncJobConnectorReference {
8078
8113
  configuration: ConnectorConnectorConfiguration;
@@ -8082,6 +8117,7 @@ export interface ConnectorSyncJobConnectorReference {
8082
8117
  language?: string;
8083
8118
  pipeline?: ConnectorIngestPipelineParams;
8084
8119
  service_type: string;
8120
+ sync_cursor?: any;
8085
8121
  }
8086
8122
  export type ConnectorSyncJobTriggerMethod = 'on_demand' | 'scheduled';
8087
8123
  export type ConnectorSyncJobType = 'full' | 'incremental' | 'access_control';
@@ -8099,7 +8135,7 @@ export interface ConnectorCheckInResponse {
8099
8135
  }
8100
8136
  export interface ConnectorDeleteRequest extends RequestBase {
8101
8137
  connector_id: Id;
8102
- delete_sync_jobs: boolean;
8138
+ delete_sync_jobs?: boolean;
8103
8139
  }
8104
8140
  export type ConnectorDeleteResponse = AcknowledgedResponseBase;
8105
8141
  export interface ConnectorGetRequest extends RequestBase {
@@ -8110,17 +8146,18 @@ export interface ConnectorLastSyncRequest extends RequestBase {
8110
8146
  connector_id: Id;
8111
8147
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8112
8148
  body?: {
8113
- last_access_control_sync_error?: SpecUtilsWithNullValue<string>;
8149
+ last_access_control_sync_error?: string;
8114
8150
  last_access_control_sync_scheduled_at?: DateTime;
8115
8151
  last_access_control_sync_status?: ConnectorSyncStatus;
8116
8152
  last_deleted_document_count?: long;
8117
8153
  last_incremental_sync_scheduled_at?: DateTime;
8118
8154
  last_indexed_document_count?: long;
8119
- last_seen?: SpecUtilsWithNullValue<DateTime>;
8120
- last_sync_error?: SpecUtilsWithNullValue<string>;
8155
+ last_seen?: DateTime;
8156
+ last_sync_error?: string;
8121
8157
  last_sync_scheduled_at?: DateTime;
8122
8158
  last_sync_status?: ConnectorSyncStatus;
8123
8159
  last_synced?: DateTime;
8160
+ sync_cursor?: any;
8124
8161
  };
8125
8162
  }
8126
8163
  export interface ConnectorLastSyncResponse {
@@ -8142,7 +8179,7 @@ export interface ConnectorPostRequest extends RequestBase {
8142
8179
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8143
8180
  body?: {
8144
8181
  description?: string;
8145
- index_name: SpecUtilsWithNullValue<IndexName>;
8182
+ index_name?: IndexName;
8146
8183
  is_native?: boolean;
8147
8184
  language?: string;
8148
8185
  name?: string;
@@ -8150,14 +8187,15 @@ export interface ConnectorPostRequest extends RequestBase {
8150
8187
  };
8151
8188
  }
8152
8189
  export interface ConnectorPostResponse {
8190
+ result: Result;
8153
8191
  id: Id;
8154
8192
  }
8155
8193
  export interface ConnectorPutRequest extends RequestBase {
8156
- connector_id: Id;
8194
+ connector_id?: Id;
8157
8195
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8158
8196
  body?: {
8159
8197
  description?: string;
8160
- index_name: SpecUtilsWithNullValue<IndexName>;
8198
+ index_name?: IndexName;
8161
8199
  is_native?: boolean;
8162
8200
  language?: string;
8163
8201
  name?: string;
@@ -8166,6 +8204,7 @@ export interface ConnectorPutRequest extends RequestBase {
8166
8204
  }
8167
8205
  export interface ConnectorPutResponse {
8168
8206
  result: Result;
8207
+ id: Id;
8169
8208
  }
8170
8209
  export interface ConnectorSyncJobCancelRequest extends RequestBase {
8171
8210
  connector_sync_job_id: Id;
@@ -8186,7 +8225,7 @@ export interface ConnectorSyncJobListRequest extends RequestBase {
8186
8225
  size?: integer;
8187
8226
  status?: ConnectorSyncStatus;
8188
8227
  connector_id?: Id;
8189
- job_type?: ConnectorSyncJobType[];
8228
+ job_type?: ConnectorSyncJobType | ConnectorSyncJobType[];
8190
8229
  }
8191
8230
  export interface ConnectorSyncJobListResponse {
8192
8231
  count: long;
@@ -8213,8 +8252,8 @@ export interface ConnectorUpdateApiKeyIdRequest extends RequestBase {
8213
8252
  connector_id: Id;
8214
8253
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8215
8254
  body?: {
8216
- api_key_id?: SpecUtilsWithNullValue<string>;
8217
- api_key_secret_id?: SpecUtilsWithNullValue<string>;
8255
+ api_key_id?: string;
8256
+ api_key_secret_id?: string;
8218
8257
  };
8219
8258
  }
8220
8259
  export interface ConnectorUpdateApiKeyIdResponse {
@@ -8277,7 +8316,7 @@ export interface ConnectorUpdateNameRequest extends RequestBase {
8277
8316
  connector_id: Id;
8278
8317
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
8279
8318
  body?: {
8280
- name: string;
8319
+ name?: string;
8281
8320
  description?: string;
8282
8321
  };
8283
8322
  }
@@ -8445,11 +8484,12 @@ export interface EqlHitsEvent<TEvent = unknown> {
8445
8484
  _index: IndexName;
8446
8485
  _id: Id;
8447
8486
  _source: TEvent;
8487
+ missing?: boolean;
8448
8488
  fields?: Record<Field, any[]>;
8449
8489
  }
8450
8490
  export interface EqlHitsSequence<TEvent = unknown> {
8451
8491
  events: EqlHitsEvent<TEvent>[];
8452
- join_keys: any[];
8492
+ join_keys?: any[];
8453
8493
  }
8454
8494
  export interface EqlDeleteRequest extends RequestBase {
8455
8495
  id: Id;
@@ -8700,19 +8740,45 @@ export interface GraphExploreResponse {
8700
8740
  took: long;
8701
8741
  vertices: GraphVertex[];
8702
8742
  }
8703
- export type IlmActions = any;
8704
- export interface IlmConfigurations {
8705
- rollover?: IndicesRolloverRolloverConditions;
8706
- forcemerge?: IlmForceMergeConfiguration;
8707
- shrink?: IlmShrinkConfiguration;
8743
+ export interface IlmActions {
8744
+ allocate?: IlmAllocateAction;
8745
+ delete?: IlmDeleteAction;
8746
+ downsample?: IlmDownsampleAction;
8747
+ freeze?: EmptyObject;
8748
+ forcemerge?: IlmForceMergeAction;
8749
+ migrate?: IlmMigrateAction;
8750
+ readonly?: EmptyObject;
8751
+ rollover?: IlmRolloverAction;
8752
+ set_priority?: IlmSetPriorityAction;
8753
+ searchable_snapshot?: IlmSearchableSnapshotAction;
8754
+ shrink?: IlmShrinkAction;
8755
+ unfollow?: EmptyObject;
8756
+ wait_for_snapshot?: IlmWaitForSnapshotAction;
8757
+ }
8758
+ export interface IlmAllocateAction {
8759
+ number_of_replicas?: integer;
8760
+ total_shards_per_node?: integer;
8761
+ include?: Record<string, string>;
8762
+ exclude?: Record<string, string>;
8763
+ require?: Record<string, string>;
8764
+ }
8765
+ export interface IlmDeleteAction {
8766
+ delete_searchable_snapshot?: boolean;
8767
+ }
8768
+ export interface IlmDownsampleAction {
8769
+ fixed_interval: DurationLarge;
8770
+ wait_timeout?: Duration;
8708
8771
  }
8709
- export interface IlmForceMergeConfiguration {
8772
+ export interface IlmForceMergeAction {
8710
8773
  max_num_segments: integer;
8774
+ index_codec?: string;
8775
+ }
8776
+ export interface IlmMigrateAction {
8777
+ enabled?: boolean;
8711
8778
  }
8712
8779
  export interface IlmPhase {
8713
8780
  actions?: IlmActions;
8714
8781
  min_age?: Duration | long;
8715
- configurations?: IlmConfigurations;
8716
8782
  }
8717
8783
  export interface IlmPhases {
8718
8784
  cold?: IlmPhase;
@@ -8725,8 +8791,32 @@ export interface IlmPolicy {
8725
8791
  phases: IlmPhases;
8726
8792
  _meta?: Metadata;
8727
8793
  }
8728
- export interface IlmShrinkConfiguration {
8729
- number_of_shards: integer;
8794
+ export interface IlmRolloverAction {
8795
+ max_size?: ByteSize;
8796
+ max_primary_shard_size?: ByteSize;
8797
+ max_age?: Duration;
8798
+ max_docs?: long;
8799
+ max_primary_shard_docs?: long;
8800
+ min_size?: ByteSize;
8801
+ min_primary_shard_size?: ByteSize;
8802
+ min_age?: Duration;
8803
+ min_docs?: long;
8804
+ min_primary_shard_docs?: long;
8805
+ }
8806
+ export interface IlmSearchableSnapshotAction {
8807
+ snapshot_repository: string;
8808
+ force_merge_index?: boolean;
8809
+ }
8810
+ export interface IlmSetPriorityAction {
8811
+ priority?: integer;
8812
+ }
8813
+ export interface IlmShrinkAction {
8814
+ number_of_shards?: integer;
8815
+ max_primary_shard_size?: ByteSize;
8816
+ allow_write_after_shrink?: boolean;
8817
+ }
8818
+ export interface IlmWaitForSnapshotAction {
8819
+ policy: string;
8730
8820
  }
8731
8821
  export interface IlmDeleteLifecycleRequest extends RequestBase {
8732
8822
  name: Name;
@@ -9213,8 +9303,8 @@ export interface IndicesSettingsSimilarityLmj {
9213
9303
  }
9214
9304
  export interface IndicesSettingsSimilarityScripted {
9215
9305
  type: 'scripted';
9216
- script: Script;
9217
- weight_script?: Script;
9306
+ script: Script | string;
9307
+ weight_script?: Script | string;
9218
9308
  }
9219
9309
  export interface IndicesSlowlogSettings {
9220
9310
  level?: string;
@@ -10422,8 +10512,20 @@ export interface IndicesValidateQueryResponse {
10422
10512
  export interface InferenceCompletionResult {
10423
10513
  result: string;
10424
10514
  }
10515
+ export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase {
10516
+ pipelines: string[];
10517
+ }
10425
10518
  export type InferenceDenseByteVector = byte[];
10426
10519
  export type InferenceDenseVector = float[];
10520
+ export interface InferenceInferenceEndpoint {
10521
+ service: string;
10522
+ service_settings: InferenceServiceSettings;
10523
+ task_settings: InferenceTaskSettings;
10524
+ }
10525
+ export interface InferenceInferenceEndpointInfo extends InferenceInferenceEndpoint {
10526
+ inference_id: string;
10527
+ task_type: InferenceTaskType;
10528
+ }
10427
10529
  export interface InferenceInferenceResult {
10428
10530
  text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
10429
10531
  text_embedding?: InferenceTextEmbeddingResult[];
@@ -10431,15 +10533,6 @@ export interface InferenceInferenceResult {
10431
10533
  completion?: InferenceCompletionResult[];
10432
10534
  rerank?: InferenceRankedDocument[];
10433
10535
  }
10434
- export interface InferenceModelConfig {
10435
- service: string;
10436
- service_settings: InferenceServiceSettings;
10437
- task_settings: InferenceTaskSettings;
10438
- }
10439
- export interface InferenceModelConfigContainer extends InferenceModelConfig {
10440
- model_id: string;
10441
- task_type: InferenceTaskType;
10442
- }
10443
10536
  export interface InferenceRankedDocument {
10444
10537
  index: integer;
10445
10538
  score: float;
@@ -10458,17 +10551,19 @@ export interface InferenceTextEmbeddingByteResult {
10458
10551
  export interface InferenceTextEmbeddingResult {
10459
10552
  embedding: InferenceDenseVector;
10460
10553
  }
10461
- export interface InferenceDeleteModelRequest extends RequestBase {
10554
+ export interface InferenceDeleteRequest extends RequestBase {
10462
10555
  task_type?: InferenceTaskType;
10463
10556
  inference_id: Id;
10557
+ dry_run?: boolean;
10558
+ force?: boolean;
10464
10559
  }
10465
- export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
10466
- export interface InferenceGetModelRequest extends RequestBase {
10560
+ export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult;
10561
+ export interface InferenceGetRequest extends RequestBase {
10467
10562
  task_type?: InferenceTaskType;
10468
- inference_id: Id;
10563
+ inference_id?: Id;
10469
10564
  }
10470
- export interface InferenceGetModelResponse {
10471
- models: InferenceModelConfigContainer[];
10565
+ export interface InferenceGetResponse {
10566
+ endpoints: InferenceInferenceEndpointInfo[];
10472
10567
  }
10473
10568
  export interface InferenceInferenceRequest extends RequestBase {
10474
10569
  task_type?: InferenceTaskType;
@@ -10482,13 +10577,13 @@ export interface InferenceInferenceRequest extends RequestBase {
10482
10577
  };
10483
10578
  }
10484
10579
  export type InferenceInferenceResponse = InferenceInferenceResult;
10485
- export interface InferencePutModelRequest extends RequestBase {
10580
+ export interface InferencePutRequest extends RequestBase {
10486
10581
  task_type?: InferenceTaskType;
10487
10582
  inference_id: Id;
10488
- /** @deprecated The use of the 'body' key has been deprecated, use 'model_config' instead. */
10489
- body?: InferenceModelConfig;
10583
+ /** @deprecated The use of the 'body' key has been deprecated, use 'inference_config' instead. */
10584
+ body?: InferenceInferenceEndpoint;
10490
10585
  }
10491
- export type InferencePutModelResponse = InferenceModelConfigContainer;
10586
+ export type InferencePutResponse = InferenceInferenceEndpointInfo;
10492
10587
  export interface IngestAppendProcessor extends IngestProcessorBase {
10493
10588
  field: Field;
10494
10589
  value: any[];
@@ -10675,41 +10770,41 @@ export interface IngestProcessorBase {
10675
10770
  tag?: string;
10676
10771
  }
10677
10772
  export interface IngestProcessorContainer {
10678
- attachment?: IngestAttachmentProcessor;
10679
10773
  append?: IngestAppendProcessor;
10680
- csv?: IngestCsvProcessor;
10774
+ attachment?: IngestAttachmentProcessor;
10775
+ bytes?: IngestBytesProcessor;
10776
+ circle?: IngestCircleProcessor;
10681
10777
  convert?: IngestConvertProcessor;
10778
+ csv?: IngestCsvProcessor;
10682
10779
  date?: IngestDateProcessor;
10683
10780
  date_index_name?: IngestDateIndexNameProcessor;
10781
+ dissect?: IngestDissectProcessor;
10684
10782
  dot_expander?: IngestDotExpanderProcessor;
10783
+ drop?: IngestDropProcessor;
10685
10784
  enrich?: IngestEnrichProcessor;
10686
10785
  fail?: IngestFailProcessor;
10687
10786
  foreach?: IngestForeachProcessor;
10688
- json?: IngestJsonProcessor;
10689
- user_agent?: IngestUserAgentProcessor;
10690
- kv?: IngestKeyValueProcessor;
10691
10787
  geoip?: IngestGeoIpProcessor;
10692
10788
  grok?: IngestGrokProcessor;
10693
10789
  gsub?: IngestGsubProcessor;
10790
+ inference?: IngestInferenceProcessor;
10694
10791
  join?: IngestJoinProcessor;
10792
+ json?: IngestJsonProcessor;
10793
+ kv?: IngestKeyValueProcessor;
10695
10794
  lowercase?: IngestLowercaseProcessor;
10795
+ pipeline?: IngestPipelineProcessor;
10696
10796
  remove?: IngestRemoveProcessor;
10697
10797
  rename?: IngestRenameProcessor;
10698
10798
  reroute?: IngestRerouteProcessor;
10699
10799
  script?: IngestScriptProcessor;
10700
10800
  set?: IngestSetProcessor;
10801
+ set_security_user?: IngestSetSecurityUserProcessor;
10701
10802
  sort?: IngestSortProcessor;
10702
10803
  split?: IngestSplitProcessor;
10703
10804
  trim?: IngestTrimProcessor;
10704
10805
  uppercase?: IngestUppercaseProcessor;
10705
10806
  urldecode?: IngestUrlDecodeProcessor;
10706
- bytes?: IngestBytesProcessor;
10707
- dissect?: IngestDissectProcessor;
10708
- set_security_user?: IngestSetSecurityUserProcessor;
10709
- pipeline?: IngestPipelineProcessor;
10710
- drop?: IngestDropProcessor;
10711
- circle?: IngestCircleProcessor;
10712
- inference?: IngestInferenceProcessor;
10807
+ user_agent?: IngestUserAgentProcessor;
10713
10808
  }
10714
10809
  export interface IngestRemoveProcessor extends IngestProcessorBase {
10715
10810
  field: Fields;
@@ -11255,8 +11350,8 @@ export interface MlDatafeedConfig {
11255
11350
  datafeed_id?: Id;
11256
11351
  delayed_data_check_config?: MlDelayedDataCheckConfig;
11257
11352
  frequency?: Duration;
11258
- indices?: string[];
11259
- indexes?: string[];
11353
+ indices?: Indices;
11354
+ indexes?: Indices;
11260
11355
  indices_options?: IndicesOptions;
11261
11356
  job_id?: Id;
11262
11357
  max_empty_searches?: integer;
@@ -12014,7 +12109,7 @@ export interface MlTrainedModelDeploymentStats {
12014
12109
  error_count: integer;
12015
12110
  inference_count: integer;
12016
12111
  model_id: Id;
12017
- nodes: MlTrainedModelDeploymentNodesStats[];
12112
+ nodes: MlTrainedModelDeploymentNodesStats;
12018
12113
  number_of_allocations: integer;
12019
12114
  queue_capacity: integer;
12020
12115
  rejected_execution_count: integer;
@@ -12045,7 +12140,7 @@ export interface MlTrainedModelInferenceStats {
12045
12140
  failure_count: integer;
12046
12141
  inference_count: integer;
12047
12142
  missing_all_fields_count: integer;
12048
- timestamp: EpochTime<UnitMillis>;
12143
+ timestamp: DateTime;
12049
12144
  }
12050
12145
  export interface MlTrainedModelLocation {
12051
12146
  index: MlTrainedModelLocationIndex;
@@ -12059,7 +12154,7 @@ export interface MlTrainedModelPrefixStrings {
12059
12154
  }
12060
12155
  export interface MlTrainedModelSizeStats {
12061
12156
  model_size_bytes: ByteSize;
12062
- required_native_memory_bytes: integer;
12157
+ required_native_memory_bytes: ByteSize;
12063
12158
  }
12064
12159
  export interface MlTrainedModelStats {
12065
12160
  deployment_stats?: MlTrainedModelDeploymentStats;
@@ -12584,14 +12679,14 @@ export interface MlGetRecordsResponse {
12584
12679
  records: MlAnomaly[];
12585
12680
  }
12586
12681
  export interface MlGetTrainedModelsRequest extends RequestBase {
12587
- model_id?: Id;
12682
+ model_id?: Ids;
12588
12683
  allow_no_match?: boolean;
12589
12684
  decompress_definition?: boolean;
12590
12685
  exclude_generated?: boolean;
12591
12686
  from?: integer;
12592
12687
  include?: MlInclude;
12593
12688
  size?: integer;
12594
- tags?: string;
12689
+ tags?: string | string[];
12595
12690
  }
12596
12691
  export interface MlGetTrainedModelsResponse {
12597
12692
  count: integer;
@@ -12738,7 +12833,7 @@ export interface MlPutCalendarResponse {
12738
12833
  }
12739
12834
  export interface MlPutCalendarJobRequest extends RequestBase {
12740
12835
  calendar_id: Id;
12741
- job_id: Id;
12836
+ job_id: Ids;
12742
12837
  }
12743
12838
  export interface MlPutCalendarJobResponse {
12744
12839
  calendar_id: Id;
@@ -14054,55 +14149,81 @@ export interface NodesUsageResponseBase extends NodesNodesResponseBase {
14054
14149
  cluster_name: Name;
14055
14150
  nodes: Record<string, NodesUsageNodeUsage>;
14056
14151
  }
14057
- export interface QueryRulesetQueryRule {
14152
+ export interface QueryRulesQueryRule {
14058
14153
  rule_id: Id;
14059
- type: QueryRulesetQueryRuleType;
14060
- criteria: QueryRulesetQueryRuleCriteria[];
14061
- actions: QueryRulesetQueryRuleActions;
14154
+ type: QueryRulesQueryRuleType;
14155
+ criteria: QueryRulesQueryRuleCriteria | QueryRulesQueryRuleCriteria[];
14156
+ actions: QueryRulesQueryRuleActions;
14157
+ priority?: integer;
14062
14158
  }
14063
- export interface QueryRulesetQueryRuleActions {
14159
+ export interface QueryRulesQueryRuleActions {
14064
14160
  ids?: Id[];
14065
14161
  docs?: QueryDslPinnedDoc[];
14066
14162
  }
14067
- export interface QueryRulesetQueryRuleCriteria {
14068
- type: QueryRulesetQueryRuleCriteriaType;
14069
- metadata: string;
14163
+ export interface QueryRulesQueryRuleCriteria {
14164
+ type: QueryRulesQueryRuleCriteriaType;
14165
+ metadata?: string;
14070
14166
  values?: any[];
14071
14167
  }
14072
- export type QueryRulesetQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte';
14073
- export type QueryRulesetQueryRuleType = 'pinned';
14074
- export interface QueryRulesetQueryRuleset {
14168
+ export type QueryRulesQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte' | 'always';
14169
+ export type QueryRulesQueryRuleType = 'pinned';
14170
+ export interface QueryRulesQueryRuleset {
14171
+ ruleset_id: Id;
14172
+ rules: QueryRulesQueryRule[];
14173
+ }
14174
+ export interface QueryRulesDeleteRuleRequest extends RequestBase {
14175
+ ruleset_id: Id;
14176
+ rule_id: Id;
14177
+ }
14178
+ export type QueryRulesDeleteRuleResponse = AcknowledgedResponseBase;
14179
+ export interface QueryRulesDeleteRulesetRequest extends RequestBase {
14075
14180
  ruleset_id: Id;
14076
- rules: QueryRulesetQueryRule[];
14077
14181
  }
14078
- export interface QueryRulesetDeleteRequest extends RequestBase {
14182
+ export type QueryRulesDeleteRulesetResponse = AcknowledgedResponseBase;
14183
+ export interface QueryRulesGetRuleRequest extends RequestBase {
14079
14184
  ruleset_id: Id;
14185
+ rule_id: Id;
14080
14186
  }
14081
- export type QueryRulesetDeleteResponse = AcknowledgedResponseBase;
14082
- export interface QueryRulesetGetRequest extends RequestBase {
14187
+ export type QueryRulesGetRuleResponse = QueryRulesQueryRule;
14188
+ export interface QueryRulesGetRulesetRequest extends RequestBase {
14083
14189
  ruleset_id: Id;
14084
14190
  }
14085
- export type QueryRulesetGetResponse = QueryRulesetQueryRuleset;
14086
- export interface QueryRulesetListQueryRulesetListItem {
14191
+ export type QueryRulesGetRulesetResponse = QueryRulesQueryRuleset;
14192
+ export interface QueryRulesListRulesetsQueryRulesetListItem {
14087
14193
  ruleset_id: Id;
14088
- rules_count: integer;
14194
+ rule_total_count: integer;
14195
+ rule_criteria_types_counts: Record<string, integer>;
14089
14196
  }
14090
- export interface QueryRulesetListRequest extends RequestBase {
14197
+ export interface QueryRulesListRulesetsRequest extends RequestBase {
14091
14198
  from?: integer;
14092
14199
  size?: integer;
14093
14200
  }
14094
- export interface QueryRulesetListResponse {
14201
+ export interface QueryRulesListRulesetsResponse {
14095
14202
  count: long;
14096
- results: QueryRulesetListQueryRulesetListItem[];
14203
+ results: QueryRulesListRulesetsQueryRulesetListItem[];
14097
14204
  }
14098
- export interface QueryRulesetPutRequest extends RequestBase {
14205
+ export interface QueryRulesPutRuleRequest extends RequestBase {
14099
14206
  ruleset_id: Id;
14207
+ rule_id: Id;
14100
14208
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14101
14209
  body?: {
14102
- rules: QueryRulesetQueryRule[];
14210
+ type: QueryRulesQueryRuleType;
14211
+ criteria: QueryRulesQueryRuleCriteria | QueryRulesQueryRuleCriteria[];
14212
+ actions: QueryRulesQueryRuleActions;
14213
+ priority?: integer;
14103
14214
  };
14104
14215
  }
14105
- export interface QueryRulesetPutResponse {
14216
+ export interface QueryRulesPutRuleResponse {
14217
+ result: Result;
14218
+ }
14219
+ export interface QueryRulesPutRulesetRequest extends RequestBase {
14220
+ ruleset_id: Id;
14221
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14222
+ body?: {
14223
+ rules: QueryRulesQueryRule | QueryRulesQueryRule[];
14224
+ };
14225
+ }
14226
+ export interface QueryRulesPutRulesetResponse {
14106
14227
  result: Result;
14107
14228
  }
14108
14229
  export interface RollupDateHistogramGrouping {
@@ -14279,7 +14400,7 @@ export interface SearchApplicationSearchApplication {
14279
14400
  template?: SearchApplicationSearchApplicationTemplate;
14280
14401
  }
14281
14402
  export interface SearchApplicationSearchApplicationTemplate {
14282
- script: InlineScript | string;
14403
+ script: Script | string;
14283
14404
  }
14284
14405
  export interface SearchApplicationDeleteRequest extends RequestBase {
14285
14406
  name: Name;
@@ -14420,6 +14541,10 @@ export interface SecurityApplicationPrivileges {
14420
14541
  privileges: string[];
14421
14542
  resources: string[];
14422
14543
  }
14544
+ export interface SecurityBulkError {
14545
+ count: integer;
14546
+ details: Record<string, ErrorCause>;
14547
+ }
14423
14548
  export interface SecurityClusterNode {
14424
14549
  name: Name;
14425
14550
  }
@@ -14457,23 +14582,25 @@ export interface SecurityRealmInfo {
14457
14582
  type: string;
14458
14583
  }
14459
14584
  export interface SecurityRoleDescriptor {
14460
- cluster?: string[];
14585
+ cluster?: SecurityClusterPrivilege[];
14461
14586
  indices?: SecurityIndicesPrivileges[];
14462
14587
  index?: SecurityIndicesPrivileges[];
14463
14588
  global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege;
14464
14589
  applications?: SecurityApplicationPrivileges[];
14465
14590
  metadata?: Metadata;
14466
14591
  run_as?: string[];
14592
+ description?: string;
14467
14593
  transient_metadata?: Record<string, any>;
14468
14594
  }
14469
14595
  export interface SecurityRoleDescriptorRead {
14470
- cluster: string[];
14596
+ cluster: SecurityClusterPrivilege[];
14471
14597
  indices: SecurityIndicesPrivileges[];
14472
14598
  index: SecurityIndicesPrivileges[];
14473
14599
  global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege;
14474
14600
  applications?: SecurityApplicationPrivileges[];
14475
14601
  metadata?: Metadata;
14476
14602
  run_as?: string[];
14603
+ description?: string;
14477
14604
  transient_metadata?: Record<string, any>;
14478
14605
  }
14479
14606
  export interface SecurityRoleMapping {
@@ -14491,18 +14618,19 @@ export interface SecurityRoleMappingRule {
14491
14618
  }
14492
14619
  export interface SecurityRoleTemplate {
14493
14620
  format?: SecurityTemplateFormat;
14494
- template: Script;
14621
+ template: Script | string;
14495
14622
  }
14496
14623
  export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer;
14497
- export interface SecurityRoleTemplateInlineScript extends ScriptBase {
14624
+ export interface SecurityRoleTemplateQuery {
14625
+ template?: SecurityRoleTemplateScript | SecurityRoleTemplateInlineQuery;
14626
+ }
14627
+ export interface SecurityRoleTemplateScript {
14628
+ source?: SecurityRoleTemplateInlineQuery;
14629
+ id?: Id;
14630
+ params?: Record<string, any>;
14498
14631
  lang?: ScriptLanguage;
14499
14632
  options?: Record<string, string>;
14500
- source: SecurityRoleTemplateInlineQuery;
14501
14633
  }
14502
- export interface SecurityRoleTemplateQuery {
14503
- template?: SecurityRoleTemplateScript;
14504
- }
14505
- export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId;
14506
14634
  export type SecurityTemplateFormat = 'string' | 'json';
14507
14635
  export interface SecurityUser {
14508
14636
  email?: string | null;
@@ -14573,6 +14701,31 @@ export interface SecurityAuthenticateToken {
14573
14701
  name: Name;
14574
14702
  type?: string;
14575
14703
  }
14704
+ export interface SecurityBulkDeleteRoleRequest extends RequestBase {
14705
+ refresh?: Refresh;
14706
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14707
+ body?: {
14708
+ names: string[];
14709
+ };
14710
+ }
14711
+ export interface SecurityBulkDeleteRoleResponse {
14712
+ deleted?: string[];
14713
+ not_found?: string[];
14714
+ errors?: SecurityBulkError;
14715
+ }
14716
+ export interface SecurityBulkPutRoleRequest extends RequestBase {
14717
+ refresh?: Refresh;
14718
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
14719
+ body?: {
14720
+ roles: Record<string, SecurityRoleDescriptor>;
14721
+ };
14722
+ }
14723
+ export interface SecurityBulkPutRoleResponse {
14724
+ created?: string[];
14725
+ updated?: string[];
14726
+ noop?: string[];
14727
+ errors?: SecurityBulkError;
14728
+ }
14576
14729
  export interface SecurityChangePasswordRequest extends RequestBase {
14577
14730
  username?: Username;
14578
14731
  refresh?: Refresh;
@@ -14999,6 +15152,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
14999
15152
  indices?: SecurityIndicesPrivileges[];
15000
15153
  metadata?: Metadata;
15001
15154
  run_as?: string[];
15155
+ description?: string;
15002
15156
  transient_metadata?: Record<string, any>;
15003
15157
  };
15004
15158
  }
@@ -15096,6 +15250,70 @@ export interface SecurityQueryApiKeysResponse {
15096
15250
  api_keys: SecurityApiKey[];
15097
15251
  aggregations?: Record<AggregateName, SecurityQueryApiKeysApiKeyAggregate>;
15098
15252
  }
15253
+ export interface SecurityQueryRoleQueryRole extends SecurityRoleDescriptor {
15254
+ _sort?: SortResults;
15255
+ name: string;
15256
+ }
15257
+ export interface SecurityQueryRoleRequest extends RequestBase {
15258
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15259
+ body?: {
15260
+ query?: SecurityQueryRoleRoleQueryContainer;
15261
+ from?: integer;
15262
+ sort?: Sort;
15263
+ size?: integer;
15264
+ search_after?: SortResults;
15265
+ };
15266
+ }
15267
+ export interface SecurityQueryRoleResponse {
15268
+ total: integer;
15269
+ count: integer;
15270
+ roles: SecurityQueryRoleQueryRole[];
15271
+ }
15272
+ export interface SecurityQueryRoleRoleQueryContainer {
15273
+ bool?: QueryDslBoolQuery;
15274
+ exists?: QueryDslExistsQuery;
15275
+ ids?: QueryDslIdsQuery;
15276
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
15277
+ match_all?: QueryDslMatchAllQuery;
15278
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
15279
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
15280
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
15281
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
15282
+ terms?: QueryDslTermsQuery;
15283
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
15284
+ }
15285
+ export interface SecurityQueryUserQueryUser extends SecurityUser {
15286
+ _sort?: SortResults;
15287
+ }
15288
+ export interface SecurityQueryUserRequest extends RequestBase {
15289
+ with_profile_uid?: boolean;
15290
+ /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15291
+ body?: {
15292
+ query?: SecurityQueryUserUserQueryContainer;
15293
+ from?: integer;
15294
+ sort?: Sort;
15295
+ size?: integer;
15296
+ search_after?: SortResults;
15297
+ };
15298
+ }
15299
+ export interface SecurityQueryUserResponse {
15300
+ total: integer;
15301
+ count: integer;
15302
+ users: SecurityQueryUserQueryUser[];
15303
+ }
15304
+ export interface SecurityQueryUserUserQueryContainer {
15305
+ ids?: QueryDslIdsQuery;
15306
+ bool?: QueryDslBoolQuery;
15307
+ exists?: QueryDslExistsQuery;
15308
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
15309
+ match_all?: QueryDslMatchAllQuery;
15310
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
15311
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
15312
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
15313
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
15314
+ terms?: QueryDslTermsQuery;
15315
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
15316
+ }
15099
15317
  export interface SecuritySamlAuthenticateRequest extends RequestBase {
15100
15318
  /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
15101
15319
  body?: {
@@ -16127,9 +16345,9 @@ export interface TransformGetTransformStatsTransformIndexerStats {
16127
16345
  export interface TransformGetTransformStatsTransformProgress {
16128
16346
  docs_indexed: long;
16129
16347
  docs_processed: long;
16130
- docs_remaining: long;
16131
- percent_complete: double;
16132
- total_docs: long;
16348
+ docs_remaining?: long;
16349
+ percent_complete?: double;
16350
+ total_docs?: long;
16133
16351
  }
16134
16352
  export interface TransformGetTransformStatsTransformStats {
16135
16353
  checkpointing: TransformGetTransformStatsCheckpointing;