Types: move query keys to body (#1693)
This commit is contained in:
committed by
GitHub
parent
ba2955947e
commit
5603482c43
@ -130,7 +130,8 @@ export default class AsyncSearch {
|
|||||||
if (acceptedBody.includes(key)) {
|
if (acceptedBody.includes(key)) {
|
||||||
body = body ?? {}
|
body = body ?? {}
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
if (key === 'sort' && typeof params[key] === 'string' && params[key].includes(':')) {
|
if (key === 'sort' && typeof params[key] === 'string' && params[key].includes(':')) { // eslint-disable-line
|
||||||
|
// @ts-expect-error
|
||||||
querystring[key] = params[key]
|
querystring[key] = params[key]
|
||||||
} else {
|
} else {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|||||||
@ -58,7 +58,8 @@ export default async function SearchApi<TDocument = unknown, TAggregations = Rec
|
|||||||
if (acceptedBody.includes(key)) {
|
if (acceptedBody.includes(key)) {
|
||||||
body = body ?? {}
|
body = body ?? {}
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
if (key === 'sort' && typeof params[key] === 'string' && params[key].includes(':')) {
|
if (key === 'sort' && typeof params[key] === 'string' && params[key].includes(':')) { // eslint-disable-line
|
||||||
|
// @ts-expect-error
|
||||||
querystring[key] = params[key]
|
querystring[key] = params[key]
|
||||||
} else {
|
} else {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|||||||
136
src/api/types.ts
136
src/api/types.ts
@ -196,7 +196,6 @@ export interface DeleteByQueryRequest extends RequestBase {
|
|||||||
from?: long
|
from?: long
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
max_docs?: long
|
|
||||||
preference?: string
|
preference?: string
|
||||||
refresh?: boolean
|
refresh?: boolean
|
||||||
request_cache?: boolean
|
request_cache?: boolean
|
||||||
@ -215,6 +214,7 @@ export interface DeleteByQueryRequest extends RequestBase {
|
|||||||
version?: boolean
|
version?: boolean
|
||||||
wait_for_active_shards?: WaitForActiveShards
|
wait_for_active_shards?: WaitForActiveShards
|
||||||
wait_for_completion?: boolean
|
wait_for_completion?: boolean
|
||||||
|
max_docs?: long
|
||||||
query?: QueryDslQueryContainer
|
query?: QueryDslQueryContainer
|
||||||
slice?: SlicedScroll
|
slice?: SlicedScroll
|
||||||
}
|
}
|
||||||
@ -636,7 +636,6 @@ export interface MtermvectorsOperation {
|
|||||||
|
|
||||||
export interface MtermvectorsRequest extends RequestBase {
|
export interface MtermvectorsRequest extends RequestBase {
|
||||||
index?: IndexName
|
index?: IndexName
|
||||||
ids?: Id[]
|
|
||||||
fields?: Fields
|
fields?: Fields
|
||||||
field_statistics?: boolean
|
field_statistics?: boolean
|
||||||
offsets?: boolean
|
offsets?: boolean
|
||||||
@ -649,6 +648,7 @@ export interface MtermvectorsRequest extends RequestBase {
|
|||||||
version?: VersionNumber
|
version?: VersionNumber
|
||||||
version_type?: VersionType
|
version_type?: VersionType
|
||||||
docs?: MtermvectorsOperation[]
|
docs?: MtermvectorsOperation[]
|
||||||
|
ids?: Id[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MtermvectorsResponse {
|
export interface MtermvectorsResponse {
|
||||||
@ -914,8 +914,8 @@ export interface ScriptsPainlessExecuteResponse<TResult = unknown> {
|
|||||||
|
|
||||||
export interface ScrollRequest extends RequestBase {
|
export interface ScrollRequest extends RequestBase {
|
||||||
scroll_id?: ScrollId
|
scroll_id?: ScrollId
|
||||||
scroll?: Time
|
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
|
scroll?: Time
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ScrollResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = SearchResponseBody<TDocument, TAggregations>
|
export type ScrollResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = SearchResponseBody<TDocument, TAggregations>
|
||||||
@ -930,9 +930,7 @@ export interface SearchRequest extends RequestBase {
|
|||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
docvalue_fields?: Fields
|
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
@ -944,32 +942,24 @@ export interface SearchRequest extends RequestBase {
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
stats?: string[]
|
|
||||||
stored_fields?: Fields
|
|
||||||
suggest_field?: Field
|
suggest_field?: Field
|
||||||
suggest_mode?: SuggestMode
|
suggest_mode?: SuggestMode
|
||||||
suggest_size?: long
|
suggest_size?: long
|
||||||
suggest_text?: string
|
suggest_text?: string
|
||||||
terminate_after?: long
|
|
||||||
timeout?: Time
|
|
||||||
track_total_hits?: SearchTrackHits
|
|
||||||
track_scores?: boolean
|
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
version?: boolean
|
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
seq_no_primary_term?: boolean
|
|
||||||
q?: string
|
q?: string
|
||||||
size?: integer
|
|
||||||
from?: integer
|
|
||||||
sort?: string | string[]
|
|
||||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||||
aggs?: Record<string, AggregationsAggregationContainer>
|
aggs?: Record<string, AggregationsAggregationContainer>
|
||||||
collapse?: SearchFieldCollapse
|
collapse?: SearchFieldCollapse
|
||||||
|
explain?: boolean
|
||||||
|
from?: integer
|
||||||
highlight?: SearchHighlight
|
highlight?: SearchHighlight
|
||||||
|
track_total_hits?: SearchTrackHits
|
||||||
indices_boost?: Record<IndexName, double>[]
|
indices_boost?: Record<IndexName, double>[]
|
||||||
|
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
|
||||||
min_score?: double
|
min_score?: double
|
||||||
post_filter?: QueryDslQueryContainer
|
post_filter?: QueryDslQueryContainer
|
||||||
profile?: boolean
|
profile?: boolean
|
||||||
@ -977,11 +967,21 @@ export interface SearchRequest extends RequestBase {
|
|||||||
rescore?: SearchRescore | SearchRescore[]
|
rescore?: SearchRescore | SearchRescore[]
|
||||||
script_fields?: Record<string, ScriptField>
|
script_fields?: Record<string, ScriptField>
|
||||||
search_after?: SortResults
|
search_after?: SortResults
|
||||||
|
size?: integer
|
||||||
slice?: SlicedScroll
|
slice?: SlicedScroll
|
||||||
|
sort?: Sort
|
||||||
|
_source?: SearchSourceConfig
|
||||||
fields?: (QueryDslFieldAndFormat | Field)[]
|
fields?: (QueryDslFieldAndFormat | Field)[]
|
||||||
suggest?: SearchSuggester
|
suggest?: SearchSuggester
|
||||||
|
terminate_after?: long
|
||||||
|
timeout?: string
|
||||||
|
track_scores?: boolean
|
||||||
|
version?: boolean
|
||||||
|
seq_no_primary_term?: boolean
|
||||||
|
stored_fields?: Fields
|
||||||
pit?: SearchPointInTimeReference
|
pit?: SearchPointInTimeReference
|
||||||
runtime_mappings?: MappingRuntimeFields
|
runtime_mappings?: MappingRuntimeFields
|
||||||
|
stats?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SearchResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = SearchResponseBody<TDocument, TAggregations>
|
export type SearchResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = SearchResponseBody<TDocument, TAggregations>
|
||||||
@ -1484,15 +1484,15 @@ export interface SearchMvtRequest extends RequestBase {
|
|||||||
zoom: SearchMvtZoomLevel
|
zoom: SearchMvtZoomLevel
|
||||||
x: SearchMvtCoordinate
|
x: SearchMvtCoordinate
|
||||||
y: SearchMvtCoordinate
|
y: SearchMvtCoordinate
|
||||||
|
aggs?: Record<string, AggregationsAggregationContainer>
|
||||||
exact_bounds?: boolean
|
exact_bounds?: boolean
|
||||||
extent?: integer
|
extent?: integer
|
||||||
|
fields?: Fields
|
||||||
grid_precision?: integer
|
grid_precision?: integer
|
||||||
grid_type?: SearchMvtGridType
|
grid_type?: SearchMvtGridType
|
||||||
size?: integer
|
|
||||||
aggs?: Record<string, AggregationsAggregationContainer>
|
|
||||||
fields?: Fields
|
|
||||||
query?: QueryDslQueryContainer
|
query?: QueryDslQueryContainer
|
||||||
runtime_mappings?: MappingRuntimeFields
|
runtime_mappings?: MappingRuntimeFields
|
||||||
|
size?: integer
|
||||||
sort?: Sort
|
sort?: Sort
|
||||||
track_total_hits?: SearchTrackHits
|
track_total_hits?: SearchTrackHits
|
||||||
}
|
}
|
||||||
@ -1531,18 +1531,18 @@ export interface SearchTemplateRequest extends RequestBase {
|
|||||||
allow_no_indices?: boolean
|
allow_no_indices?: boolean
|
||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
preference?: string
|
preference?: string
|
||||||
profile?: boolean
|
|
||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
|
explain?: boolean
|
||||||
id?: Id
|
id?: Id
|
||||||
params?: Record<string, any>
|
params?: Record<string, any>
|
||||||
|
profile?: boolean
|
||||||
source?: string
|
source?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1656,7 +1656,6 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
timeout?: Time
|
timeout?: Time
|
||||||
wait_for_active_shards?: WaitForActiveShards
|
wait_for_active_shards?: WaitForActiveShards
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
detect_noop?: boolean
|
detect_noop?: boolean
|
||||||
@ -1664,6 +1663,7 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
|
|||||||
doc_as_upsert?: boolean
|
doc_as_upsert?: boolean
|
||||||
script?: Script
|
script?: Script
|
||||||
scripted_upsert?: boolean
|
scripted_upsert?: boolean
|
||||||
|
_source?: SearchSourceConfig
|
||||||
upsert?: TDocument
|
upsert?: TDocument
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1678,14 +1678,12 @@ export interface UpdateByQueryRequest extends RequestBase {
|
|||||||
allow_no_indices?: boolean
|
allow_no_indices?: boolean
|
||||||
analyzer?: string
|
analyzer?: string
|
||||||
analyze_wildcard?: boolean
|
analyze_wildcard?: boolean
|
||||||
conflicts?: Conflicts
|
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
from?: long
|
from?: long
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
max_docs?: long
|
|
||||||
pipeline?: string
|
pipeline?: string
|
||||||
preference?: string
|
preference?: string
|
||||||
refresh?: boolean
|
refresh?: boolean
|
||||||
@ -1705,9 +1703,11 @@ export interface UpdateByQueryRequest extends RequestBase {
|
|||||||
version_type?: boolean
|
version_type?: boolean
|
||||||
wait_for_active_shards?: WaitForActiveShards
|
wait_for_active_shards?: WaitForActiveShards
|
||||||
wait_for_completion?: boolean
|
wait_for_completion?: boolean
|
||||||
|
max_docs?: long
|
||||||
query?: QueryDslQueryContainer
|
query?: QueryDslQueryContainer
|
||||||
script?: Script
|
script?: Script
|
||||||
slice?: SlicedScroll
|
slice?: SlicedScroll
|
||||||
|
conflicts?: Conflicts
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateByQueryResponse {
|
export interface UpdateByQueryResponse {
|
||||||
@ -5660,9 +5660,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
|||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
docvalue_fields?: Fields
|
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
@ -5674,32 +5672,24 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
stats?: string[]
|
|
||||||
stored_fields?: Fields
|
|
||||||
suggest_field?: Field
|
suggest_field?: Field
|
||||||
suggest_mode?: SuggestMode
|
suggest_mode?: SuggestMode
|
||||||
suggest_size?: long
|
suggest_size?: long
|
||||||
suggest_text?: string
|
suggest_text?: string
|
||||||
terminate_after?: long
|
|
||||||
timeout?: Time
|
|
||||||
track_total_hits?: SearchTrackHits
|
|
||||||
track_scores?: boolean
|
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
version?: boolean
|
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
seq_no_primary_term?: boolean
|
|
||||||
q?: string
|
q?: string
|
||||||
size?: integer
|
|
||||||
from?: integer
|
|
||||||
sort?: string | string[]
|
|
||||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||||
aggs?: Record<string, AggregationsAggregationContainer>
|
aggs?: Record<string, AggregationsAggregationContainer>
|
||||||
collapse?: SearchFieldCollapse
|
collapse?: SearchFieldCollapse
|
||||||
|
explain?: boolean
|
||||||
|
from?: integer
|
||||||
highlight?: SearchHighlight
|
highlight?: SearchHighlight
|
||||||
|
track_total_hits?: SearchTrackHits
|
||||||
indices_boost?: Record<IndexName, double>[]
|
indices_boost?: Record<IndexName, double>[]
|
||||||
|
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
|
||||||
min_score?: double
|
min_score?: double
|
||||||
post_filter?: QueryDslQueryContainer
|
post_filter?: QueryDslQueryContainer
|
||||||
profile?: boolean
|
profile?: boolean
|
||||||
@ -5707,11 +5697,21 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
|||||||
rescore?: SearchRescore | SearchRescore[]
|
rescore?: SearchRescore | SearchRescore[]
|
||||||
script_fields?: Record<string, ScriptField>
|
script_fields?: Record<string, ScriptField>
|
||||||
search_after?: SortResults
|
search_after?: SortResults
|
||||||
|
size?: integer
|
||||||
slice?: SlicedScroll
|
slice?: SlicedScroll
|
||||||
|
sort?: Sort
|
||||||
|
_source?: SearchSourceConfig
|
||||||
fields?: (QueryDslFieldAndFormat | Field)[]
|
fields?: (QueryDslFieldAndFormat | Field)[]
|
||||||
suggest?: SearchSuggester
|
suggest?: SearchSuggester
|
||||||
|
terminate_after?: long
|
||||||
|
timeout?: string
|
||||||
|
track_scores?: boolean
|
||||||
|
version?: boolean
|
||||||
|
seq_no_primary_term?: boolean
|
||||||
|
stored_fields?: Fields
|
||||||
pit?: SearchPointInTimeReference
|
pit?: SearchPointInTimeReference
|
||||||
runtime_mappings?: MappingRuntimeFields
|
runtime_mappings?: MappingRuntimeFields
|
||||||
|
stats?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AsyncSearchSubmitResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = AsyncSearchAsyncSearchDocumentResponseBase<TDocument, TAggregations>
|
export type AsyncSearchSubmitResponse<TDocument = unknown, TAggregations = Record<AggregateName, AggregationsAggregate>> = AsyncSearchAsyncSearchDocumentResponseBase<TDocument, TAggregations>
|
||||||
@ -8607,9 +8607,6 @@ export interface EqlSearchRequest extends RequestBase {
|
|||||||
allow_no_indices?: boolean
|
allow_no_indices?: boolean
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
keep_alive?: Time
|
|
||||||
keep_on_completion?: boolean
|
|
||||||
wait_for_completion_timeout?: Time
|
|
||||||
query: string
|
query: string
|
||||||
case_sensitive?: boolean
|
case_sensitive?: boolean
|
||||||
event_category_field?: Field
|
event_category_field?: Field
|
||||||
@ -8617,6 +8614,9 @@ export interface EqlSearchRequest extends RequestBase {
|
|||||||
timestamp_field?: Field
|
timestamp_field?: Field
|
||||||
fetch_size?: uint
|
fetch_size?: uint
|
||||||
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
|
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
|
||||||
|
keep_alive?: Time
|
||||||
|
keep_on_completion?: boolean
|
||||||
|
wait_for_completion_timeout?: Time
|
||||||
size?: uint
|
size?: uint
|
||||||
fields?: QueryDslFieldAndFormat | Field | (QueryDslFieldAndFormat | Field)[]
|
fields?: QueryDslFieldAndFormat | Field | (QueryDslFieldAndFormat | Field)[]
|
||||||
result_position?: EqlSearchResultPosition
|
result_position?: EqlSearchResultPosition
|
||||||
@ -8692,9 +8692,7 @@ export interface FleetSearchRequest extends RequestBase {
|
|||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
docvalue_fields?: Fields
|
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
@ -8706,34 +8704,26 @@ export interface FleetSearchRequest extends RequestBase {
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
stats?: string[]
|
|
||||||
stored_fields?: Fields
|
|
||||||
suggest_field?: Field
|
suggest_field?: Field
|
||||||
suggest_mode?: SuggestMode
|
suggest_mode?: SuggestMode
|
||||||
suggest_size?: long
|
suggest_size?: long
|
||||||
suggest_text?: string
|
suggest_text?: string
|
||||||
terminate_after?: long
|
|
||||||
timeout?: Time
|
|
||||||
track_total_hits?: SearchTrackHits
|
|
||||||
track_scores?: boolean
|
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
version?: boolean
|
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
seq_no_primary_term?: boolean
|
|
||||||
q?: string
|
q?: string
|
||||||
size?: integer
|
|
||||||
from?: integer
|
|
||||||
sort?: string | string[]
|
|
||||||
wait_for_checkpoints?: FleetCheckpoint[]
|
wait_for_checkpoints?: FleetCheckpoint[]
|
||||||
allow_partial_search_results?: boolean
|
allow_partial_search_results?: boolean
|
||||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||||
aggs?: Record<string, AggregationsAggregationContainer>
|
aggs?: Record<string, AggregationsAggregationContainer>
|
||||||
collapse?: SearchFieldCollapse
|
collapse?: SearchFieldCollapse
|
||||||
|
explain?: boolean
|
||||||
|
from?: integer
|
||||||
highlight?: SearchHighlight
|
highlight?: SearchHighlight
|
||||||
|
track_total_hits?: SearchTrackHits
|
||||||
indices_boost?: Record<IndexName, double>[]
|
indices_boost?: Record<IndexName, double>[]
|
||||||
|
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
|
||||||
min_score?: double
|
min_score?: double
|
||||||
post_filter?: QueryDslQueryContainer
|
post_filter?: QueryDslQueryContainer
|
||||||
profile?: boolean
|
profile?: boolean
|
||||||
@ -8741,11 +8731,21 @@ export interface FleetSearchRequest extends RequestBase {
|
|||||||
rescore?: SearchRescore | SearchRescore[]
|
rescore?: SearchRescore | SearchRescore[]
|
||||||
script_fields?: Record<string, ScriptField>
|
script_fields?: Record<string, ScriptField>
|
||||||
search_after?: SortResults
|
search_after?: SortResults
|
||||||
|
size?: integer
|
||||||
slice?: SlicedScroll
|
slice?: SlicedScroll
|
||||||
|
sort?: Sort
|
||||||
|
_source?: SearchSourceConfig
|
||||||
fields?: (QueryDslFieldAndFormat | Field)[]
|
fields?: (QueryDslFieldAndFormat | Field)[]
|
||||||
suggest?: SearchSuggester
|
suggest?: SearchSuggester
|
||||||
|
terminate_after?: long
|
||||||
|
timeout?: string
|
||||||
|
track_scores?: boolean
|
||||||
|
version?: boolean
|
||||||
|
seq_no_primary_term?: boolean
|
||||||
|
stored_fields?: Fields
|
||||||
pit?: SearchPointInTimeReference
|
pit?: SearchPointInTimeReference
|
||||||
runtime_mappings?: MappingRuntimeFields
|
runtime_mappings?: MappingRuntimeFields
|
||||||
|
stats?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FleetSearchResponse<TDocument = unknown> {
|
export interface FleetSearchResponse<TDocument = unknown> {
|
||||||
@ -9062,7 +9062,7 @@ export interface IndicesFielddataFrequencyFilter {
|
|||||||
min_segment_size: integer
|
min_segment_size: integer
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IndicesIndexCheckOnStartup = boolean | 'false' | 'checksum' | 'true'
|
export type IndicesIndexCheckOnStartup = boolean | 'true' | 'false' | 'checksum'
|
||||||
|
|
||||||
export interface IndicesIndexRouting {
|
export interface IndicesIndexRouting {
|
||||||
allocation?: IndicesIndexRoutingAllocation
|
allocation?: IndicesIndexRoutingAllocation
|
||||||
@ -10025,10 +10025,10 @@ export interface IndicesPutTemplateRequest extends RequestBase {
|
|||||||
flat_settings?: boolean
|
flat_settings?: boolean
|
||||||
master_timeout?: Time
|
master_timeout?: Time
|
||||||
timeout?: Time
|
timeout?: Time
|
||||||
order?: integer
|
|
||||||
aliases?: Record<IndexName, IndicesAlias>
|
aliases?: Record<IndexName, IndicesAlias>
|
||||||
index_patterns?: string | string[]
|
index_patterns?: string | string[]
|
||||||
mappings?: MappingTypeMapping
|
mappings?: MappingTypeMapping
|
||||||
|
order?: integer
|
||||||
settings?: Record<string, any>
|
settings?: Record<string, any>
|
||||||
version?: VersionNumber
|
version?: VersionNumber
|
||||||
}
|
}
|
||||||
@ -12560,16 +12560,16 @@ export interface MlForecastResponse {
|
|||||||
export interface MlGetBucketsRequest extends RequestBase {
|
export interface MlGetBucketsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
timestamp?: Timestamp
|
timestamp?: Timestamp
|
||||||
|
from?: integer
|
||||||
|
size?: integer
|
||||||
anomaly_score?: double
|
anomaly_score?: double
|
||||||
desc?: boolean
|
desc?: boolean
|
||||||
end?: DateString
|
end?: DateString
|
||||||
exclude_interim?: boolean
|
exclude_interim?: boolean
|
||||||
expand?: boolean
|
expand?: boolean
|
||||||
from?: integer
|
page?: MlPage
|
||||||
size?: integer
|
|
||||||
sort?: Field
|
sort?: Field
|
||||||
start?: DateString
|
start?: DateString
|
||||||
page?: MlPage
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MlGetBucketsResponse {
|
export interface MlGetBucketsResponse {
|
||||||
@ -12776,13 +12776,13 @@ export interface MlGetMemoryStatsResponse {
|
|||||||
export interface MlGetModelSnapshotsRequest extends RequestBase {
|
export interface MlGetModelSnapshotsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
snapshot_id?: Id
|
snapshot_id?: Id
|
||||||
desc?: boolean
|
|
||||||
end?: Time
|
|
||||||
from?: integer
|
from?: integer
|
||||||
size?: integer
|
size?: integer
|
||||||
|
desc?: boolean
|
||||||
|
end?: Time
|
||||||
|
page?: MlPage
|
||||||
sort?: Field
|
sort?: Field
|
||||||
start?: Time
|
start?: Time
|
||||||
page?: MlPage
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MlGetModelSnapshotsResponse {
|
export interface MlGetModelSnapshotsResponse {
|
||||||
@ -12808,15 +12808,15 @@ export interface MlGetOverallBucketsResponse {
|
|||||||
|
|
||||||
export interface MlGetRecordsRequest extends RequestBase {
|
export interface MlGetRecordsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
|
from?: integer
|
||||||
|
size?: integer
|
||||||
desc?: boolean
|
desc?: boolean
|
||||||
end?: DateString
|
end?: DateString
|
||||||
exclude_interim?: boolean
|
exclude_interim?: boolean
|
||||||
from?: integer
|
page?: MlPage
|
||||||
record_score?: double
|
record_score?: double
|
||||||
size?: integer
|
|
||||||
sort?: Field
|
sort?: Field
|
||||||
start?: DateString
|
start?: DateString
|
||||||
page?: MlPage
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MlGetRecordsResponse {
|
export interface MlGetRecordsResponse {
|
||||||
@ -15249,7 +15249,7 @@ export interface SecurityHasPrivilegesIndexPrivilegesCheck {
|
|||||||
export type SecurityHasPrivilegesPrivileges = Record<string, boolean>
|
export type SecurityHasPrivilegesPrivileges = Record<string, boolean>
|
||||||
|
|
||||||
export interface SecurityHasPrivilegesRequest extends RequestBase {
|
export interface SecurityHasPrivilegesRequest extends RequestBase {
|
||||||
user?: Name | null
|
user?: Name
|
||||||
application?: SecurityHasPrivilegesApplicationPrivilegesCheck[]
|
application?: SecurityHasPrivilegesApplicationPrivilegesCheck[]
|
||||||
cluster?: SecurityClusterPrivilege[]
|
cluster?: SecurityClusterPrivilege[]
|
||||||
index?: SecurityHasPrivilegesIndexPrivilegesCheck[]
|
index?: SecurityHasPrivilegesIndexPrivilegesCheck[]
|
||||||
|
|||||||
@ -208,7 +208,6 @@ export interface DeleteByQueryRequest extends RequestBase {
|
|||||||
from?: long
|
from?: long
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
max_docs?: long
|
|
||||||
preference?: string
|
preference?: string
|
||||||
refresh?: boolean
|
refresh?: boolean
|
||||||
request_cache?: boolean
|
request_cache?: boolean
|
||||||
@ -667,7 +666,6 @@ export interface MtermvectorsOperation {
|
|||||||
|
|
||||||
export interface MtermvectorsRequest extends RequestBase {
|
export interface MtermvectorsRequest extends RequestBase {
|
||||||
index?: IndexName
|
index?: IndexName
|
||||||
ids?: Id[]
|
|
||||||
fields?: Fields
|
fields?: Fields
|
||||||
field_statistics?: boolean
|
field_statistics?: boolean
|
||||||
offsets?: boolean
|
offsets?: boolean
|
||||||
@ -964,7 +962,6 @@ export interface ScriptsPainlessExecuteResponse<TResult = unknown> {
|
|||||||
|
|
||||||
export interface ScrollRequest extends RequestBase {
|
export interface ScrollRequest extends RequestBase {
|
||||||
scroll_id?: ScrollId
|
scroll_id?: ScrollId
|
||||||
scroll?: Time
|
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
@ -985,9 +982,7 @@ export interface SearchRequest extends RequestBase {
|
|||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
docvalue_fields?: Fields
|
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
@ -999,27 +994,15 @@ export interface SearchRequest extends RequestBase {
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
stats?: string[]
|
|
||||||
stored_fields?: Fields
|
|
||||||
suggest_field?: Field
|
suggest_field?: Field
|
||||||
suggest_mode?: SuggestMode
|
suggest_mode?: SuggestMode
|
||||||
suggest_size?: long
|
suggest_size?: long
|
||||||
suggest_text?: string
|
suggest_text?: string
|
||||||
terminate_after?: long
|
|
||||||
timeout?: Time
|
|
||||||
track_total_hits?: SearchTrackHits
|
|
||||||
track_scores?: boolean
|
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
version?: boolean
|
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
seq_no_primary_term?: boolean
|
|
||||||
q?: string
|
q?: string
|
||||||
size?: integer
|
|
||||||
from?: integer
|
|
||||||
sort?: string | string[]
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||||
@ -1556,11 +1539,6 @@ export interface SearchMvtRequest extends RequestBase {
|
|||||||
zoom: SearchMvtZoomLevel
|
zoom: SearchMvtZoomLevel
|
||||||
x: SearchMvtCoordinate
|
x: SearchMvtCoordinate
|
||||||
y: SearchMvtCoordinate
|
y: SearchMvtCoordinate
|
||||||
exact_bounds?: boolean
|
|
||||||
extent?: integer
|
|
||||||
grid_precision?: integer
|
|
||||||
grid_type?: SearchMvtGridType
|
|
||||||
size?: integer
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
aggs?: Record<string, AggregationsAggregationContainer>
|
aggs?: Record<string, AggregationsAggregationContainer>
|
||||||
@ -1611,11 +1589,9 @@ export interface SearchTemplateRequest extends RequestBase {
|
|||||||
allow_no_indices?: boolean
|
allow_no_indices?: boolean
|
||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
preference?: string
|
preference?: string
|
||||||
profile?: boolean
|
|
||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
@ -1747,7 +1723,6 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
timeout?: Time
|
timeout?: Time
|
||||||
wait_for_active_shards?: WaitForActiveShards
|
wait_for_active_shards?: WaitForActiveShards
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
@ -1773,14 +1748,12 @@ export interface UpdateByQueryRequest extends RequestBase {
|
|||||||
allow_no_indices?: boolean
|
allow_no_indices?: boolean
|
||||||
analyzer?: string
|
analyzer?: string
|
||||||
analyze_wildcard?: boolean
|
analyze_wildcard?: boolean
|
||||||
conflicts?: Conflicts
|
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
from?: long
|
from?: long
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
max_docs?: long
|
|
||||||
pipeline?: string
|
pipeline?: string
|
||||||
preference?: string
|
preference?: string
|
||||||
refresh?: boolean
|
refresh?: boolean
|
||||||
@ -5760,9 +5733,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
|||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
docvalue_fields?: Fields
|
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
@ -5774,27 +5745,15 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
stats?: string[]
|
|
||||||
stored_fields?: Fields
|
|
||||||
suggest_field?: Field
|
suggest_field?: Field
|
||||||
suggest_mode?: SuggestMode
|
suggest_mode?: SuggestMode
|
||||||
suggest_size?: long
|
suggest_size?: long
|
||||||
suggest_text?: string
|
suggest_text?: string
|
||||||
terminate_after?: long
|
|
||||||
timeout?: Time
|
|
||||||
track_total_hits?: SearchTrackHits
|
|
||||||
track_scores?: boolean
|
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
version?: boolean
|
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
seq_no_primary_term?: boolean
|
|
||||||
q?: string
|
q?: string
|
||||||
size?: integer
|
|
||||||
from?: integer
|
|
||||||
sort?: string | string[]
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||||
@ -8752,9 +8711,6 @@ export interface EqlSearchRequest extends RequestBase {
|
|||||||
allow_no_indices?: boolean
|
allow_no_indices?: boolean
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
keep_alive?: Time
|
|
||||||
keep_on_completion?: boolean
|
|
||||||
wait_for_completion_timeout?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
query: string
|
query: string
|
||||||
@ -8844,9 +8800,7 @@ export interface FleetSearchRequest extends RequestBase {
|
|||||||
ccs_minimize_roundtrips?: boolean
|
ccs_minimize_roundtrips?: boolean
|
||||||
default_operator?: QueryDslOperator
|
default_operator?: QueryDslOperator
|
||||||
df?: string
|
df?: string
|
||||||
docvalue_fields?: Fields
|
|
||||||
expand_wildcards?: ExpandWildcards
|
expand_wildcards?: ExpandWildcards
|
||||||
explain?: boolean
|
|
||||||
ignore_throttled?: boolean
|
ignore_throttled?: boolean
|
||||||
ignore_unavailable?: boolean
|
ignore_unavailable?: boolean
|
||||||
lenient?: boolean
|
lenient?: boolean
|
||||||
@ -8858,27 +8812,15 @@ export interface FleetSearchRequest extends RequestBase {
|
|||||||
routing?: Routing
|
routing?: Routing
|
||||||
scroll?: Time
|
scroll?: Time
|
||||||
search_type?: SearchType
|
search_type?: SearchType
|
||||||
stats?: string[]
|
|
||||||
stored_fields?: Fields
|
|
||||||
suggest_field?: Field
|
suggest_field?: Field
|
||||||
suggest_mode?: SuggestMode
|
suggest_mode?: SuggestMode
|
||||||
suggest_size?: long
|
suggest_size?: long
|
||||||
suggest_text?: string
|
suggest_text?: string
|
||||||
terminate_after?: long
|
|
||||||
timeout?: Time
|
|
||||||
track_total_hits?: SearchTrackHits
|
|
||||||
track_scores?: boolean
|
|
||||||
typed_keys?: boolean
|
typed_keys?: boolean
|
||||||
rest_total_hits_as_int?: boolean
|
rest_total_hits_as_int?: boolean
|
||||||
version?: boolean
|
|
||||||
_source?: SearchSourceConfigParam
|
|
||||||
_source_excludes?: Fields
|
_source_excludes?: Fields
|
||||||
_source_includes?: Fields
|
_source_includes?: Fields
|
||||||
seq_no_primary_term?: boolean
|
|
||||||
q?: string
|
q?: string
|
||||||
size?: integer
|
|
||||||
from?: integer
|
|
||||||
sort?: string | string[]
|
|
||||||
wait_for_checkpoints?: FleetCheckpoint[]
|
wait_for_checkpoints?: FleetCheckpoint[]
|
||||||
allow_partial_search_results?: boolean
|
allow_partial_search_results?: boolean
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
@ -9243,7 +9185,7 @@ export interface IndicesFielddataFrequencyFilter {
|
|||||||
min_segment_size: integer
|
min_segment_size: integer
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IndicesIndexCheckOnStartup = boolean | 'false' | 'checksum' | 'true'
|
export type IndicesIndexCheckOnStartup = boolean | 'true' | 'false' | 'checksum'
|
||||||
|
|
||||||
export interface IndicesIndexRouting {
|
export interface IndicesIndexRouting {
|
||||||
allocation?: IndicesIndexRoutingAllocation
|
allocation?: IndicesIndexRoutingAllocation
|
||||||
@ -10228,7 +10170,6 @@ export interface IndicesPutTemplateRequest extends RequestBase {
|
|||||||
flat_settings?: boolean
|
flat_settings?: boolean
|
||||||
master_timeout?: Time
|
master_timeout?: Time
|
||||||
timeout?: Time
|
timeout?: Time
|
||||||
order?: integer
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
aliases?: Record<IndexName, IndicesAlias>
|
aliases?: Record<IndexName, IndicesAlias>
|
||||||
@ -12547,9 +12488,6 @@ export interface MlZeroShotClassificationInferenceUpdateOptions {
|
|||||||
|
|
||||||
export interface MlCloseJobRequest extends RequestBase {
|
export interface MlCloseJobRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
allow_no_match?: boolean
|
|
||||||
force?: boolean
|
|
||||||
timeout?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
allow_no_match?: boolean
|
allow_no_match?: boolean
|
||||||
@ -12603,8 +12541,6 @@ export type MlDeleteDatafeedResponse = AcknowledgedResponseBase
|
|||||||
|
|
||||||
export interface MlDeleteExpiredDataRequest extends RequestBase {
|
export interface MlDeleteExpiredDataRequest extends RequestBase {
|
||||||
job_id?: Id
|
job_id?: Id
|
||||||
requests_per_second?: float
|
|
||||||
timeout?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
requests_per_second?: float
|
requests_per_second?: float
|
||||||
@ -12789,11 +12725,6 @@ export interface MlExplainDataFrameAnalyticsResponse {
|
|||||||
|
|
||||||
export interface MlFlushJobRequest extends RequestBase {
|
export interface MlFlushJobRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
advance_time?: DateString
|
|
||||||
calc_interim?: boolean
|
|
||||||
end?: DateString
|
|
||||||
skip_time?: EpochMillis
|
|
||||||
start?: DateString
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
advance_time?: DateString
|
advance_time?: DateString
|
||||||
@ -12811,9 +12742,6 @@ export interface MlFlushJobResponse {
|
|||||||
|
|
||||||
export interface MlForecastRequest extends RequestBase {
|
export interface MlForecastRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
duration?: Time
|
|
||||||
expires_in?: Time
|
|
||||||
max_model_memory?: string
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
duration?: Time
|
duration?: Time
|
||||||
@ -12830,15 +12758,8 @@ export interface MlForecastResponse {
|
|||||||
export interface MlGetBucketsRequest extends RequestBase {
|
export interface MlGetBucketsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
timestamp?: Timestamp
|
timestamp?: Timestamp
|
||||||
anomaly_score?: double
|
|
||||||
desc?: boolean
|
|
||||||
end?: DateString
|
|
||||||
exclude_interim?: boolean
|
|
||||||
expand?: boolean
|
|
||||||
from?: integer
|
from?: integer
|
||||||
size?: integer
|
size?: integer
|
||||||
sort?: Field
|
|
||||||
start?: DateString
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
anomaly_score?: double
|
anomaly_score?: double
|
||||||
@ -13065,12 +12986,8 @@ export interface MlGetMemoryStatsResponse {
|
|||||||
export interface MlGetModelSnapshotsRequest extends RequestBase {
|
export interface MlGetModelSnapshotsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
snapshot_id?: Id
|
snapshot_id?: Id
|
||||||
desc?: boolean
|
|
||||||
end?: Time
|
|
||||||
from?: integer
|
from?: integer
|
||||||
size?: integer
|
size?: integer
|
||||||
sort?: Field
|
|
||||||
start?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
desc?: boolean
|
desc?: boolean
|
||||||
@ -13088,13 +13005,6 @@ export interface MlGetModelSnapshotsResponse {
|
|||||||
|
|
||||||
export interface MlGetOverallBucketsRequest extends RequestBase {
|
export interface MlGetOverallBucketsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
allow_no_match?: boolean
|
|
||||||
bucket_span?: Time
|
|
||||||
end?: Time
|
|
||||||
exclude_interim?: boolean
|
|
||||||
overall_score?: double | string
|
|
||||||
start?: Time
|
|
||||||
top_n?: integer
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
allow_no_match?: boolean
|
allow_no_match?: boolean
|
||||||
@ -13114,14 +13024,8 @@ export interface MlGetOverallBucketsResponse {
|
|||||||
|
|
||||||
export interface MlGetRecordsRequest extends RequestBase {
|
export interface MlGetRecordsRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
desc?: boolean
|
|
||||||
end?: DateString
|
|
||||||
exclude_interim?: boolean
|
|
||||||
from?: integer
|
from?: integer
|
||||||
record_score?: double
|
|
||||||
size?: integer
|
size?: integer
|
||||||
sort?: Field
|
|
||||||
start?: DateString
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
desc?: boolean
|
desc?: boolean
|
||||||
@ -13227,7 +13131,6 @@ export interface MlInfoResponse {
|
|||||||
|
|
||||||
export interface MlOpenJobRequest extends RequestBase {
|
export interface MlOpenJobRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
timeout?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
timeout?: Time
|
timeout?: Time
|
||||||
@ -13607,7 +13510,6 @@ export type MlResetJobResponse = AcknowledgedResponseBase
|
|||||||
export interface MlRevertModelSnapshotRequest extends RequestBase {
|
export interface MlRevertModelSnapshotRequest extends RequestBase {
|
||||||
job_id: Id
|
job_id: Id
|
||||||
snapshot_id: Id
|
snapshot_id: Id
|
||||||
delete_intervening_results?: boolean
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
delete_intervening_results?: boolean
|
delete_intervening_results?: boolean
|
||||||
@ -13637,9 +13539,6 @@ export interface MlStartDataFrameAnalyticsResponse {
|
|||||||
|
|
||||||
export interface MlStartDatafeedRequest extends RequestBase {
|
export interface MlStartDatafeedRequest extends RequestBase {
|
||||||
datafeed_id: Id
|
datafeed_id: Id
|
||||||
end?: Time
|
|
||||||
start?: Time
|
|
||||||
timeout?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
end?: Time
|
end?: Time
|
||||||
@ -13679,9 +13578,6 @@ export interface MlStopDataFrameAnalyticsResponse {
|
|||||||
|
|
||||||
export interface MlStopDatafeedRequest extends RequestBase {
|
export interface MlStopDatafeedRequest extends RequestBase {
|
||||||
datafeed_id: Id
|
datafeed_id: Id
|
||||||
allow_no_match?: boolean
|
|
||||||
force?: boolean
|
|
||||||
timeout?: Time
|
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
allow_no_match?: boolean
|
allow_no_match?: boolean
|
||||||
@ -15669,7 +15565,7 @@ export interface SecurityHasPrivilegesIndexPrivilegesCheck {
|
|||||||
export type SecurityHasPrivilegesPrivileges = Record<string, boolean>
|
export type SecurityHasPrivilegesPrivileges = Record<string, boolean>
|
||||||
|
|
||||||
export interface SecurityHasPrivilegesRequest extends RequestBase {
|
export interface SecurityHasPrivilegesRequest extends RequestBase {
|
||||||
user?: Name | null
|
user?: Name
|
||||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||||
body?: {
|
body?: {
|
||||||
application?: SecurityHasPrivilegesApplicationPrivilegesCheck[]
|
application?: SecurityHasPrivilegesApplicationPrivilegesCheck[]
|
||||||
|
|||||||
Reference in New Issue
Block a user