@opensearch-project/opensearch 3.1.0 → 3.2.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 (97) hide show
  1. package/api/OpenSearchApi.d.ts +78 -8
  2. package/api/_core/count.js +1 -1
  3. package/api/_core/createPit.d.ts +1 -2
  4. package/api/_core/deleteAllPits.d.ts +2 -2
  5. package/api/_core/deleteByQuery.d.ts +2 -1
  6. package/api/_core/deleteByQuery.js +1 -1
  7. package/api/_core/deletePit.d.ts +2 -2
  8. package/api/_core/getAllPits.d.ts +2 -2
  9. package/api/_core/rankEval.d.ts +1 -1
  10. package/api/_core/reindex.d.ts +1 -0
  11. package/api/_core/reindex.js +1 -0
  12. package/api/_core/renderSearchTemplate.d.ts +1 -1
  13. package/api/_core/searchShards.d.ts +0 -11
  14. package/api/_core/searchShards.js +0 -1
  15. package/api/_core/updateByQuery.d.ts +2 -1
  16. package/api/_core/updateByQuery.js +1 -1
  17. package/api/_types/_common.aggregations.d.ts +37 -156
  18. package/api/_types/_common.d.ts +2 -10
  19. package/api/_types/_core.field_caps.d.ts +1 -1
  20. package/api/_types/{_core._common.d.ts → _core.pit.d.ts} +0 -12
  21. package/api/_types/_core.rank_eval.d.ts +3 -3
  22. package/api/_types/_core.termvectors.d.ts +1 -1
  23. package/api/_types/index.d.ts +2 -2
  24. package/api/_types/ml._common.d.ts +159 -28
  25. package/api/asynchronousSearch/delete.js +1 -1
  26. package/api/asynchronousSearch/get.js +1 -1
  27. package/api/asynchronousSearch/search.js +4 -4
  28. package/api/asynchronousSearch/stats.js +1 -1
  29. package/api/cat/aliases.js +1 -1
  30. package/api/cat/allPitSegments.js +1 -1
  31. package/api/cat/clusterManager.js +1 -1
  32. package/api/cat/count.js +1 -1
  33. package/api/cat/fielddata.js +1 -1
  34. package/api/cat/health.js +1 -1
  35. package/api/cat/indices.js +2 -2
  36. package/api/cat/master.js +1 -1
  37. package/api/cat/nodeattrs.js +1 -1
  38. package/api/cat/nodes.js +1 -1
  39. package/api/cat/pendingTasks.js +1 -1
  40. package/api/cat/pitSegments.js +1 -1
  41. package/api/cat/plugins.js +1 -1
  42. package/api/cat/recovery.js +1 -1
  43. package/api/cat/repositories.js +1 -1
  44. package/api/cat/segmentReplication.js +2 -2
  45. package/api/cat/shards.js +1 -1
  46. package/api/cat/snapshots.js +1 -1
  47. package/api/cat/tasks.js +1 -1
  48. package/api/cat/templates.js +1 -1
  49. package/api/cat/threadPool.js +1 -1
  50. package/api/index.d.ts +38 -6
  51. package/api/ml/_api.js +48 -0
  52. package/api/ml/createController.d.ts +39 -0
  53. package/api/ml/createController.js +50 -0
  54. package/api/ml/createModelMeta.d.ts +1 -1
  55. package/api/ml/deleteController.d.ts +30 -0
  56. package/api/ml/deleteController.js +49 -0
  57. package/api/ml/executeAgent.d.ts +36 -0
  58. package/api/ml/executeAgent.js +50 -0
  59. package/api/ml/getAgent.d.ts +30 -0
  60. package/api/ml/getAgent.js +49 -0
  61. package/api/ml/getAllMemories.d.ts +34 -0
  62. package/api/ml/getAllMemories.js +48 -0
  63. package/api/ml/getAllMessages.d.ts +35 -0
  64. package/api/ml/getAllMessages.js +51 -0
  65. package/api/ml/getAllTools.d.ts +28 -0
  66. package/api/ml/getAllTools.js +45 -0
  67. package/api/ml/getController.d.ts +34 -0
  68. package/api/ml/getController.js +49 -0
  69. package/api/ml/getMemory.d.ts +2 -8
  70. package/api/ml/getMemory.js +5 -5
  71. package/api/ml/getMessage.d.ts +2 -3
  72. package/api/ml/getMessage.js +6 -12
  73. package/api/ml/getMessageTraces.d.ts +6 -1
  74. package/api/ml/getMessageTraces.js +2 -0
  75. package/api/ml/getProfile.d.ts +30 -0
  76. package/api/ml/getProfile.js +47 -0
  77. package/api/ml/getProfileModels.d.ts +31 -0
  78. package/api/ml/getProfileModels.js +49 -0
  79. package/api/ml/getProfileTasks.d.ts +31 -0
  80. package/api/ml/getProfileTasks.js +49 -0
  81. package/api/ml/getStats.d.ts +31 -0
  82. package/api/ml/getStats.js +50 -0
  83. package/api/ml/getTool.d.ts +30 -0
  84. package/api/ml/getTool.js +49 -0
  85. package/api/ml/registerModel.d.ts +6 -2
  86. package/api/ml/registerModelMeta.d.ts +1 -1
  87. package/api/ml/searchAgents.d.ts +36 -0
  88. package/api/ml/searchAgents.js +47 -0
  89. package/api/ml/searchTasks.d.ts +36 -0
  90. package/api/ml/searchTasks.js +47 -0
  91. package/api/ml/undeployModel.d.ts +1 -1
  92. package/api/ml/unloadModel.d.ts +1 -1
  93. package/api/ml/updateController.d.ts +37 -0
  94. package/api/ml/updateController.js +50 -0
  95. package/api/ml/updateModel.d.ts +2 -1
  96. package/api/ml/uploadModel.d.ts +2 -1
  97. package/package.json +1 -1
@@ -28,7 +28,7 @@ export type AdjacencyMatrixBucket = MultiBucketBase & {
28
28
  key: string;
29
29
  }
30
30
 
31
- export type Aggregate = CardinalityAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | PercentilesBucketAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MaxAggregate | SumAggregate | AvgAggregate | WeightedAvgAggregate | ValueCountAggregate | SimpleValueAggregate | DerivativeAggregate | BucketMetricValueAggregate | StatsAggregate | StatsBucketAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | GeoBoundsAggregate | GeoCentroidAggregate | HistogramAggregate | DateHistogramAggregate | AutoDateHistogramAggregate | VariableWidthHistogramAggregate | StringTermsAggregate | LongTermsAggregate | DoubleTermsAggregate | UnmappedTermsAggregate | LongRareTermsAggregate | StringRareTermsAggregate | UnmappedRareTermsAggregate | MultiTermsAggregate | MissingAggregate | NestedAggregate | ReverseNestedAggregate | GlobalAggregate | FilterAggregate | ChildrenAggregate | ParentAggregate | SamplerAggregate | UnmappedSamplerAggregate | GeoHashGridAggregate | GeoTileGridAggregate | GeoHexGridAggregate | RangeAggregate | DateRangeAggregate | GeoDistanceAggregate | IpRangeAggregate | IpPrefixAggregate | FiltersAggregate | AdjacencyMatrixAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | UnmappedSignificantTermsAggregate | CompositeAggregate | FrequentItemSetsAggregate | ScriptedMetricAggregate | TopHitsAggregate | InferenceAggregate | StringStatsAggregate | BoxPlotAggregate | TopMetricsAggregate | TTestAggregate | RateAggregate | CumulativeCardinalityAggregate | MatrixStatsAggregate | GeoLineAggregate
31
+ export type Aggregate = CardinalityAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | PercentilesBucketAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MaxAggregate | SumAggregate | AvgAggregate | WeightedAvgAggregate | ValueCountAggregate | SimpleValueAggregate | DerivativeAggregate | BucketMetricValueAggregate | StatsAggregate | StatsBucketAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | GeoBoundsAggregate | GeoCentroidAggregate | HistogramAggregate | DateHistogramAggregate | AutoDateHistogramAggregate | VariableWidthHistogramAggregate | StringTermsAggregate | LongTermsAggregate | DoubleTermsAggregate | UnmappedTermsAggregate | LongRareTermsAggregate | StringRareTermsAggregate | UnmappedRareTermsAggregate | MultiTermsAggregate | MissingAggregate | NestedAggregate | ReverseNestedAggregate | GlobalAggregate | FilterAggregate | ChildrenAggregate | ParentAggregate | SamplerAggregate | UnmappedSamplerAggregate | GeoHashGridAggregate | GeoTileGridAggregate | RangeAggregate | DateRangeAggregate | GeoDistanceAggregate | IpRangeAggregate | FiltersAggregate | AdjacencyMatrixAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | UnmappedSignificantTermsAggregate | CompositeAggregate | ScriptedMetricAggregate | TopHitsAggregate | InferenceAggregate | StringStatsAggregate | BoxPlotAggregate | TopMetricsAggregate | TTestAggregate | RateAggregate | CumulativeCardinalityAggregate | MatrixStatsAggregate | GeoLineAggregate
32
32
 
33
33
  export type AggregateBase = {
34
34
  meta?: Common.Metadata;
@@ -48,13 +48,10 @@ export type AggregationContainer = {
48
48
  avg?: AverageAggregation;
49
49
  avg_bucket?: AverageBucketAggregation;
50
50
  boxplot?: BoxplotAggregation;
51
- bucket_correlation?: BucketCorrelationAggregation;
52
- bucket_count_ks_test?: BucketKsAggregation;
53
51
  bucket_script?: BucketScriptAggregation;
54
52
  bucket_selector?: BucketSelectorAggregation;
55
53
  bucket_sort?: BucketSortAggregation;
56
54
  cardinality?: CardinalityAggregation;
57
- categorize_text?: CategorizeTextAggregation;
58
55
  children?: ChildrenAggregation;
59
56
  composite?: CompositeAggregation;
60
57
  cumulative_cardinality?: CumulativeCardinalityAggregation;
@@ -67,18 +64,15 @@ export type AggregationContainer = {
67
64
  extended_stats_bucket?: ExtendedStatsBucketAggregation;
68
65
  filter?: Common_QueryDsl.QueryContainer;
69
66
  filters?: FiltersAggregation;
70
- frequent_item_sets?: FrequentItemSetsAggregation;
71
67
  geo_bounds?: GeoBoundsAggregation;
72
68
  geo_centroid?: GeoCentroidAggregation;
73
69
  geo_distance?: GeoDistanceAggregation;
74
70
  geo_line?: GeoLineAggregation;
75
71
  geohash_grid?: GeoHashGridAggregation;
76
- geohex_grid?: GeohexGridAggregation;
77
72
  geotile_grid?: GeoTileGridAggregation;
78
73
  global?: GlobalAggregation;
79
74
  histogram?: HistogramAggregation;
80
75
  inference?: InferenceAggregation;
81
- ip_prefix?: IpPrefixAggregation;
82
76
  ip_range?: IpRangeAggregation;
83
77
  line?: GeoLineAggregation;
84
78
  matrix_stats?: MatrixStatsAggregation;
@@ -145,7 +139,7 @@ export type AutoDateHistogramAggregation = BucketAggregationBase & {
145
139
  minimum_interval?: MinimumInterval;
146
140
  missing?: Common.DateTime;
147
141
  offset?: string;
148
- params?: Record<string, Record<string, any>>;
142
+ params?: Record<string, any>;
149
143
  script?: Common.Script;
150
144
  time_zone?: Common.TimeZone;
151
145
  }
@@ -179,30 +173,6 @@ export type BoxplotAggregation = MetricAggregationBase & {
179
173
 
180
174
  export type BucketAggregationBase = Aggregation & Record<string, any>
181
175
 
182
- export type BucketCorrelationAggregation = BucketPathAggregation & {
183
- function: BucketCorrelationFunction;
184
- }
185
-
186
- export type BucketCorrelationFunction = {
187
- count_correlation: BucketCorrelationFunctionCountCorrelation;
188
- }
189
-
190
- export type BucketCorrelationFunctionCountCorrelation = {
191
- indicator: BucketCorrelationFunctionCountCorrelationIndicator;
192
- }
193
-
194
- export type BucketCorrelationFunctionCountCorrelationIndicator = {
195
- doc_count: number;
196
- expectations: number[];
197
- fractions?: number[];
198
- }
199
-
200
- export type BucketKsAggregation = BucketPathAggregation & {
201
- alternative?: string[];
202
- fractions?: number[];
203
- sampling_method?: string;
204
- }
205
-
206
176
  export type BucketMetricValueAggregate = SingleMetricAggregateBase & {
207
177
  keys: string[];
208
178
  }
@@ -229,18 +199,12 @@ export type BucketSelectorAggregation = PipelineAggregationBase & {
229
199
 
230
200
  export type BucketsFiltersBucket = Record<string, FiltersBucket> | FiltersBucket[]
231
201
 
232
- export type BucketsFrequentItemSetsBucket = Record<string, FrequentItemSetsBucket> | FrequentItemSetsBucket[]
233
-
234
202
  export type BucketsGeoHashGridBucket = Record<string, GeoHashGridBucket> | GeoHashGridBucket[]
235
203
 
236
- export type BucketsGeoHexGridBucket = Record<string, GeoHexGridBucket> | GeoHexGridBucket[]
237
-
238
204
  export type BucketsGeoTileGridBucket = Record<string, GeoTileGridBucket> | GeoTileGridBucket[]
239
205
 
240
206
  export type BucketsHistogramBucket = Record<string, HistogramBucket> | HistogramBucket[]
241
207
 
242
- export type BucketsIpPrefixBucket = Record<string, IpPrefixBucket> | IpPrefixBucket[]
243
-
244
208
  export type BucketsIpRangeBucket = Record<string, IpRangeBucket> | IpRangeBucket[]
245
209
 
246
210
  export type BucketsLongRareTermsBucket = Record<string, LongRareTermsBucket> | LongRareTermsBucket[]
@@ -274,7 +238,7 @@ export type BucketsVariableWidthHistogramBucket = Record<string, VariableWidthHi
274
238
 
275
239
  export type BucketsVoid = Record<string, Common.Void> | Common.Void[]
276
240
 
277
- export type CalendarInterval = 'day' | 'hour' | 'minute' | 'month' | 'quarter' | 'second' | 'week' | 'year'
241
+ export type CalendarInterval = 'second' | '1s' | 'minute' | '1m' | 'hour' | '1h' | 'day' | '1d' | 'week' | '1w' | 'month' | '1M' | 'quarter' | '1q' | 'year' | '1Y'
278
242
 
279
243
  export type CardinalityAggregate = AggregateBase & {
280
244
  value: number;
@@ -288,21 +252,6 @@ export type CardinalityAggregation = MetricAggregationBase & {
288
252
 
289
253
  export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | 'save_memory_heuristic' | 'save_time_heuristic' | 'segment_ordinals'
290
254
 
291
- export type CategorizeTextAggregation = Aggregation & {
292
- categorization_analyzer?: CategorizeTextAnalyzer;
293
- categorization_filters?: string[];
294
- field: Common.Field;
295
- max_matched_tokens?: number;
296
- max_unique_tokens?: number;
297
- min_doc_count?: number;
298
- shard_min_doc_count?: number;
299
- shard_size?: number;
300
- similarity_threshold?: number;
301
- size?: number;
302
- }
303
-
304
- export type CategorizeTextAnalyzer = string | CustomCategorizeTextAnalyzer
305
-
306
255
  export type ChildrenAggregate = SingleBucketAggregateBase & Record<string, any>
307
256
 
308
257
  export type ChildrenAggregation = BucketAggregationBase & {
@@ -334,27 +283,18 @@ export type CompositeAggregation = BucketAggregationBase & {
334
283
  sources?: Record<string, CompositeAggregationSource>[];
335
284
  }
336
285
 
337
- export type CompositeAggregationBase = {
338
- field?: Common.Field;
339
- missing_bucket?: boolean;
340
- missing_order?: MissingOrder;
341
- order?: Common.SortOrder;
342
- script?: Common.Script;
343
- value_type?: ValueType;
344
- }
345
-
346
286
  export type CompositeAggregationSource = {
347
- date_histogram?: CompositeDateHistogramAggregation;
348
- geotile_grid?: CompositeGeoTileGridAggregation;
349
- histogram?: CompositeHistogramAggregation;
350
- terms?: CompositeTermsAggregation;
287
+ date_histogram?: CompositeDateHistogramAggregationSource;
288
+ geotile_grid?: CompositeGeoTileGridAggregationSource;
289
+ histogram?: CompositeHistogramAggregationSource;
290
+ terms?: CompositeTermsAggregationSource;
351
291
  }
352
292
 
353
293
  export type CompositeBucket = MultiBucketBase & {
354
294
  key: CompositeAggregateKey;
355
295
  }
356
296
 
357
- export type CompositeDateHistogramAggregation = CompositeAggregationBase & {
297
+ export type CompositeDateHistogramAggregationSource = CompositeValuesSource & {
358
298
  calendar_interval?: Common.DurationLarge;
359
299
  fixed_interval?: Common.DurationLarge;
360
300
  format?: string;
@@ -362,16 +302,25 @@ export type CompositeDateHistogramAggregation = CompositeAggregationBase & {
362
302
  time_zone?: Common.TimeZone;
363
303
  }
364
304
 
365
- export type CompositeGeoTileGridAggregation = CompositeAggregationBase & {
305
+ export type CompositeGeoTileGridAggregationSource = CompositeValuesSource & {
366
306
  bounds?: Common.GeoBounds;
367
307
  precision?: number;
368
308
  }
369
309
 
370
- export type CompositeHistogramAggregation = CompositeAggregationBase & {
310
+ export type CompositeHistogramAggregationSource = CompositeValuesSource & {
371
311
  interval: number;
372
312
  }
373
313
 
374
- export type CompositeTermsAggregation = CompositeAggregationBase & Record<string, any>
314
+ export type CompositeTermsAggregationSource = CompositeValuesSource & Record<string, any>
315
+
316
+ export type CompositeValuesSource = {
317
+ field?: Common.Field;
318
+ missing_bucket?: boolean;
319
+ missing_order?: MissingOrder;
320
+ order?: Common.SortOrder;
321
+ script?: Common.Script;
322
+ value_type?: ValueType;
323
+ }
375
324
 
376
325
  export type CumulativeCardinalityAggregate = AggregateBase & {
377
326
  value: number;
@@ -382,12 +331,6 @@ export type CumulativeCardinalityAggregation = PipelineAggregationBase & Record<
382
331
 
383
332
  export type CumulativeSumAggregation = PipelineAggregationBase & Record<string, any>
384
333
 
385
- export type CustomCategorizeTextAnalyzer = {
386
- char_filter?: string[];
387
- filter?: string[];
388
- tokenizer?: string;
389
- }
390
-
391
334
  export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket & Record<string, any>
392
335
 
393
336
  export type DateHistogramAggregation = BucketAggregationBase & {
@@ -402,8 +345,8 @@ export type DateHistogramAggregation = BucketAggregationBase & {
402
345
  min_doc_count?: number;
403
346
  missing?: Common.DateTime;
404
347
  offset?: Common.Duration;
405
- order?: AggregateOrder;
406
- params?: Record<string, Record<string, any>>;
348
+ order?: HistogramOrder;
349
+ params?: Record<string, any>;
407
350
  script?: Common.Script;
408
351
  time_zone?: Common.TimeZone;
409
352
  }
@@ -419,7 +362,7 @@ export type DateRangeAggregation = BucketAggregationBase & {
419
362
  field?: Common.Field;
420
363
  format?: string;
421
364
  keyed?: boolean;
422
- missing?: Missing;
365
+ missing?: Common.FieldValue;
423
366
  ranges?: DateRangeExpression[];
424
367
  time_zone?: Common.TimeZone;
425
368
  }
@@ -521,27 +464,6 @@ export type FormattableMetricAggregation = MetricAggregationBase & {
521
464
  format?: string;
522
465
  }
523
466
 
524
- export type FrequentItemSetsAggregate = MultiBucketAggregateBaseFrequentItemSetsBucket & Record<string, any>
525
-
526
- export type FrequentItemSetsAggregation = {
527
- fields: FrequentItemSetsField[];
528
- filter?: Common_QueryDsl.QueryContainer;
529
- minimum_set_size?: number;
530
- minimum_support?: number;
531
- size?: number;
532
- }
533
-
534
- export type FrequentItemSetsBucket = MultiBucketBase & {
535
- key: Record<string, string[]>;
536
- support: number;
537
- }
538
-
539
- export type FrequentItemSetsField = {
540
- exclude?: TermsExclude;
541
- field: Common.Field;
542
- include?: TermsInclude;
543
- }
544
-
545
467
  export type GapPolicy = 'insert_zeros' | 'keep_values' | 'skip'
546
468
 
547
469
  export type GeoBoundsAggregate = AggregateBase & {
@@ -586,20 +508,6 @@ export type GeoHashGridBucket = MultiBucketBase & {
586
508
  key: Common.GeoHash;
587
509
  }
588
510
 
589
- export type GeoHexGridAggregate = MultiBucketAggregateBaseGeoHexGridBucket & Record<string, any>
590
-
591
- export type GeohexGridAggregation = BucketAggregationBase & {
592
- bounds?: Common.GeoBounds;
593
- field: Common.Field;
594
- precision?: number;
595
- shard_size?: number;
596
- size?: number;
597
- }
598
-
599
- export type GeoHexGridBucket = MultiBucketBase & {
600
- key: Common.GeoHexCell;
601
- }
602
-
603
511
  export type GeoLineAggregate = AggregateBase & {
604
512
  geometry: Common.GeoLine;
605
513
  properties: Record<string, any>;
@@ -664,7 +572,7 @@ export type HistogramAggregation = BucketAggregationBase & {
664
572
  min_doc_count?: number;
665
573
  missing?: number;
666
574
  offset?: number;
667
- order?: AggregateOrder;
575
+ order?: HistogramOrder;
668
576
  script?: Common.Script;
669
577
  }
670
578
 
@@ -673,6 +581,11 @@ export type HistogramBucket = MultiBucketBase & {
673
581
  key_as_string?: string;
674
582
  }
675
583
 
584
+ export type HistogramOrder = {
585
+ _count?: Common.SortOrder;
586
+ _key?: Common.SortOrder;
587
+ }
588
+
676
589
  export type HoltLinearModelSettings = {
677
590
  alpha?: number;
678
591
  beta?: number;
@@ -733,24 +646,6 @@ export type InferenceTopClassEntry = {
733
646
  class_score: number;
734
647
  }
735
648
 
736
- export type IpPrefixAggregate = MultiBucketAggregateBaseIpPrefixBucket & Record<string, any>
737
-
738
- export type IpPrefixAggregation = BucketAggregationBase & {
739
- append_prefix_length?: boolean;
740
- field: Common.Field;
741
- is_ipv6?: boolean;
742
- keyed?: boolean;
743
- min_doc_count?: number;
744
- prefix_length: number;
745
- }
746
-
747
- export type IpPrefixBucket = MultiBucketBase & {
748
- is_ipv6: boolean;
749
- key: string;
750
- netmask?: string;
751
- prefix_length: number;
752
- }
753
-
754
649
  export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket & Record<string, any>
755
650
 
756
651
  export type IpRangeAggregation = BucketAggregationBase & {
@@ -830,7 +725,7 @@ export type MedianAbsoluteDeviationAggregation = FormatMetricAggregationBase & {
830
725
 
831
726
  export type MetricAggregationBase = {
832
727
  field?: Common.Field;
833
- missing?: Missing;
728
+ missing?: Common.FieldValue;
834
729
  script?: Common.Script;
835
730
  }
836
731
 
@@ -842,13 +737,11 @@ export type MinBucketAggregation = PipelineAggregationBase & Record<string, any>
842
737
 
843
738
  export type MinimumInterval = 'day' | 'hour' | 'minute' | 'month' | 'second' | 'year'
844
739
 
845
- export type Missing = string | number | number | boolean
846
-
847
740
  export type MissingAggregate = SingleBucketAggregateBase & Record<string, any>
848
741
 
849
742
  export type MissingAggregation = BucketAggregationBase & {
850
743
  field?: Common.Field;
851
- missing?: Missing;
744
+ missing?: Common.FieldValue;
852
745
  }
853
746
 
854
747
  export type MissingOrder = 'default' | 'first' | 'last'
@@ -893,18 +786,10 @@ export type MultiBucketAggregateBaseFiltersBucket = AggregateBase & {
893
786
  buckets: BucketsFiltersBucket;
894
787
  }
895
788
 
896
- export type MultiBucketAggregateBaseFrequentItemSetsBucket = AggregateBase & {
897
- buckets: BucketsFrequentItemSetsBucket;
898
- }
899
-
900
789
  export type MultiBucketAggregateBaseGeoHashGridBucket = AggregateBase & {
901
790
  buckets: BucketsGeoHashGridBucket;
902
791
  }
903
792
 
904
- export type MultiBucketAggregateBaseGeoHexGridBucket = AggregateBase & {
905
- buckets: BucketsGeoHexGridBucket;
906
- }
907
-
908
793
  export type MultiBucketAggregateBaseGeoTileGridBucket = AggregateBase & {
909
794
  buckets: BucketsGeoTileGridBucket;
910
795
  }
@@ -913,10 +798,6 @@ export type MultiBucketAggregateBaseHistogramBucket = AggregateBase & {
913
798
  buckets: BucketsHistogramBucket;
914
799
  }
915
800
 
916
- export type MultiBucketAggregateBaseIpPrefixBucket = AggregateBase & {
917
- buckets: BucketsIpPrefixBucket;
918
- }
919
-
920
801
  export type MultiBucketAggregateBaseIpRangeBucket = AggregateBase & {
921
802
  buckets: BucketsIpRangeBucket;
922
803
  }
@@ -967,7 +848,7 @@ export type MultiBucketBase = {
967
848
 
968
849
  export type MultiTermLookup = {
969
850
  field: Common.Field;
970
- missing?: Missing;
851
+ missing?: Common.FieldValue;
971
852
  }
972
853
 
973
854
  export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket & Record<string, any>
@@ -975,7 +856,7 @@ export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket & Record<st
975
856
  export type MultiTermsAggregation = BucketAggregationBase & {
976
857
  collect_mode?: TermsAggregationCollectMode;
977
858
  min_doc_count?: number;
978
- order?: AggregateOrder;
859
+ order?: HistogramOrder;
979
860
  shard_min_doc_count?: number;
980
861
  shard_size?: number;
981
862
  show_term_doc_count_error?: boolean;
@@ -1020,7 +901,7 @@ export type PercentileRanksAggregation = FormatMetricAggregationBase & {
1020
901
  hdr?: HdrMethod;
1021
902
  keyed?: boolean;
1022
903
  tdigest?: TDigest;
1023
- values?: number[] | undefined | string;
904
+ values?: number[];
1024
905
  }
1025
906
 
1026
907
  export type Percentiles = KeyedPercentiles | ArrayPercentilesItem[]
@@ -1071,7 +952,7 @@ export type RareTermsAggregation = BucketAggregationBase & {
1071
952
  field?: Common.Field;
1072
953
  include?: TermsInclude;
1073
954
  max_doc_count?: number;
1074
- missing?: Missing;
955
+ missing?: Common.FieldValue;
1075
956
  precision?: number;
1076
957
  value_type?: string;
1077
958
  }
@@ -1119,7 +1000,7 @@ export type ScriptedMetricAggregation = MetricAggregationBase & {
1119
1000
  combine_script?: Common.Script;
1120
1001
  init_script?: Common.Script;
1121
1002
  map_script?: Common.Script;
1122
- params?: Record<string, Record<string, any>>;
1003
+ params?: Record<string, any>;
1123
1004
  reduce_script?: Common.Script;
1124
1005
  }
1125
1006
 
@@ -1325,7 +1206,7 @@ export type TermsAggregation = BucketAggregationBase & {
1325
1206
  format?: string;
1326
1207
  include?: TermsInclude;
1327
1208
  min_doc_count?: number;
1328
- missing?: Missing;
1209
+ missing?: Common.FieldValue;
1329
1210
  missing_bucket?: boolean;
1330
1211
  missing_order?: MissingOrder;
1331
1212
  order?: AggregateOrder;
@@ -236,6 +236,7 @@ export type GeoDistanceSort = {
236
236
  mode?: SortMode;
237
237
  order?: SortOrder;
238
238
  unit?: DistanceUnit;
239
+ [key: string]: any | GeoLocation[];
239
240
  }
240
241
 
241
242
  export type GeoDistanceType = 'arc' | 'plane'
@@ -248,8 +249,6 @@ export type GeoHashLocation = {
248
249
 
249
250
  export type GeoHashPrecision = number | string
250
251
 
251
- export type GeoHexCell = string
252
-
253
252
  export type GeoLine = {
254
253
  coordinates: number[][];
255
254
  type: string;
@@ -377,8 +376,6 @@ export type Metadata = Record<string, any>
377
376
 
378
377
  export type MinimumShouldMatch = number | string
379
378
 
380
- export type ModelFormat = 'ONNX' | 'TORCH_SCRIPT'
381
-
382
379
  export type MultiTermQueryRewrite = 'constant_score' | 'constant_score_boolean' | 'scoring_boolean' | string
383
380
 
384
381
  export type Name = string
@@ -419,7 +416,6 @@ export type NodeShard = {
419
416
  primary: boolean;
420
417
  recovery_source?: Record<string, Id>;
421
418
  relocating_node?: NodeId | undefined;
422
- relocation_failure_info?: RelocationFailureInfo;
423
419
  shard: number;
424
420
  state: Indices_Stats.ShardRoutingState;
425
421
  unassigned_info?: Cluster_AllocationExplain.UnassignedInformation;
@@ -515,10 +511,6 @@ export type RefreshStats = {
515
511
 
516
512
  export type RelationName = string
517
513
 
518
- export type RelocationFailureInfo = {
519
- failed_attempts: number;
520
- }
521
-
522
514
  export type RemoteStoreDownloadStats = {
523
515
  total_download_size: RemoteStoreUploadDownloadStats;
524
516
  total_time_spent?: Duration;
@@ -768,7 +760,7 @@ export type short = number
768
760
 
769
761
  export type SlicedScroll = {
770
762
  field?: Field;
771
- id: Id;
763
+ id: number;
772
764
  max: number;
773
765
  }
774
766
 
@@ -19,7 +19,7 @@ import * as Common from './_common'
19
19
  export type FieldCapability = {
20
20
  aggregatable: boolean;
21
21
  indices?: Common.Indices;
22
- meta?: Common.Metadata;
22
+ meta?: Record<string, string[]>;
23
23
  metadata_field?: boolean;
24
24
  non_aggregatable_indices?: Common.Indices;
25
25
  non_searchable_indices?: Common.Indices;
@@ -26,15 +26,3 @@ export type PitDetail = {
26
26
  pit_id?: string;
27
27
  }
28
28
 
29
- export type PitsDetailsDeleteAll = {
30
- pit_id?: string;
31
- successful?: boolean;
32
- }
33
-
34
- export type ShardStatistics = {
35
- failed?: number;
36
- skipped?: number;
37
- successful?: number;
38
- total?: number;
39
- }
40
-
@@ -32,7 +32,7 @@ export type RankEvalHit = {
32
32
 
33
33
  export type RankEvalHitItem = {
34
34
  hit: RankEvalHit;
35
- rating?: undefined | number | string;
35
+ rating?: number;
36
36
  }
37
37
 
38
38
  export type RankEvalMetric = {
@@ -49,7 +49,7 @@ export type RankEvalMetricBase = {
49
49
 
50
50
  export type RankEvalMetricDetail = {
51
51
  hits: RankEvalHitItem[];
52
- metric_details: Record<string, Record<string, number>>;
52
+ metric_details: Record<string, Record<string, any>>;
53
53
  metric_score: number;
54
54
  unrated_docs: UnratedDocument[];
55
55
  }
@@ -81,7 +81,7 @@ export type RankEvalQuery = {
81
81
 
82
82
  export type RankEvalRequestItem = {
83
83
  id: Common.Id;
84
- params?: Record<string, Record<string, any>>;
84
+ params?: Record<string, any>;
85
85
  ratings: DocumentRating[];
86
86
  request?: RankEvalQuery;
87
87
  template_id?: Common.Id;
@@ -40,7 +40,7 @@ export type Term = {
40
40
  }
41
41
 
42
42
  export type TermVector = {
43
- field_statistics: FieldStatistics;
43
+ field_statistics?: FieldStatistics;
44
44
  terms: Record<string, Term>;
45
45
  }
46
46
 
@@ -19,7 +19,6 @@ import * as Common_Aggregations from './_common.aggregations'
19
19
  import * as Common_Analysis from './_common.analysis'
20
20
  import * as Common_Mapping from './_common.mapping'
21
21
  import * as Common_QueryDsl from './_common.query_dsl'
22
- import * as Core_Common from './_core._common'
23
22
  import * as Core_Bulk from './_core.bulk'
24
23
  import * as Core_Explain from './_core.explain'
25
24
  import * as Core_FieldCaps from './_core.field_caps'
@@ -30,6 +29,7 @@ import * as Core_Mget from './_core.mget'
30
29
  import * as Core_MsearchTemplate from './_core.msearch_template'
31
30
  import * as Core_Msearch from './_core.msearch'
32
31
  import * as Core_Mtermvectors from './_core.mtermvectors'
32
+ import * as Core_Pit from './_core.pit'
33
33
  import * as Core_RankEval from './_core.rank_eval'
34
34
  import * as Core_ReindexRethrottle from './_core.reindex_rethrottle'
35
35
  import * as Core_Reindex from './_core.reindex'
@@ -128,7 +128,6 @@ export {
128
128
  Common_Analysis,
129
129
  Common_Mapping,
130
130
  Common_QueryDsl,
131
- Core_Common,
132
131
  Core_Bulk,
133
132
  Core_Explain,
134
133
  Core_FieldCaps,
@@ -139,6 +138,7 @@ export {
139
138
  Core_MsearchTemplate,
140
139
  Core_Msearch,
141
140
  Core_Mtermvectors,
141
+ Core_Pit,
142
142
  Core_RankEval,
143
143
  Core_ReindexRethrottle,
144
144
  Core_Reindex,