@elastic/elasticsearch 8.9.0 → 8.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2657,8 +2657,8 @@ export type AggregationsFrequentItemSetsBucket = AggregationsFrequentItemSetsBuc
2657
2657
  };
2658
2658
  export interface AggregationsFrequentItemSetsField {
2659
2659
  field: Field;
2660
- exclude?: string | string[];
2661
- include?: string | string[];
2660
+ exclude?: AggregationsTermsExclude;
2661
+ include?: AggregationsTermsInclude;
2662
2662
  }
2663
2663
  export type AggregationsGapPolicy = 'skip' | 'insert_zeros' | 'keep_values';
2664
2664
  export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
@@ -3172,7 +3172,7 @@ export interface AggregationsSignificantTextAggregation extends AggregationsBuck
3172
3172
  field?: Field;
3173
3173
  filter_duplicate_text?: boolean;
3174
3174
  gnd?: AggregationsGoogleNormalizedDistanceHeuristic;
3175
- include?: string | string[];
3175
+ include?: AggregationsTermsInclude;
3176
3176
  jlh?: EmptyObject;
3177
3177
  min_doc_count?: long;
3178
3178
  mutual_information?: AggregationsMutualInformationHeuristic;
@@ -4782,7 +4782,7 @@ export interface QueryDslQueryContainer {
4782
4782
  term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
4783
4783
  terms?: QueryDslTermsQuery;
4784
4784
  terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>;
4785
- text_expansion?: QueryDslTextExpansionQuery | Field;
4785
+ text_expansion?: Partial<Record<Field, QueryDslTextExpansionQuery>>;
4786
4786
  wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
4787
4787
  wrapper?: QueryDslWrapperQuery;
4788
4788
  type?: QueryDslTypeQuery;
@@ -4962,7 +4962,6 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
4962
4962
  terms: string[];
4963
4963
  }
4964
4964
  export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
4965
- value: Field;
4966
4965
  model_id: string;
4967
4966
  model_text: string;
4968
4967
  }
@@ -8276,7 +8275,7 @@ export interface IndicesIndexSettingsKeys {
8276
8275
  queries?: IndicesQueries;
8277
8276
  similarity?: IndicesSettingsSimilarity;
8278
8277
  mapping?: IndicesMappingLimitSettings;
8279
- 'indexing.slowlog'?: IndicesSlowlogSettings;
8278
+ 'indexing.slowlog'?: IndicesIndexingSlowlogSettings;
8280
8279
  indexing_pressure?: IndicesIndexingPressure;
8281
8280
  store?: IndicesStorage;
8282
8281
  }
@@ -8343,6 +8342,15 @@ export interface IndicesIndexingPressure {
8343
8342
  export interface IndicesIndexingPressureMemory {
8344
8343
  limit?: integer;
8345
8344
  }
8345
+ export interface IndicesIndexingSlowlogSettings {
8346
+ level?: string;
8347
+ source?: integer;
8348
+ reformat?: boolean;
8349
+ threshold?: IndicesIndexingSlowlogTresholds;
8350
+ }
8351
+ export interface IndicesIndexingSlowlogTresholds {
8352
+ index?: IndicesSlowlogTresholdLevels;
8353
+ }
8346
8354
  export interface IndicesMappingLimitSettings {
8347
8355
  coerce?: boolean;
8348
8356
  total_fields?: IndicesMappingLimitSettingsTotalFields;
@@ -8465,7 +8473,6 @@ export interface IndicesSlowlogTresholdLevels {
8465
8473
  export interface IndicesSlowlogTresholds {
8466
8474
  query?: IndicesSlowlogTresholdLevels;
8467
8475
  fetch?: IndicesSlowlogTresholdLevels;
8468
- index?: IndicesSlowlogTresholdLevels;
8469
8476
  }
8470
8477
  export interface IndicesSoftDeletes {
8471
8478
  enabled?: boolean;
@@ -2730,8 +2730,8 @@ export type AggregationsFrequentItemSetsBucket = AggregationsFrequentItemSetsBuc
2730
2730
  };
2731
2731
  export interface AggregationsFrequentItemSetsField {
2732
2732
  field: Field;
2733
- exclude?: string | string[];
2734
- include?: string | string[];
2733
+ exclude?: AggregationsTermsExclude;
2734
+ include?: AggregationsTermsInclude;
2735
2735
  }
2736
2736
  export type AggregationsGapPolicy = 'skip' | 'insert_zeros' | 'keep_values';
2737
2737
  export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
@@ -3245,7 +3245,7 @@ export interface AggregationsSignificantTextAggregation extends AggregationsBuck
3245
3245
  field?: Field;
3246
3246
  filter_duplicate_text?: boolean;
3247
3247
  gnd?: AggregationsGoogleNormalizedDistanceHeuristic;
3248
- include?: string | string[];
3248
+ include?: AggregationsTermsInclude;
3249
3249
  jlh?: EmptyObject;
3250
3250
  min_doc_count?: long;
3251
3251
  mutual_information?: AggregationsMutualInformationHeuristic;
@@ -4855,7 +4855,7 @@ export interface QueryDslQueryContainer {
4855
4855
  term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>;
4856
4856
  terms?: QueryDslTermsQuery;
4857
4857
  terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>;
4858
- text_expansion?: QueryDslTextExpansionQuery | Field;
4858
+ text_expansion?: Partial<Record<Field, QueryDslTextExpansionQuery>>;
4859
4859
  wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>;
4860
4860
  wrapper?: QueryDslWrapperQuery;
4861
4861
  type?: QueryDslTypeQuery;
@@ -5035,7 +5035,6 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
5035
5035
  terms: string[];
5036
5036
  }
5037
5037
  export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
5038
- value: Field;
5039
5038
  model_id: string;
5040
5039
  model_text: string;
5041
5040
  }
@@ -8399,7 +8398,7 @@ export interface IndicesIndexSettingsKeys {
8399
8398
  queries?: IndicesQueries;
8400
8399
  similarity?: IndicesSettingsSimilarity;
8401
8400
  mapping?: IndicesMappingLimitSettings;
8402
- 'indexing.slowlog'?: IndicesSlowlogSettings;
8401
+ 'indexing.slowlog'?: IndicesIndexingSlowlogSettings;
8403
8402
  indexing_pressure?: IndicesIndexingPressure;
8404
8403
  store?: IndicesStorage;
8405
8404
  }
@@ -8466,6 +8465,15 @@ export interface IndicesIndexingPressure {
8466
8465
  export interface IndicesIndexingPressureMemory {
8467
8466
  limit?: integer;
8468
8467
  }
8468
+ export interface IndicesIndexingSlowlogSettings {
8469
+ level?: string;
8470
+ source?: integer;
8471
+ reformat?: boolean;
8472
+ threshold?: IndicesIndexingSlowlogTresholds;
8473
+ }
8474
+ export interface IndicesIndexingSlowlogTresholds {
8475
+ index?: IndicesSlowlogTresholdLevels;
8476
+ }
8469
8477
  export interface IndicesMappingLimitSettings {
8470
8478
  coerce?: boolean;
8471
8479
  total_fields?: IndicesMappingLimitSettingsTotalFields;
@@ -8588,7 +8596,6 @@ export interface IndicesSlowlogTresholdLevels {
8588
8596
  export interface IndicesSlowlogTresholds {
8589
8597
  query?: IndicesSlowlogTresholdLevels;
8590
8598
  fetch?: IndicesSlowlogTresholdLevels;
8591
- index?: IndicesSlowlogTresholdLevels;
8592
8599
  }
8593
8600
  export interface IndicesSoftDeletes {
8594
8601
  enabled?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/elasticsearch",
3
- "version": "8.9.0",
4
- "versionCanary": "8.9.0-canary.2",
3
+ "version": "8.9.1",
4
+ "versionCanary": "8.9.1-canary.1",
5
5
  "description": "The official Elasticsearch client for Node.js",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
@@ -86,7 +86,7 @@
86
86
  "zx": "^7.2.2"
87
87
  },
88
88
  "dependencies": {
89
- "@elastic/transport": "^8.3.2",
89
+ "@elastic/transport": "^8.3.4",
90
90
  "tslib": "^2.4.0"
91
91
  },
92
92
  "tap": {