Compare commits

..

7 Commits

9 changed files with 631 additions and 828 deletions

View File

@ -1,6 +1,6 @@
---
STACK_VERSION:
- "8.5.0-SNAPSHOT"
- "8.6.0-SNAPSHOT"
NODE_JS_VERSION:
- 18

View File

@ -1,6 +1,21 @@
[[changelog-client]]
== Release notes
[discrete]
=== 8.6.0
[discrete]
===== Bump @elastic/transport to 8.3.1+ https://github.com/elastic/elasticsearch-js/pull/1802[#1802]
The `@elastic/transport` dependency has been bumped to `~8.3.1` to ensure
fixes to the `maxResponseSize` option are available in the client.
[discrete]
===== Support for Elasticsearch `v8.6.0`
You can find all the API changes
https://www.elastic.co/guide/en/elasticsearch/reference/8.6/release-notes-8.6.0.html[here].
[discrete]
=== 8.5.0

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{
"name": "@elastic/elasticsearch",
"version": "8.5.0",
"versionCanary": "8.5.0-canary.0",
"version": "8.6.0",
"versionCanary": "8.6.0-canary.0",
"description": "The official Elasticsearch client for Node.js",
"main": "index.js",
"types": "index.d.ts",
@ -81,7 +81,7 @@
"zx": "^6.1.0"
},
"dependencies": {
"@elastic/transport": "^8.2.0",
"@elastic/transport": "^8.3.1",
"tslib": "^2.4.0"
},
"tap": {
@ -91,4 +91,4 @@
"coverage": false,
"check-coverage": false
}
}
}

View File

@ -37,12 +37,12 @@ import * as T from '../types'
import * as TB from '../typesWithBodyKey'
interface That { transport: Transport }
export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FieldCapsResponse>
export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FieldCapsResponse, unknown>>
export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<T.FieldCapsResponse>
export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<any> {
export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FieldCapsResponse>
export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FieldCapsResponse, unknown>>
export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<T.FieldCapsResponse>
export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['index']
const acceptedBody: string[] = ['fields', 'index_filter', 'runtime_mappings']
const acceptedBody: string[] = ['index_filter', 'runtime_mappings']
const querystring: Record<string, any> = {}
// @ts-expect-error
const userBody: any = params?.body
@ -53,7 +53,6 @@ export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequ
body = userBody != null ? { ...userBody } : undefined
}
params = params ?? {}
for (const key in params) {
if (acceptedBody.includes(key)) {
body = body ?? {}

View File

@ -135,10 +135,10 @@ export default class License {
return await this.transport.request({ path, method, querystring, body }, options)
}
async post (this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.LicensePostResponse>
async post (this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.LicensePostResponse, unknown>>
async post (this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptions): Promise<T.LicensePostResponse>
async post (this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptions): Promise<any> {
async post (this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.LicensePostResponse>
async post (this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.LicensePostResponse, unknown>>
async post (this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptions): Promise<T.LicensePostResponse>
async post (this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = []
const acceptedBody: string[] = ['license', 'licenses']
const querystring: Record<string, any> = {}
@ -151,7 +151,6 @@ export default class License {
body = userBody != null ? { ...userBody } : undefined
}
params = params ?? {}
for (const key in params) {
if (acceptedBody.includes(key)) {
body = body ?? {}

View File

@ -43,19 +43,19 @@ export default class Ml {
this.transport = transport
}
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlClearTrainedModelDeploymentCacheResponse>
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlClearTrainedModelDeploymentCacheResponse, unknown>>
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<T.MlClearTrainedModelDeploymentCacheResponse>
async clearTrainedModelDeploymentCache (this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<any> {
async clearTrainedModelDeploymentCache (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async clearTrainedModelDeploymentCache (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async clearTrainedModelDeploymentCache (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async clearTrainedModelDeploymentCache (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['model_id']
const querystring: Record<string, any> = {}
const body = undefined
params = params ?? {}
for (const key in params) {
if (acceptedPath.includes(key)) {
continue
} else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key]
}
}

View File

@ -239,7 +239,7 @@ export interface DeleteByQueryResponse {
}
export interface DeleteByQueryRethrottleRequest extends RequestBase {
task_id: TaskId
task_id: Id
requests_per_second?: float
}
@ -343,11 +343,11 @@ export interface FieldCapsRequest extends RequestBase {
index?: Indices
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
fields: Fields
ignore_unavailable?: boolean
include_unmapped?: boolean
filters?: string
types?: string[]
fields?: Fields
index_filter?: QueryDslQueryContainer
runtime_mappings?: MappingRuntimeFields
}
@ -792,7 +792,7 @@ export interface RankEvalRankEvalRequestItem {
}
export interface RankEvalRequest extends RequestBase {
index?: Indices
index: Indices
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
ignore_unavailable?: boolean
@ -1090,14 +1090,12 @@ export interface SearchAggregationProfileDebug {
filters?: SearchAggregationProfileDelegateDebugFilter[]
segments_counted?: integer
segments_collected?: integer
map_reducer?: string
}
export interface SearchAggregationProfileDelegateDebugFilter {
results_from_metadata?: integer
query?: string
specialized_for?: string
segments_counted_in_constant_time?: integer
}
export type SearchBoundaryScanner = 'chars' | 'sentence' | 'word'
@ -1168,8 +1166,6 @@ export interface SearchFetchProfile {
}
export interface SearchFetchProfileBreakdown {
load_source?: integer
load_source_count?: integer
load_stored_fields?: integer
load_stored_fields_count?: integer
next_reader?: integer
@ -1231,7 +1227,6 @@ export interface SearchHighlightBase {
export interface SearchHighlightField extends SearchHighlightBase {
fragment_offset?: integer
matched_fields?: Fields
analyzer?: AnalysisAnalyzer
}
export type SearchHighlighterEncoder = 'default' | 'html'
@ -1333,9 +1328,8 @@ export interface SearchPhraseSuggestHighlight {
export interface SearchPhraseSuggestOption {
text: string
highlighted: string
score: double
highlighted?: string
collate_match?: boolean
}
export interface SearchPhraseSuggester extends SearchSuggesterBase {
@ -1478,10 +1472,8 @@ export interface SearchTermSuggest extends SearchSuggestBase {
export interface SearchTermSuggestOption {
text: string
score: double
freq: long
highlighted?: string
collate_match?: boolean
score: double
}
export interface SearchTermSuggester extends SearchSuggesterBase {
@ -1928,7 +1920,7 @@ export interface FieldSort {
export type FieldSortNumericType = 'long' | 'double' | 'date' | 'date_nanos'
export type FieldValue = long | double | string | boolean | null | any
export type FieldValue = long | double | string | boolean | any
export interface FielddataStats {
evictions?: long
@ -1970,8 +1962,6 @@ export interface GeoHashLocation {
export type GeoHashPrecision = number | string
export type GeoHexCell = string
export interface GeoLine {
type: string
coordinates: double[][]
@ -2134,11 +2124,10 @@ export interface NestedSortValue {
export interface NodeAttributes {
attributes: Record<string, string>
ephemeral_id: Id
id?: NodeId
id?: Id
name: NodeName
transport_address: TransportAddress
roles?: NodeRoles
external_id: string
}
export type NodeId = string
@ -2271,7 +2260,7 @@ export interface ScriptSort {
nested?: NestedSortValue
}
export type ScriptSortType = 'string' | 'number' | 'version'
export type ScriptSortType = 'string' | 'number'
export interface ScriptTransform {
lang?: string
@ -2365,7 +2354,7 @@ export interface ShardsOperationResponseBase {
export interface SlicedScroll {
field?: Field
id: Id
id: integer
max: integer
}
@ -2390,7 +2379,7 @@ export type SortOptions = SortOptionsKeys
export type SortOrder = 'asc' | 'desc'
export type SortResults = FieldValue[]
export type SortResults = (long | double | string | null)[]
export interface StoreStats {
size?: ByteSize
@ -2530,12 +2519,11 @@ export interface AggregationsAdjacencyMatrixAggregation extends AggregationsBuck
}
export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMultiBucketBase {
key: string
}
export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys
& { [property: string]: AggregationsAggregate | string | long }
& { [property: string]: AggregationsAggregate | long }
export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate
export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate
export interface AggregationsAggregateBase {
meta?: Metadata
@ -2586,7 +2574,6 @@ export interface AggregationsAggregationContainer {
global?: AggregationsGlobalAggregation
histogram?: AggregationsHistogramAggregation
ip_range?: AggregationsIpRangeAggregation
ip_prefix?: AggregationsIpPrefixAggregation
inference?: AggregationsInferenceAggregation
line?: AggregationsGeoLineAggregation
matrix_stats?: AggregationsMatrixStatsAggregation
@ -2785,13 +2772,11 @@ export interface AggregationsChildrenAggregation extends AggregationsBucketAggre
}
export interface AggregationsCompositeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsCompositeBucket> {
after_key?: AggregationsCompositeAggregateKey
after_key?: Record<string, any>
}
export type AggregationsCompositeAggregateKey = Record<Field, FieldValue>
export interface AggregationsCompositeAggregation extends AggregationsBucketAggregationBase {
after?: AggregationsCompositeAggregateKey
after?: Record<string, string | float | null>
size?: integer
sources?: Record<string, AggregationsCompositeAggregationSource>[]
}
@ -2804,10 +2789,10 @@ export interface AggregationsCompositeAggregationSource {
}
export interface AggregationsCompositeBucketKeys extends AggregationsMultiBucketBase {
key: AggregationsCompositeAggregateKey
key: Record<string, any>
}
export type AggregationsCompositeBucket = AggregationsCompositeBucketKeys
& { [property: string]: AggregationsAggregate | AggregationsCompositeAggregateKey | long }
& { [property: string]: AggregationsAggregate | Record<string, any> | long }
export interface AggregationsCumulativeCardinalityAggregate extends AggregationsAggregateBase {
value: long
@ -2918,8 +2903,6 @@ export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAgg
variance_population: double | null
variance_sampling: double | null
std_deviation: double | null
std_deviation_population: double | null
std_deviation_sampling: double | null
std_deviation_bounds?: AggregationsStandardDeviationBounds
sum_of_squares_as_string?: string
variance_as_string?: string
@ -2970,7 +2953,7 @@ export interface AggregationsFormattableMetricAggregation extends AggregationsMe
format?: string
}
export type AggregationsGapPolicy = 'skip' | 'insert_zeros' | 'keep_values'
export type AggregationsGapPolicy = 'skip' | 'insert_zeros'
export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
bounds?: GeoBounds
@ -3018,19 +3001,9 @@ export interface AggregationsGeoHashGridBucketKeys extends AggregationsMultiBuck
export type AggregationsGeoHashGridBucket = AggregationsGeoHashGridBucketKeys
& { [property: string]: AggregationsAggregate | GeoHash | long }
export interface AggregationsGeoHexGridAggregate extends AggregationsMultiBucketAggregateBase<AggregationsGeoHexGridBucket> {
}
export interface AggregationsGeoHexGridBucketKeys extends AggregationsMultiBucketBase {
key: GeoHexCell
}
export type AggregationsGeoHexGridBucket = AggregationsGeoHexGridBucketKeys
& { [property: string]: AggregationsAggregate | GeoHexCell | long }
export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase {
type: string
geometry: GeoLine
properties: any
}
export interface AggregationsGeoLineAggregation {
@ -3182,27 +3155,6 @@ export interface AggregationsInferenceTopClassEntry {
class_score: double
}
export interface AggregationsIpPrefixAggregate extends AggregationsMultiBucketAggregateBase<AggregationsIpPrefixBucket> {
}
export interface AggregationsIpPrefixAggregation extends AggregationsBucketAggregationBase {
field: Field
prefix_length: integer
is_ipv6?: boolean
append_prefix_length?: boolean
keyed?: boolean
min_doc_count?: long
}
export interface AggregationsIpPrefixBucketKeys extends AggregationsMultiBucketBase {
is_ipv6: boolean
key: string
prefix_length: integer
netmask?: string
}
export type AggregationsIpPrefixBucket = AggregationsIpPrefixBucketKeys
& { [property: string]: AggregationsAggregate | boolean | string | integer | long }
export interface AggregationsIpRangeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsIpRangeBucket> {
}
@ -3218,7 +3170,6 @@ export interface AggregationsIpRangeAggregationRange {
}
export interface AggregationsIpRangeBucketKeys extends AggregationsMultiBucketBase {
key?: string
from?: string
to?: string
}
@ -3371,12 +3322,12 @@ export interface AggregationsMultiTermsAggregation extends AggregationsBucketAgg
}
export interface AggregationsMultiTermsBucketKeys extends AggregationsMultiBucketBase {
key: FieldValue[]
key: (long | double | string)[]
key_as_string?: string
doc_count_error_upper_bound?: long
}
export type AggregationsMultiTermsBucket = AggregationsMultiTermsBucketKeys
& { [property: string]: AggregationsAggregate | FieldValue[] | string | long }
& { [property: string]: AggregationsAggregate | (long | double | string)[] | string | long }
export interface AggregationsMutualInformationHeuristic {
background_is_superset?: boolean
@ -3526,7 +3477,7 @@ export interface AggregationsSerialDifferencingAggregation extends AggregationsP
lag?: integer
}
export interface AggregationsSignificantLongTermsAggregate extends AggregationsSignificantTermsAggregateBase<AggregationsSignificantLongTermsBucket> {
export interface AggregationsSignificantLongTermsAggregate extends AggregationsMultiBucketAggregateBase<AggregationsSignificantLongTermsBucket> {
}
export interface AggregationsSignificantLongTermsBucketKeys extends AggregationsSignificantTermsBucketBase {
@ -3536,7 +3487,7 @@ export interface AggregationsSignificantLongTermsBucketKeys extends Aggregations
export type AggregationsSignificantLongTermsBucket = AggregationsSignificantLongTermsBucketKeys
& { [property: string]: AggregationsAggregate | long | string | double }
export interface AggregationsSignificantStringTermsAggregate extends AggregationsSignificantTermsAggregateBase<AggregationsSignificantStringTermsBucket> {
export interface AggregationsSignificantStringTermsAggregate extends AggregationsMultiBucketAggregateBase<AggregationsSignificantStringTermsBucket> {
}
export interface AggregationsSignificantStringTermsBucketKeys extends AggregationsSignificantTermsBucketBase {
@ -3545,11 +3496,6 @@ export interface AggregationsSignificantStringTermsBucketKeys extends Aggregatio
export type AggregationsSignificantStringTermsBucket = AggregationsSignificantStringTermsBucketKeys
& { [property: string]: AggregationsAggregate | string | double | long }
export interface AggregationsSignificantTermsAggregateBase<T = unknown> extends AggregationsMultiBucketAggregateBase<T> {
bg_count?: long
doc_count?: long
}
export interface AggregationsSignificantTermsAggregation extends AggregationsBucketAggregationBase {
background_filter?: QueryDslQueryContainer
chi_square?: AggregationsChiSquareHeuristic
@ -3678,10 +3624,10 @@ export interface AggregationsStringTermsAggregate extends AggregationsTermsAggre
}
export interface AggregationsStringTermsBucketKeys extends AggregationsTermsBucketBase {
key: FieldValue
key: string
}
export type AggregationsStringTermsBucket = AggregationsStringTermsBucketKeys
& { [property: string]: AggregationsAggregate | FieldValue | long }
& { [property: string]: AggregationsAggregate | string | long }
export interface AggregationsSumAggregate extends AggregationsSingleMetricAggregateBase {
}
@ -3717,7 +3663,7 @@ export type AggregationsTTestType = 'paired' | 'homoscedastic' | 'heteroscedasti
export interface AggregationsTermsAggregateBase<TBucket = unknown> extends AggregationsMultiBucketAggregateBase<TBucket> {
doc_count_error_upper_bound?: long
sum_other_doc_count?: long
sum_other_doc_count: long
}
export interface AggregationsTermsAggregation extends AggregationsBucketAggregationBase {
@ -3808,7 +3754,7 @@ export interface AggregationsUnmappedSamplerAggregateKeys extends AggregationsSi
export type AggregationsUnmappedSamplerAggregate = AggregationsUnmappedSamplerAggregateKeys
& { [property: string]: AggregationsAggregate | long | Metadata }
export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsSignificantTermsAggregateBase<void> {
export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsMultiBucketAggregateBase<void> {
}
export interface AggregationsUnmappedTermsAggregate extends AggregationsTermsAggregateBase<void> {
@ -4489,7 +4435,6 @@ export interface MappingAggregateMetricDoubleProperty extends MappingPropertyBas
type: 'aggregate_metric_double'
default_metric: string
metrics: string[]
time_series_metric?: MappingTimeSeriesMetricType
}
export interface MappingAllField {
@ -4517,7 +4462,7 @@ export interface MappingBooleanProperty extends MappingDocValuesPropertyBase {
type: 'boolean'
}
export interface MappingByteNumberProperty extends MappingNumberPropertyBase {
export interface MappingByteNumberProperty extends MappingStandardNumberProperty {
type: 'byte'
null_value?: byte
}
@ -4592,7 +4537,7 @@ export interface MappingDocValuesPropertyBase extends MappingCorePropertyBase {
doc_values?: boolean
}
export interface MappingDoubleNumberProperty extends MappingNumberPropertyBase {
export interface MappingDoubleNumberProperty extends MappingStandardNumberProperty {
type: 'double'
null_value?: double
}
@ -4668,7 +4613,7 @@ export interface MappingFlattenedProperty extends MappingPropertyBase {
type: 'flattened'
}
export interface MappingFloatNumberProperty extends MappingNumberPropertyBase {
export interface MappingFloatNumberProperty extends MappingStandardNumberProperty {
type: 'float'
null_value?: float
}
@ -4697,7 +4642,7 @@ export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
export type MappingGeoStrategy = 'recursive' | 'term'
export interface MappingHalfFloatNumberProperty extends MappingNumberPropertyBase {
export interface MappingHalfFloatNumberProperty extends MappingStandardNumberProperty {
type: 'half_float'
null_value?: float
}
@ -4713,7 +4658,7 @@ export interface MappingIndexField {
export type MappingIndexOptions = 'docs' | 'freqs' | 'positions' | 'offsets'
export interface MappingIntegerNumberProperty extends MappingNumberPropertyBase {
export interface MappingIntegerNumberProperty extends MappingStandardNumberProperty {
type: 'integer'
null_value?: integer
}
@ -4725,11 +4670,8 @@ export interface MappingIntegerRangeProperty extends MappingRangePropertyBase {
export interface MappingIpProperty extends MappingDocValuesPropertyBase {
boost?: double
index?: boolean
ignore_malformed?: boolean
null_value?: string
on_script_error?: MappingOnScriptError
script?: Script
time_series_dimension?: boolean
ignore_malformed?: boolean
type: 'ip'
}
@ -4739,7 +4681,6 @@ export interface MappingIpRangeProperty extends MappingRangePropertyBase {
export interface MappingJoinProperty extends MappingPropertyBase {
relations?: Record<RelationName, RelationName | RelationName[]>
eager_global_ordinals?: boolean
type: 'join'
}
@ -4756,7 +4697,7 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
type: 'keyword'
}
export interface MappingLongNumberProperty extends MappingNumberPropertyBase {
export interface MappingLongNumberProperty extends MappingStandardNumberProperty {
type: 'long'
null_value?: long
}
@ -4786,14 +4727,9 @@ export interface MappingNestedProperty extends MappingCorePropertyBase {
}
export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase {
boost?: double
coerce?: boolean
ignore_malformed?: boolean
index?: boolean
on_script_error?: MappingOnScriptError
script?: Script
ignore_malformed?: boolean
time_series_metric?: MappingTimeSeriesMetricType
time_series_dimension?: boolean
}
export interface MappingObjectProperty extends MappingCorePropertyBase {
@ -4856,6 +4792,7 @@ export type MappingRuntimeFields = Record<Field, MappingRuntimeField>
export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
type: 'scaled_float'
coerce?: boolean
null_value?: double
scaling_factor?: double
}
@ -4880,7 +4817,7 @@ export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
type: 'shape'
}
export interface MappingShortNumberProperty extends MappingNumberPropertyBase {
export interface MappingShortNumberProperty extends MappingStandardNumberProperty {
type: 'short'
null_value?: short
}
@ -4895,10 +4832,13 @@ export interface MappingSourceField {
enabled?: boolean
excludes?: string[]
includes?: string[]
mode?: MappingSourceFieldMode
}
export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic'
export interface MappingStandardNumberProperty extends MappingNumberPropertyBase {
coerce?: boolean
script?: Script
on_script_error?: MappingOnScriptError
}
export interface MappingSuggestContext {
name: Name
@ -8618,19 +8558,22 @@ export interface DanglingIndicesListDanglingIndicesResponse {
dangling_indices: DanglingIndicesListDanglingIndicesDanglingIndex[]
}
export interface EnrichConfiguration {
geo_match?: EnrichPolicy
match: EnrichPolicy
range: EnrichPolicy
}
export interface EnrichPolicy {
enrich_fields: Fields
indices: Indices
match_field: Field
query?: string
name?: Name
elasticsearch_version?: string
}
export type EnrichPolicyType = 'geo_match' | 'match' | 'range'
export interface EnrichSummary {
config: Partial<Record<EnrichPolicyType, EnrichPolicy>>
config: EnrichConfiguration
}
export interface EnrichDeletePolicyRequest extends RequestBase {
@ -8816,7 +8759,7 @@ export interface FleetGlobalCheckpointsResponse {
}
export interface FleetMsearchRequest extends RequestBase {
index?: IndexName | IndexAlias
index: IndexName | IndexAlias
allow_no_indices?: boolean
ccs_minimize_roundtrips?: boolean
expand_wildcards?: ExpandWildcards
@ -9216,10 +9159,6 @@ export interface IndicesDataStreamVisibility {
hidden?: boolean
}
export interface IndicesDownsampleConfig {
fixed_interval: DurationLarge
}
export interface IndicesFielddataFrequencyFilter {
max: double
min: double
@ -9396,7 +9335,6 @@ export interface IndicesIndexTemplateSummary {
export interface IndicesIndexVersioning {
created?: VersionString
created_string?: string
}
export interface IndicesIndexingPressure {
@ -9408,7 +9346,6 @@ export interface IndicesIndexingPressureMemory {
}
export interface IndicesMappingLimitSettings {
coerce?: boolean
total_fields?: IndicesMappingLimitSettingsTotalFields
depth?: IndicesMappingLimitSettingsDepth
nested_fields?: IndicesMappingLimitSettingsNestedFields
@ -9503,7 +9440,7 @@ export interface IndicesSettingsSimilarity {
}
export interface IndicesSettingsSimilarityBm25 {
b: double
b: integer
discount_overlaps: boolean
k1: double
type: 'BM25'
@ -9842,7 +9779,7 @@ export type IndicesDiskUsageResponse = any
export interface IndicesDownsampleRequest extends RequestBase {
index: IndexName
target_index: IndexName
config?: IndicesDownsampleConfig
config?: any
}
export type IndicesDownsampleResponse = any
@ -9964,11 +9901,7 @@ export interface IndicesForcemergeRequest extends RequestBase {
wait_for_completion?: boolean
}
export type IndicesForcemergeResponse = IndicesForcemergeForceMergeResponseBody
export interface IndicesForcemergeForceMergeResponseBody extends ShardsOperationResponseBase {
task?: string
}
export type IndicesForcemergeResponse = ShardsOperationResponseBase
export type IndicesGetFeature = 'aliases' | 'mappings' | 'settings'
@ -10400,18 +10333,13 @@ export interface IndicesRolloverResponse {
}
export interface IndicesRolloverRolloverConditions {
min_age?: Duration
max_age?: Duration
max_age_millis?: DurationValue<UnitMillis>
min_docs?: long
max_docs?: long
max_size?: ByteSize
min_size?: ByteSize
max_size?: string
max_size_bytes?: ByteSize
max_primary_shard_size?: ByteSize
min_primary_shard_size?: ByteSize
max_primary_shard_docs?: long
min_primary_shard_docs?: long
max_primary_shard_size_bytes?: ByteSize
}
export interface IndicesSegmentsIndexSegment {
@ -10827,38 +10755,39 @@ export interface IngestBytesProcessor extends IngestProcessorBase {
export interface IngestCircleProcessor extends IngestProcessorBase {
error_distance: double
field: Field
ignore_missing?: boolean
ignore_missing: boolean
shape_type: IngestShapeType
target_field?: Field
target_field: Field
}
export interface IngestConvertProcessor extends IngestProcessorBase {
field: Field
ignore_missing?: boolean
target_field?: Field
target_field: Field
type: IngestConvertType
}
export type IngestConvertType = 'integer' | 'long' | 'float' | 'double' | 'string' | 'boolean' | 'auto'
export interface IngestCsvProcessor extends IngestProcessorBase {
empty_value?: any
empty_value: any
description?: string
field: Field
ignore_missing?: boolean
quote?: string
separator?: string
target_fields: Fields
trim?: boolean
trim: boolean
}
export interface IngestDateIndexNameProcessor extends IngestProcessorBase {
date_formats: string[]
date_rounding: string
field: Field
index_name_format?: string
index_name_prefix?: string
locale?: string
timezone?: string
index_name_format: string
index_name_prefix: string
locale: string
timezone: string
}
export interface IngestDateProcessor extends IngestProcessorBase {
@ -10870,9 +10799,9 @@ export interface IngestDateProcessor extends IngestProcessorBase {
}
export interface IngestDissectProcessor extends IngestProcessorBase {
append_separator?: string
append_separator: string
field: Field
ignore_missing?: boolean
ignore_missing: boolean
pattern: string
}
@ -10905,18 +10834,18 @@ export interface IngestForeachProcessor extends IngestProcessorBase {
}
export interface IngestGeoIpProcessor extends IngestProcessorBase {
database_file?: string
database_file: string
field: Field
first_only?: boolean
ignore_missing?: boolean
properties?: string[]
target_field?: Field
first_only: boolean
ignore_missing: boolean
properties: string[]
target_field: Field
}
export interface IngestGrokProcessor extends IngestProcessorBase {
field: Field
ignore_missing?: boolean
pattern_definitions?: Record<string, string>
pattern_definitions: Record<string, string>
patterns: string[]
trace_match?: boolean
}
@ -10949,7 +10878,7 @@ export interface IngestInferenceConfigRegression {
export interface IngestInferenceProcessor extends IngestProcessorBase {
model_id: Id
target_field?: Field
target_field: Field
field_map?: Record<Field, any>
inference_config?: IngestInferenceConfig
}
@ -10961,15 +10890,11 @@ export interface IngestJoinProcessor extends IngestProcessorBase {
}
export interface IngestJsonProcessor extends IngestProcessorBase {
add_to_root?: boolean
add_to_root_conflict_strategy?: IngestJsonProcessorConflictStrategy
allow_duplicate_keys?: boolean
add_to_root: boolean
field: Field
target_field?: Field
target_field: Field
}
export type IngestJsonProcessorConflictStrategy = 'replace' | 'merge'
export interface IngestKeyValueProcessor extends IngestProcessorBase {
exclude_keys?: string[]
field: Field
@ -11005,11 +10930,9 @@ export interface IngestPipelineConfig {
export interface IngestPipelineProcessor extends IngestProcessorBase {
name: Name
ignore_missing_pipeline?: boolean
}
export interface IngestProcessorBase {
description?: string
if?: string
ignore_failure?: boolean
on_failure?: IngestProcessorContainer[]
@ -11065,12 +10988,9 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
}
export interface IngestSetProcessor extends IngestProcessorBase {
copy_from?: Field
field: Field
ignore_empty_value?: boolean
media_type?: string
override?: boolean
value?: any
value: any
}
export interface IngestSetSecurityUserProcessor extends IngestProcessorBase {
@ -11082,8 +11002,8 @@ export type IngestShapeType = 'geo_shape' | 'shape'
export interface IngestSortProcessor extends IngestProcessorBase {
field: Field
order?: SortOrder
target_field?: Field
order: SortOrder
target_field: Field
}
export interface IngestSplitProcessor extends IngestProcessorBase {
@ -11114,10 +11034,10 @@ export interface IngestUrlDecodeProcessor extends IngestProcessorBase {
export interface IngestUserAgentProcessor extends IngestProcessorBase {
field: Field
ignore_missing?: boolean
options?: IngestUserAgentProperty[]
regex_file?: string
target_field?: Field
ignore_missing: boolean
options: IngestUserAgentProperty[]
regex_file: string
target_field: Field
}
export type IngestUserAgentProperty = 'NAME' | 'MAJOR' | 'MINOR' | 'PATCH' | 'OS' | 'OS_NAME' | 'OS_MAJOR' | 'OS_MINOR' | 'DEVICE' | 'BUILD'
@ -11190,17 +11110,14 @@ export interface IngestSimulateDocument {
_source: any
}
export interface IngestSimulateDocumentSimulationKeys {
export interface IngestSimulateDocumentSimulation {
_id: Id
_index: IndexName
_ingest: IngestSimulateIngest
_parent?: string
_routing?: string
_source: Record<string, any>
_version?: SpecUtilsStringified<VersionNumber>
_version_type?: VersionType
}
export type IngestSimulateDocumentSimulation = IngestSimulateDocumentSimulationKeys
& { [property: string]: string | Id | IndexName | IngestSimulateIngest | Record<string, any> | SpecUtilsStringified<VersionNumber> | VersionType }
export interface IngestSimulateIngest {
timestamp: DateTime
@ -11294,7 +11211,7 @@ export interface LicensePostAcknowledgement {
export interface LicensePostRequest extends RequestBase {
acknowledge?: boolean
license?: LicenseLicense
licenses?: LicenseLicense[]
licenses: LicenseLicense[]
}
export interface LicensePostResponse {
@ -12596,14 +12513,6 @@ export interface MlZeroShotClassificationInferenceUpdateOptions {
labels: string[]
}
export interface MlClearTrainedModelDeploymentCacheRequest extends RequestBase {
model_id: Id
}
export interface MlClearTrainedModelDeploymentCacheResponse {
cleared: boolean
}
export interface MlCloseJobRequest extends RequestBase {
job_id: Id
allow_no_match?: boolean
@ -15005,7 +14914,7 @@ export interface SecurityFieldRule {
export interface SecurityFieldSecurity {
except?: Fields
grant?: Fields
grant: Fields
}
export interface SecurityGlobalPrivilege {
@ -15076,19 +14985,17 @@ export interface SecurityRoleMappingRule {
except?: SecurityRoleMappingRule
}
export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer
export interface SecurityRoleTemplateInlineScript extends ScriptBase {
lang?: ScriptLanguage
options?: Record<string, string>
source: SecurityRoleTemplateInlineQuery
source: string | QueryDslQueryContainer
}
export interface SecurityRoleTemplateQuery {
template?: SecurityRoleTemplateScript
}
export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId
export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | string | QueryDslQueryContainer | StoredScriptId
export interface SecurityTransientMetadataConfig {
enabled: boolean
@ -15104,14 +15011,6 @@ export interface SecurityUser {
profile_uid?: SecurityUserProfileId
}
export interface SecurityUserIndicesPrivileges {
field_security?: SecurityFieldSecurity[]
names: Indices
privileges: SecurityIndexPrivilege[]
query?: SecurityIndicesPrivilegesQuery[]
allow_restricted_indices: boolean
}
export interface SecurityUserProfile {
uid: SecurityUserProfileId
user: SecurityUserProfileUser
@ -15518,7 +15417,7 @@ export interface SecurityGetUserPrivilegesResponse {
applications: SecurityApplicationPrivileges[]
cluster: string[]
global: SecurityGlobalPrivilege[]
indices: SecurityUserIndicesPrivileges[]
indices: SecurityIndicesPrivileges[]
run_as: string[]
}
@ -15892,7 +15791,7 @@ export type ShutdownPutNodeResponse = AcknowledgedResponseBase
export interface SlmConfiguration {
ignore_unavailable?: boolean
indices?: Indices
indices: Indices
include_global_state?: boolean
feature_states?: string[]
metadata?: Metadata
@ -15912,10 +15811,10 @@ export interface SlmInvocation {
}
export interface SlmPolicy {
config?: SlmConfiguration
config: SlmConfiguration
name: Name
repository: string
retention?: SlmRetention
retention: SlmRetention
schedule: WatcherCronExpression
}
@ -16409,7 +16308,6 @@ export interface SslCertificatesCertificateInformation {
expiry: DateTime
format: string
has_private_key: boolean
issuer?: string
path: string
serial_number: string
subject_dn: string
@ -16615,7 +16513,6 @@ export interface TransformSettings {
deduce_mappings?: boolean
docs_per_second?: float
max_page_search_size?: integer
unattended?: boolean
}
export interface TransformSource {
@ -17589,6 +17486,14 @@ export interface XpackInfoResponse {
tagline: string
}
export interface XpackUsageAllJobs {
count: integer
detectors: Record<string, integer>
created_by: Record<string, string | integer>
model_size: Record<string, integer>
forecasts: Record<string, integer>
}
export interface XpackUsageAnalytics extends XpackUsageBase {
stats: XpackUsageAnalyticsStatistics
}
@ -17730,17 +17635,15 @@ export interface XpackUsageIpFilter {
transport: boolean
}
export interface XpackUsageJobUsage {
count: integer
created_by: Record<string, long>
detectors: MlJobStatistics
forecasts: XpackUsageMlJobForecasts
model_size: MlJobStatistics
export interface XpackUsageJobsKeys {
_all?: XpackUsageAllJobs
}
export type XpackUsageJobs = XpackUsageJobsKeys
& { [property: string]: MlJob | XpackUsageAllJobs }
export interface XpackUsageMachineLearning extends XpackUsageBase {
datafeeds: Record<string, XpackUsageDatafeed>
jobs: Record<string, XpackUsageJobUsage>
jobs: XpackUsageJobs
node_count: integer
data_frame_analytics_jobs: XpackUsageMlDataFrameAnalyticsJobs
inference: XpackUsageMlInference
@ -17813,17 +17716,11 @@ export interface XpackUsageMlInferenceTrainedModelsCount {
total: long
prepackaged: long
other: long
pass_through?: long
regression?: long
classification?: long
ner?: long
}
export interface XpackUsageMlJobForecasts {
total: long
forecasted_jobs: long
}
export interface XpackUsageMonitoring extends XpackUsageBase {
collection_enabled: boolean
enabled_exporters: Record<string, long>

View File

@ -254,7 +254,7 @@ export interface DeleteByQueryResponse {
}
export interface DeleteByQueryRethrottleRequest extends RequestBase {
task_id: TaskId
task_id: Id
requests_per_second?: float
}
@ -361,13 +361,13 @@ export interface FieldCapsRequest extends RequestBase {
index?: Indices
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
fields: Fields
ignore_unavailable?: boolean
include_unmapped?: boolean
filters?: string
types?: string[]
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
body?: {
fields?: Fields
index_filter?: QueryDslQueryContainer
runtime_mappings?: MappingRuntimeFields
}
@ -828,7 +828,7 @@ export interface RankEvalRankEvalRequestItem {
}
export interface RankEvalRequest extends RequestBase {
index?: Indices
index: Indices
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
ignore_unavailable?: boolean
@ -1145,14 +1145,12 @@ export interface SearchAggregationProfileDebug {
filters?: SearchAggregationProfileDelegateDebugFilter[]
segments_counted?: integer
segments_collected?: integer
map_reducer?: string
}
export interface SearchAggregationProfileDelegateDebugFilter {
results_from_metadata?: integer
query?: string
specialized_for?: string
segments_counted_in_constant_time?: integer
}
export type SearchBoundaryScanner = 'chars' | 'sentence' | 'word'
@ -1223,8 +1221,6 @@ export interface SearchFetchProfile {
}
export interface SearchFetchProfileBreakdown {
load_source?: integer
load_source_count?: integer
load_stored_fields?: integer
load_stored_fields_count?: integer
next_reader?: integer
@ -1286,7 +1282,6 @@ export interface SearchHighlightBase {
export interface SearchHighlightField extends SearchHighlightBase {
fragment_offset?: integer
matched_fields?: Fields
analyzer?: AnalysisAnalyzer
}
export type SearchHighlighterEncoder = 'default' | 'html'
@ -1388,9 +1383,8 @@ export interface SearchPhraseSuggestHighlight {
export interface SearchPhraseSuggestOption {
text: string
highlighted: string
score: double
highlighted?: string
collate_match?: boolean
}
export interface SearchPhraseSuggester extends SearchSuggesterBase {
@ -1533,10 +1527,8 @@ export interface SearchTermSuggest extends SearchSuggestBase {
export interface SearchTermSuggestOption {
text: string
score: double
freq: long
highlighted?: string
collate_match?: boolean
score: double
}
export interface SearchTermSuggester extends SearchSuggesterBase {
@ -2001,7 +1993,7 @@ export interface FieldSort {
export type FieldSortNumericType = 'long' | 'double' | 'date' | 'date_nanos'
export type FieldValue = long | double | string | boolean | null | any
export type FieldValue = long | double | string | boolean | any
export interface FielddataStats {
evictions?: long
@ -2043,8 +2035,6 @@ export interface GeoHashLocation {
export type GeoHashPrecision = number | string
export type GeoHexCell = string
export interface GeoLine {
type: string
coordinates: double[][]
@ -2207,11 +2197,10 @@ export interface NestedSortValue {
export interface NodeAttributes {
attributes: Record<string, string>
ephemeral_id: Id
id?: NodeId
id?: Id
name: NodeName
transport_address: TransportAddress
roles?: NodeRoles
external_id: string
}
export type NodeId = string
@ -2344,7 +2333,7 @@ export interface ScriptSort {
nested?: NestedSortValue
}
export type ScriptSortType = 'string' | 'number' | 'version'
export type ScriptSortType = 'string' | 'number'
export interface ScriptTransform {
lang?: string
@ -2438,7 +2427,7 @@ export interface ShardsOperationResponseBase {
export interface SlicedScroll {
field?: Field
id: Id
id: integer
max: integer
}
@ -2463,7 +2452,7 @@ export type SortOptions = SortOptionsKeys
export type SortOrder = 'asc' | 'desc'
export type SortResults = FieldValue[]
export type SortResults = (long | double | string | null)[]
export interface StoreStats {
size?: ByteSize
@ -2603,12 +2592,11 @@ export interface AggregationsAdjacencyMatrixAggregation extends AggregationsBuck
}
export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMultiBucketBase {
key: string
}
export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys
& { [property: string]: AggregationsAggregate | string | long }
& { [property: string]: AggregationsAggregate | long }
export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate
export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate
export interface AggregationsAggregateBase {
meta?: Metadata
@ -2659,7 +2647,6 @@ export interface AggregationsAggregationContainer {
global?: AggregationsGlobalAggregation
histogram?: AggregationsHistogramAggregation
ip_range?: AggregationsIpRangeAggregation
ip_prefix?: AggregationsIpPrefixAggregation
inference?: AggregationsInferenceAggregation
line?: AggregationsGeoLineAggregation
matrix_stats?: AggregationsMatrixStatsAggregation
@ -2858,13 +2845,11 @@ export interface AggregationsChildrenAggregation extends AggregationsBucketAggre
}
export interface AggregationsCompositeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsCompositeBucket> {
after_key?: AggregationsCompositeAggregateKey
after_key?: Record<string, any>
}
export type AggregationsCompositeAggregateKey = Record<Field, FieldValue>
export interface AggregationsCompositeAggregation extends AggregationsBucketAggregationBase {
after?: AggregationsCompositeAggregateKey
after?: Record<string, string | float | null>
size?: integer
sources?: Record<string, AggregationsCompositeAggregationSource>[]
}
@ -2877,10 +2862,10 @@ export interface AggregationsCompositeAggregationSource {
}
export interface AggregationsCompositeBucketKeys extends AggregationsMultiBucketBase {
key: AggregationsCompositeAggregateKey
key: Record<string, any>
}
export type AggregationsCompositeBucket = AggregationsCompositeBucketKeys
& { [property: string]: AggregationsAggregate | AggregationsCompositeAggregateKey | long }
& { [property: string]: AggregationsAggregate | Record<string, any> | long }
export interface AggregationsCumulativeCardinalityAggregate extends AggregationsAggregateBase {
value: long
@ -2991,8 +2976,6 @@ export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAgg
variance_population: double | null
variance_sampling: double | null
std_deviation: double | null
std_deviation_population: double | null
std_deviation_sampling: double | null
std_deviation_bounds?: AggregationsStandardDeviationBounds
sum_of_squares_as_string?: string
variance_as_string?: string
@ -3043,7 +3026,7 @@ export interface AggregationsFormattableMetricAggregation extends AggregationsMe
format?: string
}
export type AggregationsGapPolicy = 'skip' | 'insert_zeros' | 'keep_values'
export type AggregationsGapPolicy = 'skip' | 'insert_zeros'
export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
bounds?: GeoBounds
@ -3091,19 +3074,9 @@ export interface AggregationsGeoHashGridBucketKeys extends AggregationsMultiBuck
export type AggregationsGeoHashGridBucket = AggregationsGeoHashGridBucketKeys
& { [property: string]: AggregationsAggregate | GeoHash | long }
export interface AggregationsGeoHexGridAggregate extends AggregationsMultiBucketAggregateBase<AggregationsGeoHexGridBucket> {
}
export interface AggregationsGeoHexGridBucketKeys extends AggregationsMultiBucketBase {
key: GeoHexCell
}
export type AggregationsGeoHexGridBucket = AggregationsGeoHexGridBucketKeys
& { [property: string]: AggregationsAggregate | GeoHexCell | long }
export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase {
type: string
geometry: GeoLine
properties: any
}
export interface AggregationsGeoLineAggregation {
@ -3255,27 +3228,6 @@ export interface AggregationsInferenceTopClassEntry {
class_score: double
}
export interface AggregationsIpPrefixAggregate extends AggregationsMultiBucketAggregateBase<AggregationsIpPrefixBucket> {
}
export interface AggregationsIpPrefixAggregation extends AggregationsBucketAggregationBase {
field: Field
prefix_length: integer
is_ipv6?: boolean
append_prefix_length?: boolean
keyed?: boolean
min_doc_count?: long
}
export interface AggregationsIpPrefixBucketKeys extends AggregationsMultiBucketBase {
is_ipv6: boolean
key: string
prefix_length: integer
netmask?: string
}
export type AggregationsIpPrefixBucket = AggregationsIpPrefixBucketKeys
& { [property: string]: AggregationsAggregate | boolean | string | integer | long }
export interface AggregationsIpRangeAggregate extends AggregationsMultiBucketAggregateBase<AggregationsIpRangeBucket> {
}
@ -3291,7 +3243,6 @@ export interface AggregationsIpRangeAggregationRange {
}
export interface AggregationsIpRangeBucketKeys extends AggregationsMultiBucketBase {
key?: string
from?: string
to?: string
}
@ -3444,12 +3395,12 @@ export interface AggregationsMultiTermsAggregation extends AggregationsBucketAgg
}
export interface AggregationsMultiTermsBucketKeys extends AggregationsMultiBucketBase {
key: FieldValue[]
key: (long | double | string)[]
key_as_string?: string
doc_count_error_upper_bound?: long
}
export type AggregationsMultiTermsBucket = AggregationsMultiTermsBucketKeys
& { [property: string]: AggregationsAggregate | FieldValue[] | string | long }
& { [property: string]: AggregationsAggregate | (long | double | string)[] | string | long }
export interface AggregationsMutualInformationHeuristic {
background_is_superset?: boolean
@ -3599,7 +3550,7 @@ export interface AggregationsSerialDifferencingAggregation extends AggregationsP
lag?: integer
}
export interface AggregationsSignificantLongTermsAggregate extends AggregationsSignificantTermsAggregateBase<AggregationsSignificantLongTermsBucket> {
export interface AggregationsSignificantLongTermsAggregate extends AggregationsMultiBucketAggregateBase<AggregationsSignificantLongTermsBucket> {
}
export interface AggregationsSignificantLongTermsBucketKeys extends AggregationsSignificantTermsBucketBase {
@ -3609,7 +3560,7 @@ export interface AggregationsSignificantLongTermsBucketKeys extends Aggregations
export type AggregationsSignificantLongTermsBucket = AggregationsSignificantLongTermsBucketKeys
& { [property: string]: AggregationsAggregate | long | string | double }
export interface AggregationsSignificantStringTermsAggregate extends AggregationsSignificantTermsAggregateBase<AggregationsSignificantStringTermsBucket> {
export interface AggregationsSignificantStringTermsAggregate extends AggregationsMultiBucketAggregateBase<AggregationsSignificantStringTermsBucket> {
}
export interface AggregationsSignificantStringTermsBucketKeys extends AggregationsSignificantTermsBucketBase {
@ -3618,11 +3569,6 @@ export interface AggregationsSignificantStringTermsBucketKeys extends Aggregatio
export type AggregationsSignificantStringTermsBucket = AggregationsSignificantStringTermsBucketKeys
& { [property: string]: AggregationsAggregate | string | double | long }
export interface AggregationsSignificantTermsAggregateBase<T = unknown> extends AggregationsMultiBucketAggregateBase<T> {
bg_count?: long
doc_count?: long
}
export interface AggregationsSignificantTermsAggregation extends AggregationsBucketAggregationBase {
background_filter?: QueryDslQueryContainer
chi_square?: AggregationsChiSquareHeuristic
@ -3751,10 +3697,10 @@ export interface AggregationsStringTermsAggregate extends AggregationsTermsAggre
}
export interface AggregationsStringTermsBucketKeys extends AggregationsTermsBucketBase {
key: FieldValue
key: string
}
export type AggregationsStringTermsBucket = AggregationsStringTermsBucketKeys
& { [property: string]: AggregationsAggregate | FieldValue | long }
& { [property: string]: AggregationsAggregate | string | long }
export interface AggregationsSumAggregate extends AggregationsSingleMetricAggregateBase {
}
@ -3790,7 +3736,7 @@ export type AggregationsTTestType = 'paired' | 'homoscedastic' | 'heteroscedasti
export interface AggregationsTermsAggregateBase<TBucket = unknown> extends AggregationsMultiBucketAggregateBase<TBucket> {
doc_count_error_upper_bound?: long
sum_other_doc_count?: long
sum_other_doc_count: long
}
export interface AggregationsTermsAggregation extends AggregationsBucketAggregationBase {
@ -3881,7 +3827,7 @@ export interface AggregationsUnmappedSamplerAggregateKeys extends AggregationsSi
export type AggregationsUnmappedSamplerAggregate = AggregationsUnmappedSamplerAggregateKeys
& { [property: string]: AggregationsAggregate | long | Metadata }
export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsSignificantTermsAggregateBase<void> {
export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsMultiBucketAggregateBase<void> {
}
export interface AggregationsUnmappedTermsAggregate extends AggregationsTermsAggregateBase<void> {
@ -4562,7 +4508,6 @@ export interface MappingAggregateMetricDoubleProperty extends MappingPropertyBas
type: 'aggregate_metric_double'
default_metric: string
metrics: string[]
time_series_metric?: MappingTimeSeriesMetricType
}
export interface MappingAllField {
@ -4590,7 +4535,7 @@ export interface MappingBooleanProperty extends MappingDocValuesPropertyBase {
type: 'boolean'
}
export interface MappingByteNumberProperty extends MappingNumberPropertyBase {
export interface MappingByteNumberProperty extends MappingStandardNumberProperty {
type: 'byte'
null_value?: byte
}
@ -4665,7 +4610,7 @@ export interface MappingDocValuesPropertyBase extends MappingCorePropertyBase {
doc_values?: boolean
}
export interface MappingDoubleNumberProperty extends MappingNumberPropertyBase {
export interface MappingDoubleNumberProperty extends MappingStandardNumberProperty {
type: 'double'
null_value?: double
}
@ -4741,7 +4686,7 @@ export interface MappingFlattenedProperty extends MappingPropertyBase {
type: 'flattened'
}
export interface MappingFloatNumberProperty extends MappingNumberPropertyBase {
export interface MappingFloatNumberProperty extends MappingStandardNumberProperty {
type: 'float'
null_value?: float
}
@ -4770,7 +4715,7 @@ export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
export type MappingGeoStrategy = 'recursive' | 'term'
export interface MappingHalfFloatNumberProperty extends MappingNumberPropertyBase {
export interface MappingHalfFloatNumberProperty extends MappingStandardNumberProperty {
type: 'half_float'
null_value?: float
}
@ -4786,7 +4731,7 @@ export interface MappingIndexField {
export type MappingIndexOptions = 'docs' | 'freqs' | 'positions' | 'offsets'
export interface MappingIntegerNumberProperty extends MappingNumberPropertyBase {
export interface MappingIntegerNumberProperty extends MappingStandardNumberProperty {
type: 'integer'
null_value?: integer
}
@ -4798,11 +4743,8 @@ export interface MappingIntegerRangeProperty extends MappingRangePropertyBase {
export interface MappingIpProperty extends MappingDocValuesPropertyBase {
boost?: double
index?: boolean
ignore_malformed?: boolean
null_value?: string
on_script_error?: MappingOnScriptError
script?: Script
time_series_dimension?: boolean
ignore_malformed?: boolean
type: 'ip'
}
@ -4812,7 +4754,6 @@ export interface MappingIpRangeProperty extends MappingRangePropertyBase {
export interface MappingJoinProperty extends MappingPropertyBase {
relations?: Record<RelationName, RelationName | RelationName[]>
eager_global_ordinals?: boolean
type: 'join'
}
@ -4829,7 +4770,7 @@ export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
type: 'keyword'
}
export interface MappingLongNumberProperty extends MappingNumberPropertyBase {
export interface MappingLongNumberProperty extends MappingStandardNumberProperty {
type: 'long'
null_value?: long
}
@ -4859,14 +4800,9 @@ export interface MappingNestedProperty extends MappingCorePropertyBase {
}
export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase {
boost?: double
coerce?: boolean
ignore_malformed?: boolean
index?: boolean
on_script_error?: MappingOnScriptError
script?: Script
ignore_malformed?: boolean
time_series_metric?: MappingTimeSeriesMetricType
time_series_dimension?: boolean
}
export interface MappingObjectProperty extends MappingCorePropertyBase {
@ -4929,6 +4865,7 @@ export type MappingRuntimeFields = Record<Field, MappingRuntimeField>
export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
type: 'scaled_float'
coerce?: boolean
null_value?: double
scaling_factor?: double
}
@ -4953,7 +4890,7 @@ export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
type: 'shape'
}
export interface MappingShortNumberProperty extends MappingNumberPropertyBase {
export interface MappingShortNumberProperty extends MappingStandardNumberProperty {
type: 'short'
null_value?: short
}
@ -4968,10 +4905,13 @@ export interface MappingSourceField {
enabled?: boolean
excludes?: string[]
includes?: string[]
mode?: MappingSourceFieldMode
}
export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic'
export interface MappingStandardNumberProperty extends MappingNumberPropertyBase {
coerce?: boolean
script?: Script
on_script_error?: MappingOnScriptError
}
export interface MappingSuggestContext {
name: Name
@ -8719,19 +8659,22 @@ export interface DanglingIndicesListDanglingIndicesResponse {
dangling_indices: DanglingIndicesListDanglingIndicesDanglingIndex[]
}
export interface EnrichConfiguration {
geo_match?: EnrichPolicy
match: EnrichPolicy
range: EnrichPolicy
}
export interface EnrichPolicy {
enrich_fields: Fields
indices: Indices
match_field: Field
query?: string
name?: Name
elasticsearch_version?: string
}
export type EnrichPolicyType = 'geo_match' | 'match' | 'range'
export interface EnrichSummary {
config: Partial<Record<EnrichPolicyType, EnrichPolicy>>
config: EnrichConfiguration
}
export interface EnrichDeletePolicyRequest extends RequestBase {
@ -8923,7 +8866,7 @@ export interface FleetGlobalCheckpointsResponse {
}
export interface FleetMsearchRequest extends RequestBase {
index?: IndexName | IndexAlias
index: IndexName | IndexAlias
allow_no_indices?: boolean
ccs_minimize_roundtrips?: boolean
expand_wildcards?: ExpandWildcards
@ -9339,10 +9282,6 @@ export interface IndicesDataStreamVisibility {
hidden?: boolean
}
export interface IndicesDownsampleConfig {
fixed_interval: DurationLarge
}
export interface IndicesFielddataFrequencyFilter {
max: double
min: double
@ -9519,7 +9458,6 @@ export interface IndicesIndexTemplateSummary {
export interface IndicesIndexVersioning {
created?: VersionString
created_string?: string
}
export interface IndicesIndexingPressure {
@ -9531,7 +9469,6 @@ export interface IndicesIndexingPressureMemory {
}
export interface IndicesMappingLimitSettings {
coerce?: boolean
total_fields?: IndicesMappingLimitSettingsTotalFields
depth?: IndicesMappingLimitSettingsDepth
nested_fields?: IndicesMappingLimitSettingsNestedFields
@ -9626,7 +9563,7 @@ export interface IndicesSettingsSimilarity {
}
export interface IndicesSettingsSimilarityBm25 {
b: double
b: integer
discount_overlaps: boolean
k1: double
type: 'BM25'
@ -9975,7 +9912,7 @@ export interface IndicesDownsampleRequest extends RequestBase {
index: IndexName
target_index: IndexName
/** @deprecated The use of the 'body' key has been deprecated, use 'config' instead. */
body?: IndicesDownsampleConfig
body?: any
}
export type IndicesDownsampleResponse = any
@ -10097,11 +10034,7 @@ export interface IndicesForcemergeRequest extends RequestBase {
wait_for_completion?: boolean
}
export type IndicesForcemergeResponse = IndicesForcemergeForceMergeResponseBody
export interface IndicesForcemergeForceMergeResponseBody extends ShardsOperationResponseBase {
task?: string
}
export type IndicesForcemergeResponse = ShardsOperationResponseBase
export type IndicesGetFeature = 'aliases' | 'mappings' | 'settings'
@ -10552,18 +10485,13 @@ export interface IndicesRolloverResponse {
}
export interface IndicesRolloverRolloverConditions {
min_age?: Duration
max_age?: Duration
max_age_millis?: DurationValue<UnitMillis>
min_docs?: long
max_docs?: long
max_size?: ByteSize
min_size?: ByteSize
max_size?: string
max_size_bytes?: ByteSize
max_primary_shard_size?: ByteSize
min_primary_shard_size?: ByteSize
max_primary_shard_docs?: long
min_primary_shard_docs?: long
max_primary_shard_size_bytes?: ByteSize
}
export interface IndicesSegmentsIndexSegment {
@ -10995,38 +10923,39 @@ export interface IngestBytesProcessor extends IngestProcessorBase {
export interface IngestCircleProcessor extends IngestProcessorBase {
error_distance: double
field: Field
ignore_missing?: boolean
ignore_missing: boolean
shape_type: IngestShapeType
target_field?: Field
target_field: Field
}
export interface IngestConvertProcessor extends IngestProcessorBase {
field: Field
ignore_missing?: boolean
target_field?: Field
target_field: Field
type: IngestConvertType
}
export type IngestConvertType = 'integer' | 'long' | 'float' | 'double' | 'string' | 'boolean' | 'auto'
export interface IngestCsvProcessor extends IngestProcessorBase {
empty_value?: any
empty_value: any
description?: string
field: Field
ignore_missing?: boolean
quote?: string
separator?: string
target_fields: Fields
trim?: boolean
trim: boolean
}
export interface IngestDateIndexNameProcessor extends IngestProcessorBase {
date_formats: string[]
date_rounding: string
field: Field
index_name_format?: string
index_name_prefix?: string
locale?: string
timezone?: string
index_name_format: string
index_name_prefix: string
locale: string
timezone: string
}
export interface IngestDateProcessor extends IngestProcessorBase {
@ -11038,9 +10967,9 @@ export interface IngestDateProcessor extends IngestProcessorBase {
}
export interface IngestDissectProcessor extends IngestProcessorBase {
append_separator?: string
append_separator: string
field: Field
ignore_missing?: boolean
ignore_missing: boolean
pattern: string
}
@ -11073,18 +11002,18 @@ export interface IngestForeachProcessor extends IngestProcessorBase {
}
export interface IngestGeoIpProcessor extends IngestProcessorBase {
database_file?: string
database_file: string
field: Field
first_only?: boolean
ignore_missing?: boolean
properties?: string[]
target_field?: Field
first_only: boolean
ignore_missing: boolean
properties: string[]
target_field: Field
}
export interface IngestGrokProcessor extends IngestProcessorBase {
field: Field
ignore_missing?: boolean
pattern_definitions?: Record<string, string>
pattern_definitions: Record<string, string>
patterns: string[]
trace_match?: boolean
}
@ -11117,7 +11046,7 @@ export interface IngestInferenceConfigRegression {
export interface IngestInferenceProcessor extends IngestProcessorBase {
model_id: Id
target_field?: Field
target_field: Field
field_map?: Record<Field, any>
inference_config?: IngestInferenceConfig
}
@ -11129,15 +11058,11 @@ export interface IngestJoinProcessor extends IngestProcessorBase {
}
export interface IngestJsonProcessor extends IngestProcessorBase {
add_to_root?: boolean
add_to_root_conflict_strategy?: IngestJsonProcessorConflictStrategy
allow_duplicate_keys?: boolean
add_to_root: boolean
field: Field
target_field?: Field
target_field: Field
}
export type IngestJsonProcessorConflictStrategy = 'replace' | 'merge'
export interface IngestKeyValueProcessor extends IngestProcessorBase {
exclude_keys?: string[]
field: Field
@ -11173,11 +11098,9 @@ export interface IngestPipelineConfig {
export interface IngestPipelineProcessor extends IngestProcessorBase {
name: Name
ignore_missing_pipeline?: boolean
}
export interface IngestProcessorBase {
description?: string
if?: string
ignore_failure?: boolean
on_failure?: IngestProcessorContainer[]
@ -11233,12 +11156,9 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
}
export interface IngestSetProcessor extends IngestProcessorBase {
copy_from?: Field
field: Field
ignore_empty_value?: boolean
media_type?: string
override?: boolean
value?: any
value: any
}
export interface IngestSetSecurityUserProcessor extends IngestProcessorBase {
@ -11250,8 +11170,8 @@ export type IngestShapeType = 'geo_shape' | 'shape'
export interface IngestSortProcessor extends IngestProcessorBase {
field: Field
order?: SortOrder
target_field?: Field
order: SortOrder
target_field: Field
}
export interface IngestSplitProcessor extends IngestProcessorBase {
@ -11282,10 +11202,10 @@ export interface IngestUrlDecodeProcessor extends IngestProcessorBase {
export interface IngestUserAgentProcessor extends IngestProcessorBase {
field: Field
ignore_missing?: boolean
options?: IngestUserAgentProperty[]
regex_file?: string
target_field?: Field
ignore_missing: boolean
options: IngestUserAgentProperty[]
regex_file: string
target_field: Field
}
export type IngestUserAgentProperty = 'NAME' | 'MAJOR' | 'MINOR' | 'PATCH' | 'OS' | 'OS_NAME' | 'OS_MAJOR' | 'OS_MINOR' | 'DEVICE' | 'BUILD'
@ -11361,17 +11281,14 @@ export interface IngestSimulateDocument {
_source: any
}
export interface IngestSimulateDocumentSimulationKeys {
export interface IngestSimulateDocumentSimulation {
_id: Id
_index: IndexName
_ingest: IngestSimulateIngest
_parent?: string
_routing?: string
_source: Record<string, any>
_version?: SpecUtilsStringified<VersionNumber>
_version_type?: VersionType
}
export type IngestSimulateDocumentSimulation = IngestSimulateDocumentSimulationKeys
& { [property: string]: string | Id | IndexName | IngestSimulateIngest | Record<string, any> | SpecUtilsStringified<VersionNumber> | VersionType }
export interface IngestSimulateIngest {
timestamp: DateTime
@ -11470,7 +11387,7 @@ export interface LicensePostRequest extends RequestBase {
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
body?: {
license?: LicenseLicense
licenses?: LicenseLicense[]
licenses: LicenseLicense[]
}
}
@ -12774,14 +12691,6 @@ export interface MlZeroShotClassificationInferenceUpdateOptions {
labels: string[]
}
export interface MlClearTrainedModelDeploymentCacheRequest extends RequestBase {
model_id: Id
}
export interface MlClearTrainedModelDeploymentCacheResponse {
cleared: boolean
}
export interface MlCloseJobRequest extends RequestBase {
job_id: Id
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
@ -15306,7 +15215,7 @@ export interface SecurityFieldRule {
export interface SecurityFieldSecurity {
except?: Fields
grant?: Fields
grant: Fields
}
export interface SecurityGlobalPrivilege {
@ -15377,19 +15286,17 @@ export interface SecurityRoleMappingRule {
except?: SecurityRoleMappingRule
}
export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer
export interface SecurityRoleTemplateInlineScript extends ScriptBase {
lang?: ScriptLanguage
options?: Record<string, string>
source: SecurityRoleTemplateInlineQuery
source: string | QueryDslQueryContainer
}
export interface SecurityRoleTemplateQuery {
template?: SecurityRoleTemplateScript
}
export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId
export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | string | QueryDslQueryContainer | StoredScriptId
export interface SecurityTransientMetadataConfig {
enabled: boolean
@ -15405,14 +15312,6 @@ export interface SecurityUser {
profile_uid?: SecurityUserProfileId
}
export interface SecurityUserIndicesPrivileges {
field_security?: SecurityFieldSecurity[]
names: Indices
privileges: SecurityIndexPrivilege[]
query?: SecurityIndicesPrivilegesQuery[]
allow_restricted_indices: boolean
}
export interface SecurityUserProfile {
uid: SecurityUserProfileId
user: SecurityUserProfileUser
@ -15831,7 +15730,7 @@ export interface SecurityGetUserPrivilegesResponse {
applications: SecurityApplicationPrivileges[]
cluster: string[]
global: SecurityGlobalPrivilege[]
indices: SecurityUserIndicesPrivileges[]
indices: SecurityIndicesPrivileges[]
run_as: string[]
}
@ -16261,7 +16160,7 @@ export type ShutdownPutNodeResponse = AcknowledgedResponseBase
export interface SlmConfiguration {
ignore_unavailable?: boolean
indices?: Indices
indices: Indices
include_global_state?: boolean
feature_states?: string[]
metadata?: Metadata
@ -16281,10 +16180,10 @@ export interface SlmInvocation {
}
export interface SlmPolicy {
config?: SlmConfiguration
config: SlmConfiguration
name: Name
repository: string
retention?: SlmRetention
retention: SlmRetention
schedule: WatcherCronExpression
}
@ -16802,7 +16701,6 @@ export interface SslCertificatesCertificateInformation {
expiry: DateTime
format: string
has_private_key: boolean
issuer?: string
path: string
serial_number: string
subject_dn: string
@ -17009,7 +16907,6 @@ export interface TransformSettings {
deduce_mappings?: boolean
docs_per_second?: float
max_page_search_size?: integer
unattended?: boolean
}
export interface TransformSource {
@ -18001,6 +17898,14 @@ export interface XpackInfoResponse {
tagline: string
}
export interface XpackUsageAllJobs {
count: integer
detectors: Record<string, integer>
created_by: Record<string, string | integer>
model_size: Record<string, integer>
forecasts: Record<string, integer>
}
export interface XpackUsageAnalytics extends XpackUsageBase {
stats: XpackUsageAnalyticsStatistics
}
@ -18142,17 +18047,15 @@ export interface XpackUsageIpFilter {
transport: boolean
}
export interface XpackUsageJobUsage {
count: integer
created_by: Record<string, long>
detectors: MlJobStatistics
forecasts: XpackUsageMlJobForecasts
model_size: MlJobStatistics
export interface XpackUsageJobsKeys {
_all?: XpackUsageAllJobs
}
export type XpackUsageJobs = XpackUsageJobsKeys
& { [property: string]: MlJob | XpackUsageAllJobs }
export interface XpackUsageMachineLearning extends XpackUsageBase {
datafeeds: Record<string, XpackUsageDatafeed>
jobs: Record<string, XpackUsageJobUsage>
jobs: XpackUsageJobs
node_count: integer
data_frame_analytics_jobs: XpackUsageMlDataFrameAnalyticsJobs
inference: XpackUsageMlInference
@ -18225,17 +18128,11 @@ export interface XpackUsageMlInferenceTrainedModelsCount {
total: long
prepackaged: long
other: long
pass_through?: long
regression?: long
classification?: long
ner?: long
}
export interface XpackUsageMlJobForecasts {
total: long
forecasted_jobs: long
}
export interface XpackUsageMonitoring extends XpackUsageBase {
collection_enabled: boolean
enabled_exporters: Record<string, long>