@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
@@ -62,7 +62,7 @@ export interface BulkUpdateAction<TDocument = unknown, TPartialDocument = unknow
62
62
  detect_noop?: boolean;
63
63
  doc?: TPartialDocument;
64
64
  doc_as_upsert?: boolean;
65
- script?: Script;
65
+ script?: Script | string;
66
66
  scripted_upsert?: boolean;
67
67
  _source?: SearchSourceConfig;
68
68
  upsert?: TDocument;
@@ -716,7 +716,7 @@ export interface MtermvectorsResponse {
716
716
  docs: MtermvectorsTermVectorsResult[];
717
717
  }
718
718
  export interface MtermvectorsTermVectorsResult {
719
- _id: Id;
719
+ _id?: Id;
720
720
  _index: IndexName;
721
721
  _version?: VersionNumber;
722
722
  took?: long;
@@ -848,7 +848,7 @@ export interface ReindexRequest extends RequestBase {
848
848
  conflicts?: Conflicts;
849
849
  dest: ReindexDestination;
850
850
  max_docs?: long;
851
- script?: Script;
851
+ script?: Script | string;
852
852
  size?: long;
853
853
  source: ReindexSource;
854
854
  }
@@ -934,7 +934,7 @@ export interface ScriptsPainlessExecutePainlessContextSetup {
934
934
  export interface ScriptsPainlessExecuteRequest extends RequestBase {
935
935
  context?: string;
936
936
  context_setup?: ScriptsPainlessExecutePainlessContextSetup;
937
- script?: InlineScript | string;
937
+ script?: Script | string;
938
938
  }
939
939
  export interface ScriptsPainlessExecuteResponse<TResult = unknown> {
940
940
  result: TResult;
@@ -1227,6 +1227,7 @@ export interface SearchHit<TDocument = unknown> {
1227
1227
  _node?: string;
1228
1228
  _routing?: string;
1229
1229
  _source?: TDocument;
1230
+ _rank?: integer;
1230
1231
  _seq_no?: SequenceNumber;
1231
1232
  _primary_term?: long;
1232
1233
  _version?: VersionNumber;
@@ -1573,7 +1574,7 @@ export interface TermvectorsRequest<TDocument = unknown> extends RequestBase {
1573
1574
  }
1574
1575
  export interface TermvectorsResponse {
1575
1576
  found: boolean;
1576
- _id: Id;
1577
+ _id?: Id;
1577
1578
  _index: IndexName;
1578
1579
  term_vectors?: Record<Field, TermvectorsTermVector>;
1579
1580
  took: long;
@@ -1587,7 +1588,7 @@ export interface TermvectorsTerm {
1587
1588
  ttf?: integer;
1588
1589
  }
1589
1590
  export interface TermvectorsTermVector {
1590
- field_statistics: TermvectorsFieldStatistics;
1591
+ field_statistics?: TermvectorsFieldStatistics;
1591
1592
  terms: Record<string, TermvectorsTerm>;
1592
1593
  }
1593
1594
  export interface TermvectorsToken {
@@ -1613,7 +1614,7 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
1613
1614
  detect_noop?: boolean;
1614
1615
  doc?: TPartialDocument;
1615
1616
  doc_as_upsert?: boolean;
1616
- script?: Script;
1617
+ script?: Script | string;
1617
1618
  scripted_upsert?: boolean;
1618
1619
  _source?: SearchSourceConfig;
1619
1620
  upsert?: TDocument;
@@ -1654,7 +1655,7 @@ export interface UpdateByQueryRequest extends RequestBase {
1654
1655
  wait_for_completion?: boolean;
1655
1656
  max_docs?: long;
1656
1657
  query?: QueryDslQueryContainer;
1657
- script?: Script;
1658
+ script?: Script | string;
1658
1659
  slice?: SlicedScroll;
1659
1660
  conflicts?: Conflicts;
1660
1661
  }
@@ -1934,11 +1935,6 @@ export interface InlineGetKeys<TDocument = unknown> {
1934
1935
  export type InlineGet<TDocument = unknown> = InlineGetKeys<TDocument> & {
1935
1936
  [property: string]: any;
1936
1937
  };
1937
- export interface InlineScript extends ScriptBase {
1938
- lang?: ScriptLanguage;
1939
- options?: Record<string, string>;
1940
- source: string;
1941
- }
1942
1938
  export type Ip = string;
1943
1939
  export interface KnnQuery extends QueryDslQueryBase {
1944
1940
  field: Field;
@@ -2071,7 +2067,7 @@ export interface QueryVectorBuilder {
2071
2067
  export interface RRFRetriever extends RetrieverBase {
2072
2068
  retrievers: RetrieverContainer[];
2073
2069
  rank_constant?: integer;
2074
- window_size?: integer;
2070
+ rank_window_size?: integer;
2075
2071
  }
2076
2072
  export interface RankBase {
2077
2073
  }
@@ -2122,24 +2118,27 @@ export interface RetrieverContainer {
2122
2118
  export type Routing = string;
2123
2119
  export interface RrfRank {
2124
2120
  rank_constant?: long;
2125
- window_size?: long;
2121
+ rank_window_size?: long;
2126
2122
  }
2127
2123
  export type ScalarValue = long | double | string | boolean | null;
2128
2124
  export interface ScoreSort {
2129
2125
  order?: SortOrder;
2130
2126
  }
2131
- export type Script = InlineScript | string | StoredScriptId;
2132
- export interface ScriptBase {
2127
+ export interface Script {
2128
+ source?: string;
2129
+ id?: Id;
2133
2130
  params?: Record<string, any>;
2131
+ lang?: ScriptLanguage;
2132
+ options?: Record<string, string>;
2134
2133
  }
2135
2134
  export interface ScriptField {
2136
- script: Script;
2135
+ script: Script | string;
2137
2136
  ignore_failure?: boolean;
2138
2137
  }
2139
2138
  export type ScriptLanguage = 'painless' | 'expression' | 'mustache' | 'java' | string;
2140
2139
  export interface ScriptSort {
2141
2140
  order?: SortOrder;
2142
- script: Script;
2141
+ script: Script | string;
2143
2142
  type?: ScriptSortType;
2144
2143
  mode?: SortMode;
2145
2144
  nested?: NestedSortValue;
@@ -2265,9 +2264,6 @@ export interface StoredScript {
2265
2264
  options?: Record<string, string>;
2266
2265
  source: string;
2267
2266
  }
2268
- export interface StoredScriptId extends ScriptBase {
2269
- id: Id;
2270
- }
2271
2267
  export type SuggestMode = 'missing' | 'popular' | 'always';
2272
2268
  export type SuggestionName = string;
2273
2269
  export interface TaskFailure {
@@ -2468,7 +2464,7 @@ export interface AggregationsAutoDateHistogramAggregation extends AggregationsBu
2468
2464
  missing?: DateTime;
2469
2465
  offset?: string;
2470
2466
  params?: Record<string, any>;
2471
- script?: Script;
2467
+ script?: Script | string;
2472
2468
  time_zone?: TimeZone;
2473
2469
  }
2474
2470
  export interface AggregationsAverageAggregation extends AggregationsFormatMetricAggregationBase {
@@ -2524,10 +2520,10 @@ export interface AggregationsBucketPathAggregation {
2524
2520
  buckets_path?: AggregationsBucketsPath;
2525
2521
  }
2526
2522
  export interface AggregationsBucketScriptAggregation extends AggregationsPipelineAggregationBase {
2527
- script?: Script;
2523
+ script?: Script | string;
2528
2524
  }
2529
2525
  export interface AggregationsBucketSelectorAggregation extends AggregationsPipelineAggregationBase {
2530
- script?: Script;
2526
+ script?: Script | string;
2531
2527
  }
2532
2528
  export interface AggregationsBucketSortAggregation {
2533
2529
  from?: integer;
@@ -2585,7 +2581,7 @@ export interface AggregationsCompositeAggregationBase {
2585
2581
  field?: Field;
2586
2582
  missing_bucket?: boolean;
2587
2583
  missing_order?: AggregationsMissingOrder;
2588
- script?: Script;
2584
+ script?: Script | string;
2589
2585
  value_type?: AggregationsValueType;
2590
2586
  order?: SortOrder;
2591
2587
  }
@@ -2645,7 +2641,7 @@ export interface AggregationsDateHistogramAggregation extends AggregationsBucket
2645
2641
  offset?: Duration;
2646
2642
  order?: AggregationsAggregateOrder;
2647
2643
  params?: Record<string, any>;
2648
- script?: Script;
2644
+ script?: Script | string;
2649
2645
  time_zone?: TimeZone;
2650
2646
  keyed?: boolean;
2651
2647
  }
@@ -2680,7 +2676,7 @@ export interface AggregationsDerivativeAggregation extends AggregationsPipelineA
2680
2676
  export interface AggregationsDiversifiedSamplerAggregation extends AggregationsBucketAggregationBase {
2681
2677
  execution_hint?: AggregationsSamplerAggregationExecutionHint;
2682
2678
  max_docs_per_value?: integer;
2683
- script?: Script;
2679
+ script?: Script | string;
2684
2680
  shard_size?: integer;
2685
2681
  field?: Field;
2686
2682
  }
@@ -2889,7 +2885,7 @@ export interface AggregationsHistogramAggregation extends AggregationsBucketAggr
2889
2885
  missing?: double;
2890
2886
  offset?: double;
2891
2887
  order?: AggregationsAggregateOrder;
2892
- script?: Script;
2888
+ script?: Script | string;
2893
2889
  format?: string;
2894
2890
  keyed?: boolean;
2895
2891
  }
@@ -3048,7 +3044,7 @@ export interface AggregationsMedianAbsoluteDeviationAggregation extends Aggregat
3048
3044
  export interface AggregationsMetricAggregationBase {
3049
3045
  field?: Field;
3050
3046
  missing?: AggregationsMissing;
3051
- script?: Script;
3047
+ script?: Script | string;
3052
3048
  }
3053
3049
  export interface AggregationsMinAggregate extends AggregationsSingleMetricAggregateBase {
3054
3050
  }
@@ -3171,7 +3167,7 @@ export interface AggregationsRangeAggregation extends AggregationsBucketAggregat
3171
3167
  field?: Field;
3172
3168
  missing?: integer;
3173
3169
  ranges?: AggregationsAggregationRange[];
3174
- script?: Script;
3170
+ script?: Script | string;
3175
3171
  keyed?: boolean;
3176
3172
  format?: string;
3177
3173
  }
@@ -3221,17 +3217,17 @@ export interface AggregationsSamplerAggregation extends AggregationsBucketAggreg
3221
3217
  }
3222
3218
  export type AggregationsSamplerAggregationExecutionHint = 'map' | 'global_ordinals' | 'bytes_hash';
3223
3219
  export interface AggregationsScriptedHeuristic {
3224
- script: Script;
3220
+ script: Script | string;
3225
3221
  }
3226
3222
  export interface AggregationsScriptedMetricAggregate extends AggregationsAggregateBase {
3227
3223
  value: any;
3228
3224
  }
3229
3225
  export interface AggregationsScriptedMetricAggregation extends AggregationsMetricAggregationBase {
3230
- combine_script?: Script;
3231
- init_script?: Script;
3232
- map_script?: Script;
3226
+ combine_script?: Script | string;
3227
+ init_script?: Script | string;
3228
+ map_script?: Script | string;
3233
3229
  params?: Record<string, any>;
3234
- reduce_script?: Script;
3230
+ reduce_script?: Script | string;
3235
3231
  }
3236
3232
  export interface AggregationsSerialDifferencingAggregation extends AggregationsPipelineAggregationBase {
3237
3233
  lag?: integer;
@@ -3412,7 +3408,7 @@ export interface AggregationsTermsAggregation extends AggregationsBucketAggregat
3412
3408
  missing_bucket?: boolean;
3413
3409
  value_type?: string;
3414
3410
  order?: AggregationsAggregateOrder;
3415
- script?: Script;
3411
+ script?: Script | string;
3416
3412
  shard_min_doc_count?: long;
3417
3413
  shard_size?: integer;
3418
3414
  show_term_doc_count_error?: boolean;
@@ -3432,7 +3428,7 @@ export interface AggregationsTermsPartition {
3432
3428
  }
3433
3429
  export interface AggregationsTestPopulation {
3434
3430
  field: Field;
3435
- script?: Script;
3431
+ script?: Script | string;
3436
3432
  filter?: QueryDslQueryContainer;
3437
3433
  }
3438
3434
  export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase {
@@ -3491,7 +3487,7 @@ export interface AggregationsVariableWidthHistogramAggregation {
3491
3487
  buckets?: integer;
3492
3488
  shard_size?: integer;
3493
3489
  initial_buffer?: integer;
3494
- script?: Script;
3490
+ script?: Script | string;
3495
3491
  }
3496
3492
  export interface AggregationsVariableWidthHistogramBucketKeys extends AggregationsMultiBucketBase {
3497
3493
  min: double;
@@ -3513,7 +3509,7 @@ export interface AggregationsWeightedAverageAggregation {
3513
3509
  export interface AggregationsWeightedAverageValue {
3514
3510
  field?: Field;
3515
3511
  missing?: double;
3516
- script?: Script;
3512
+ script?: Script | string;
3517
3513
  }
3518
3514
  export interface AggregationsWeightedAvgAggregate extends AggregationsSingleMetricAggregateBase {
3519
3515
  }
@@ -3551,7 +3547,7 @@ export interface AnalysisCompoundWordTokenFilterBase extends AnalysisTokenFilter
3551
3547
  export interface AnalysisConditionTokenFilter extends AnalysisTokenFilterBase {
3552
3548
  type: 'condition';
3553
3549
  filter: string[];
3554
- script: Script;
3550
+ script: Script | string;
3555
3551
  }
3556
3552
  export interface AnalysisCustomAnalyzer {
3557
3553
  type: 'custom';
@@ -3873,7 +3869,7 @@ export interface AnalysisPorterStemTokenFilter extends AnalysisTokenFilterBase {
3873
3869
  }
3874
3870
  export interface AnalysisPredicateTokenFilter extends AnalysisTokenFilterBase {
3875
3871
  type: 'predicate_token_filter';
3876
- script: Script;
3872
+ script: Script | string;
3877
3873
  }
3878
3874
  export interface AnalysisRemoveDuplicatesTokenFilter extends AnalysisTokenFilterBase {
3879
3875
  type: 'remove_duplicates';
@@ -4111,8 +4107,9 @@ export interface MappingDateRangeProperty extends MappingRangePropertyBase {
4111
4107
  }
4112
4108
  export interface MappingDenseVectorIndexOptions {
4113
4109
  type: string;
4114
- m: integer;
4115
- ef_construction: integer;
4110
+ m?: integer;
4111
+ ef_construction?: integer;
4112
+ confidence_interval?: float;
4116
4113
  }
4117
4114
  export interface MappingDenseVectorProperty extends MappingPropertyBase {
4118
4115
  type: 'dense_vector';
@@ -4139,7 +4136,7 @@ export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
4139
4136
  null_value?: FieldValue;
4140
4137
  boost?: double;
4141
4138
  coerce?: boolean;
4142
- script?: Script;
4139
+ script?: Script | string;
4143
4140
  on_script_error?: MappingOnScriptError;
4144
4141
  ignore_malformed?: boolean;
4145
4142
  time_series_metric?: MappingTimeSeriesMetricType;
@@ -4180,7 +4177,7 @@ export interface MappingFieldMapping {
4180
4177
  export interface MappingFieldNamesField {
4181
4178
  enabled: boolean;
4182
4179
  }
4183
- 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';
4180
+ 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';
4184
4181
  export interface MappingFlattenedProperty extends MappingPropertyBase {
4185
4182
  boost?: double;
4186
4183
  depth_limit?: integer;
@@ -4207,7 +4204,7 @@ export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
4207
4204
  null_value?: GeoLocation;
4208
4205
  index?: boolean;
4209
4206
  on_script_error?: MappingOnScriptError;
4210
- script?: Script;
4207
+ script?: Script | string;
4211
4208
  type: 'geo_point';
4212
4209
  }
4213
4210
  export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
@@ -4263,7 +4260,7 @@ export interface MappingIpProperty extends MappingDocValuesPropertyBase {
4263
4260
  ignore_malformed?: boolean;
4264
4261
  null_value?: string;
4265
4262
  on_script_error?: MappingOnScriptError;
4266
- script?: Script;
4263
+ script?: Script | string;
4267
4264
  time_series_dimension?: boolean;
4268
4265
  type: 'ip';
4269
4266
  }
@@ -4280,7 +4277,7 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
4280
4277
  eager_global_ordinals?: boolean;
4281
4278
  index?: boolean;
4282
4279
  index_options?: MappingIndexOptions;
4283
- script?: Script;
4280
+ script?: Script | string;
4284
4281
  on_script_error?: MappingOnScriptError;
4285
4282
  normalizer?: string;
4286
4283
  norms?: boolean;
@@ -4318,7 +4315,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
4318
4315
  ignore_malformed?: boolean;
4319
4316
  index?: boolean;
4320
4317
  on_script_error?: MappingOnScriptError;
4321
- script?: Script;
4318
+ script?: Script | string;
4322
4319
  time_series_metric?: MappingTimeSeriesMetricType;
4323
4320
  time_series_dimension?: boolean;
4324
4321
  }
@@ -4337,7 +4334,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
4337
4334
  null_value?: string;
4338
4335
  type: 'point';
4339
4336
  }
4340
- 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;
4337
+ 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;
4341
4338
  export interface MappingPropertyBase {
4342
4339
  meta?: Record<string, string>;
4343
4340
  properties?: Record<PropertyName, MappingProperty>;
@@ -4367,7 +4364,7 @@ export interface MappingRuntimeField {
4367
4364
  input_field?: Field;
4368
4365
  target_field?: Field;
4369
4366
  target_index?: IndexName;
4370
- script?: Script;
4367
+ script?: Script | string;
4371
4368
  type: MappingRuntimeFieldType;
4372
4369
  }
4373
4370
  export interface MappingRuntimeFieldFetchFields {
@@ -4392,6 +4389,11 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase
4392
4389
  term_vector?: MappingTermVectorOption;
4393
4390
  type: 'search_as_you_type';
4394
4391
  }
4392
+ export interface MappingSemanticTextProperty {
4393
+ type: 'semantic_text';
4394
+ meta?: Record<string, string>;
4395
+ inference_id: Id;
4396
+ }
4395
4397
  export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
4396
4398
  coerce?: boolean;
4397
4399
  ignore_malformed?: boolean;
@@ -4519,25 +4521,19 @@ export interface QueryDslCommonTermsQuery extends QueryDslQueryBase {
4519
4521
  export interface QueryDslConstantScoreQuery extends QueryDslQueryBase {
4520
4522
  filter: QueryDslQueryContainer;
4521
4523
  }
4522
- export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase {
4524
+ export interface QueryDslDateDecayFunctionKeys extends QueryDslDecayFunctionBase<DateMath, Duration> {
4523
4525
  }
4524
4526
  export type QueryDslDateDecayFunction = QueryDslDateDecayFunctionKeys & {
4525
4527
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
4526
4528
  };
4527
4529
  export interface QueryDslDateDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<DateMath, Duration> {
4528
4530
  }
4529
- export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase {
4530
- gt?: DateMath;
4531
- gte?: DateMath;
4532
- lt?: DateMath;
4533
- lte?: DateMath;
4534
- from?: DateMath | null;
4535
- to?: DateMath | null;
4531
+ export interface QueryDslDateRangeQuery extends QueryDslRangeQueryBase<DateMath> {
4536
4532
  format?: DateFormat;
4537
4533
  time_zone?: TimeZone;
4538
4534
  }
4539
- export type QueryDslDecayFunction = QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4540
- export interface QueryDslDecayFunctionBase {
4535
+ export type QueryDslDecayFunction = QueryDslUntypedDecayFunction | QueryDslDateDecayFunction | QueryDslNumericDecayFunction | QueryDslGeoDecayFunction;
4536
+ export interface QueryDslDecayFunctionBase<TOrigin = unknown, TScale = unknown> {
4541
4537
  multi_value_mode?: QueryDslMultiValueMode;
4542
4538
  }
4543
4539
  export interface QueryDslDecayPlacement<TOrigin = unknown, TScale = unknown> {
@@ -4550,7 +4546,7 @@ export interface QueryDslDisMaxQuery extends QueryDslQueryBase {
4550
4546
  queries: QueryDslQueryContainer[];
4551
4547
  tie_breaker?: double;
4552
4548
  }
4553
- export type QueryDslDistanceFeatureQuery = QueryDslGeoDistanceFeatureQuery | QueryDslDateDistanceFeatureQuery;
4549
+ export type QueryDslDistanceFeatureQuery = QueryDslUntypedDistanceFeatureQuery | QueryDslGeoDistanceFeatureQuery | QueryDslDateDistanceFeatureQuery;
4554
4550
  export interface QueryDslDistanceFeatureQueryBase<TOrigin = unknown, TDistance = unknown> extends QueryDslQueryBase {
4555
4551
  origin: TOrigin;
4556
4552
  pivot: TDistance;
@@ -4613,7 +4609,7 @@ export interface QueryDslGeoBoundingBoxQueryKeys extends QueryDslQueryBase {
4613
4609
  export type QueryDslGeoBoundingBoxQuery = QueryDslGeoBoundingBoxQueryKeys & {
4614
4610
  [property: string]: GeoBounds | QueryDslGeoExecution | QueryDslGeoValidationMethod | boolean | float | string;
4615
4611
  };
4616
- export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase {
4612
+ export interface QueryDslGeoDecayFunctionKeys extends QueryDslDecayFunctionBase<GeoLocation, Distance> {
4617
4613
  }
4618
4614
  export type QueryDslGeoDecayFunction = QueryDslGeoDecayFunctionKeys & {
4619
4615
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
@@ -4698,7 +4694,7 @@ export interface QueryDslIntervalsFilter {
4698
4694
  not_containing?: QueryDslIntervalsContainer;
4699
4695
  not_overlapping?: QueryDslIntervalsContainer;
4700
4696
  overlapping?: QueryDslIntervalsContainer;
4701
- script?: Script;
4697
+ script?: Script | string;
4702
4698
  }
4703
4699
  export interface QueryDslIntervalsFuzzy {
4704
4700
  analyzer?: string;
@@ -4835,15 +4831,9 @@ export interface QueryDslNestedQuery extends QueryDslQueryBase {
4835
4831
  query: QueryDslQueryContainer;
4836
4832
  score_mode?: QueryDslChildScoreMode;
4837
4833
  }
4838
- export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase {
4839
- gt?: double;
4840
- gte?: double;
4841
- lt?: double;
4842
- lte?: double;
4843
- from?: double | null;
4844
- to?: double | null;
4834
+ export interface QueryDslNumberRangeQuery extends QueryDslRangeQueryBase<double> {
4845
4835
  }
4846
- export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase {
4836
+ export interface QueryDslNumericDecayFunctionKeys extends QueryDslDecayFunctionBase<double, double> {
4847
4837
  }
4848
4838
  export type QueryDslNumericDecayFunction = QueryDslNumericDecayFunctionKeys & {
4849
4839
  [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
@@ -4920,9 +4910,10 @@ export interface QueryDslQueryContainer {
4920
4910
  range?: Partial<Record<Field, QueryDslRangeQuery>>;
4921
4911
  rank_feature?: QueryDslRankFeatureQuery;
4922
4912
  regexp?: Partial<Record<Field, QueryDslRegexpQuery | string>>;
4923
- rule_query?: QueryDslRuleQuery;
4913
+ rule?: QueryDslRuleQuery;
4924
4914
  script?: QueryDslScriptQuery;
4925
4915
  script_score?: QueryDslScriptScoreQuery;
4916
+ semantic?: QueryDslSemanticQuery;
4926
4917
  shape?: QueryDslShapeQuery;
4927
4918
  simple_query_string?: QueryDslSimpleQueryStringQuery;
4928
4919
  span_containing?: QueryDslSpanContainingQuery;
@@ -4934,6 +4925,7 @@ export interface QueryDslQueryContainer {
4934
4925
  span_or?: QueryDslSpanOrQuery;
4935
4926
  span_term?: Partial<Record<Field, QueryDslSpanTermQuery | string>>;
4936
4927
  span_within?: QueryDslSpanWithinQuery;
4928
+ sparse_vector?: QueryDslSparseVectorQuery;
4937
4929
  term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
4938
4930
  terms?: QueryDslTermsQuery;
4939
4931
  terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>;
@@ -4974,9 +4966,15 @@ export interface QueryDslRandomScoreFunction {
4974
4966
  field?: Field;
4975
4967
  seed?: long | string;
4976
4968
  }
4977
- export type QueryDslRangeQuery = QueryDslDateRangeQuery | QueryDslNumberRangeQuery;
4978
- export interface QueryDslRangeQueryBase extends QueryDslQueryBase {
4969
+ export type QueryDslRangeQuery = QueryDslUntypedRangeQuery | QueryDslDateRangeQuery | QueryDslNumberRangeQuery | QueryDslTermRangeQuery;
4970
+ export interface QueryDslRangeQueryBase<T = unknown> extends QueryDslQueryBase {
4979
4971
  relation?: QueryDslRangeRelation;
4972
+ gt?: T;
4973
+ gte?: T;
4974
+ lt?: T;
4975
+ lte?: T;
4976
+ from?: T | null;
4977
+ to?: T | null;
4980
4978
  }
4981
4979
  export type QueryDslRangeRelation = 'within' | 'contains' | 'intersects';
4982
4980
  export interface QueryDslRankFeatureFunction {
@@ -5009,19 +5007,23 @@ export interface QueryDslRegexpQuery extends QueryDslQueryBase {
5009
5007
  }
5010
5008
  export interface QueryDslRuleQuery extends QueryDslQueryBase {
5011
5009
  organic: QueryDslQueryContainer;
5012
- ruleset_id: Id;
5010
+ ruleset_ids: Id[];
5013
5011
  match_criteria: any;
5014
5012
  }
5015
5013
  export interface QueryDslScriptQuery extends QueryDslQueryBase {
5016
- script: Script;
5014
+ script: Script | string;
5017
5015
  }
5018
5016
  export interface QueryDslScriptScoreFunction {
5019
- script: Script;
5017
+ script: Script | string;
5020
5018
  }
5021
5019
  export interface QueryDslScriptScoreQuery extends QueryDslQueryBase {
5022
5020
  min_score?: float;
5023
5021
  query: QueryDslQueryContainer;
5024
- script: Script;
5022
+ script: Script | string;
5023
+ }
5024
+ export interface QueryDslSemanticQuery extends QueryDslQueryBase {
5025
+ field: string;
5026
+ query: string;
5025
5027
  }
5026
5028
  export interface QueryDslShapeFieldQuery {
5027
5029
  indexed_shape?: QueryDslFieldLookup;
@@ -5101,10 +5103,20 @@ export interface QueryDslSpanWithinQuery extends QueryDslQueryBase {
5101
5103
  big: QueryDslSpanQuery;
5102
5104
  little: QueryDslSpanQuery;
5103
5105
  }
5106
+ export interface QueryDslSparseVectorQuery extends QueryDslQueryBase {
5107
+ field: Field;
5108
+ query_vector?: Record<string, float>;
5109
+ inference_id?: Id;
5110
+ query?: string;
5111
+ prune?: boolean;
5112
+ pruning_config?: QueryDslTokenPruningConfig;
5113
+ }
5104
5114
  export interface QueryDslTermQuery extends QueryDslQueryBase {
5105
5115
  value: FieldValue;
5106
5116
  case_insensitive?: boolean;
5107
5117
  }
5118
+ export interface QueryDslTermRangeQuery extends QueryDslRangeQueryBase<string> {
5119
+ }
5108
5120
  export interface QueryDslTermsLookup {
5109
5121
  index: IndexName;
5110
5122
  id: Id;
@@ -5119,7 +5131,7 @@ export type QueryDslTermsQuery = QueryDslTermsQueryKeys & {
5119
5131
  export type QueryDslTermsQueryField = FieldValue[] | QueryDslTermsLookup;
5120
5132
  export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
5121
5133
  minimum_should_match_field?: Field;
5122
- minimum_should_match_script?: Script;
5134
+ minimum_should_match_script?: Script | string;
5123
5135
  terms: string[];
5124
5136
  }
5125
5137
  export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
@@ -5136,6 +5148,17 @@ export interface QueryDslTokenPruningConfig {
5136
5148
  export interface QueryDslTypeQuery extends QueryDslQueryBase {
5137
5149
  value: string;
5138
5150
  }
5151
+ export interface QueryDslUntypedDecayFunctionKeys extends QueryDslDecayFunctionBase<any, any> {
5152
+ }
5153
+ export type QueryDslUntypedDecayFunction = QueryDslUntypedDecayFunctionKeys & {
5154
+ [property: string]: QueryDslDecayPlacement | QueryDslMultiValueMode;
5155
+ };
5156
+ export interface QueryDslUntypedDistanceFeatureQuery extends QueryDslDistanceFeatureQueryBase<any, any> {
5157
+ }
5158
+ export interface QueryDslUntypedRangeQuery extends QueryDslRangeQueryBase<any> {
5159
+ format?: DateFormat;
5160
+ time_zone?: TimeZone;
5161
+ }
5139
5162
  export interface QueryDslWeightedTokensQuery extends QueryDslQueryBase {
5140
5163
  tokens: Record<string, float>;
5141
5164
  pruning_config?: QueryDslTokenPruningConfig;
@@ -5351,28 +5374,39 @@ export interface CatAliasesRequest extends CatCatRequestBase {
5351
5374
  }
5352
5375
  export type CatAliasesResponse = CatAliasesAliasesRecord[];
5353
5376
  export interface CatAllocationAllocationRecord {
5354
- shards?: string;
5355
- s?: string;
5356
- 'disk.indices'?: ByteSize | null;
5357
- di?: ByteSize | null;
5358
- diskIndices?: ByteSize | null;
5359
- 'disk.used'?: ByteSize | null;
5360
- du?: ByteSize | null;
5361
- diskUsed?: ByteSize | null;
5362
- 'disk.avail'?: ByteSize | null;
5363
- da?: ByteSize | null;
5364
- diskAvail?: ByteSize | null;
5365
- 'disk.total'?: ByteSize | null;
5366
- dt?: ByteSize | null;
5367
- diskTotal?: ByteSize | null;
5368
- 'disk.percent'?: Percentage | null;
5369
- dp?: Percentage | null;
5370
- diskPercent?: Percentage | null;
5371
- host?: Host | null;
5372
- h?: Host | null;
5373
- ip?: Ip | null;
5374
- node?: string;
5375
- n?: string;
5377
+ shards: string;
5378
+ s: string;
5379
+ 'shards.undesired': string | null;
5380
+ 'write_load.forecast': double | null;
5381
+ wlf: double | null;
5382
+ writeLoadForecast: double | null;
5383
+ 'disk.indices.forecast': ByteSize | null;
5384
+ dif: ByteSize | null;
5385
+ diskIndicesForecast: ByteSize | null;
5386
+ 'disk.indices': ByteSize | null;
5387
+ di: ByteSize | null;
5388
+ diskIndices: ByteSize | null;
5389
+ 'disk.used': ByteSize | null;
5390
+ du: ByteSize | null;
5391
+ diskUsed: ByteSize | null;
5392
+ 'disk.avail': ByteSize | null;
5393
+ da: ByteSize | null;
5394
+ diskAvail: ByteSize | null;
5395
+ 'disk.total': ByteSize | null;
5396
+ dt: ByteSize | null;
5397
+ diskTotal: ByteSize | null;
5398
+ 'disk.percent': Percentage | null;
5399
+ dp: Percentage | null;
5400
+ diskPercent: Percentage | null;
5401
+ host: Host | null;
5402
+ h: Host | null;
5403
+ ip: Ip | null;
5404
+ node: string;
5405
+ n: string;
5406
+ 'node.role': string | null;
5407
+ r: string | null;
5408
+ role: string | null;
5409
+ nodeRole: string | null;
5376
5410
  }
5377
5411
  export interface CatAllocationRequest extends CatCatRequestBase {
5378
5412
  node_id?: NodeIds;
@@ -7800,14 +7834,15 @@ export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase {
7800
7834
  }
7801
7835
  export interface ConnectorConnector {
7802
7836
  api_key_id?: string;
7837
+ api_key_secret_id?: string;
7803
7838
  configuration: ConnectorConnectorConfiguration;
7804
7839
  custom_scheduling: ConnectorConnectorCustomScheduling;
7805
7840
  description?: string;
7806
- error?: string;
7841
+ error?: string | null;
7807
7842
  features?: ConnectorConnectorFeatures;
7808
7843
  filtering: ConnectorFilteringConfig[];
7809
7844
  id?: Id;
7810
- index_name?: IndexName;
7845
+ index_name?: IndexName | null;
7811
7846
  is_native: boolean;
7812
7847
  language?: string;
7813
7848
  last_access_control_sync_error?: string;
@@ -7824,8 +7859,9 @@ export interface ConnectorConnector {
7824
7859
  name?: string;
7825
7860
  pipeline?: ConnectorIngestPipelineParams;
7826
7861
  scheduling: ConnectorSchedulingConfiguration;
7827
- service_type: string;
7862
+ service_type?: string;
7828
7863
  status: ConnectorConnectorStatus;
7864
+ sync_cursor?: any;
7829
7865
  sync_now: boolean;
7830
7866
  }
7831
7867
  export interface ConnectorConnectorConfigProperties {
@@ -7839,19 +7875,18 @@ export interface ConnectorConnectorConfigProperties {
7839
7875
  placeholder?: string;
7840
7876
  required: boolean;
7841
7877
  sensitive: boolean;
7842
- tooltip?: string;
7843
- type: ConnectorConnectorFieldType;
7844
- ui_restrictions: string[];
7845
- validations: ConnectorValidation[];
7846
- value: ScalarValue;
7878
+ tooltip?: string | null;
7879
+ type?: ConnectorConnectorFieldType;
7880
+ ui_restrictions?: string[];
7881
+ validations?: ConnectorValidation[];
7882
+ value: any;
7847
7883
  }
7848
7884
  export type ConnectorConnectorConfiguration = Record<string, ConnectorConnectorConfigProperties>;
7849
7885
  export type ConnectorConnectorCustomScheduling = Record<string, ConnectorCustomScheduling>;
7850
7886
  export interface ConnectorConnectorFeatures {
7851
7887
  document_level_security?: ConnectorFeatureEnabled;
7852
- filtering_advanced_config?: boolean;
7853
- filtering_rules?: boolean;
7854
7888
  incremental_sync?: ConnectorFeatureEnabled;
7889
+ native_connector_api_keys?: ConnectorFeatureEnabled;
7855
7890
  sync_rules?: ConnectorSyncRulesFeature;
7856
7891
  }
7857
7892
  export type ConnectorConnectorFieldType = 'str' | 'int' | 'list' | 'bool';
@@ -7909,7 +7944,7 @@ export interface ConnectorFilteringAdvancedSnippet {
7909
7944
  }
7910
7945
  export interface ConnectorFilteringConfig {
7911
7946
  active: ConnectorFilteringRules;
7912
- domain: string;
7947
+ domain?: string;
7913
7948
  draft: ConnectorFilteringRules;
7914
7949
  }
7915
7950
  export type ConnectorFilteringPolicy = 'exclude' | 'include';
@@ -7944,7 +7979,7 @@ export interface ConnectorGreaterThanValidation {
7944
7979
  }
7945
7980
  export interface ConnectorIncludedInValidation {
7946
7981
  type: 'included_in';
7947
- constraint: string;
7982
+ constraint: ScalarValue[];
7948
7983
  }
7949
7984
  export interface ConnectorIngestPipelineParams {
7950
7985
  extract_binary_content: boolean;
@@ -7958,7 +7993,7 @@ export interface ConnectorLessThanValidation {
7958
7993
  }
7959
7994
  export interface ConnectorListTypeValidation {
7960
7995
  type: 'list_type';
7961
- constraint: ScalarValue[];
7996
+ constraint: string;
7962
7997
  }
7963
7998
  export interface ConnectorRegexValidation {
7964
7999
  type: 'regex';
@@ -7971,7 +8006,7 @@ export interface ConnectorSchedulingConfiguration {
7971
8006
  }
7972
8007
  export interface ConnectorSelectOption {
7973
8008
  label: string;
7974
- value: string;
8009
+ value: ScalarValue;
7975
8010
  }
7976
8011
  export interface ConnectorSyncJobConnectorReference {
7977
8012
  configuration: ConnectorConnectorConfiguration;
@@ -7981,6 +8016,7 @@ export interface ConnectorSyncJobConnectorReference {
7981
8016
  language?: string;
7982
8017
  pipeline?: ConnectorIngestPipelineParams;
7983
8018
  service_type: string;
8019
+ sync_cursor?: any;
7984
8020
  }
7985
8021
  export type ConnectorSyncJobTriggerMethod = 'on_demand' | 'scheduled';
7986
8022
  export type ConnectorSyncJobType = 'full' | 'incremental' | 'access_control';
@@ -7998,7 +8034,7 @@ export interface ConnectorCheckInResponse {
7998
8034
  }
7999
8035
  export interface ConnectorDeleteRequest extends RequestBase {
8000
8036
  connector_id: Id;
8001
- delete_sync_jobs: boolean;
8037
+ delete_sync_jobs?: boolean;
8002
8038
  }
8003
8039
  export type ConnectorDeleteResponse = AcknowledgedResponseBase;
8004
8040
  export interface ConnectorGetRequest extends RequestBase {
@@ -8007,17 +8043,18 @@ export interface ConnectorGetRequest extends RequestBase {
8007
8043
  export type ConnectorGetResponse = ConnectorConnector;
8008
8044
  export interface ConnectorLastSyncRequest extends RequestBase {
8009
8045
  connector_id: Id;
8010
- last_access_control_sync_error?: SpecUtilsWithNullValue<string>;
8046
+ last_access_control_sync_error?: string;
8011
8047
  last_access_control_sync_scheduled_at?: DateTime;
8012
8048
  last_access_control_sync_status?: ConnectorSyncStatus;
8013
8049
  last_deleted_document_count?: long;
8014
8050
  last_incremental_sync_scheduled_at?: DateTime;
8015
8051
  last_indexed_document_count?: long;
8016
- last_seen?: SpecUtilsWithNullValue<DateTime>;
8017
- last_sync_error?: SpecUtilsWithNullValue<string>;
8052
+ last_seen?: DateTime;
8053
+ last_sync_error?: string;
8018
8054
  last_sync_scheduled_at?: DateTime;
8019
8055
  last_sync_status?: ConnectorSyncStatus;
8020
8056
  last_synced?: DateTime;
8057
+ sync_cursor?: any;
8021
8058
  }
8022
8059
  export interface ConnectorLastSyncResponse {
8023
8060
  result: Result;
@@ -8036,19 +8073,20 @@ export interface ConnectorListResponse {
8036
8073
  }
8037
8074
  export interface ConnectorPostRequest extends RequestBase {
8038
8075
  description?: string;
8039
- index_name: SpecUtilsWithNullValue<IndexName>;
8076
+ index_name?: IndexName;
8040
8077
  is_native?: boolean;
8041
8078
  language?: string;
8042
8079
  name?: string;
8043
8080
  service_type?: string;
8044
8081
  }
8045
8082
  export interface ConnectorPostResponse {
8083
+ result: Result;
8046
8084
  id: Id;
8047
8085
  }
8048
8086
  export interface ConnectorPutRequest extends RequestBase {
8049
- connector_id: Id;
8087
+ connector_id?: Id;
8050
8088
  description?: string;
8051
- index_name: SpecUtilsWithNullValue<IndexName>;
8089
+ index_name?: IndexName;
8052
8090
  is_native?: boolean;
8053
8091
  language?: string;
8054
8092
  name?: string;
@@ -8056,6 +8094,7 @@ export interface ConnectorPutRequest extends RequestBase {
8056
8094
  }
8057
8095
  export interface ConnectorPutResponse {
8058
8096
  result: Result;
8097
+ id: Id;
8059
8098
  }
8060
8099
  export interface ConnectorSyncJobCancelRequest extends RequestBase {
8061
8100
  connector_sync_job_id: Id;
@@ -8076,7 +8115,7 @@ export interface ConnectorSyncJobListRequest extends RequestBase {
8076
8115
  size?: integer;
8077
8116
  status?: ConnectorSyncStatus;
8078
8117
  connector_id?: Id;
8079
- job_type?: ConnectorSyncJobType[];
8118
+ job_type?: ConnectorSyncJobType | ConnectorSyncJobType[];
8080
8119
  }
8081
8120
  export interface ConnectorSyncJobListResponse {
8082
8121
  count: long;
@@ -8098,8 +8137,8 @@ export interface ConnectorUpdateActiveFilteringResponse {
8098
8137
  }
8099
8138
  export interface ConnectorUpdateApiKeyIdRequest extends RequestBase {
8100
8139
  connector_id: Id;
8101
- api_key_id?: SpecUtilsWithNullValue<string>;
8102
- api_key_secret_id?: SpecUtilsWithNullValue<string>;
8140
+ api_key_id?: string;
8141
+ api_key_secret_id?: string;
8103
8142
  }
8104
8143
  export interface ConnectorUpdateApiKeyIdResponse {
8105
8144
  result: Result;
@@ -8144,7 +8183,7 @@ export interface ConnectorUpdateIndexNameResponse {
8144
8183
  }
8145
8184
  export interface ConnectorUpdateNameRequest extends RequestBase {
8146
8185
  connector_id: Id;
8147
- name: string;
8186
+ name?: string;
8148
8187
  description?: string;
8149
8188
  }
8150
8189
  export interface ConnectorUpdateNameResponse {
@@ -8293,11 +8332,12 @@ export interface EqlHitsEvent<TEvent = unknown> {
8293
8332
  _index: IndexName;
8294
8333
  _id: Id;
8295
8334
  _source: TEvent;
8335
+ missing?: boolean;
8296
8336
  fields?: Record<Field, any[]>;
8297
8337
  }
8298
8338
  export interface EqlHitsSequence<TEvent = unknown> {
8299
8339
  events: EqlHitsEvent<TEvent>[];
8300
- join_keys: any[];
8340
+ join_keys?: any[];
8301
8341
  }
8302
8342
  export interface EqlDeleteRequest extends RequestBase {
8303
8343
  id: Id;
@@ -8535,19 +8575,45 @@ export interface GraphExploreResponse {
8535
8575
  took: long;
8536
8576
  vertices: GraphVertex[];
8537
8577
  }
8538
- export type IlmActions = any;
8539
- export interface IlmConfigurations {
8540
- rollover?: IndicesRolloverRolloverConditions;
8541
- forcemerge?: IlmForceMergeConfiguration;
8542
- shrink?: IlmShrinkConfiguration;
8578
+ export interface IlmActions {
8579
+ allocate?: IlmAllocateAction;
8580
+ delete?: IlmDeleteAction;
8581
+ downsample?: IlmDownsampleAction;
8582
+ freeze?: EmptyObject;
8583
+ forcemerge?: IlmForceMergeAction;
8584
+ migrate?: IlmMigrateAction;
8585
+ readonly?: EmptyObject;
8586
+ rollover?: IlmRolloverAction;
8587
+ set_priority?: IlmSetPriorityAction;
8588
+ searchable_snapshot?: IlmSearchableSnapshotAction;
8589
+ shrink?: IlmShrinkAction;
8590
+ unfollow?: EmptyObject;
8591
+ wait_for_snapshot?: IlmWaitForSnapshotAction;
8592
+ }
8593
+ export interface IlmAllocateAction {
8594
+ number_of_replicas?: integer;
8595
+ total_shards_per_node?: integer;
8596
+ include?: Record<string, string>;
8597
+ exclude?: Record<string, string>;
8598
+ require?: Record<string, string>;
8599
+ }
8600
+ export interface IlmDeleteAction {
8601
+ delete_searchable_snapshot?: boolean;
8602
+ }
8603
+ export interface IlmDownsampleAction {
8604
+ fixed_interval: DurationLarge;
8605
+ wait_timeout?: Duration;
8543
8606
  }
8544
- export interface IlmForceMergeConfiguration {
8607
+ export interface IlmForceMergeAction {
8545
8608
  max_num_segments: integer;
8609
+ index_codec?: string;
8610
+ }
8611
+ export interface IlmMigrateAction {
8612
+ enabled?: boolean;
8546
8613
  }
8547
8614
  export interface IlmPhase {
8548
8615
  actions?: IlmActions;
8549
8616
  min_age?: Duration | long;
8550
- configurations?: IlmConfigurations;
8551
8617
  }
8552
8618
  export interface IlmPhases {
8553
8619
  cold?: IlmPhase;
@@ -8560,8 +8626,32 @@ export interface IlmPolicy {
8560
8626
  phases: IlmPhases;
8561
8627
  _meta?: Metadata;
8562
8628
  }
8563
- export interface IlmShrinkConfiguration {
8564
- number_of_shards: integer;
8629
+ export interface IlmRolloverAction {
8630
+ max_size?: ByteSize;
8631
+ max_primary_shard_size?: ByteSize;
8632
+ max_age?: Duration;
8633
+ max_docs?: long;
8634
+ max_primary_shard_docs?: long;
8635
+ min_size?: ByteSize;
8636
+ min_primary_shard_size?: ByteSize;
8637
+ min_age?: Duration;
8638
+ min_docs?: long;
8639
+ min_primary_shard_docs?: long;
8640
+ }
8641
+ export interface IlmSearchableSnapshotAction {
8642
+ snapshot_repository: string;
8643
+ force_merge_index?: boolean;
8644
+ }
8645
+ export interface IlmSetPriorityAction {
8646
+ priority?: integer;
8647
+ }
8648
+ export interface IlmShrinkAction {
8649
+ number_of_shards?: integer;
8650
+ max_primary_shard_size?: ByteSize;
8651
+ allow_write_after_shrink?: boolean;
8652
+ }
8653
+ export interface IlmWaitForSnapshotAction {
8654
+ policy: string;
8565
8655
  }
8566
8656
  export interface IlmDeleteLifecycleRequest extends RequestBase {
8567
8657
  name: Name;
@@ -9039,8 +9129,8 @@ export interface IndicesSettingsSimilarityLmj {
9039
9129
  }
9040
9130
  export interface IndicesSettingsSimilarityScripted {
9041
9131
  type: 'scripted';
9042
- script: Script;
9043
- weight_script?: Script;
9132
+ script: Script | string;
9133
+ weight_script?: Script | string;
9044
9134
  }
9045
9135
  export interface IndicesSlowlogSettings {
9046
9136
  level?: string;
@@ -10201,8 +10291,20 @@ export interface IndicesValidateQueryResponse {
10201
10291
  export interface InferenceCompletionResult {
10202
10292
  result: string;
10203
10293
  }
10294
+ export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase {
10295
+ pipelines: string[];
10296
+ }
10204
10297
  export type InferenceDenseByteVector = byte[];
10205
10298
  export type InferenceDenseVector = float[];
10299
+ export interface InferenceInferenceEndpoint {
10300
+ service: string;
10301
+ service_settings: InferenceServiceSettings;
10302
+ task_settings: InferenceTaskSettings;
10303
+ }
10304
+ export interface InferenceInferenceEndpointInfo extends InferenceInferenceEndpoint {
10305
+ inference_id: string;
10306
+ task_type: InferenceTaskType;
10307
+ }
10206
10308
  export interface InferenceInferenceResult {
10207
10309
  text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
10208
10310
  text_embedding?: InferenceTextEmbeddingResult[];
@@ -10210,15 +10312,6 @@ export interface InferenceInferenceResult {
10210
10312
  completion?: InferenceCompletionResult[];
10211
10313
  rerank?: InferenceRankedDocument[];
10212
10314
  }
10213
- export interface InferenceModelConfig {
10214
- service: string;
10215
- service_settings: InferenceServiceSettings;
10216
- task_settings: InferenceTaskSettings;
10217
- }
10218
- export interface InferenceModelConfigContainer extends InferenceModelConfig {
10219
- model_id: string;
10220
- task_type: InferenceTaskType;
10221
- }
10222
10315
  export interface InferenceRankedDocument {
10223
10316
  index: integer;
10224
10317
  score: float;
@@ -10237,17 +10330,19 @@ export interface InferenceTextEmbeddingByteResult {
10237
10330
  export interface InferenceTextEmbeddingResult {
10238
10331
  embedding: InferenceDenseVector;
10239
10332
  }
10240
- export interface InferenceDeleteModelRequest extends RequestBase {
10333
+ export interface InferenceDeleteRequest extends RequestBase {
10241
10334
  task_type?: InferenceTaskType;
10242
10335
  inference_id: Id;
10336
+ dry_run?: boolean;
10337
+ force?: boolean;
10243
10338
  }
10244
- export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
10245
- export interface InferenceGetModelRequest extends RequestBase {
10339
+ export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult;
10340
+ export interface InferenceGetRequest extends RequestBase {
10246
10341
  task_type?: InferenceTaskType;
10247
- inference_id: Id;
10342
+ inference_id?: Id;
10248
10343
  }
10249
- export interface InferenceGetModelResponse {
10250
- models: InferenceModelConfigContainer[];
10344
+ export interface InferenceGetResponse {
10345
+ endpoints: InferenceInferenceEndpointInfo[];
10251
10346
  }
10252
10347
  export interface InferenceInferenceRequest extends RequestBase {
10253
10348
  task_type?: InferenceTaskType;
@@ -10258,12 +10353,12 @@ export interface InferenceInferenceRequest extends RequestBase {
10258
10353
  task_settings?: InferenceTaskSettings;
10259
10354
  }
10260
10355
  export type InferenceInferenceResponse = InferenceInferenceResult;
10261
- export interface InferencePutModelRequest extends RequestBase {
10356
+ export interface InferencePutRequest extends RequestBase {
10262
10357
  task_type?: InferenceTaskType;
10263
10358
  inference_id: Id;
10264
- model_config?: InferenceModelConfig;
10359
+ inference_config?: InferenceInferenceEndpoint;
10265
10360
  }
10266
- export type InferencePutModelResponse = InferenceModelConfigContainer;
10361
+ export type InferencePutResponse = InferenceInferenceEndpointInfo;
10267
10362
  export interface IngestAppendProcessor extends IngestProcessorBase {
10268
10363
  field: Field;
10269
10364
  value: any[];
@@ -10450,41 +10545,41 @@ export interface IngestProcessorBase {
10450
10545
  tag?: string;
10451
10546
  }
10452
10547
  export interface IngestProcessorContainer {
10453
- attachment?: IngestAttachmentProcessor;
10454
10548
  append?: IngestAppendProcessor;
10455
- csv?: IngestCsvProcessor;
10549
+ attachment?: IngestAttachmentProcessor;
10550
+ bytes?: IngestBytesProcessor;
10551
+ circle?: IngestCircleProcessor;
10456
10552
  convert?: IngestConvertProcessor;
10553
+ csv?: IngestCsvProcessor;
10457
10554
  date?: IngestDateProcessor;
10458
10555
  date_index_name?: IngestDateIndexNameProcessor;
10556
+ dissect?: IngestDissectProcessor;
10459
10557
  dot_expander?: IngestDotExpanderProcessor;
10558
+ drop?: IngestDropProcessor;
10460
10559
  enrich?: IngestEnrichProcessor;
10461
10560
  fail?: IngestFailProcessor;
10462
10561
  foreach?: IngestForeachProcessor;
10463
- json?: IngestJsonProcessor;
10464
- user_agent?: IngestUserAgentProcessor;
10465
- kv?: IngestKeyValueProcessor;
10466
10562
  geoip?: IngestGeoIpProcessor;
10467
10563
  grok?: IngestGrokProcessor;
10468
10564
  gsub?: IngestGsubProcessor;
10565
+ inference?: IngestInferenceProcessor;
10469
10566
  join?: IngestJoinProcessor;
10567
+ json?: IngestJsonProcessor;
10568
+ kv?: IngestKeyValueProcessor;
10470
10569
  lowercase?: IngestLowercaseProcessor;
10570
+ pipeline?: IngestPipelineProcessor;
10471
10571
  remove?: IngestRemoveProcessor;
10472
10572
  rename?: IngestRenameProcessor;
10473
10573
  reroute?: IngestRerouteProcessor;
10474
10574
  script?: IngestScriptProcessor;
10475
10575
  set?: IngestSetProcessor;
10576
+ set_security_user?: IngestSetSecurityUserProcessor;
10476
10577
  sort?: IngestSortProcessor;
10477
10578
  split?: IngestSplitProcessor;
10478
10579
  trim?: IngestTrimProcessor;
10479
10580
  uppercase?: IngestUppercaseProcessor;
10480
10581
  urldecode?: IngestUrlDecodeProcessor;
10481
- bytes?: IngestBytesProcessor;
10482
- dissect?: IngestDissectProcessor;
10483
- set_security_user?: IngestSetSecurityUserProcessor;
10484
- pipeline?: IngestPipelineProcessor;
10485
- drop?: IngestDropProcessor;
10486
- circle?: IngestCircleProcessor;
10487
- inference?: IngestInferenceProcessor;
10582
+ user_agent?: IngestUserAgentProcessor;
10488
10583
  }
10489
10584
  export interface IngestRemoveProcessor extends IngestProcessorBase {
10490
10585
  field: Fields;
@@ -11020,8 +11115,8 @@ export interface MlDatafeedConfig {
11020
11115
  datafeed_id?: Id;
11021
11116
  delayed_data_check_config?: MlDelayedDataCheckConfig;
11022
11117
  frequency?: Duration;
11023
- indices?: string[];
11024
- indexes?: string[];
11118
+ indices?: Indices;
11119
+ indexes?: Indices;
11025
11120
  indices_options?: IndicesOptions;
11026
11121
  job_id?: Id;
11027
11122
  max_empty_searches?: integer;
@@ -11779,7 +11874,7 @@ export interface MlTrainedModelDeploymentStats {
11779
11874
  error_count: integer;
11780
11875
  inference_count: integer;
11781
11876
  model_id: Id;
11782
- nodes: MlTrainedModelDeploymentNodesStats[];
11877
+ nodes: MlTrainedModelDeploymentNodesStats;
11783
11878
  number_of_allocations: integer;
11784
11879
  queue_capacity: integer;
11785
11880
  rejected_execution_count: integer;
@@ -11810,7 +11905,7 @@ export interface MlTrainedModelInferenceStats {
11810
11905
  failure_count: integer;
11811
11906
  inference_count: integer;
11812
11907
  missing_all_fields_count: integer;
11813
- timestamp: EpochTime<UnitMillis>;
11908
+ timestamp: DateTime;
11814
11909
  }
11815
11910
  export interface MlTrainedModelLocation {
11816
11911
  index: MlTrainedModelLocationIndex;
@@ -11824,7 +11919,7 @@ export interface MlTrainedModelPrefixStrings {
11824
11919
  }
11825
11920
  export interface MlTrainedModelSizeStats {
11826
11921
  model_size_bytes: ByteSize;
11827
- required_native_memory_bytes: integer;
11922
+ required_native_memory_bytes: ByteSize;
11828
11923
  }
11829
11924
  export interface MlTrainedModelStats {
11830
11925
  deployment_stats?: MlTrainedModelDeploymentStats;
@@ -12307,14 +12402,14 @@ export interface MlGetRecordsResponse {
12307
12402
  records: MlAnomaly[];
12308
12403
  }
12309
12404
  export interface MlGetTrainedModelsRequest extends RequestBase {
12310
- model_id?: Id;
12405
+ model_id?: Ids;
12311
12406
  allow_no_match?: boolean;
12312
12407
  decompress_definition?: boolean;
12313
12408
  exclude_generated?: boolean;
12314
12409
  from?: integer;
12315
12410
  include?: MlInclude;
12316
12411
  size?: integer;
12317
- tags?: string;
12412
+ tags?: string | string[];
12318
12413
  }
12319
12414
  export interface MlGetTrainedModelsResponse {
12320
12415
  count: integer;
@@ -12442,7 +12537,7 @@ export interface MlPutCalendarResponse {
12442
12537
  }
12443
12538
  export interface MlPutCalendarJobRequest extends RequestBase {
12444
12539
  calendar_id: Id;
12445
- job_id: Id;
12540
+ job_id: Ids;
12446
12541
  }
12447
12542
  export interface MlPutCalendarJobResponse {
12448
12543
  calendar_id: Id;
@@ -13702,52 +13797,75 @@ export interface NodesUsageResponseBase extends NodesNodesResponseBase {
13702
13797
  cluster_name: Name;
13703
13798
  nodes: Record<string, NodesUsageNodeUsage>;
13704
13799
  }
13705
- export interface QueryRulesetQueryRule {
13800
+ export interface QueryRulesQueryRule {
13706
13801
  rule_id: Id;
13707
- type: QueryRulesetQueryRuleType;
13708
- criteria: QueryRulesetQueryRuleCriteria[];
13709
- actions: QueryRulesetQueryRuleActions;
13802
+ type: QueryRulesQueryRuleType;
13803
+ criteria: QueryRulesQueryRuleCriteria | QueryRulesQueryRuleCriteria[];
13804
+ actions: QueryRulesQueryRuleActions;
13805
+ priority?: integer;
13710
13806
  }
13711
- export interface QueryRulesetQueryRuleActions {
13807
+ export interface QueryRulesQueryRuleActions {
13712
13808
  ids?: Id[];
13713
13809
  docs?: QueryDslPinnedDoc[];
13714
13810
  }
13715
- export interface QueryRulesetQueryRuleCriteria {
13716
- type: QueryRulesetQueryRuleCriteriaType;
13717
- metadata: string;
13811
+ export interface QueryRulesQueryRuleCriteria {
13812
+ type: QueryRulesQueryRuleCriteriaType;
13813
+ metadata?: string;
13718
13814
  values?: any[];
13719
13815
  }
13720
- export type QueryRulesetQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte';
13721
- export type QueryRulesetQueryRuleType = 'pinned';
13722
- export interface QueryRulesetQueryRuleset {
13816
+ export type QueryRulesQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte' | 'always';
13817
+ export type QueryRulesQueryRuleType = 'pinned';
13818
+ export interface QueryRulesQueryRuleset {
13819
+ ruleset_id: Id;
13820
+ rules: QueryRulesQueryRule[];
13821
+ }
13822
+ export interface QueryRulesDeleteRuleRequest extends RequestBase {
13823
+ ruleset_id: Id;
13824
+ rule_id: Id;
13825
+ }
13826
+ export type QueryRulesDeleteRuleResponse = AcknowledgedResponseBase;
13827
+ export interface QueryRulesDeleteRulesetRequest extends RequestBase {
13723
13828
  ruleset_id: Id;
13724
- rules: QueryRulesetQueryRule[];
13725
13829
  }
13726
- export interface QueryRulesetDeleteRequest extends RequestBase {
13830
+ export type QueryRulesDeleteRulesetResponse = AcknowledgedResponseBase;
13831
+ export interface QueryRulesGetRuleRequest extends RequestBase {
13727
13832
  ruleset_id: Id;
13833
+ rule_id: Id;
13728
13834
  }
13729
- export type QueryRulesetDeleteResponse = AcknowledgedResponseBase;
13730
- export interface QueryRulesetGetRequest extends RequestBase {
13835
+ export type QueryRulesGetRuleResponse = QueryRulesQueryRule;
13836
+ export interface QueryRulesGetRulesetRequest extends RequestBase {
13731
13837
  ruleset_id: Id;
13732
13838
  }
13733
- export type QueryRulesetGetResponse = QueryRulesetQueryRuleset;
13734
- export interface QueryRulesetListQueryRulesetListItem {
13839
+ export type QueryRulesGetRulesetResponse = QueryRulesQueryRuleset;
13840
+ export interface QueryRulesListRulesetsQueryRulesetListItem {
13735
13841
  ruleset_id: Id;
13736
- rules_count: integer;
13842
+ rule_total_count: integer;
13843
+ rule_criteria_types_counts: Record<string, integer>;
13737
13844
  }
13738
- export interface QueryRulesetListRequest extends RequestBase {
13845
+ export interface QueryRulesListRulesetsRequest extends RequestBase {
13739
13846
  from?: integer;
13740
13847
  size?: integer;
13741
13848
  }
13742
- export interface QueryRulesetListResponse {
13849
+ export interface QueryRulesListRulesetsResponse {
13743
13850
  count: long;
13744
- results: QueryRulesetListQueryRulesetListItem[];
13851
+ results: QueryRulesListRulesetsQueryRulesetListItem[];
13852
+ }
13853
+ export interface QueryRulesPutRuleRequest extends RequestBase {
13854
+ ruleset_id: Id;
13855
+ rule_id: Id;
13856
+ type: QueryRulesQueryRuleType;
13857
+ criteria: QueryRulesQueryRuleCriteria | QueryRulesQueryRuleCriteria[];
13858
+ actions: QueryRulesQueryRuleActions;
13859
+ priority?: integer;
13860
+ }
13861
+ export interface QueryRulesPutRuleResponse {
13862
+ result: Result;
13745
13863
  }
13746
- export interface QueryRulesetPutRequest extends RequestBase {
13864
+ export interface QueryRulesPutRulesetRequest extends RequestBase {
13747
13865
  ruleset_id: Id;
13748
- rules: QueryRulesetQueryRule[];
13866
+ rules: QueryRulesQueryRule | QueryRulesQueryRule[];
13749
13867
  }
13750
- export interface QueryRulesetPutResponse {
13868
+ export interface QueryRulesPutRulesetResponse {
13751
13869
  result: Result;
13752
13870
  }
13753
13871
  export interface RollupDateHistogramGrouping {
@@ -13918,7 +14036,7 @@ export interface SearchApplicationSearchApplication {
13918
14036
  template?: SearchApplicationSearchApplicationTemplate;
13919
14037
  }
13920
14038
  export interface SearchApplicationSearchApplicationTemplate {
13921
- script: InlineScript | string;
14039
+ script: Script | string;
13922
14040
  }
13923
14041
  export interface SearchApplicationDeleteRequest extends RequestBase {
13924
14042
  name: Name;
@@ -14052,6 +14170,10 @@ export interface SecurityApplicationPrivileges {
14052
14170
  privileges: string[];
14053
14171
  resources: string[];
14054
14172
  }
14173
+ export interface SecurityBulkError {
14174
+ count: integer;
14175
+ details: Record<string, ErrorCause>;
14176
+ }
14055
14177
  export interface SecurityClusterNode {
14056
14178
  name: Name;
14057
14179
  }
@@ -14089,23 +14211,25 @@ export interface SecurityRealmInfo {
14089
14211
  type: string;
14090
14212
  }
14091
14213
  export interface SecurityRoleDescriptor {
14092
- cluster?: string[];
14214
+ cluster?: SecurityClusterPrivilege[];
14093
14215
  indices?: SecurityIndicesPrivileges[];
14094
14216
  index?: SecurityIndicesPrivileges[];
14095
14217
  global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege;
14096
14218
  applications?: SecurityApplicationPrivileges[];
14097
14219
  metadata?: Metadata;
14098
14220
  run_as?: string[];
14221
+ description?: string;
14099
14222
  transient_metadata?: Record<string, any>;
14100
14223
  }
14101
14224
  export interface SecurityRoleDescriptorRead {
14102
- cluster: string[];
14225
+ cluster: SecurityClusterPrivilege[];
14103
14226
  indices: SecurityIndicesPrivileges[];
14104
14227
  index: SecurityIndicesPrivileges[];
14105
14228
  global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege;
14106
14229
  applications?: SecurityApplicationPrivileges[];
14107
14230
  metadata?: Metadata;
14108
14231
  run_as?: string[];
14232
+ description?: string;
14109
14233
  transient_metadata?: Record<string, any>;
14110
14234
  }
14111
14235
  export interface SecurityRoleMapping {
@@ -14123,18 +14247,19 @@ export interface SecurityRoleMappingRule {
14123
14247
  }
14124
14248
  export interface SecurityRoleTemplate {
14125
14249
  format?: SecurityTemplateFormat;
14126
- template: Script;
14250
+ template: Script | string;
14127
14251
  }
14128
14252
  export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer;
14129
- export interface SecurityRoleTemplateInlineScript extends ScriptBase {
14253
+ export interface SecurityRoleTemplateQuery {
14254
+ template?: SecurityRoleTemplateScript | SecurityRoleTemplateInlineQuery;
14255
+ }
14256
+ export interface SecurityRoleTemplateScript {
14257
+ source?: SecurityRoleTemplateInlineQuery;
14258
+ id?: Id;
14259
+ params?: Record<string, any>;
14130
14260
  lang?: ScriptLanguage;
14131
14261
  options?: Record<string, string>;
14132
- source: SecurityRoleTemplateInlineQuery;
14133
14262
  }
14134
- export interface SecurityRoleTemplateQuery {
14135
- template?: SecurityRoleTemplateScript;
14136
- }
14137
- export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId;
14138
14263
  export type SecurityTemplateFormat = 'string' | 'json';
14139
14264
  export interface SecurityUser {
14140
14265
  email?: string | null;
@@ -14202,6 +14327,25 @@ export interface SecurityAuthenticateToken {
14202
14327
  name: Name;
14203
14328
  type?: string;
14204
14329
  }
14330
+ export interface SecurityBulkDeleteRoleRequest extends RequestBase {
14331
+ refresh?: Refresh;
14332
+ names: string[];
14333
+ }
14334
+ export interface SecurityBulkDeleteRoleResponse {
14335
+ deleted?: string[];
14336
+ not_found?: string[];
14337
+ errors?: SecurityBulkError;
14338
+ }
14339
+ export interface SecurityBulkPutRoleRequest extends RequestBase {
14340
+ refresh?: Refresh;
14341
+ roles: Record<string, SecurityRoleDescriptor>;
14342
+ }
14343
+ export interface SecurityBulkPutRoleResponse {
14344
+ created?: string[];
14345
+ updated?: string[];
14346
+ noop?: string[];
14347
+ errors?: SecurityBulkError;
14348
+ }
14205
14349
  export interface SecurityChangePasswordRequest extends RequestBase {
14206
14350
  username?: Username;
14207
14351
  refresh?: Refresh;
@@ -14601,6 +14745,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
14601
14745
  indices?: SecurityIndicesPrivileges[];
14602
14746
  metadata?: Metadata;
14603
14747
  run_as?: string[];
14748
+ description?: string;
14604
14749
  transient_metadata?: Record<string, any>;
14605
14750
  }
14606
14751
  export interface SecurityPutRoleResponse {
@@ -14687,6 +14832,64 @@ export interface SecurityQueryApiKeysResponse {
14687
14832
  api_keys: SecurityApiKey[];
14688
14833
  aggregations?: Record<AggregateName, SecurityQueryApiKeysApiKeyAggregate>;
14689
14834
  }
14835
+ export interface SecurityQueryRoleQueryRole extends SecurityRoleDescriptor {
14836
+ _sort?: SortResults;
14837
+ name: string;
14838
+ }
14839
+ export interface SecurityQueryRoleRequest extends RequestBase {
14840
+ query?: SecurityQueryRoleRoleQueryContainer;
14841
+ from?: integer;
14842
+ sort?: Sort;
14843
+ size?: integer;
14844
+ search_after?: SortResults;
14845
+ }
14846
+ export interface SecurityQueryRoleResponse {
14847
+ total: integer;
14848
+ count: integer;
14849
+ roles: SecurityQueryRoleQueryRole[];
14850
+ }
14851
+ export interface SecurityQueryRoleRoleQueryContainer {
14852
+ bool?: QueryDslBoolQuery;
14853
+ exists?: QueryDslExistsQuery;
14854
+ ids?: QueryDslIdsQuery;
14855
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
14856
+ match_all?: QueryDslMatchAllQuery;
14857
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
14858
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
14859
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
14860
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
14861
+ terms?: QueryDslTermsQuery;
14862
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
14863
+ }
14864
+ export interface SecurityQueryUserQueryUser extends SecurityUser {
14865
+ _sort?: SortResults;
14866
+ }
14867
+ export interface SecurityQueryUserRequest extends RequestBase {
14868
+ with_profile_uid?: boolean;
14869
+ query?: SecurityQueryUserUserQueryContainer;
14870
+ from?: integer;
14871
+ sort?: Sort;
14872
+ size?: integer;
14873
+ search_after?: SortResults;
14874
+ }
14875
+ export interface SecurityQueryUserResponse {
14876
+ total: integer;
14877
+ count: integer;
14878
+ users: SecurityQueryUserQueryUser[];
14879
+ }
14880
+ export interface SecurityQueryUserUserQueryContainer {
14881
+ ids?: QueryDslIdsQuery;
14882
+ bool?: QueryDslBoolQuery;
14883
+ exists?: QueryDslExistsQuery;
14884
+ match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>;
14885
+ match_all?: QueryDslMatchAllQuery;
14886
+ prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>;
14887
+ range?: Partial<Record<Field, QueryDslRangeQuery>>;
14888
+ simple_query_string?: QueryDslSimpleQueryStringQuery;
14889
+ term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
14890
+ terms?: QueryDslTermsQuery;
14891
+ wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
14892
+ }
14690
14893
  export interface SecuritySamlAuthenticateRequest extends RequestBase {
14691
14894
  content: string;
14692
14895
  ids: Ids;
@@ -15659,9 +15862,9 @@ export interface TransformGetTransformStatsTransformIndexerStats {
15659
15862
  export interface TransformGetTransformStatsTransformProgress {
15660
15863
  docs_indexed: long;
15661
15864
  docs_processed: long;
15662
- docs_remaining: long;
15663
- percent_complete: double;
15664
- total_docs: long;
15865
+ docs_remaining?: long;
15866
+ percent_complete?: double;
15867
+ total_docs?: long;
15665
15868
  }
15666
15869
  export interface TransformGetTransformStatsTransformStats {
15667
15870
  checkpointing: TransformGetTransformStatsCheckpointing;