Update APIs to 8.8.0

This commit is contained in:
Josh Mock
2023-05-26 12:15:32 -05:00
parent 26e04997eb
commit 4a1860b29c
6 changed files with 381 additions and 72 deletions

View File

@ -4119,6 +4119,16 @@ Forces the execution of a stored watch.
client.watcher.executeWatch(...)
----
[discrete]
==== get_settings
Retrieve settings for the watcher system index
{ref}/watcher-api-get-settings.html[Endpoint documentation]
[source,ts]
----
client.watcher.getSettings(...)
----
[discrete]
==== get_watch
Retrieves a watch by its ID.
@ -4179,6 +4189,16 @@ Stops Watcher if it is running.
client.watcher.stop(...)
----
[discrete]
==== update_settings
Update settings for the watcher system index
{ref}/watcher-api-update-settings.html[Endpoint documentation]
[source,ts]
----
client.watcher.updateSettings(...)
----
[discrete]
=== xpack
[discrete]

View File

@ -330,32 +330,25 @@ export default class Indices {
return await this.transport.request({ path, method, querystring, body }, options)
}
async deleteDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async deleteDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async deleteDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async deleteDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async deleteDataLifecycle (this: That, params: T.IndicesDeleteDataLifecycleRequest | TB.IndicesDeleteDataLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesDeleteDataLifecycleResponse>
async deleteDataLifecycle (this: That, params: T.IndicesDeleteDataLifecycleRequest | TB.IndicesDeleteDataLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesDeleteDataLifecycleResponse, unknown>>
async deleteDataLifecycle (this: That, params: T.IndicesDeleteDataLifecycleRequest | TB.IndicesDeleteDataLifecycleRequest, options?: TransportRequestOptions): Promise<T.IndicesDeleteDataLifecycleResponse>
async deleteDataLifecycle (this: That, params: T.IndicesDeleteDataLifecycleRequest | TB.IndicesDeleteDataLifecycleRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['name']
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]
}
}
let method = ''
let path = ''
if (params.name != null) {
method = 'DELETE'
path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`
} else {
method = 'DELETE'
path = '/_data_stream/_lifecycle'
}
const method = 'DELETE'
const path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`
return await this.transport.request({ path, method, querystring, body }, options)
}
@ -569,24 +562,24 @@ export default class Indices {
return await this.transport.request({ path, method, querystring, body }, options)
}
async explainDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async explainDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async explainDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async explainDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async explainDataLifecycle (this: That, params: T.IndicesExplainDataLifecycleRequest | TB.IndicesExplainDataLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesExplainDataLifecycleResponse>
async explainDataLifecycle (this: That, params: T.IndicesExplainDataLifecycleRequest | TB.IndicesExplainDataLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesExplainDataLifecycleResponse, unknown>>
async explainDataLifecycle (this: That, params: T.IndicesExplainDataLifecycleRequest | TB.IndicesExplainDataLifecycleRequest, options?: TransportRequestOptions): Promise<T.IndicesExplainDataLifecycleResponse>
async explainDataLifecycle (this: That, params: T.IndicesExplainDataLifecycleRequest | TB.IndicesExplainDataLifecycleRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['index']
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]
}
}
const method = 'POST'
const method = 'GET'
const path = `/${encodeURIComponent(params.index.toString())}/_lifecycle/explain`
return await this.transport.request({ path, method, querystring, body }, options)
}
@ -731,32 +724,25 @@ export default class Indices {
return await this.transport.request({ path, method, querystring, body }, options)
}
async getDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async getDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async getDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async getDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async getDataLifecycle (this: That, params: T.IndicesGetDataLifecycleRequest | TB.IndicesGetDataLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesGetDataLifecycleResponse>
async getDataLifecycle (this: That, params: T.IndicesGetDataLifecycleRequest | TB.IndicesGetDataLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesGetDataLifecycleResponse, unknown>>
async getDataLifecycle (this: That, params: T.IndicesGetDataLifecycleRequest | TB.IndicesGetDataLifecycleRequest, options?: TransportRequestOptions): Promise<T.IndicesGetDataLifecycleResponse>
async getDataLifecycle (this: That, params: T.IndicesGetDataLifecycleRequest | TB.IndicesGetDataLifecycleRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['name']
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]
}
}
let method = ''
let path = ''
if (params.name != null) {
method = 'GET'
path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`
} else {
method = 'GET'
path = '/_data_stream/_lifecycle'
}
const method = 'GET'
const path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`
return await this.transport.request({ path, method, querystring, body }, options)
}
@ -1086,32 +1072,37 @@ export default class Indices {
return await this.transport.request({ path, method, querystring, body }, options)
}
async putDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async putDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async putDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async putDataLifecycle (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesPutDataLifecycleResponse>
async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesPutDataLifecycleResponse, unknown>>
async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptions): Promise<T.IndicesPutDataLifecycleResponse>
async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['name']
const acceptedBody: string[] = ['data_retention']
const querystring: Record<string, any> = {}
const body = undefined
// @ts-expect-error
const userBody: any = params?.body
let body: Record<string, any> | string
if (typeof userBody === 'string') {
body = userBody
} else {
body = userBody != null ? { ...userBody } : undefined
}
params = params ?? {}
for (const key in params) {
if (acceptedPath.includes(key)) {
if (acceptedBody.includes(key)) {
body = body ?? {}
// @ts-expect-error
body[key] = params[key]
} else if (acceptedPath.includes(key)) {
continue
} else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key]
}
}
let method = ''
let path = ''
if (params.name != null) {
method = 'PUT'
path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`
} else {
method = 'PUT'
path = '/_data_stream/_lifecycle'
}
const method = 'PUT'
const path = `/_data_stream/${encodeURIComponent(params.name.toString())}/_lifecycle`
return await this.transport.request({ path, method, querystring, body }, options)
}

View File

@ -65,19 +65,19 @@ export default class SearchApplication {
return await this.transport.request({ path, method, querystring, body }, options)
}
async deleteBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async deleteBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async deleteBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async deleteBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async deleteBehavioralAnalytics (this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationDeleteBehavioralAnalyticsResponse>
async deleteBehavioralAnalytics (this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationDeleteBehavioralAnalyticsResponse, unknown>>
async deleteBehavioralAnalytics (this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationDeleteBehavioralAnalyticsResponse>
async deleteBehavioralAnalytics (this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['name']
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]
}
}
@ -109,10 +109,10 @@ export default class SearchApplication {
return await this.transport.request({ path, method, querystring, body }, options)
}
async getBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async getBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async getBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async getBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async getBehavioralAnalytics (this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationGetBehavioralAnalyticsResponse>
async getBehavioralAnalytics (this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationGetBehavioralAnalyticsResponse, unknown>>
async getBehavioralAnalytics (this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationGetBehavioralAnalyticsResponse>
async getBehavioralAnalytics (this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['name']
const querystring: Record<string, any> = {}
const body = undefined
@ -122,6 +122,7 @@ export default class SearchApplication {
if (acceptedPath.includes(key)) {
continue
} else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key]
}
}
@ -210,19 +211,19 @@ export default class SearchApplication {
return await this.transport.request({ path, method, querystring, body }, options)
}
async putBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async putBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async putBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async putBehavioralAnalytics (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
async putBehavioralAnalytics (this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationPutBehavioralAnalyticsResponse>
async putBehavioralAnalytics (this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationPutBehavioralAnalyticsResponse, unknown>>
async putBehavioralAnalytics (this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationPutBehavioralAnalyticsResponse>
async putBehavioralAnalytics (this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['name']
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

@ -180,6 +180,28 @@ export default class Watcher {
return await this.transport.request({ path, method, querystring, body }, options)
}
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = []
const querystring: Record<string, any> = {}
const body = undefined
params = params ?? {}
for (const key in params) {
if (acceptedPath.includes(key)) {
continue
} else if (key !== 'body') {
querystring[key] = params[key]
}
}
const method = 'GET'
const path = '/_watcher/settings'
return await this.transport.request({ path, method, querystring, body }, options)
}
async getWatch (this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherGetWatchResponse>
async getWatch (this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherGetWatchResponse, unknown>>
async getWatch (this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherGetWatchResponse>
@ -346,4 +368,26 @@ export default class Watcher {
const path = '/_watcher/_stop'
return await this.transport.request({ path, method, querystring, body }, options)
}
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = []
const querystring: Record<string, any> = {}
const body = undefined
params = params ?? {}
for (const key in params) {
if (acceptedPath.includes(key)) {
continue
} else if (key !== 'body') {
querystring[key] = params[key]
}
}
const method = 'PUT'
const path = '/_watcher/settings'
return await this.transport.request({ path, method, querystring, body }, options)
}
}

View File

@ -5695,6 +5695,7 @@ export interface QueryDslQueryContainer {
term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>
terms?: QueryDslTermsQuery
terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>
text_expansion?: QueryDslTextExpansionQuery | Field
wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>
wrapper?: QueryDslWrapperQuery
type?: QueryDslTypeQuery
@ -5908,6 +5909,12 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
terms: string[]
}
export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
value: Field
model_id: string
model_text: string
}
export type QueryDslTextQueryType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix'
export interface QueryDslTypeQuery extends QueryDslQueryBase {
@ -8153,6 +8160,7 @@ export interface ClusterComponentTemplateSummary {
settings?: Record<IndexName, IndicesIndexSettings>
mappings?: MappingTypeMapping
aliases?: Record<string, IndicesAliasDefinition>
lifecycle?: IndicesDataLifecycleWithRollover
}
export interface ClusterAllocationExplainAllocationDecision {
@ -8299,6 +8307,7 @@ export interface ClusterGetComponentTemplateRequest extends RequestBase {
flat_settings?: boolean
local?: boolean
master_timeout?: Duration
include_defaults?: boolean
}
export interface ClusterGetComponentTemplateResponse {
@ -9403,6 +9412,15 @@ export interface IndicesCacheQueries {
enabled: boolean
}
export interface IndicesDataLifecycle {
data_retention?: Duration
}
export interface IndicesDataLifecycleWithRollover {
data_retention?: Duration
rollover?: IndicesDlmRolloverConditions
}
export interface IndicesDataStream {
name: DataStreamName
timestamp_field: IndicesDataStreamTimestampField
@ -9416,6 +9434,7 @@ export interface IndicesDataStream {
ilm_policy?: Name
_meta?: Metadata
allow_custom_routing?: boolean
lifecycle?: IndicesDataLifecycleWithRollover
}
export interface IndicesDataStreamIndex {
@ -9431,6 +9450,19 @@ export interface IndicesDataStreamVisibility {
hidden?: boolean
}
export interface IndicesDlmRolloverConditions {
min_age?: Duration
max_age?: string
min_docs?: long
max_docs?: long
min_size?: ByteSize
max_size?: ByteSize
min_primary_shard_size?: ByteSize
max_primary_shard_size?: ByteSize
min_primary_shard_docs?: long
max_primary_shard_docs?: long
}
export interface IndicesDownsampleConfig {
fixed_interval: DurationLarge
}
@ -9484,10 +9516,10 @@ export interface IndicesIndexSegmentSort {
}
export interface IndicesIndexSettingBlocks {
read_only?: boolean
read_only_allow_delete?: boolean
read?: boolean
write?: boolean | string
read_only?: SpecUtilsStringified<boolean>
read_only_allow_delete?: SpecUtilsStringified<boolean>
read?: SpecUtilsStringified<boolean>
write?: SpecUtilsStringified<boolean>
metadata?: SpecUtilsStringified<boolean>
}
@ -9585,6 +9617,7 @@ export interface IndicesIndexState {
settings?: IndicesIndexSettings
defaults?: IndicesIndexSettings
data_stream?: DataStreamName
lifecycle?: IndicesDataLifecycle
}
export interface IndicesIndexTemplate {
@ -9607,6 +9640,7 @@ export interface IndicesIndexTemplateSummary {
aliases?: Record<IndexName, IndicesAlias>
mappings?: MappingTypeMapping
settings?: IndicesIndexSettings
lifecycle?: IndicesDataLifecycleWithRollover
}
export interface IndicesIndexVersioning {
@ -10020,6 +10054,15 @@ export interface IndicesDeleteAliasRequest extends RequestBase {
export type IndicesDeleteAliasResponse = AcknowledgedResponseBase
export interface IndicesDeleteDataLifecycleRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
master_timeout?: Duration
timeout?: Duration
}
export type IndicesDeleteDataLifecycleResponse = AcknowledgedResponseBase
export interface IndicesDeleteDataStreamRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
@ -10101,6 +10144,28 @@ export interface IndicesExistsTemplateRequest extends RequestBase {
export type IndicesExistsTemplateResponse = boolean
export interface IndicesExplainDataLifecycleDataLifecycleExplain {
index: IndexName
managed_by_dlm: boolean
index_creation_date_millis?: EpochTime<UnitMillis>
time_since_index_creation?: Duration
rollover_date_millis?: EpochTime<UnitMillis>
time_since_rollover?: Duration
lifecycle?: IndicesDataLifecycleWithRollover
generation_time?: Duration
error?: string
}
export interface IndicesExplainDataLifecycleRequest extends RequestBase {
index: Indices
include_defaults?: boolean
master_timeout?: Duration
}
export interface IndicesExplainDataLifecycleResponse {
indices: Record<IndexName, IndicesExplainDataLifecycleDataLifecycleExplain>
}
export interface IndicesFieldUsageStatsFieldSummary {
any: uint
stored_fields: uint
@ -10218,9 +10283,25 @@ export interface IndicesGetAliasRequest extends RequestBase {
export type IndicesGetAliasResponse = Record<IndexName, IndicesGetAliasIndexAliases>
export interface IndicesGetDataLifecycleDataStreamLifecycle {
name: DataStreamName
lifecycle?: IndicesDataLifecycle
}
export interface IndicesGetDataLifecycleRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
include_defaults?: boolean
}
export interface IndicesGetDataLifecycleResponse {
data_streams: IndicesGetDataLifecycleDataStreamLifecycle[]
}
export interface IndicesGetDataStreamRequest extends RequestBase {
name?: DataStreamNames
expand_wildcards?: ExpandWildcards
include_defaults?: boolean
}
export interface IndicesGetDataStreamResponse {
@ -10253,6 +10334,7 @@ export interface IndicesGetIndexTemplateRequest extends RequestBase {
local?: boolean
flat_settings?: boolean
master_timeout?: Duration
include_defaults?: boolean
}
export interface IndicesGetIndexTemplateResponse {
@ -10355,10 +10437,21 @@ export interface IndicesPutAliasRequest extends RequestBase {
export type IndicesPutAliasResponse = AcknowledgedResponseBase
export interface IndicesPutDataLifecycleRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
master_timeout?: Duration
timeout?: Duration
data_retention?: Duration
}
export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase
export interface IndicesPutIndexTemplateIndexTemplateMapping {
aliases?: Record<IndexName, IndicesAlias>
mappings?: MappingTypeMapping
settings?: IndicesIndexSettings
lifecycle?: IndicesDataLifecycle
}
export interface IndicesPutIndexTemplateRequest extends RequestBase {
@ -10740,6 +10833,7 @@ export interface IndicesSimulateIndexTemplateRequest extends RequestBase {
name: Name
create?: boolean
master_timeout?: Duration
include_defaults?: boolean
allow_auto_create?: boolean
index_patterns?: Indices
composed_of?: Name[]
@ -10762,6 +10856,7 @@ export interface IndicesSimulateTemplateRequest extends RequestBase {
name?: Name
create?: boolean
master_timeout?: Duration
include_defaults?: boolean
template?: IndicesIndexTemplate
}
@ -15188,6 +15283,14 @@ export interface RollupStopJobResponse {
stopped: boolean
}
export interface SearchApplicationAnalyticsCollection {
event_data_stream: SearchApplicationEventDataStream
}
export interface SearchApplicationEventDataStream {
name: IndexName
}
export interface SearchApplicationSearchApplication {
name: Name
indices: IndexName[]
@ -15206,12 +15309,24 @@ export interface SearchApplicationDeleteRequest extends RequestBase {
export type SearchApplicationDeleteResponse = AcknowledgedResponseBase
export interface SearchApplicationDeleteBehavioralAnalyticsRequest extends RequestBase {
name: Name
}
export type SearchApplicationDeleteBehavioralAnalyticsResponse = AcknowledgedResponseBase
export interface SearchApplicationGetRequest extends RequestBase {
name: Name
}
export type SearchApplicationGetResponse = SearchApplicationSearchApplication
export interface SearchApplicationGetBehavioralAnalyticsRequest extends RequestBase {
name?: Name[]
}
export type SearchApplicationGetBehavioralAnalyticsResponse = Record<Name, SearchApplicationAnalyticsCollection>
export interface SearchApplicationListRequest extends RequestBase {
q?: string
from?: integer
@ -15240,6 +15355,16 @@ export interface SearchApplicationPutResponse {
result: Result
}
export interface SearchApplicationPutBehavioralAnalyticsAnalyticsAcknowledgeResponseBase extends AcknowledgedResponseBase {
name: Name
}
export interface SearchApplicationPutBehavioralAnalyticsRequest extends RequestBase {
name: Name
}
export type SearchApplicationPutBehavioralAnalyticsResponse = SearchApplicationPutBehavioralAnalyticsAnalyticsAcknowledgeResponseBase
export interface SearchApplicationSearchRequest extends RequestBase {
name: Name
params?: Record<string, any>

View File

@ -5768,6 +5768,7 @@ export interface QueryDslQueryContainer {
term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>
terms?: QueryDslTermsQuery
terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>
text_expansion?: QueryDslTextExpansionQuery | Field
wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>
wrapper?: QueryDslWrapperQuery
type?: QueryDslTypeQuery
@ -5981,6 +5982,12 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
terms: string[]
}
export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
value: Field
model_id: string
model_text: string
}
export type QueryDslTextQueryType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix'
export interface QueryDslTypeQuery extends QueryDslQueryBase {
@ -8242,6 +8249,7 @@ export interface ClusterComponentTemplateSummary {
settings?: Record<IndexName, IndicesIndexSettings>
mappings?: MappingTypeMapping
aliases?: Record<string, IndicesAliasDefinition>
lifecycle?: IndicesDataLifecycleWithRollover
}
export interface ClusterAllocationExplainAllocationDecision {
@ -8391,6 +8399,7 @@ export interface ClusterGetComponentTemplateRequest extends RequestBase {
flat_settings?: boolean
local?: boolean
master_timeout?: Duration
include_defaults?: boolean
}
export interface ClusterGetComponentTemplateResponse {
@ -9526,6 +9535,15 @@ export interface IndicesCacheQueries {
enabled: boolean
}
export interface IndicesDataLifecycle {
data_retention?: Duration
}
export interface IndicesDataLifecycleWithRollover {
data_retention?: Duration
rollover?: IndicesDlmRolloverConditions
}
export interface IndicesDataStream {
name: DataStreamName
timestamp_field: IndicesDataStreamTimestampField
@ -9539,6 +9557,7 @@ export interface IndicesDataStream {
ilm_policy?: Name
_meta?: Metadata
allow_custom_routing?: boolean
lifecycle?: IndicesDataLifecycleWithRollover
}
export interface IndicesDataStreamIndex {
@ -9554,6 +9573,19 @@ export interface IndicesDataStreamVisibility {
hidden?: boolean
}
export interface IndicesDlmRolloverConditions {
min_age?: Duration
max_age?: string
min_docs?: long
max_docs?: long
min_size?: ByteSize
max_size?: ByteSize
min_primary_shard_size?: ByteSize
max_primary_shard_size?: ByteSize
min_primary_shard_docs?: long
max_primary_shard_docs?: long
}
export interface IndicesDownsampleConfig {
fixed_interval: DurationLarge
}
@ -9607,10 +9639,10 @@ export interface IndicesIndexSegmentSort {
}
export interface IndicesIndexSettingBlocks {
read_only?: boolean
read_only_allow_delete?: boolean
read?: boolean
write?: boolean | string
read_only?: SpecUtilsStringified<boolean>
read_only_allow_delete?: SpecUtilsStringified<boolean>
read?: SpecUtilsStringified<boolean>
write?: SpecUtilsStringified<boolean>
metadata?: SpecUtilsStringified<boolean>
}
@ -9708,6 +9740,7 @@ export interface IndicesIndexState {
settings?: IndicesIndexSettings
defaults?: IndicesIndexSettings
data_stream?: DataStreamName
lifecycle?: IndicesDataLifecycle
}
export interface IndicesIndexTemplate {
@ -9730,6 +9763,7 @@ export interface IndicesIndexTemplateSummary {
aliases?: Record<IndexName, IndicesAlias>
mappings?: MappingTypeMapping
settings?: IndicesIndexSettings
lifecycle?: IndicesDataLifecycleWithRollover
}
export interface IndicesIndexVersioning {
@ -10152,6 +10186,15 @@ export interface IndicesDeleteAliasRequest extends RequestBase {
export type IndicesDeleteAliasResponse = AcknowledgedResponseBase
export interface IndicesDeleteDataLifecycleRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
master_timeout?: Duration
timeout?: Duration
}
export type IndicesDeleteDataLifecycleResponse = AcknowledgedResponseBase
export interface IndicesDeleteDataStreamRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
@ -10234,6 +10277,28 @@ export interface IndicesExistsTemplateRequest extends RequestBase {
export type IndicesExistsTemplateResponse = boolean
export interface IndicesExplainDataLifecycleDataLifecycleExplain {
index: IndexName
managed_by_dlm: boolean
index_creation_date_millis?: EpochTime<UnitMillis>
time_since_index_creation?: Duration
rollover_date_millis?: EpochTime<UnitMillis>
time_since_rollover?: Duration
lifecycle?: IndicesDataLifecycleWithRollover
generation_time?: Duration
error?: string
}
export interface IndicesExplainDataLifecycleRequest extends RequestBase {
index: Indices
include_defaults?: boolean
master_timeout?: Duration
}
export interface IndicesExplainDataLifecycleResponse {
indices: Record<IndexName, IndicesExplainDataLifecycleDataLifecycleExplain>
}
export interface IndicesFieldUsageStatsFieldSummary {
any: uint
stored_fields: uint
@ -10351,9 +10416,25 @@ export interface IndicesGetAliasRequest extends RequestBase {
export type IndicesGetAliasResponse = Record<IndexName, IndicesGetAliasIndexAliases>
export interface IndicesGetDataLifecycleDataStreamLifecycle {
name: DataStreamName
lifecycle?: IndicesDataLifecycle
}
export interface IndicesGetDataLifecycleRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
include_defaults?: boolean
}
export interface IndicesGetDataLifecycleResponse {
data_streams: IndicesGetDataLifecycleDataStreamLifecycle[]
}
export interface IndicesGetDataStreamRequest extends RequestBase {
name?: DataStreamNames
expand_wildcards?: ExpandWildcards
include_defaults?: boolean
}
export interface IndicesGetDataStreamResponse {
@ -10386,6 +10467,7 @@ export interface IndicesGetIndexTemplateRequest extends RequestBase {
local?: boolean
flat_settings?: boolean
master_timeout?: Duration
include_defaults?: boolean
}
export interface IndicesGetIndexTemplateResponse {
@ -10494,10 +10576,24 @@ export interface IndicesPutAliasRequest extends RequestBase {
export type IndicesPutAliasResponse = AcknowledgedResponseBase
export interface IndicesPutDataLifecycleRequest extends RequestBase {
name: DataStreamNames
expand_wildcards?: ExpandWildcards
master_timeout?: Duration
timeout?: Duration
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
body?: {
data_retention?: Duration
}
}
export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase
export interface IndicesPutIndexTemplateIndexTemplateMapping {
aliases?: Record<IndexName, IndicesAlias>
mappings?: MappingTypeMapping
settings?: IndicesIndexSettings
lifecycle?: IndicesDataLifecycle
}
export interface IndicesPutIndexTemplateRequest extends RequestBase {
@ -10895,6 +10991,7 @@ export interface IndicesSimulateIndexTemplateRequest extends RequestBase {
name: Name
create?: boolean
master_timeout?: Duration
include_defaults?: boolean
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
body?: {
allow_auto_create?: boolean
@ -10920,6 +11017,7 @@ export interface IndicesSimulateTemplateRequest extends RequestBase {
name?: Name
create?: boolean
master_timeout?: Duration
include_defaults?: boolean
/** @deprecated The use of the 'body' key has been deprecated, use 'template' instead. */
body?: IndicesIndexTemplate
}
@ -15486,6 +15584,14 @@ export interface RollupStopJobResponse {
stopped: boolean
}
export interface SearchApplicationAnalyticsCollection {
event_data_stream: SearchApplicationEventDataStream
}
export interface SearchApplicationEventDataStream {
name: IndexName
}
export interface SearchApplicationSearchApplication {
name: Name
indices: IndexName[]
@ -15504,12 +15610,24 @@ export interface SearchApplicationDeleteRequest extends RequestBase {
export type SearchApplicationDeleteResponse = AcknowledgedResponseBase
export interface SearchApplicationDeleteBehavioralAnalyticsRequest extends RequestBase {
name: Name
}
export type SearchApplicationDeleteBehavioralAnalyticsResponse = AcknowledgedResponseBase
export interface SearchApplicationGetRequest extends RequestBase {
name: Name
}
export type SearchApplicationGetResponse = SearchApplicationSearchApplication
export interface SearchApplicationGetBehavioralAnalyticsRequest extends RequestBase {
name?: Name[]
}
export type SearchApplicationGetBehavioralAnalyticsResponse = Record<Name, SearchApplicationAnalyticsCollection>
export interface SearchApplicationListRequest extends RequestBase {
q?: string
from?: integer
@ -15539,6 +15657,16 @@ export interface SearchApplicationPutResponse {
result: Result
}
export interface SearchApplicationPutBehavioralAnalyticsAnalyticsAcknowledgeResponseBase extends AcknowledgedResponseBase {
name: Name
}
export interface SearchApplicationPutBehavioralAnalyticsRequest extends RequestBase {
name: Name
}
export type SearchApplicationPutBehavioralAnalyticsResponse = SearchApplicationPutBehavioralAnalyticsAnalyticsAcknowledgeResponseBase
export interface SearchApplicationSearchRequest extends RequestBase {
name: Name
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */