From 720b5b449bde49528210d147332d37a96122520e Mon Sep 17 00:00:00 2001 From: delvedor Date: Wed, 23 Mar 2022 11:31:34 +0100 Subject: [PATCH] API generation --- docs/reference.asciidoc | 40 +++ src/api/api/cat.ts | 29 ++ src/api/api/field_caps.ts | 9 +- src/api/api/knn_search.ts | 2 +- src/api/api/ml.ts | 11 +- src/api/api/reindex.ts | 9 +- src/api/api/security.ts | 70 +++- src/api/types.ts | 617 +++++++++++++++++++++--------------- src/api/typesWithBodyKey.ts | 617 +++++++++++++++++++++--------------- 9 files changed, 858 insertions(+), 546 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index e24ba7a18..bef00bbe8 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -524,6 +524,14 @@ https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.ht client.cat.allocation(...) ---- +[discrete] +==== component_templates +Returns information about existing component_templates templates. +[source,ts] +---- +client.cat.componentTemplates(...) +---- + [discrete] ==== count Provides quick access to the document count of the entire cluster, or individual indices. @@ -3127,6 +3135,16 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-dis client.security.disableUser(...) ---- +[discrete] +==== disable_user_profile +Disables a user profile so it's not visible in user profile searches. + +https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-disable-user-profile.html[Endpoint documentation] +[source,ts] +---- +client.security.disableUserProfile(...) +---- + [discrete] ==== enable_user Enables users in the native realm. @@ -3137,6 +3155,16 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ena client.security.enableUser(...) ---- +[discrete] +==== enable_user_profile +Enables a user profile so it's visible in user profile searches. + +https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enable-user-profile.html[Endpoint documentation] +[source,ts] +---- +client.security.enableUserProfile(...) +---- + [discrete] ==== enroll_kibana Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster. @@ -3445,6 +3473,16 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-sam client.security.samlServiceProviderMetadata(...) ---- +[discrete] +==== search_user_profiles +Searches for user profiles that match specified criteria. + +https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-search-user-profile.html[Endpoint documentation] +[source,ts] +---- +client.security.searchUserProfiles(...) +---- + [discrete] ==== update_user_profile_data Update application specific data for the user profile of the given unique ID. @@ -3840,6 +3878,8 @@ client.transform.putTransform(...) [discrete] ==== reset_transform Resets an existing transform. + +https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-transform.html[Endpoint documentation] [source,ts] ---- client.transform.resetTransform(...) diff --git a/src/api/api/cat.ts b/src/api/api/cat.ts index d052c4528..a4dea6a34 100644 --- a/src/api/api/cat.ts +++ b/src/api/api/cat.ts @@ -103,6 +103,35 @@ export default class Cat { return await this.transport.request({ path, method, querystring, body }, options) } + async componentTemplates (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise + async componentTemplates (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise> + async componentTemplates (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise + async componentTemplates (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise { + const acceptedPath: string[] = ['name'] + const querystring: Record = {} + const body = undefined + + params = params ?? {} + for (const key in params) { + if (acceptedPath.includes(key)) { + continue + } else if (key !== 'body') { + querystring[key] = params[key] + } + } + + let method = '' + let path = '' + if (params.name != null) { + method = 'GET' + path = `/_cat/component_templates/${encodeURIComponent(params.name.toString())}` + } else { + method = 'GET' + path = '/_cat/component_templates' + } + return await this.transport.request({ path, method, querystring, body }, options) + } + async count (this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithOutMeta): Promise async count (this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithMeta): Promise> async count (this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptions): Promise diff --git a/src/api/api/field_caps.ts b/src/api/api/field_caps.ts index d558bd531..606357720 100644 --- a/src/api/api/field_caps.ts +++ b/src/api/api/field_caps.ts @@ -37,10 +37,10 @@ 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 -export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise> -export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise -export default async function FieldCapsApi (this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise { +export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise +export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise> +export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise +export default async function FieldCapsApi (this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] const acceptedBody: string[] = ['index_filter', 'runtime_mappings'] const querystring: Record = {} @@ -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 ?? {} diff --git a/src/api/api/knn_search.ts b/src/api/api/knn_search.ts index 6431d505e..dbe6f9c5f 100644 --- a/src/api/api/knn_search.ts +++ b/src/api/api/knn_search.ts @@ -42,7 +42,7 @@ export default async function KnnSearchApi (this: That, par export default async function KnnSearchApi (this: That, params: T.KnnSearchRequest | TB.KnnSearchRequest, options?: TransportRequestOptions): Promise> export default async function KnnSearchApi (this: That, params: T.KnnSearchRequest | TB.KnnSearchRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['index'] - const acceptedBody: string[] = ['_source', 'docvalue_fields', 'stored_fields', 'fields', 'knn'] + const acceptedBody: string[] = ['_source', 'docvalue_fields', 'stored_fields', 'fields', 'filter', 'knn'] const querystring: Record = {} // @ts-expect-error const userBody: any = params?.body diff --git a/src/api/api/ml.ts b/src/api/api/ml.ts index 64f10f486..83e6932c8 100644 --- a/src/api/api/ml.ts +++ b/src/api/api/ml.ts @@ -937,10 +937,10 @@ export default class Ml { return await this.transport.request({ path, method, querystring, body }, options) } - async getMemoryStats (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise - async getMemoryStats (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise> - async getMemoryStats (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise - async getMemoryStats (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise { + async getMemoryStats (this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise + async getMemoryStats (this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptionsWithMeta): Promise> + async getMemoryStats (this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptions): Promise + async getMemoryStats (this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['node_id'] const querystring: Record = {} const body = undefined @@ -950,6 +950,7 @@ export default class Ml { if (acceptedPath.includes(key)) { continue } else if (key !== 'body') { + // @ts-expect-error querystring[key] = params[key] } } @@ -1680,7 +1681,7 @@ export default class Ml { async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['model_id'] - const acceptedBody: string[] = ['vocabulary'] + const acceptedBody: string[] = ['vocabulary', 'merges'] const querystring: Record = {} // @ts-expect-error const userBody: any = params?.body diff --git a/src/api/api/reindex.ts b/src/api/api/reindex.ts index 85e20deee..3dadca6b6 100644 --- a/src/api/api/reindex.ts +++ b/src/api/api/reindex.ts @@ -37,10 +37,10 @@ import * as T from '../types' import * as TB from '../typesWithBodyKey' interface That { transport: Transport } -export default async function ReindexApi (this: That, params?: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithOutMeta): Promise -export default async function ReindexApi (this: That, params?: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithMeta): Promise> -export default async function ReindexApi (this: That, params?: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptions): Promise -export default async function ReindexApi (this: That, params?: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptions): Promise { +export default async function ReindexApi (this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithOutMeta): Promise +export default async function ReindexApi (this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithMeta): Promise> +export default async function ReindexApi (this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptions): Promise +export default async function ReindexApi (this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = [] const acceptedBody: string[] = ['conflicts', 'dest', 'max_docs', 'script', 'size', 'source'] const querystring: Record = {} @@ -53,7 +53,6 @@ export default async function ReindexApi (this: That, params?: T.ReindexRequest body = userBody != null ? { ...userBody } : undefined } - params = params ?? {} for (const key in params) { if (acceptedBody.includes(key)) { body = body ?? {} diff --git a/src/api/api/security.ts b/src/api/api/security.ts index 082db4b76..d480295e3 100644 --- a/src/api/api/security.ts +++ b/src/api/api/security.ts @@ -436,6 +436,28 @@ export default class Security { return await this.transport.request({ path, method, querystring, body }, options) } + async disableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise + async disableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise> + async disableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise + async disableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise { + const acceptedPath: string[] = ['uid'] + const querystring: Record = {} + 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 = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_disable` + return await this.transport.request({ path, method, querystring, body }, options) + } + async enableUser (this: That, params: T.SecurityEnableUserRequest | TB.SecurityEnableUserRequest, options?: TransportRequestOptionsWithOutMeta): Promise async enableUser (this: That, params: T.SecurityEnableUserRequest | TB.SecurityEnableUserRequest, options?: TransportRequestOptionsWithMeta): Promise> async enableUser (this: That, params: T.SecurityEnableUserRequest | TB.SecurityEnableUserRequest, options?: TransportRequestOptions): Promise @@ -458,6 +480,28 @@ export default class Security { return await this.transport.request({ path, method, querystring, body }, options) } + async enableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise + async enableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise> + async enableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise + async enableUserProfile (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise { + const acceptedPath: string[] = ['uid'] + const querystring: Record = {} + 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 = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_enable` + return await this.transport.request({ path, method, querystring, body }, options) + } + async enrollKibana (this: That, params?: T.SecurityEnrollKibanaRequest | TB.SecurityEnrollKibanaRequest, options?: TransportRequestOptionsWithOutMeta): Promise async enrollKibana (this: That, params?: T.SecurityEnrollKibanaRequest | TB.SecurityEnrollKibanaRequest, options?: TransportRequestOptionsWithMeta): Promise> async enrollKibana (this: That, params?: T.SecurityEnrollKibanaRequest | TB.SecurityEnrollKibanaRequest, options?: TransportRequestOptions): Promise @@ -1377,6 +1421,28 @@ export default class Security { return await this.transport.request({ path, method, querystring, body }, options) } + async searchUserProfiles (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise + async searchUserProfiles (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise> + async searchUserProfiles (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise + async searchUserProfiles (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise { + const acceptedPath: string[] = [] + const querystring: Record = {} + 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 = body != null ? 'POST' : 'GET' + const path = '/_security/profile/_search' + return await this.transport.request({ path, method, querystring, body }, options) + } + async updateUserProfileData (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise async updateUserProfileData (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise> async updateUserProfileData (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise @@ -1394,8 +1460,8 @@ export default class Security { } } - const method = 'POST' - const path = `/_security/profile/_data/${encodeURIComponent(params.uid.toString())}` + const method = 'PUT' + const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_data` return await this.transport.request({ path, method, querystring, body }, options) } } diff --git a/src/api/types.ts b/src/api/types.ts index bb8768138..dcbfe4a37 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -167,8 +167,7 @@ export interface CreateRequest extends RequestBase { document?: TDocument } -export interface CreateResponse extends WriteResponseBase { -} +export type CreateResponse = WriteResponseBase export interface DeleteRequest extends RequestBase { id: Id @@ -183,8 +182,7 @@ export interface DeleteRequest extends RequestBase { wait_for_active_shards?: WaitForActiveShards } -export interface DeleteResponse extends WriteResponseBase { -} +export type DeleteResponse = WriteResponseBase export interface DeleteByQueryRequest extends RequestBase { index: Indices @@ -243,8 +241,7 @@ export interface DeleteByQueryRethrottleRequest extends RequestBase { requests_per_second?: long } -export interface DeleteByQueryRethrottleResponse extends TasksListResponse { -} +export type DeleteByQueryRethrottleResponse = TasksListResponse export interface DeleteScriptRequest extends RequestBase { id: Id @@ -252,8 +249,7 @@ export interface DeleteScriptRequest extends RequestBase { timeout?: Time } -export interface DeleteScriptResponse extends AcknowledgedResponseBase { -} +export type DeleteScriptResponse = AcknowledgedResponseBase export interface ExistsRequest extends RequestBase { id: Id @@ -345,9 +341,11 @@ export interface FieldCapsRequest extends RequestBase { index?: Indices allow_no_indices?: boolean expand_wildcards?: ExpandWildcards - fields?: Fields + fields: Fields ignore_unavailable?: boolean include_unmapped?: boolean + filters?: string + types?: string[] index_filter?: QueryDslQueryContainer runtime_mappings?: MappingRuntimeFields } @@ -467,8 +465,7 @@ export interface IndexRequest extends RequestBase { document?: TDocument } -export interface IndexResponse extends WriteResponseBase { -} +export type IndexResponse = WriteResponseBase export interface InfoRequest extends RequestBase { } @@ -488,6 +485,7 @@ export interface KnnSearchRequest extends RequestBase { docvalue_fields?: (QueryDslFieldAndFormat | Field)[] stored_fields?: Fields fields?: Fields + filter?: QueryDslQueryContainer | QueryDslQueryContainer[] knn: KnnSearchQuery } @@ -670,6 +668,7 @@ export interface MtermvectorsTermVectorsResult { export interface OpenPointInTimeRequest extends RequestBase { index: Indices keep_alive: Time + ignore_unavailable?: boolean } export interface OpenPointInTimeResponse { @@ -689,8 +688,7 @@ export interface PutScriptRequest extends RequestBase { script: StoredScript } -export interface PutScriptResponse extends AcknowledgedResponseBase { -} +export type PutScriptResponse = AcknowledgedResponseBase export interface RankEvalDocumentRating { _id: Id @@ -810,11 +808,11 @@ export interface ReindexRequest extends RequestBase { wait_for_completion?: boolean require_alias?: boolean conflicts?: Conflicts - dest?: ReindexDestination + dest: ReindexDestination max_docs?: long script?: Script size?: long - source?: ReindexSource + source: ReindexSource } export interface ReindexResponse { @@ -1668,7 +1666,9 @@ export interface UpdateRequest upsert?: TDocument } -export interface UpdateResponse extends WriteResponseBase { +export type UpdateResponse = UpdateUpdateWriteResponseBase + +export interface UpdateUpdateWriteResponseBase extends WriteResponseBase { get?: InlineGet } @@ -1821,10 +1821,6 @@ export type DateOrEpochMillis = DateString | EpochMillis export type DateString = string -export interface DictionaryResponseBase { - [key: string]: TValue -} - export type Distance = string export type DistanceUnit = 'in' | 'ft' | 'yd' | 'mi' | 'nmi' | 'km' | 'm' | 'cm' | 'mm' @@ -4428,7 +4424,7 @@ export interface MappingConstantKeywordProperty extends MappingPropertyBase { type: 'constant_keyword' } -export type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty +export type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty | MappingMatchOnlyTextProperty export interface MappingCorePropertyBase extends MappingPropertyBase { copy_to?: Fields @@ -4522,7 +4518,7 @@ export interface MappingFieldNamesField { enabled: boolean } -export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' +export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'match_only_text' export interface MappingFlattenedProperty extends MappingPropertyBase { boost?: double @@ -4645,6 +4641,13 @@ export interface MappingLongRangeProperty extends MappingRangePropertyBase { type: 'long_range' } +export interface MappingMatchOnlyTextProperty { + type: 'match_only_text' + fields?: Record + meta?: Record + copy_to?: Fields +} + export type MappingMatchType = 'simple' | 'regex' export interface MappingMurmur3HashProperty extends MappingDocValuesPropertyBase { @@ -5643,8 +5646,7 @@ export interface AsyncSearchDeleteRequest extends RequestBase { id: Id } -export interface AsyncSearchDeleteResponse extends AcknowledgedResponseBase { -} +export type AsyncSearchDeleteResponse = AcknowledgedResponseBase export interface AsyncSearchGetRequest extends RequestBase { id: Id @@ -5660,7 +5662,9 @@ export interface AsyncSearchStatusRequest extends RequestBase { id: Id } -export interface AsyncSearchStatusResponse extends AsyncSearchAsyncSearchResponseBase { +export type AsyncSearchStatusResponse = AsyncSearchStatusStatusResponseBase + +export interface AsyncSearchStatusStatusResponseBase extends AsyncSearchAsyncSearchResponseBase { _shards: ShardStatistics completion_status?: integer } @@ -5744,8 +5748,7 @@ export interface AutoscalingDeleteAutoscalingPolicyRequest extends RequestBase { name: Name } -export interface AutoscalingDeleteAutoscalingPolicyResponse extends AcknowledgedResponseBase { -} +export type AutoscalingDeleteAutoscalingPolicyResponse = AcknowledgedResponseBase export interface AutoscalingGetAutoscalingCapacityAutoscalingCapacity { node: AutoscalingGetAutoscalingCapacityAutoscalingResources @@ -5792,8 +5795,7 @@ export interface AutoscalingPutAutoscalingPolicyRequest extends RequestBase { policy?: AutoscalingAutoscalingPolicy } -export interface AutoscalingPutAutoscalingPolicyResponse extends AcknowledgedResponseBase { -} +export type AutoscalingPutAutoscalingPolicyResponse = AcknowledgedResponseBase export type CatCatAnomalyDetectorColumn = 'assignment_explanation' | 'ae' | 'buckets.count' | 'bc' | 'bucketsCount' | 'buckets.time.exp_avg' | 'btea' | 'bucketsTimeExpAvg' | 'buckets.time.exp_avg_hour' | 'bteah' | 'bucketsTimeExpAvgHour' | 'buckets.time.max' | 'btmax' | 'bucketsTimeMax' | 'buckets.time.min' | 'btmin' | 'bucketsTimeMin' | 'buckets.time.total' | 'btt' | 'bucketsTimeTotal' | 'data.buckets' | 'db' | 'dataBuckets' | 'data.earliest_record' | 'der' | 'dataEarliestRecord' | 'data.empty_buckets' | 'deb' | 'dataEmptyBuckets' | 'data.input_bytes' | 'dib' | 'dataInputBytes' | 'data.input_fields' | 'dif' | 'dataInputFields' | 'data.input_records' | 'dir' | 'dataInputRecords' | 'data.invalid_dates' | 'did' | 'dataInvalidDates' | 'data.last' | 'dl' | 'dataLast' | 'data.last_empty_bucket' | 'dleb' | 'dataLastEmptyBucket' | 'data.last_sparse_bucket' | 'dlsb' | 'dataLastSparseBucket' | 'data.latest_record' | 'dlr' | 'dataLatestRecord' | 'data.missing_fields' | 'dmf' | 'dataMissingFields' | 'data.out_of_order_timestamps' | 'doot' | 'dataOutOfOrderTimestamps' | 'data.processed_fields' | 'dpf' | 'dataProcessedFields' | 'data.processed_records' | 'dpr' | 'dataProcessedRecords' | 'data.sparse_buckets' | 'dsb' | 'dataSparseBuckets' | 'forecasts.memory.avg' | 'fmavg' | 'forecastsMemoryAvg' | 'forecasts.memory.max' | 'fmmax' | 'forecastsMemoryMax' | 'forecasts.memory.min' | 'fmmin' | 'forecastsMemoryMin' | 'forecasts.memory.total' | 'fmt' | 'forecastsMemoryTotal' | 'forecasts.records.avg' | 'fravg' | 'forecastsRecordsAvg' | 'forecasts.records.max' | 'frmax' | 'forecastsRecordsMax' | 'forecasts.records.min' | 'frmin' | 'forecastsRecordsMin' | 'forecasts.records.total' | 'frt' | 'forecastsRecordsTotal' | 'forecasts.time.avg' | 'ftavg' | 'forecastsTimeAvg' | 'forecasts.time.max' | 'ftmax' | 'forecastsTimeMax' | 'forecasts.time.min' | 'ftmin' | 'forecastsTimeMin' | 'forecasts.time.total' | 'ftt' | 'forecastsTimeTotal' | 'forecasts.total' | 'ft' | 'forecastsTotal' | 'id' | 'model.bucket_allocation_failures' | 'mbaf' | 'modelBucketAllocationFailures' | 'model.by_fields' | 'mbf' | 'modelByFields' | 'model.bytes' | 'mb' | 'modelBytes' | 'model.bytes_exceeded' | 'mbe' | 'modelBytesExceeded' | 'model.categorization_status' | 'mcs' | 'modelCategorizationStatus' | 'model.categorized_doc_count' | 'mcdc' | 'modelCategorizedDocCount' | 'model.dead_category_count' | 'mdcc' | 'modelDeadCategoryCount' | 'model.failed_category_count' | 'mdcc' | 'modelFailedCategoryCount' | 'model.frequent_category_count' | 'mfcc' | 'modelFrequentCategoryCount' | 'model.log_time' | 'mlt' | 'modelLogTime' | 'model.memory_limit' | 'mml' | 'modelMemoryLimit' | 'model.memory_status' | 'mms' | 'modelMemoryStatus' | 'model.over_fields' | 'mof' | 'modelOverFields' | 'model.partition_fields' | 'mpf' | 'modelPartitionFields' | 'model.rare_category_count' | 'mrcc' | 'modelRareCategoryCount' | 'model.timestamp' | 'mt' | 'modelTimestamp' | 'model.total_category_count' | 'mtcc' | 'modelTotalCategoryCount' | 'node.address' | 'na' | 'nodeAddress' | 'node.ephemeral_id' | 'ne' | 'nodeEphemeralId' | 'node.id' | 'ni' | 'nodeId' | 'node.name' | 'nn' | 'nodeName' | 'opened_time' | 'ot' | 'state' | 's' @@ -7612,8 +7614,7 @@ export interface CcrDeleteAutoFollowPatternRequest extends RequestBase { name: Name } -export interface CcrDeleteAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrDeleteAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrFollowRequest extends RequestBase { index: IndexName @@ -7715,15 +7716,13 @@ export interface CcrPauseAutoFollowPatternRequest extends RequestBase { name: Name } -export interface CcrPauseAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrPauseAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrPauseFollowRequest extends RequestBase { index: IndexName } -export interface CcrPauseFollowResponse extends AcknowledgedResponseBase { -} +export type CcrPauseFollowResponse = AcknowledgedResponseBase export interface CcrPutAutoFollowPatternRequest extends RequestBase { name: Name @@ -7744,15 +7743,13 @@ export interface CcrPutAutoFollowPatternRequest extends RequestBase { max_write_request_size?: ByteSize } -export interface CcrPutAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrPutAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeAutoFollowPatternRequest extends RequestBase { name: Name } -export interface CcrResumeAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrResumeAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeFollowRequest extends RequestBase { index: IndexName @@ -7768,8 +7765,7 @@ export interface CcrResumeFollowRequest extends RequestBase { read_poll_timeout?: Time } -export interface CcrResumeFollowResponse extends AcknowledgedResponseBase { -} +export type CcrResumeFollowResponse = AcknowledgedResponseBase export interface CcrStatsAutoFollowStats { auto_followed_clusters: CcrStatsAutoFollowedCluster[] @@ -7801,8 +7797,7 @@ export interface CcrUnfollowRequest extends RequestBase { index: IndexName } -export interface CcrUnfollowResponse extends AcknowledgedResponseBase { -} +export type CcrUnfollowResponse = AcknowledgedResponseBase export interface ClusterComponentTemplate { name: Name @@ -7941,13 +7936,12 @@ export interface ClusterAllocationExplainUnassignedInformation { export type ClusterAllocationExplainUnassignedInformationReason = 'INDEX_CREATED' | 'CLUSTER_RECOVERED' | 'INDEX_REOPENED' | 'DANGLING_INDEX_IMPORTED' | 'NEW_INDEX_RESTORED' | 'EXISTING_INDEX_RESTORED' | 'REPLICA_ADDED' | 'ALLOCATION_FAILED' | 'NODE_LEFT' | 'REROUTE_CANCELLED' | 'REINITIALIZED' | 'REALLOCATED_REPLICA' | 'PRIMARY_FAILED' | 'FORCED_EMPTY_PRIMARY' | 'MANUAL_ALLOCATION' export interface ClusterDeleteComponentTemplateRequest extends RequestBase { - name: Name + name: Names master_timeout?: Time timeout?: Time } -export interface ClusterDeleteComponentTemplateResponse extends AcknowledgedResponseBase { -} +export type ClusterDeleteComponentTemplateResponse = AcknowledgedResponseBase export interface ClusterDeleteVotingConfigExclusionsRequest extends RequestBase { wait_for_removal?: boolean @@ -8080,8 +8074,7 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase { _meta?: Metadata } -export interface ClusterPutComponentTemplateResponse extends AcknowledgedResponseBase { -} +export type ClusterPutComponentTemplateResponse = AcknowledgedResponseBase export interface ClusterPutSettingsRequest extends RequestBase { flat_settings?: boolean @@ -8123,8 +8116,7 @@ export interface ClusterRemoteInfoClusterRemoteSniffInfo { export interface ClusterRemoteInfoRequest extends RequestBase { } -export interface ClusterRemoteInfoResponse extends DictionaryResponseBase { -} +export type ClusterRemoteInfoResponse = Record export interface ClusterRerouteCommand { cancel?: ClusterRerouteCommandCancelAction @@ -8434,14 +8426,7 @@ export interface ClusterStatsRequest extends RequestBase { timeout?: Time } -export interface ClusterStatsResponse extends NodesNodesResponseBase { - cluster_name: Name - cluster_uuid: Uuid - indices: ClusterStatsClusterIndices - nodes: ClusterStatsClusterNodes - status: HealthStatus - timestamp: long -} +export type ClusterStatsResponse = ClusterStatsStatsResponseBase export interface ClusterStatsRuntimeFieldTypes { name: Name @@ -8460,6 +8445,15 @@ export interface ClusterStatsRuntimeFieldTypes { doc_total: integer } +export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase { + cluster_name: Name + cluster_uuid: Uuid + indices: ClusterStatsClusterIndices + nodes: ClusterStatsClusterNodes + status: HealthStatus + timestamp: long +} + export interface DanglingIndicesDeleteDanglingIndexRequest extends RequestBase { index_uuid: Uuid accept_data_loss: boolean @@ -8467,8 +8461,7 @@ export interface DanglingIndicesDeleteDanglingIndexRequest extends RequestBase { timeout?: Time } -export interface DanglingIndicesDeleteDanglingIndexResponse extends AcknowledgedResponseBase { -} +export type DanglingIndicesDeleteDanglingIndexResponse = AcknowledgedResponseBase export interface DanglingIndicesImportDanglingIndexRequest extends RequestBase { index_uuid: Uuid @@ -8477,8 +8470,7 @@ export interface DanglingIndicesImportDanglingIndexRequest extends RequestBase { timeout?: Time } -export interface DanglingIndicesImportDanglingIndexResponse extends AcknowledgedResponseBase { -} +export type DanglingIndicesImportDanglingIndexResponse = AcknowledgedResponseBase export interface DanglingIndicesListDanglingIndicesDanglingIndex { index_name: string @@ -8515,8 +8507,7 @@ export interface EnrichDeletePolicyRequest extends RequestBase { name: Name } -export interface EnrichDeletePolicyResponse extends AcknowledgedResponseBase { -} +export type EnrichDeletePolicyResponse = AcknowledgedResponseBase export type EnrichExecutePolicyEnrichPolicyPhase = 'SCHEDULED' | 'RUNNING' | 'COMPLETE' | 'FAILED' @@ -8548,8 +8539,7 @@ export interface EnrichPutPolicyRequest extends RequestBase { match?: EnrichPolicy } -export interface EnrichPutPolicyResponse extends AcknowledgedResponseBase { -} +export type EnrichPutPolicyResponse = AcknowledgedResponseBase export interface EnrichStatsCacheStats { node_id: Id @@ -8612,8 +8602,7 @@ export interface EqlDeleteRequest extends RequestBase { id: Id } -export interface EqlDeleteResponse extends AcknowledgedResponseBase { -} +export type EqlDeleteResponse = AcknowledgedResponseBase export interface EqlGetRequest extends RequestBase { id: Id @@ -8905,8 +8894,7 @@ export interface IlmDeleteLifecycleRequest extends RequestBase { timeout?: Time } -export interface IlmDeleteLifecycleResponse extends AcknowledgedResponseBase { -} +export type IlmDeleteLifecycleResponse = AcknowledgedResponseBase export type IlmExplainLifecycleLifecycleExplain = IlmExplainLifecycleLifecycleExplainManaged | IlmExplainLifecycleLifecycleExplainUnmanaged @@ -8966,8 +8954,7 @@ export interface IlmGetLifecycleRequest extends RequestBase { timeout?: Time } -export interface IlmGetLifecycleResponse extends DictionaryResponseBase { -} +export type IlmGetLifecycleResponse = Record export interface IlmGetStatusRequest extends RequestBase { } @@ -8998,8 +8985,7 @@ export interface IlmMoveToStepRequest extends RequestBase { next_step?: IlmMoveToStepStepKey } -export interface IlmMoveToStepResponse extends AcknowledgedResponseBase { -} +export type IlmMoveToStepResponse = AcknowledgedResponseBase export interface IlmMoveToStepStepKey { action: string @@ -9014,8 +9000,7 @@ export interface IlmPutLifecycleRequest extends RequestBase { policy?: IlmPolicy } -export interface IlmPutLifecycleResponse extends AcknowledgedResponseBase { -} +export type IlmPutLifecycleResponse = AcknowledgedResponseBase export interface IlmRemovePolicyRequest extends RequestBase { index: IndexName @@ -9030,24 +9015,21 @@ export interface IlmRetryRequest extends RequestBase { index: IndexName } -export interface IlmRetryResponse extends AcknowledgedResponseBase { -} +export type IlmRetryResponse = AcknowledgedResponseBase export interface IlmStartRequest extends RequestBase { master_timeout?: Time timeout?: Time } -export interface IlmStartResponse extends AcknowledgedResponseBase { -} +export type IlmStartResponse = AcknowledgedResponseBase export interface IlmStopRequest extends RequestBase { master_timeout?: Time timeout?: Time } -export interface IlmStopResponse extends AcknowledgedResponseBase { -} +export type IlmStopResponse = AcknowledgedResponseBase export interface IndicesAlias { filter?: QueryDslQueryContainer @@ -9209,6 +9191,10 @@ export interface IndicesIndexSettings { shards?: integer queries?: IndicesQueries similarity?: IndicesSettingsSimilarity + mappings?: IndicesMappingLimitSettings + 'indexing.slowlog'?: IndicesSlowlogSettings + indexing_pressure?: IndicesIndexingPressure + store?: IndicesStorage } export interface IndicesIndexSettingsAnalysis { @@ -9221,6 +9207,15 @@ export interface IndicesIndexSettingsAnalysis { export interface IndicesIndexSettingsLifecycle { name: Name + indexing_complete?: boolean + origination_date?: long + parse_origination_date?: boolean + step?: IndicesIndexSettingsLifecycleStep + rollover_alias?: string +} + +export interface IndicesIndexSettingsLifecycleStep { + wait_time_threshold?: Time } export interface IndicesIndexSettingsTimeSeries { @@ -9263,6 +9258,47 @@ export interface IndicesIndexVersioning { created_string?: VersionString } +export interface IndicesIndexingPressure { + memory: IndicesIndexingPressureMemory +} + +export interface IndicesIndexingPressureMemory { + limit?: integer +} + +export interface IndicesMappingLimitSettings { + total_fields?: IndicesMappingLimitSettingsTotalFields + depth?: IndicesMappingLimitSettingsDepth + nested_fields?: IndicesMappingLimitSettingsNestedFields + nested_objects?: IndicesMappingLimitSettingsNestedObjects + field_name_length?: IndicesMappingLimitSettingsFieldNameLength + dimension_fields?: IndicesMappingLimitSettingsDimensionFields +} + +export interface IndicesMappingLimitSettingsDepth { + limit?: integer +} + +export interface IndicesMappingLimitSettingsDimensionFields { + limit?: integer +} + +export interface IndicesMappingLimitSettingsFieldNameLength { + limit?: long +} + +export interface IndicesMappingLimitSettingsNestedFields { + limit?: integer +} + +export interface IndicesMappingLimitSettingsNestedObjects { + limit?: integer +} + +export interface IndicesMappingLimitSettingsTotalFields { + limit?: integer +} + export interface IndicesMerge { scheduler?: IndicesMergeScheduler } @@ -9309,7 +9345,8 @@ export interface IndicesSettingsQueryString { } export interface IndicesSettingsSearch { - idle: IndicesSearchIdle + idle?: IndicesSearchIdle + slowlog?: IndicesSlowlogSettings } export interface IndicesSettingsSimilarity { @@ -9363,11 +9400,38 @@ export interface IndicesSettingsSimilarityScriptedTfidf { type: 'scripted' } +export interface IndicesSlowlogSettings { + level?: string + source?: integer + reformat?: boolean + threshold?: IndicesSlowlogTresholds +} + +export interface IndicesSlowlogTresholdLevels { + warn?: Time + info?: Time + debug?: Time + trace?: Time +} + +export interface IndicesSlowlogTresholds { + query?: IndicesSlowlogTresholdLevels + fetch?: IndicesSlowlogTresholdLevels + index?: IndicesSlowlogTresholdLevels +} + export interface IndicesSoftDeletes { - enabled: boolean + enabled?: boolean retention_lease?: IndicesRetentionLease } +export interface IndicesStorage { + type: IndicesStorageType + allow_mmap?: boolean +} + +export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' + export interface IndicesStringFielddata { format: IndicesStringFielddataFormat } @@ -9384,13 +9448,17 @@ export interface IndicesTemplateMapping { } export interface IndicesTranslog { - durability?: string - flush_threshold_size?: string + sync_interval?: Time + durability?: IndicesTranslogDurability + flush_threshold_size?: ByteSize retention?: IndicesTranslogRetention } +export type IndicesTranslogDurability = 'request' | 'async' + export interface IndicesTranslogRetention { - size: ByteSize + size?: ByteSize + age?: Time } export type IndicesAddBlockIndicesBlockOptions = 'metadata' | 'read' | 'read_only' | 'write' @@ -9410,7 +9478,8 @@ export interface IndicesAddBlockRequest extends RequestBase { timeout?: Time } -export interface IndicesAddBlockResponse extends AcknowledgedResponseBase { +export interface IndicesAddBlockResponse { + acknowledged: boolean shards_acknowledged: boolean indices: IndicesAddBlockIndicesBlockStatus[] } @@ -9490,8 +9559,7 @@ export interface IndicesClearCacheRequest extends RequestBase { request?: boolean } -export interface IndicesClearCacheResponse extends ShardsOperationResponseBase { -} +export type IndicesClearCacheResponse = ShardsOperationResponseBase export interface IndicesCloneRequest extends RequestBase { index: IndexName @@ -9503,7 +9571,8 @@ export interface IndicesCloneRequest extends RequestBase { settings?: Record } -export interface IndicesCloneResponse extends AcknowledgedResponseBase { +export interface IndicesCloneResponse { + acknowledged: boolean index: IndexName shards_acknowledged: boolean } @@ -9527,7 +9596,8 @@ export interface IndicesCloseRequest extends RequestBase { wait_for_active_shards?: WaitForActiveShards } -export interface IndicesCloseResponse extends AcknowledgedResponseBase { +export interface IndicesCloseResponse { + acknowledged: boolean indices: Record shards_acknowledged: boolean } @@ -9552,8 +9622,7 @@ export interface IndicesCreateDataStreamRequest extends RequestBase { name: DataStreamName } -export interface IndicesCreateDataStreamResponse extends AcknowledgedResponseBase { -} +export type IndicesCreateDataStreamResponse = AcknowledgedResponseBase export interface IndicesDataStreamsStatsDataStreamsStatsItem { backing_indices: integer @@ -9586,8 +9655,7 @@ export interface IndicesDeleteRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteResponse extends IndicesResponseBase { -} +export type IndicesDeleteResponse = IndicesResponseBase export interface IndicesDeleteAliasRequest extends RequestBase { index: Indices @@ -9596,16 +9664,14 @@ export interface IndicesDeleteAliasRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteAliasResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteAliasResponse = AcknowledgedResponseBase export interface IndicesDeleteDataStreamRequest extends RequestBase { name: DataStreamNames expand_wildcards?: ExpandWildcards } -export interface IndicesDeleteDataStreamResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteDataStreamResponse = AcknowledgedResponseBase export interface IndicesDeleteIndexTemplateRequest extends RequestBase { name: Names @@ -9613,8 +9679,7 @@ export interface IndicesDeleteIndexTemplateRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteIndexTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteIndexTemplateResponse = AcknowledgedResponseBase export interface IndicesDeleteTemplateRequest extends RequestBase { name: Name @@ -9622,8 +9687,7 @@ export interface IndicesDeleteTemplateRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteTemplateResponse = AcknowledgedResponseBase export interface IndicesDiskUsageRequest extends RequestBase { index: IndexName @@ -9743,8 +9807,7 @@ export interface IndicesFlushRequest extends RequestBase { wait_if_ongoing?: boolean } -export interface IndicesFlushResponse extends ShardsOperationResponseBase { -} +export type IndicesFlushResponse = ShardsOperationResponseBase export interface IndicesForcemergeRequest extends RequestBase { index?: Indices @@ -9757,8 +9820,11 @@ export interface IndicesForcemergeRequest extends RequestBase { wait_for_completion?: boolean } -export interface IndicesForcemergeResponse extends ShardsOperationResponseBase { -} +export type IndicesForcemergeResponse = ShardsOperationResponseBase + +export type IndicesGetFeature = 'aliases' | 'mappings' | 'settings' + +export type IndicesGetFeatures = IndicesGetFeature | IndicesGetFeature[] export interface IndicesGetRequest extends RequestBase { index: Indices @@ -9769,10 +9835,10 @@ export interface IndicesGetRequest extends RequestBase { include_defaults?: boolean local?: boolean master_timeout?: Time + features?: IndicesGetFeatures } -export interface IndicesGetResponse extends DictionaryResponseBase { -} +export type IndicesGetResponse = Record export interface IndicesGetAliasIndexAliases { aliases: Record @@ -9787,8 +9853,7 @@ export interface IndicesGetAliasRequest extends RequestBase { local?: boolean } -export interface IndicesGetAliasResponse extends DictionaryResponseBase { -} +export type IndicesGetAliasResponse = Record export interface IndicesGetDataStreamRequest extends RequestBase { name?: DataStreamNames @@ -9809,8 +9874,7 @@ export interface IndicesGetFieldMappingRequest extends RequestBase { local?: boolean } -export interface IndicesGetFieldMappingResponse extends DictionaryResponseBase { -} +export type IndicesGetFieldMappingResponse = Record export interface IndicesGetFieldMappingTypeFieldMappings { mappings: Partial> @@ -9846,8 +9910,7 @@ export interface IndicesGetMappingRequest extends RequestBase { master_timeout?: Time } -export interface IndicesGetMappingResponse extends DictionaryResponseBase { -} +export type IndicesGetMappingResponse = Record export interface IndicesGetSettingsRequest extends RequestBase { index?: Indices @@ -9861,8 +9924,7 @@ export interface IndicesGetSettingsRequest extends RequestBase { master_timeout?: Time } -export interface IndicesGetSettingsResponse extends DictionaryResponseBase { -} +export type IndicesGetSettingsResponse = Record export interface IndicesGetTemplateRequest extends RequestBase { name?: Names @@ -9871,15 +9933,13 @@ export interface IndicesGetTemplateRequest extends RequestBase { master_timeout?: Time } -export interface IndicesGetTemplateResponse extends DictionaryResponseBase { -} +export type IndicesGetTemplateResponse = Record export interface IndicesMigrateToDataStreamRequest extends RequestBase { name: IndexName } -export interface IndicesMigrateToDataStreamResponse extends AcknowledgedResponseBase { -} +export type IndicesMigrateToDataStreamResponse = AcknowledgedResponseBase export interface IndicesOpenRequest extends RequestBase { index: Indices @@ -9891,7 +9951,8 @@ export interface IndicesOpenRequest extends RequestBase { wait_for_active_shards?: WaitForActiveShards } -export interface IndicesOpenResponse extends AcknowledgedResponseBase { +export interface IndicesOpenResponse { + acknowledged: boolean shards_acknowledged: boolean } @@ -9913,8 +9974,7 @@ export interface IndicesPutAliasRequest extends RequestBase { search_routing?: Routing } -export interface IndicesPutAliasResponse extends AcknowledgedResponseBase { -} +export type IndicesPutAliasResponse = AcknowledgedResponseBase export interface IndicesPutIndexTemplateIndexTemplateMapping { aliases?: Record @@ -9934,8 +9994,7 @@ export interface IndicesPutIndexTemplateRequest extends RequestBase { _meta?: Metadata } -export interface IndicesPutIndexTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesPutIndexTemplateResponse = AcknowledgedResponseBase export interface IndicesPutMappingRequest extends RequestBase { index: Indices @@ -9958,8 +10017,7 @@ export interface IndicesPutMappingRequest extends RequestBase { runtime?: MappingRuntimeFields } -export interface IndicesPutMappingResponse extends IndicesResponseBase { -} +export type IndicesPutMappingResponse = IndicesResponseBase export interface IndicesPutSettingsRequest extends RequestBase { index?: Indices @@ -9973,8 +10031,7 @@ export interface IndicesPutSettingsRequest extends RequestBase { settings?: IndicesIndexSettings } -export interface IndicesPutSettingsResponse extends AcknowledgedResponseBase { -} +export type IndicesPutSettingsResponse = AcknowledgedResponseBase export interface IndicesPutTemplateRequest extends RequestBase { name: Name @@ -9990,8 +10047,7 @@ export interface IndicesPutTemplateRequest extends RequestBase { version?: VersionNumber } -export interface IndicesPutTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesPutTemplateResponse = AcknowledgedResponseBase export interface IndicesRecoveryFileDetails { length: long @@ -10061,8 +10117,7 @@ export interface IndicesRecoveryRequest extends RequestBase { detailed?: boolean } -export interface IndicesRecoveryResponse extends DictionaryResponseBase { -} +export type IndicesRecoveryResponse = Record export interface IndicesRecoveryShardRecovery { id: long @@ -10106,8 +10161,7 @@ export interface IndicesRefreshRequest extends RequestBase { ignore_unavailable?: boolean } -export interface IndicesRefreshResponse extends ShardsOperationResponseBase { -} +export type IndicesRefreshResponse = ShardsOperationResponseBase export interface IndicesReloadSearchAnalyzersReloadDetails { index: string @@ -10169,7 +10223,8 @@ export interface IndicesRolloverRequest extends RequestBase { settings?: Record } -export interface IndicesRolloverResponse extends AcknowledgedResponseBase { +export interface IndicesRolloverResponse { + acknowledged: boolean conditions: Record dry_run: boolean new_index: string @@ -10281,7 +10336,8 @@ export interface IndicesShrinkRequest extends RequestBase { settings?: Record } -export interface IndicesShrinkResponse extends AcknowledgedResponseBase { +export interface IndicesShrinkResponse { + acknowledged: boolean shards_acknowledged: boolean index: IndexName } @@ -10336,7 +10392,8 @@ export interface IndicesSplitRequest extends RequestBase { settings?: Record } -export interface IndicesSplitResponse extends AcknowledgedResponseBase { +export interface IndicesSplitResponse { + acknowledged: boolean shards_acknowledged: boolean index: IndexName } @@ -10496,7 +10553,8 @@ export interface IndicesUnfreezeRequest extends RequestBase { wait_for_active_shards?: string } -export interface IndicesUnfreezeResponse extends AcknowledgedResponseBase { +export interface IndicesUnfreezeResponse { + acknowledged: boolean shards_acknowledged: boolean } @@ -10540,8 +10598,7 @@ export interface IndicesUpdateAliasesRequest extends RequestBase { actions?: IndicesUpdateAliasesAction[] } -export interface IndicesUpdateAliasesResponse extends AcknowledgedResponseBase { -} +export type IndicesUpdateAliasesResponse = AcknowledgedResponseBase export interface IndicesValidateQueryIndicesValidationExplanation { error?: string @@ -10882,8 +10939,7 @@ export interface IngestDeletePipelineRequest extends RequestBase { timeout?: Time } -export interface IngestDeletePipelineResponse extends AcknowledgedResponseBase { -} +export type IngestDeletePipelineResponse = AcknowledgedResponseBase export interface IngestGeoIpStatsGeoIpDownloadStatistics { successful_downloads: integer @@ -10916,8 +10972,7 @@ export interface IngestGetPipelineRequest extends RequestBase { summary?: boolean } -export interface IngestGetPipelineResponse extends DictionaryResponseBase { -} +export type IngestGetPipelineResponse = Record export interface IngestProcessorGrokRequest extends RequestBase { } @@ -10937,8 +10992,7 @@ export interface IngestPutPipelineRequest extends RequestBase { version?: VersionNumber } -export interface IngestPutPipelineResponse extends AcknowledgedResponseBase { -} +export type IngestPutPipelineResponse = AcknowledgedResponseBase export interface IngestSimulateDocument { _id?: Id @@ -10999,8 +11053,7 @@ export type LicenseLicenseType = 'missing' | 'trial' | 'basic' | 'standard' | 'd export interface LicenseDeleteRequest extends RequestBase { } -export interface LicenseDeleteResponse extends AcknowledgedResponseBase { -} +export type LicenseDeleteResponse = AcknowledgedResponseBase export interface LicenseGetLicenseInformation { expiry_date?: DateString @@ -11061,7 +11114,8 @@ export interface LicensePostStartBasicRequest extends RequestBase { acknowledge?: boolean } -export interface LicensePostStartBasicResponse extends AcknowledgedResponseBase { +export interface LicensePostStartBasicResponse { + acknowledged: boolean basic_was_started: boolean error_message?: string type?: LicenseLicenseType @@ -11073,7 +11127,8 @@ export interface LicensePostStartTrialRequest extends RequestBase { type_query_string?: string } -export interface LicensePostStartTrialResponse extends AcknowledgedResponseBase { +export interface LicensePostStartTrialResponse { + acknowledged: boolean error_message?: string trial_was_started: boolean type?: LicenseLicenseType @@ -12138,16 +12193,14 @@ export interface MlDeleteCalendarRequest extends RequestBase { calendar_id: Id } -export interface MlDeleteCalendarResponse extends AcknowledgedResponseBase { -} +export type MlDeleteCalendarResponse = AcknowledgedResponseBase export interface MlDeleteCalendarEventRequest extends RequestBase { calendar_id: Id event_id: Id } -export interface MlDeleteCalendarEventResponse extends AcknowledgedResponseBase { -} +export type MlDeleteCalendarEventResponse = AcknowledgedResponseBase export interface MlDeleteCalendarJobRequest extends RequestBase { calendar_id: Id @@ -12166,16 +12219,14 @@ export interface MlDeleteDataFrameAnalyticsRequest extends RequestBase { timeout?: Time } -export interface MlDeleteDataFrameAnalyticsResponse extends AcknowledgedResponseBase { -} +export type MlDeleteDataFrameAnalyticsResponse = AcknowledgedResponseBase export interface MlDeleteDatafeedRequest extends RequestBase { datafeed_id: Id force?: boolean } -export interface MlDeleteDatafeedResponse extends AcknowledgedResponseBase { -} +export type MlDeleteDatafeedResponse = AcknowledgedResponseBase export interface MlDeleteExpiredDataRequest extends RequestBase { job_id?: Id @@ -12191,8 +12242,7 @@ export interface MlDeleteFilterRequest extends RequestBase { filter_id: Id } -export interface MlDeleteFilterResponse extends AcknowledgedResponseBase { -} +export type MlDeleteFilterResponse = AcknowledgedResponseBase export interface MlDeleteForecastRequest extends RequestBase { job_id: Id @@ -12201,8 +12251,7 @@ export interface MlDeleteForecastRequest extends RequestBase { timeout?: Time } -export interface MlDeleteForecastResponse extends AcknowledgedResponseBase { -} +export type MlDeleteForecastResponse = AcknowledgedResponseBase export interface MlDeleteJobRequest extends RequestBase { job_id: Id @@ -12210,32 +12259,28 @@ export interface MlDeleteJobRequest extends RequestBase { wait_for_completion?: boolean } -export interface MlDeleteJobResponse extends AcknowledgedResponseBase { -} +export type MlDeleteJobResponse = AcknowledgedResponseBase export interface MlDeleteModelSnapshotRequest extends RequestBase { job_id: Id snapshot_id: Id } -export interface MlDeleteModelSnapshotResponse extends AcknowledgedResponseBase { -} +export type MlDeleteModelSnapshotResponse = AcknowledgedResponseBase export interface MlDeleteTrainedModelRequest extends RequestBase { model_id: Id force?: boolean } -export interface MlDeleteTrainedModelResponse extends AcknowledgedResponseBase { -} +export type MlDeleteTrainedModelResponse = AcknowledgedResponseBase export interface MlDeleteTrainedModelAliasRequest extends RequestBase { model_alias: Name model_id: Id } -export interface MlDeleteTrainedModelAliasResponse extends AcknowledgedResponseBase { -} +export type MlDeleteTrainedModelAliasResponse = AcknowledgedResponseBase export interface MlEstimateModelMemoryRequest extends RequestBase { analysis_config?: MlAnalysisConfig @@ -12376,7 +12421,8 @@ export interface MlForecastRequest extends RequestBase { max_model_memory?: string } -export interface MlForecastResponse extends AcknowledgedResponseBase { +export interface MlForecastResponse { + acknowledged: boolean forecast_id: Id } @@ -12543,6 +12589,58 @@ export interface MlGetJobsResponse { jobs: MlJob[] } +export interface MlGetMemoryStatsJvmStats { + heap_max: ByteSize + heap_max_in_bytes: integer + java_inference: ByteSize + java_inference_in_bytes: integer + java_inference_max: ByteSize + java_inference_max_in_bytes: integer +} + +export interface MlGetMemoryStatsMemMlStats { + anomaly_detectors: ByteSize + anomaly_detectors_in_bytes: integer + data_frame_analytics: ByteSize + data_frame_analytics_in_bytes: integer + max: ByteSize + max_in_bytes: integer + native_code_overhead: ByteSize + native_code_overhead_in_bytes: integer + native_inference: ByteSize + native_inference_in_bytes: integer +} + +export interface MlGetMemoryStatsMemStats { + adjusted_total: ByteSize + adjusted_total_in_bytes: integer + total: ByteSize + total_in_bytes: integer + ml: MlGetMemoryStatsMemMlStats +} + +export interface MlGetMemoryStatsMemory { + attributes: string[] + jvm: MlGetMemoryStatsJvmStats + mem: MlGetMemoryStatsMemStats + name: Name + roles: string[] + transport_address: TransportAddress +} + +export interface MlGetMemoryStatsRequest extends RequestBase { + node_id?: Id + human?: boolean + master_timeout?: Time + timeout?: Time +} + +export interface MlGetMemoryStatsResponse { + _nodes: NodeStatistics + cluser_name: Name + nodes: Record +} + export interface MlGetModelSnapshotsRequest extends RequestBase { job_id: Id snapshot_id?: Id @@ -12990,8 +13088,7 @@ export interface MlPutTrainedModelAliasRequest extends RequestBase { reassign?: boolean } -export interface MlPutTrainedModelAliasResponse extends AcknowledgedResponseBase { -} +export type MlPutTrainedModelAliasResponse = AcknowledgedResponseBase export interface MlPutTrainedModelDefinitionPartRequest extends RequestBase { model_id: Id @@ -13001,24 +13098,22 @@ export interface MlPutTrainedModelDefinitionPartRequest extends RequestBase { total_parts: integer } -export interface MlPutTrainedModelDefinitionPartResponse extends AcknowledgedResponseBase { -} +export type MlPutTrainedModelDefinitionPartResponse = AcknowledgedResponseBase export interface MlPutTrainedModelVocabularyRequest extends RequestBase { model_id: Id vocabulary: string[] + merges?: string[] } -export interface MlPutTrainedModelVocabularyResponse extends AcknowledgedResponseBase { -} +export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase export interface MlResetJobRequest extends RequestBase { job_id: Id wait_for_completion?: boolean } -export interface MlResetJobResponse extends AcknowledgedResponseBase { -} +export type MlResetJobResponse = AcknowledgedResponseBase export interface MlRevertModelSnapshotRequest extends RequestBase { job_id: Id @@ -13035,15 +13130,15 @@ export interface MlSetUpgradeModeRequest extends RequestBase { timeout?: Time } -export interface MlSetUpgradeModeResponse extends AcknowledgedResponseBase { -} +export type MlSetUpgradeModeResponse = AcknowledgedResponseBase export interface MlStartDataFrameAnalyticsRequest extends RequestBase { id: Id timeout?: Time } -export interface MlStartDataFrameAnalyticsResponse extends AcknowledgedResponseBase { +export interface MlStartDataFrameAnalyticsResponse { + acknowledged: boolean node: NodeId } @@ -13226,7 +13321,8 @@ export interface MlUpdateModelSnapshotRequest extends RequestBase { retain?: boolean } -export interface MlUpdateModelSnapshotResponse extends AcknowledgedResponseBase { +export interface MlUpdateModelSnapshotResponse { + acknowledged: boolean model: MlModelSnapshot } @@ -13254,15 +13350,13 @@ export interface MlValidateRequest extends RequestBase { results_index_name?: IndexName } -export interface MlValidateResponse extends AcknowledgedResponseBase { -} +export type MlValidateResponse = AcknowledgedResponseBase export interface MlValidateDetectorRequest extends RequestBase { detector?: MlDetector } -export interface MlValidateDetectorResponse extends AcknowledgedResponseBase { -} +export type MlValidateDetectorResponse = AcknowledgedResponseBase export interface MonitoringBulkRequest extends RequestBase { type?: string @@ -13729,7 +13823,9 @@ export interface NodesClearRepositoriesMeteringArchiveRequest extends RequestBas max_archive_version: long } -export interface NodesClearRepositoriesMeteringArchiveResponse extends NodesNodesResponseBase { +export type NodesClearRepositoriesMeteringArchiveResponse = NodesClearRepositoriesMeteringArchiveResponseBase + +export interface NodesClearRepositoriesMeteringArchiveResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -13738,7 +13834,9 @@ export interface NodesGetRepositoriesMeteringInfoRequest extends RequestBase { node_id: NodeIds } -export interface NodesGetRepositoriesMeteringInfoResponse extends NodesNodesResponseBase { +export type NodesGetRepositoriesMeteringInfoResponse = NodesGetRepositoriesMeteringInfoResponseBase + +export interface NodesGetRepositoriesMeteringInfoResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14113,7 +14211,9 @@ export interface NodesInfoRequest extends RequestBase { timeout?: Time } -export interface NodesInfoResponse extends NodesNodesResponseBase { +export type NodesInfoResponse = NodesInfoResponseBase + +export interface NodesInfoResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14124,7 +14224,9 @@ export interface NodesReloadSecureSettingsRequest extends RequestBase { secure_settings_password?: Password } -export interface NodesReloadSecureSettingsResponse extends NodesNodesResponseBase { +export type NodesReloadSecureSettingsResponse = NodesReloadSecureSettingsResponseBase + +export interface NodesReloadSecureSettingsResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14145,7 +14247,9 @@ export interface NodesStatsRequest extends RequestBase { include_unloaded_segments?: boolean } -export interface NodesStatsResponse extends NodesNodesResponseBase { +export type NodesStatsResponse = NodesStatsResponseBase + +export interface NodesStatsResponseBase extends NodesNodesResponseBase { cluster_name?: Name nodes: Record } @@ -14163,7 +14267,9 @@ export interface NodesUsageRequest extends RequestBase { timeout?: Time } -export interface NodesUsageResponse extends NodesNodesResponseBase { +export type NodesUsageResponse = NodesUsageResponseBase + +export interface NodesUsageResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14204,7 +14310,8 @@ export interface RollupDeleteJobRequest extends RequestBase { id: Id } -export interface RollupDeleteJobResponse extends AcknowledgedResponseBase { +export interface RollupDeleteJobResponse { + acknowledged: boolean task_failures?: TaskFailure[] } @@ -14260,8 +14367,7 @@ export interface RollupGetRollupCapsRequest extends RequestBase { id?: Id } -export interface RollupGetRollupCapsResponse extends DictionaryResponseBase { -} +export type RollupGetRollupCapsResponse = Record export interface RollupGetRollupCapsRollupCapabilities { rollup_jobs: RollupGetRollupCapsRollupCapabilitySummary[] @@ -14282,8 +14388,7 @@ export interface RollupGetRollupIndexCapsRequest extends RequestBase { index: Ids } -export interface RollupGetRollupIndexCapsResponse extends DictionaryResponseBase { -} +export type RollupGetRollupIndexCapsResponse = Record export interface RollupGetRollupIndexCapsRollupJobSummary { fields: Record @@ -14310,8 +14415,7 @@ export interface RollupPutJobRequest extends RequestBase { headers?: HttpHeaders } -export interface RollupPutJobResponse extends AcknowledgedResponseBase { -} +export type RollupPutJobResponse = AcknowledgedResponseBase export interface RollupRollupRequest extends RequestBase { index: IndexName @@ -14676,8 +14780,7 @@ export interface SecurityDeletePrivilegesRequest extends RequestBase { refresh?: Refresh } -export interface SecurityDeletePrivilegesResponse extends DictionaryResponseBase> { -} +export type SecurityDeletePrivilegesResponse = Record> export interface SecurityDeleteRoleRequest extends RequestBase { name: Name @@ -14783,15 +14886,13 @@ export interface SecurityGetPrivilegesRequest extends RequestBase { name?: Names } -export interface SecurityGetPrivilegesResponse extends DictionaryResponseBase> { -} +export type SecurityGetPrivilegesResponse = Record> export interface SecurityGetRoleRequest extends RequestBase { name?: Names } -export interface SecurityGetRoleResponse extends DictionaryResponseBase { -} +export type SecurityGetRoleResponse = Record export interface SecurityGetRoleRole { cluster: string[] @@ -14815,16 +14916,14 @@ export interface SecurityGetRoleMappingRequest extends RequestBase { name?: Names } -export interface SecurityGetRoleMappingResponse extends DictionaryResponseBase { -} +export type SecurityGetRoleMappingResponse = Record export interface SecurityGetServiceAccountsRequest extends RequestBase { namespace?: Namespace service?: Service } -export interface SecurityGetServiceAccountsResponse extends DictionaryResponseBase { -} +export type SecurityGetServiceAccountsResponse = Record export interface SecurityGetServiceAccountsRoleDescriptor { cluster: string[] @@ -14903,8 +15002,7 @@ export interface SecurityGetUserRequest extends RequestBase { username?: Username | Username[] } -export interface SecurityGetUserResponse extends DictionaryResponseBase { -} +export type SecurityGetUserResponse = Record export interface SecurityGetUserPrivilegesRequest extends RequestBase { application?: Name @@ -15018,8 +15116,7 @@ export interface SecurityPutPrivilegesRequest extends RequestBase { privileges?: Record> } -export interface SecurityPutPrivilegesResponse extends DictionaryResponseBase> { -} +export type SecurityPutPrivilegesResponse = Record> export interface SecurityPutRoleRequest extends RequestBase { name: Name @@ -15150,8 +15247,7 @@ export interface ShutdownDeleteNodeRequest extends RequestBase { node_id: NodeId } -export interface ShutdownDeleteNodeResponse extends AcknowledgedResponseBase { -} +export type ShutdownDeleteNodeResponse = AcknowledgedResponseBase export interface ShutdownGetNodeNodeShutdownStatus { node_id: NodeId @@ -15192,8 +15288,7 @@ export interface ShutdownPutNodeRequest extends RequestBase { node_id: NodeId } -export interface ShutdownPutNodeResponse extends AcknowledgedResponseBase { -} +export type ShutdownPutNodeResponse = AcknowledgedResponseBase export interface SlmConfiguration { ignore_unavailable?: boolean @@ -15264,8 +15359,7 @@ export interface SlmDeleteLifecycleRequest extends RequestBase { policy_id: Name } -export interface SlmDeleteLifecycleResponse extends AcknowledgedResponseBase { -} +export type SlmDeleteLifecycleResponse = AcknowledgedResponseBase export interface SlmExecuteLifecycleRequest extends RequestBase { policy_id: Name @@ -15278,15 +15372,13 @@ export interface SlmExecuteLifecycleResponse { export interface SlmExecuteRetentionRequest extends RequestBase { } -export interface SlmExecuteRetentionResponse extends AcknowledgedResponseBase { -} +export type SlmExecuteRetentionResponse = AcknowledgedResponseBase export interface SlmGetLifecycleRequest extends RequestBase { policy_id?: Names } -export interface SlmGetLifecycleResponse extends DictionaryResponseBase { -} +export type SlmGetLifecycleResponse = Record export interface SlmGetStatsRequest extends RequestBase { } @@ -15322,20 +15414,17 @@ export interface SlmPutLifecycleRequest extends RequestBase { schedule?: WatcherCronExpression } -export interface SlmPutLifecycleResponse extends AcknowledgedResponseBase { -} +export type SlmPutLifecycleResponse = AcknowledgedResponseBase export interface SlmStartRequest extends RequestBase { } -export interface SlmStartResponse extends AcknowledgedResponseBase { -} +export type SlmStartResponse = AcknowledgedResponseBase export interface SlmStopRequest extends RequestBase { } -export interface SlmStopResponse extends AcknowledgedResponseBase { -} +export type SlmStopResponse = AcknowledgedResponseBase export interface SnapshotFileCountSnapshotStats { file_count: integer @@ -15479,8 +15568,7 @@ export interface SnapshotCloneRequest extends RequestBase { indices: string } -export interface SnapshotCloneResponse extends AcknowledgedResponseBase { -} +export type SnapshotCloneResponse = AcknowledgedResponseBase export interface SnapshotCreateRequest extends RequestBase { repository: Name @@ -15510,8 +15598,7 @@ export interface SnapshotCreateRepositoryRequest extends RequestBase { settings: SnapshotRepositorySettings } -export interface SnapshotCreateRepositoryResponse extends AcknowledgedResponseBase { -} +export type SnapshotCreateRepositoryResponse = AcknowledgedResponseBase export interface SnapshotDeleteRequest extends RequestBase { repository: Name @@ -15519,8 +15606,7 @@ export interface SnapshotDeleteRequest extends RequestBase { master_timeout?: Time } -export interface SnapshotDeleteResponse extends AcknowledgedResponseBase { -} +export type SnapshotDeleteResponse = AcknowledgedResponseBase export interface SnapshotDeleteRepositoryRequest extends RequestBase { name: Names @@ -15528,8 +15614,7 @@ export interface SnapshotDeleteRepositoryRequest extends RequestBase { timeout?: Time } -export interface SnapshotDeleteRepositoryResponse extends AcknowledgedResponseBase { -} +export type SnapshotDeleteRepositoryResponse = AcknowledgedResponseBase export interface SnapshotGetRequest extends RequestBase { repository: Name @@ -15568,8 +15653,7 @@ export interface SnapshotGetRepositoryRequest extends RequestBase { master_timeout?: Time } -export interface SnapshotGetRepositoryResponse extends DictionaryResponseBase { -} +export type SnapshotGetRepositoryResponse = Record export interface SnapshotRestoreRequest extends RequestBase { repository: Name @@ -15641,8 +15725,7 @@ export interface SqlDeleteAsyncRequest extends RequestBase { id: Id } -export interface SqlDeleteAsyncResponse extends AcknowledgedResponseBase { -} +export type SqlDeleteAsyncResponse = AcknowledgedResponseBase export interface SqlGetAsyncRequest extends RequestBase { id: Id @@ -15800,8 +15883,7 @@ export interface TasksCancelRequest extends RequestBase { wait_for_completion?: boolean } -export interface TasksCancelResponse extends TasksTaskListResponseBase { -} +export type TasksCancelResponse = TasksTaskListResponseBase export interface TasksGetRequest extends RequestBase { task_id: Id @@ -15827,8 +15909,7 @@ export interface TasksListRequest extends RequestBase { wait_for_completion?: boolean } -export interface TasksListResponse extends TasksTaskListResponseBase { -} +export type TasksListResponse = TasksTaskListResponseBase export interface TextStructureFindStructureFieldStat { count: integer @@ -15951,8 +16032,7 @@ export interface TransformDeleteTransformRequest extends RequestBase { timeout?: Time } -export interface TransformDeleteTransformResponse extends AcknowledgedResponseBase { -} +export type TransformDeleteTransformResponse = AcknowledgedResponseBase export interface TransformGetTransformRequest extends RequestBase { transform_id?: Names @@ -16084,24 +16164,21 @@ export interface TransformPutTransformRequest extends RequestBase { sync?: TransformSyncContainer } -export interface TransformPutTransformResponse extends AcknowledgedResponseBase { -} +export type TransformPutTransformResponse = AcknowledgedResponseBase export interface TransformResetTransformRequest extends RequestBase { transform_id: Id force?: boolean } -export interface TransformResetTransformResponse extends AcknowledgedResponseBase { -} +export type TransformResetTransformResponse = AcknowledgedResponseBase export interface TransformStartTransformRequest extends RequestBase { transform_id: Id timeout?: Time } -export interface TransformStartTransformResponse extends AcknowledgedResponseBase { -} +export type TransformStartTransformResponse = AcknowledgedResponseBase export interface TransformStopTransformRequest extends RequestBase { transform_id: Name @@ -16112,8 +16189,7 @@ export interface TransformStopTransformRequest extends RequestBase { wait_for_completion?: boolean } -export interface TransformStopTransformResponse extends AcknowledgedResponseBase { -} +export type TransformStopTransformResponse = AcknowledgedResponseBase export interface TransformUpdateTransformRequest extends RequestBase { transform_id: Id @@ -16551,10 +16627,18 @@ export interface WatcherSearchInputRequestDefinition { indices?: IndexName[] indices_options?: IndicesOptions search_type?: SearchType - template?: SearchTemplateRequest + template?: WatcherSearchTemplateRequestBody rest_total_hits_as_int?: boolean } +export interface WatcherSearchTemplateRequestBody { + explain?: boolean + id?: Id + params?: Record + profile?: boolean + source?: string +} + export interface WatcherSimulatedActions { actions: string[] all: WatcherSimulatedActions @@ -16794,8 +16878,7 @@ export interface WatcherQueryWatchesResponse { export interface WatcherStartRequest extends RequestBase { } -export interface WatcherStartResponse extends AcknowledgedResponseBase { -} +export type WatcherStartResponse = AcknowledgedResponseBase export interface WatcherStatsRequest extends RequestBase { metric?: WatcherStatsWatcherMetric | WatcherStatsWatcherMetric[] @@ -16837,8 +16920,7 @@ export type WatcherStatsWatcherState = 'stopped' | 'starting' | 'started' | 'sto export interface WatcherStopRequest extends RequestBase { } -export interface WatcherStopResponse extends AcknowledgedResponseBase { -} +export type WatcherStopResponse = AcknowledgedResponseBase export interface XpackInfoBuildInformation { date: DateString @@ -16880,6 +16962,7 @@ export interface XpackInfoFeatures { vectors?: XpackInfoFeature voting_only: XpackInfoFeature watcher: XpackInfoFeature + archive: XpackInfoFeature } export interface XpackInfoMinimalLicenseInformation { @@ -16898,6 +16981,7 @@ export interface XpackInfoNativeCodeInformation { export interface XpackInfoRequest extends RequestBase { categories?: string[] accept_enterprise?: boolean + human?: boolean } export interface XpackInfoResponse { @@ -16931,6 +17015,10 @@ export interface XpackUsageAnalyticsStatistics { multi_terms_usage?: long } +export interface XpackUsageArchive extends XpackUsageBase { + indices_count: long +} + export interface XpackUsageAudit extends XpackUsageFeatureToggle { outputs?: string[] } @@ -17172,6 +17260,7 @@ export interface XpackUsageRequest extends RequestBase { export interface XpackUsageResponse { aggregate_metric: XpackUsageBase analytics: XpackUsageAnalytics + archive: XpackUsageArchive watcher: XpackUsageWatcher ccr: XpackUsageCcr data_frame?: XpackUsageBase diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index c2a1ef00d..a9c2646a8 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -179,8 +179,7 @@ export interface CreateRequest extends RequestBase { body?: TDocument } -export interface CreateResponse extends WriteResponseBase { -} +export type CreateResponse = WriteResponseBase export interface DeleteRequest extends RequestBase { id: Id @@ -195,8 +194,7 @@ export interface DeleteRequest extends RequestBase { wait_for_active_shards?: WaitForActiveShards } -export interface DeleteResponse extends WriteResponseBase { -} +export type DeleteResponse = WriteResponseBase export interface DeleteByQueryRequest extends RequestBase { index: Indices @@ -259,8 +257,7 @@ export interface DeleteByQueryRethrottleRequest extends RequestBase { requests_per_second?: long } -export interface DeleteByQueryRethrottleResponse extends TasksListResponse { -} +export type DeleteByQueryRethrottleResponse = TasksListResponse export interface DeleteScriptRequest extends RequestBase { id: Id @@ -268,8 +265,7 @@ export interface DeleteScriptRequest extends RequestBase { timeout?: Time } -export interface DeleteScriptResponse extends AcknowledgedResponseBase { -} +export type DeleteScriptResponse = AcknowledgedResponseBase export interface ExistsRequest extends RequestBase { id: Id @@ -364,9 +360,11 @@ export interface FieldCapsRequest extends RequestBase { index?: Indices allow_no_indices?: boolean expand_wildcards?: ExpandWildcards - fields?: Fields + 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?: { index_filter?: QueryDslQueryContainer @@ -490,8 +488,7 @@ export interface IndexRequest extends RequestBase { body?: TDocument } -export interface IndexResponse extends WriteResponseBase { -} +export type IndexResponse = WriteResponseBase export interface InfoRequest extends RequestBase { } @@ -513,6 +510,7 @@ export interface KnnSearchRequest extends RequestBase { docvalue_fields?: (QueryDslFieldAndFormat | Field)[] stored_fields?: Fields fields?: Fields + filter?: QueryDslQueryContainer | QueryDslQueryContainer[] knn: KnnSearchQuery } } @@ -705,6 +703,7 @@ export interface MtermvectorsTermVectorsResult { export interface OpenPointInTimeRequest extends RequestBase { index: Indices keep_alive: Time + ignore_unavailable?: boolean } export interface OpenPointInTimeResponse { @@ -727,8 +726,7 @@ export interface PutScriptRequest extends RequestBase { } } -export interface PutScriptResponse extends AcknowledgedResponseBase { -} +export type PutScriptResponse = AcknowledgedResponseBase export interface RankEvalDocumentRating { _id: Id @@ -853,11 +851,11 @@ export interface ReindexRequest extends RequestBase { /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */ body?: { conflicts?: Conflicts - dest?: ReindexDestination + dest: ReindexDestination max_docs?: long script?: Script size?: long - source?: ReindexSource + source: ReindexSource } } @@ -1763,7 +1761,9 @@ export interface UpdateRequest } } -export interface UpdateResponse extends WriteResponseBase { +export type UpdateResponse = UpdateUpdateWriteResponseBase + +export interface UpdateUpdateWriteResponseBase extends WriteResponseBase { get?: InlineGet } @@ -1921,10 +1921,6 @@ export type DateOrEpochMillis = DateString | EpochMillis export type DateString = string -export interface DictionaryResponseBase { - [key: string]: TValue -} - export type Distance = string export type DistanceUnit = 'in' | 'ft' | 'yd' | 'mi' | 'nmi' | 'km' | 'm' | 'cm' | 'mm' @@ -4528,7 +4524,7 @@ export interface MappingConstantKeywordProperty extends MappingPropertyBase { type: 'constant_keyword' } -export type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty +export type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty | MappingMatchOnlyTextProperty export interface MappingCorePropertyBase extends MappingPropertyBase { copy_to?: Fields @@ -4622,7 +4618,7 @@ export interface MappingFieldNamesField { enabled: boolean } -export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' +export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'match_only_text' export interface MappingFlattenedProperty extends MappingPropertyBase { boost?: double @@ -4745,6 +4741,13 @@ export interface MappingLongRangeProperty extends MappingRangePropertyBase { type: 'long_range' } +export interface MappingMatchOnlyTextProperty { + type: 'match_only_text' + fields?: Record + meta?: Record + copy_to?: Fields +} + export type MappingMatchType = 'simple' | 'regex' export interface MappingMurmur3HashProperty extends MappingDocValuesPropertyBase { @@ -5743,8 +5746,7 @@ export interface AsyncSearchDeleteRequest extends RequestBase { id: Id } -export interface AsyncSearchDeleteResponse extends AcknowledgedResponseBase { -} +export type AsyncSearchDeleteResponse = AcknowledgedResponseBase export interface AsyncSearchGetRequest extends RequestBase { id: Id @@ -5760,7 +5762,9 @@ export interface AsyncSearchStatusRequest extends RequestBase { id: Id } -export interface AsyncSearchStatusResponse extends AsyncSearchAsyncSearchResponseBase { +export type AsyncSearchStatusResponse = AsyncSearchStatusStatusResponseBase + +export interface AsyncSearchStatusStatusResponseBase extends AsyncSearchAsyncSearchResponseBase { _shards: ShardStatistics completion_status?: integer } @@ -5861,8 +5865,7 @@ export interface AutoscalingDeleteAutoscalingPolicyRequest extends RequestBase { name: Name } -export interface AutoscalingDeleteAutoscalingPolicyResponse extends AcknowledgedResponseBase { -} +export type AutoscalingDeleteAutoscalingPolicyResponse = AcknowledgedResponseBase export interface AutoscalingGetAutoscalingCapacityAutoscalingCapacity { node: AutoscalingGetAutoscalingCapacityAutoscalingResources @@ -5910,8 +5913,7 @@ export interface AutoscalingPutAutoscalingPolicyRequest extends RequestBase { body?: AutoscalingAutoscalingPolicy } -export interface AutoscalingPutAutoscalingPolicyResponse extends AcknowledgedResponseBase { -} +export type AutoscalingPutAutoscalingPolicyResponse = AcknowledgedResponseBase export type CatCatAnomalyDetectorColumn = 'assignment_explanation' | 'ae' | 'buckets.count' | 'bc' | 'bucketsCount' | 'buckets.time.exp_avg' | 'btea' | 'bucketsTimeExpAvg' | 'buckets.time.exp_avg_hour' | 'bteah' | 'bucketsTimeExpAvgHour' | 'buckets.time.max' | 'btmax' | 'bucketsTimeMax' | 'buckets.time.min' | 'btmin' | 'bucketsTimeMin' | 'buckets.time.total' | 'btt' | 'bucketsTimeTotal' | 'data.buckets' | 'db' | 'dataBuckets' | 'data.earliest_record' | 'der' | 'dataEarliestRecord' | 'data.empty_buckets' | 'deb' | 'dataEmptyBuckets' | 'data.input_bytes' | 'dib' | 'dataInputBytes' | 'data.input_fields' | 'dif' | 'dataInputFields' | 'data.input_records' | 'dir' | 'dataInputRecords' | 'data.invalid_dates' | 'did' | 'dataInvalidDates' | 'data.last' | 'dl' | 'dataLast' | 'data.last_empty_bucket' | 'dleb' | 'dataLastEmptyBucket' | 'data.last_sparse_bucket' | 'dlsb' | 'dataLastSparseBucket' | 'data.latest_record' | 'dlr' | 'dataLatestRecord' | 'data.missing_fields' | 'dmf' | 'dataMissingFields' | 'data.out_of_order_timestamps' | 'doot' | 'dataOutOfOrderTimestamps' | 'data.processed_fields' | 'dpf' | 'dataProcessedFields' | 'data.processed_records' | 'dpr' | 'dataProcessedRecords' | 'data.sparse_buckets' | 'dsb' | 'dataSparseBuckets' | 'forecasts.memory.avg' | 'fmavg' | 'forecastsMemoryAvg' | 'forecasts.memory.max' | 'fmmax' | 'forecastsMemoryMax' | 'forecasts.memory.min' | 'fmmin' | 'forecastsMemoryMin' | 'forecasts.memory.total' | 'fmt' | 'forecastsMemoryTotal' | 'forecasts.records.avg' | 'fravg' | 'forecastsRecordsAvg' | 'forecasts.records.max' | 'frmax' | 'forecastsRecordsMax' | 'forecasts.records.min' | 'frmin' | 'forecastsRecordsMin' | 'forecasts.records.total' | 'frt' | 'forecastsRecordsTotal' | 'forecasts.time.avg' | 'ftavg' | 'forecastsTimeAvg' | 'forecasts.time.max' | 'ftmax' | 'forecastsTimeMax' | 'forecasts.time.min' | 'ftmin' | 'forecastsTimeMin' | 'forecasts.time.total' | 'ftt' | 'forecastsTimeTotal' | 'forecasts.total' | 'ft' | 'forecastsTotal' | 'id' | 'model.bucket_allocation_failures' | 'mbaf' | 'modelBucketAllocationFailures' | 'model.by_fields' | 'mbf' | 'modelByFields' | 'model.bytes' | 'mb' | 'modelBytes' | 'model.bytes_exceeded' | 'mbe' | 'modelBytesExceeded' | 'model.categorization_status' | 'mcs' | 'modelCategorizationStatus' | 'model.categorized_doc_count' | 'mcdc' | 'modelCategorizedDocCount' | 'model.dead_category_count' | 'mdcc' | 'modelDeadCategoryCount' | 'model.failed_category_count' | 'mdcc' | 'modelFailedCategoryCount' | 'model.frequent_category_count' | 'mfcc' | 'modelFrequentCategoryCount' | 'model.log_time' | 'mlt' | 'modelLogTime' | 'model.memory_limit' | 'mml' | 'modelMemoryLimit' | 'model.memory_status' | 'mms' | 'modelMemoryStatus' | 'model.over_fields' | 'mof' | 'modelOverFields' | 'model.partition_fields' | 'mpf' | 'modelPartitionFields' | 'model.rare_category_count' | 'mrcc' | 'modelRareCategoryCount' | 'model.timestamp' | 'mt' | 'modelTimestamp' | 'model.total_category_count' | 'mtcc' | 'modelTotalCategoryCount' | 'node.address' | 'na' | 'nodeAddress' | 'node.ephemeral_id' | 'ne' | 'nodeEphemeralId' | 'node.id' | 'ni' | 'nodeId' | 'node.name' | 'nn' | 'nodeName' | 'opened_time' | 'ot' | 'state' | 's' @@ -7730,8 +7732,7 @@ export interface CcrDeleteAutoFollowPatternRequest extends RequestBase { name: Name } -export interface CcrDeleteAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrDeleteAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrFollowRequest extends RequestBase { index: IndexName @@ -7839,15 +7840,13 @@ export interface CcrPauseAutoFollowPatternRequest extends RequestBase { name: Name } -export interface CcrPauseAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrPauseAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrPauseFollowRequest extends RequestBase { index: IndexName } -export interface CcrPauseFollowResponse extends AcknowledgedResponseBase { -} +export type CcrPauseFollowResponse = AcknowledgedResponseBase export interface CcrPutAutoFollowPatternRequest extends RequestBase { name: Name @@ -7871,15 +7870,13 @@ export interface CcrPutAutoFollowPatternRequest extends RequestBase { } } -export interface CcrPutAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrPutAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeAutoFollowPatternRequest extends RequestBase { name: Name } -export interface CcrResumeAutoFollowPatternResponse extends AcknowledgedResponseBase { -} +export type CcrResumeAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeFollowRequest extends RequestBase { index: IndexName @@ -7898,8 +7895,7 @@ export interface CcrResumeFollowRequest extends RequestBase { } } -export interface CcrResumeFollowResponse extends AcknowledgedResponseBase { -} +export type CcrResumeFollowResponse = AcknowledgedResponseBase export interface CcrStatsAutoFollowStats { auto_followed_clusters: CcrStatsAutoFollowedCluster[] @@ -7931,8 +7927,7 @@ export interface CcrUnfollowRequest extends RequestBase { index: IndexName } -export interface CcrUnfollowResponse extends AcknowledgedResponseBase { -} +export type CcrUnfollowResponse = AcknowledgedResponseBase export interface ClusterComponentTemplate { name: Name @@ -8074,13 +8069,12 @@ export interface ClusterAllocationExplainUnassignedInformation { export type ClusterAllocationExplainUnassignedInformationReason = 'INDEX_CREATED' | 'CLUSTER_RECOVERED' | 'INDEX_REOPENED' | 'DANGLING_INDEX_IMPORTED' | 'NEW_INDEX_RESTORED' | 'EXISTING_INDEX_RESTORED' | 'REPLICA_ADDED' | 'ALLOCATION_FAILED' | 'NODE_LEFT' | 'REROUTE_CANCELLED' | 'REINITIALIZED' | 'REALLOCATED_REPLICA' | 'PRIMARY_FAILED' | 'FORCED_EMPTY_PRIMARY' | 'MANUAL_ALLOCATION' export interface ClusterDeleteComponentTemplateRequest extends RequestBase { - name: Name + name: Names master_timeout?: Time timeout?: Time } -export interface ClusterDeleteComponentTemplateResponse extends AcknowledgedResponseBase { -} +export type ClusterDeleteComponentTemplateResponse = AcknowledgedResponseBase export interface ClusterDeleteVotingConfigExclusionsRequest extends RequestBase { wait_for_removal?: boolean @@ -8216,8 +8210,7 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase { } } -export interface ClusterPutComponentTemplateResponse extends AcknowledgedResponseBase { -} +export type ClusterPutComponentTemplateResponse = AcknowledgedResponseBase export interface ClusterPutSettingsRequest extends RequestBase { flat_settings?: boolean @@ -8262,8 +8255,7 @@ export interface ClusterRemoteInfoClusterRemoteSniffInfo { export interface ClusterRemoteInfoRequest extends RequestBase { } -export interface ClusterRemoteInfoResponse extends DictionaryResponseBase { -} +export type ClusterRemoteInfoResponse = Record export interface ClusterRerouteCommand { cancel?: ClusterRerouteCommandCancelAction @@ -8576,14 +8568,7 @@ export interface ClusterStatsRequest extends RequestBase { timeout?: Time } -export interface ClusterStatsResponse extends NodesNodesResponseBase { - cluster_name: Name - cluster_uuid: Uuid - indices: ClusterStatsClusterIndices - nodes: ClusterStatsClusterNodes - status: HealthStatus - timestamp: long -} +export type ClusterStatsResponse = ClusterStatsStatsResponseBase export interface ClusterStatsRuntimeFieldTypes { name: Name @@ -8602,6 +8587,15 @@ export interface ClusterStatsRuntimeFieldTypes { doc_total: integer } +export interface ClusterStatsStatsResponseBase extends NodesNodesResponseBase { + cluster_name: Name + cluster_uuid: Uuid + indices: ClusterStatsClusterIndices + nodes: ClusterStatsClusterNodes + status: HealthStatus + timestamp: long +} + export interface DanglingIndicesDeleteDanglingIndexRequest extends RequestBase { index_uuid: Uuid accept_data_loss: boolean @@ -8609,8 +8603,7 @@ export interface DanglingIndicesDeleteDanglingIndexRequest extends RequestBase { timeout?: Time } -export interface DanglingIndicesDeleteDanglingIndexResponse extends AcknowledgedResponseBase { -} +export type DanglingIndicesDeleteDanglingIndexResponse = AcknowledgedResponseBase export interface DanglingIndicesImportDanglingIndexRequest extends RequestBase { index_uuid: Uuid @@ -8619,8 +8612,7 @@ export interface DanglingIndicesImportDanglingIndexRequest extends RequestBase { timeout?: Time } -export interface DanglingIndicesImportDanglingIndexResponse extends AcknowledgedResponseBase { -} +export type DanglingIndicesImportDanglingIndexResponse = AcknowledgedResponseBase export interface DanglingIndicesListDanglingIndicesDanglingIndex { index_name: string @@ -8657,8 +8649,7 @@ export interface EnrichDeletePolicyRequest extends RequestBase { name: Name } -export interface EnrichDeletePolicyResponse extends AcknowledgedResponseBase { -} +export type EnrichDeletePolicyResponse = AcknowledgedResponseBase export type EnrichExecutePolicyEnrichPolicyPhase = 'SCHEDULED' | 'RUNNING' | 'COMPLETE' | 'FAILED' @@ -8693,8 +8684,7 @@ export interface EnrichPutPolicyRequest extends RequestBase { } } -export interface EnrichPutPolicyResponse extends AcknowledgedResponseBase { -} +export type EnrichPutPolicyResponse = AcknowledgedResponseBase export interface EnrichStatsCacheStats { node_id: Id @@ -8757,8 +8747,7 @@ export interface EqlDeleteRequest extends RequestBase { id: Id } -export interface EqlDeleteResponse extends AcknowledgedResponseBase { -} +export type EqlDeleteResponse = AcknowledgedResponseBase export interface EqlGetRequest extends RequestBase { id: Id @@ -9077,8 +9066,7 @@ export interface IlmDeleteLifecycleRequest extends RequestBase { timeout?: Time } -export interface IlmDeleteLifecycleResponse extends AcknowledgedResponseBase { -} +export type IlmDeleteLifecycleResponse = AcknowledgedResponseBase export type IlmExplainLifecycleLifecycleExplain = IlmExplainLifecycleLifecycleExplainManaged | IlmExplainLifecycleLifecycleExplainUnmanaged @@ -9138,8 +9126,7 @@ export interface IlmGetLifecycleRequest extends RequestBase { timeout?: Time } -export interface IlmGetLifecycleResponse extends DictionaryResponseBase { -} +export type IlmGetLifecycleResponse = Record export interface IlmGetStatusRequest extends RequestBase { } @@ -9176,8 +9163,7 @@ export interface IlmMoveToStepRequest extends RequestBase { } } -export interface IlmMoveToStepResponse extends AcknowledgedResponseBase { -} +export type IlmMoveToStepResponse = AcknowledgedResponseBase export interface IlmMoveToStepStepKey { action: string @@ -9195,8 +9181,7 @@ export interface IlmPutLifecycleRequest extends RequestBase { } } -export interface IlmPutLifecycleResponse extends AcknowledgedResponseBase { -} +export type IlmPutLifecycleResponse = AcknowledgedResponseBase export interface IlmRemovePolicyRequest extends RequestBase { index: IndexName @@ -9211,24 +9196,21 @@ export interface IlmRetryRequest extends RequestBase { index: IndexName } -export interface IlmRetryResponse extends AcknowledgedResponseBase { -} +export type IlmRetryResponse = AcknowledgedResponseBase export interface IlmStartRequest extends RequestBase { master_timeout?: Time timeout?: Time } -export interface IlmStartResponse extends AcknowledgedResponseBase { -} +export type IlmStartResponse = AcknowledgedResponseBase export interface IlmStopRequest extends RequestBase { master_timeout?: Time timeout?: Time } -export interface IlmStopResponse extends AcknowledgedResponseBase { -} +export type IlmStopResponse = AcknowledgedResponseBase export interface IndicesAlias { filter?: QueryDslQueryContainer @@ -9390,6 +9372,10 @@ export interface IndicesIndexSettings { shards?: integer queries?: IndicesQueries similarity?: IndicesSettingsSimilarity + mappings?: IndicesMappingLimitSettings + 'indexing.slowlog'?: IndicesSlowlogSettings + indexing_pressure?: IndicesIndexingPressure + store?: IndicesStorage } export interface IndicesIndexSettingsAnalysis { @@ -9402,6 +9388,15 @@ export interface IndicesIndexSettingsAnalysis { export interface IndicesIndexSettingsLifecycle { name: Name + indexing_complete?: boolean + origination_date?: long + parse_origination_date?: boolean + step?: IndicesIndexSettingsLifecycleStep + rollover_alias?: string +} + +export interface IndicesIndexSettingsLifecycleStep { + wait_time_threshold?: Time } export interface IndicesIndexSettingsTimeSeries { @@ -9444,6 +9439,47 @@ export interface IndicesIndexVersioning { created_string?: VersionString } +export interface IndicesIndexingPressure { + memory: IndicesIndexingPressureMemory +} + +export interface IndicesIndexingPressureMemory { + limit?: integer +} + +export interface IndicesMappingLimitSettings { + total_fields?: IndicesMappingLimitSettingsTotalFields + depth?: IndicesMappingLimitSettingsDepth + nested_fields?: IndicesMappingLimitSettingsNestedFields + nested_objects?: IndicesMappingLimitSettingsNestedObjects + field_name_length?: IndicesMappingLimitSettingsFieldNameLength + dimension_fields?: IndicesMappingLimitSettingsDimensionFields +} + +export interface IndicesMappingLimitSettingsDepth { + limit?: integer +} + +export interface IndicesMappingLimitSettingsDimensionFields { + limit?: integer +} + +export interface IndicesMappingLimitSettingsFieldNameLength { + limit?: long +} + +export interface IndicesMappingLimitSettingsNestedFields { + limit?: integer +} + +export interface IndicesMappingLimitSettingsNestedObjects { + limit?: integer +} + +export interface IndicesMappingLimitSettingsTotalFields { + limit?: integer +} + export interface IndicesMerge { scheduler?: IndicesMergeScheduler } @@ -9490,7 +9526,8 @@ export interface IndicesSettingsQueryString { } export interface IndicesSettingsSearch { - idle: IndicesSearchIdle + idle?: IndicesSearchIdle + slowlog?: IndicesSlowlogSettings } export interface IndicesSettingsSimilarity { @@ -9544,11 +9581,38 @@ export interface IndicesSettingsSimilarityScriptedTfidf { type: 'scripted' } +export interface IndicesSlowlogSettings { + level?: string + source?: integer + reformat?: boolean + threshold?: IndicesSlowlogTresholds +} + +export interface IndicesSlowlogTresholdLevels { + warn?: Time + info?: Time + debug?: Time + trace?: Time +} + +export interface IndicesSlowlogTresholds { + query?: IndicesSlowlogTresholdLevels + fetch?: IndicesSlowlogTresholdLevels + index?: IndicesSlowlogTresholdLevels +} + export interface IndicesSoftDeletes { - enabled: boolean + enabled?: boolean retention_lease?: IndicesRetentionLease } +export interface IndicesStorage { + type: IndicesStorageType + allow_mmap?: boolean +} + +export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' + export interface IndicesStringFielddata { format: IndicesStringFielddataFormat } @@ -9565,13 +9629,17 @@ export interface IndicesTemplateMapping { } export interface IndicesTranslog { - durability?: string - flush_threshold_size?: string + sync_interval?: Time + durability?: IndicesTranslogDurability + flush_threshold_size?: ByteSize retention?: IndicesTranslogRetention } +export type IndicesTranslogDurability = 'request' | 'async' + export interface IndicesTranslogRetention { - size: ByteSize + size?: ByteSize + age?: Time } export type IndicesAddBlockIndicesBlockOptions = 'metadata' | 'read' | 'read_only' | 'write' @@ -9591,7 +9659,8 @@ export interface IndicesAddBlockRequest extends RequestBase { timeout?: Time } -export interface IndicesAddBlockResponse extends AcknowledgedResponseBase { +export interface IndicesAddBlockResponse { + acknowledged: boolean shards_acknowledged: boolean indices: IndicesAddBlockIndicesBlockStatus[] } @@ -9674,8 +9743,7 @@ export interface IndicesClearCacheRequest extends RequestBase { request?: boolean } -export interface IndicesClearCacheResponse extends ShardsOperationResponseBase { -} +export type IndicesClearCacheResponse = ShardsOperationResponseBase export interface IndicesCloneRequest extends RequestBase { index: IndexName @@ -9690,7 +9758,8 @@ export interface IndicesCloneRequest extends RequestBase { } } -export interface IndicesCloneResponse extends AcknowledgedResponseBase { +export interface IndicesCloneResponse { + acknowledged: boolean index: IndexName shards_acknowledged: boolean } @@ -9714,7 +9783,8 @@ export interface IndicesCloseRequest extends RequestBase { wait_for_active_shards?: WaitForActiveShards } -export interface IndicesCloseResponse extends AcknowledgedResponseBase { +export interface IndicesCloseResponse { + acknowledged: boolean indices: Record shards_acknowledged: boolean } @@ -9742,8 +9812,7 @@ export interface IndicesCreateDataStreamRequest extends RequestBase { name: DataStreamName } -export interface IndicesCreateDataStreamResponse extends AcknowledgedResponseBase { -} +export type IndicesCreateDataStreamResponse = AcknowledgedResponseBase export interface IndicesDataStreamsStatsDataStreamsStatsItem { backing_indices: integer @@ -9776,8 +9845,7 @@ export interface IndicesDeleteRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteResponse extends IndicesResponseBase { -} +export type IndicesDeleteResponse = IndicesResponseBase export interface IndicesDeleteAliasRequest extends RequestBase { index: Indices @@ -9786,16 +9854,14 @@ export interface IndicesDeleteAliasRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteAliasResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteAliasResponse = AcknowledgedResponseBase export interface IndicesDeleteDataStreamRequest extends RequestBase { name: DataStreamNames expand_wildcards?: ExpandWildcards } -export interface IndicesDeleteDataStreamResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteDataStreamResponse = AcknowledgedResponseBase export interface IndicesDeleteIndexTemplateRequest extends RequestBase { name: Names @@ -9803,8 +9869,7 @@ export interface IndicesDeleteIndexTemplateRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteIndexTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteIndexTemplateResponse = AcknowledgedResponseBase export interface IndicesDeleteTemplateRequest extends RequestBase { name: Name @@ -9812,8 +9877,7 @@ export interface IndicesDeleteTemplateRequest extends RequestBase { timeout?: Time } -export interface IndicesDeleteTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesDeleteTemplateResponse = AcknowledgedResponseBase export interface IndicesDiskUsageRequest extends RequestBase { index: IndexName @@ -9933,8 +9997,7 @@ export interface IndicesFlushRequest extends RequestBase { wait_if_ongoing?: boolean } -export interface IndicesFlushResponse extends ShardsOperationResponseBase { -} +export type IndicesFlushResponse = ShardsOperationResponseBase export interface IndicesForcemergeRequest extends RequestBase { index?: Indices @@ -9947,8 +10010,11 @@ export interface IndicesForcemergeRequest extends RequestBase { wait_for_completion?: boolean } -export interface IndicesForcemergeResponse extends ShardsOperationResponseBase { -} +export type IndicesForcemergeResponse = ShardsOperationResponseBase + +export type IndicesGetFeature = 'aliases' | 'mappings' | 'settings' + +export type IndicesGetFeatures = IndicesGetFeature | IndicesGetFeature[] export interface IndicesGetRequest extends RequestBase { index: Indices @@ -9959,10 +10025,10 @@ export interface IndicesGetRequest extends RequestBase { include_defaults?: boolean local?: boolean master_timeout?: Time + features?: IndicesGetFeatures } -export interface IndicesGetResponse extends DictionaryResponseBase { -} +export type IndicesGetResponse = Record export interface IndicesGetAliasIndexAliases { aliases: Record @@ -9977,8 +10043,7 @@ export interface IndicesGetAliasRequest extends RequestBase { local?: boolean } -export interface IndicesGetAliasResponse extends DictionaryResponseBase { -} +export type IndicesGetAliasResponse = Record export interface IndicesGetDataStreamRequest extends RequestBase { name?: DataStreamNames @@ -9999,8 +10064,7 @@ export interface IndicesGetFieldMappingRequest extends RequestBase { local?: boolean } -export interface IndicesGetFieldMappingResponse extends DictionaryResponseBase { -} +export type IndicesGetFieldMappingResponse = Record export interface IndicesGetFieldMappingTypeFieldMappings { mappings: Partial> @@ -10036,8 +10100,7 @@ export interface IndicesGetMappingRequest extends RequestBase { master_timeout?: Time } -export interface IndicesGetMappingResponse extends DictionaryResponseBase { -} +export type IndicesGetMappingResponse = Record export interface IndicesGetSettingsRequest extends RequestBase { index?: Indices @@ -10051,8 +10114,7 @@ export interface IndicesGetSettingsRequest extends RequestBase { master_timeout?: Time } -export interface IndicesGetSettingsResponse extends DictionaryResponseBase { -} +export type IndicesGetSettingsResponse = Record export interface IndicesGetTemplateRequest extends RequestBase { name?: Names @@ -10061,15 +10123,13 @@ export interface IndicesGetTemplateRequest extends RequestBase { master_timeout?: Time } -export interface IndicesGetTemplateResponse extends DictionaryResponseBase { -} +export type IndicesGetTemplateResponse = Record export interface IndicesMigrateToDataStreamRequest extends RequestBase { name: IndexName } -export interface IndicesMigrateToDataStreamResponse extends AcknowledgedResponseBase { -} +export type IndicesMigrateToDataStreamResponse = AcknowledgedResponseBase export interface IndicesOpenRequest extends RequestBase { index: Indices @@ -10081,7 +10141,8 @@ export interface IndicesOpenRequest extends RequestBase { wait_for_active_shards?: WaitForActiveShards } -export interface IndicesOpenResponse extends AcknowledgedResponseBase { +export interface IndicesOpenResponse { + acknowledged: boolean shards_acknowledged: boolean } @@ -10106,8 +10167,7 @@ export interface IndicesPutAliasRequest extends RequestBase { } } -export interface IndicesPutAliasResponse extends AcknowledgedResponseBase { -} +export type IndicesPutAliasResponse = AcknowledgedResponseBase export interface IndicesPutIndexTemplateIndexTemplateMapping { aliases?: Record @@ -10130,8 +10190,7 @@ export interface IndicesPutIndexTemplateRequest extends RequestBase { } } -export interface IndicesPutIndexTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesPutIndexTemplateResponse = AcknowledgedResponseBase export interface IndicesPutMappingRequest extends RequestBase { index: Indices @@ -10157,8 +10216,7 @@ export interface IndicesPutMappingRequest extends RequestBase { } } -export interface IndicesPutMappingResponse extends IndicesResponseBase { -} +export type IndicesPutMappingResponse = IndicesResponseBase export interface IndicesPutSettingsRequest extends RequestBase { index?: Indices @@ -10173,8 +10231,7 @@ export interface IndicesPutSettingsRequest extends RequestBase { body?: IndicesIndexSettings } -export interface IndicesPutSettingsResponse extends AcknowledgedResponseBase { -} +export type IndicesPutSettingsResponse = AcknowledgedResponseBase export interface IndicesPutTemplateRequest extends RequestBase { name: Name @@ -10194,8 +10251,7 @@ export interface IndicesPutTemplateRequest extends RequestBase { } } -export interface IndicesPutTemplateResponse extends AcknowledgedResponseBase { -} +export type IndicesPutTemplateResponse = AcknowledgedResponseBase export interface IndicesRecoveryFileDetails { length: long @@ -10265,8 +10321,7 @@ export interface IndicesRecoveryRequest extends RequestBase { detailed?: boolean } -export interface IndicesRecoveryResponse extends DictionaryResponseBase { -} +export type IndicesRecoveryResponse = Record export interface IndicesRecoveryShardRecovery { id: long @@ -10310,8 +10365,7 @@ export interface IndicesRefreshRequest extends RequestBase { ignore_unavailable?: boolean } -export interface IndicesRefreshResponse extends ShardsOperationResponseBase { -} +export type IndicesRefreshResponse = ShardsOperationResponseBase export interface IndicesReloadSearchAnalyzersReloadDetails { index: string @@ -10376,7 +10430,8 @@ export interface IndicesRolloverRequest extends RequestBase { } } -export interface IndicesRolloverResponse extends AcknowledgedResponseBase { +export interface IndicesRolloverResponse { + acknowledged: boolean conditions: Record dry_run: boolean new_index: string @@ -10491,7 +10546,8 @@ export interface IndicesShrinkRequest extends RequestBase { } } -export interface IndicesShrinkResponse extends AcknowledgedResponseBase { +export interface IndicesShrinkResponse { + acknowledged: boolean shards_acknowledged: boolean index: IndexName } @@ -10553,7 +10609,8 @@ export interface IndicesSplitRequest extends RequestBase { } } -export interface IndicesSplitResponse extends AcknowledgedResponseBase { +export interface IndicesSplitResponse { + acknowledged: boolean shards_acknowledged: boolean index: IndexName } @@ -10713,7 +10770,8 @@ export interface IndicesUnfreezeRequest extends RequestBase { wait_for_active_shards?: string } -export interface IndicesUnfreezeResponse extends AcknowledgedResponseBase { +export interface IndicesUnfreezeResponse { + acknowledged: boolean shards_acknowledged: boolean } @@ -10760,8 +10818,7 @@ export interface IndicesUpdateAliasesRequest extends RequestBase { } } -export interface IndicesUpdateAliasesResponse extends AcknowledgedResponseBase { -} +export type IndicesUpdateAliasesResponse = AcknowledgedResponseBase export interface IndicesValidateQueryIndicesValidationExplanation { error?: string @@ -11105,8 +11162,7 @@ export interface IngestDeletePipelineRequest extends RequestBase { timeout?: Time } -export interface IngestDeletePipelineResponse extends AcknowledgedResponseBase { -} +export type IngestDeletePipelineResponse = AcknowledgedResponseBase export interface IngestGeoIpStatsGeoIpDownloadStatistics { successful_downloads: integer @@ -11139,8 +11195,7 @@ export interface IngestGetPipelineRequest extends RequestBase { summary?: boolean } -export interface IngestGetPipelineResponse extends DictionaryResponseBase { -} +export type IngestGetPipelineResponse = Record export interface IngestProcessorGrokRequest extends RequestBase { } @@ -11163,8 +11218,7 @@ export interface IngestPutPipelineRequest extends RequestBase { } } -export interface IngestPutPipelineResponse extends AcknowledgedResponseBase { -} +export type IngestPutPipelineResponse = AcknowledgedResponseBase export interface IngestSimulateDocument { _id?: Id @@ -11228,8 +11282,7 @@ export type LicenseLicenseType = 'missing' | 'trial' | 'basic' | 'standard' | 'd export interface LicenseDeleteRequest extends RequestBase { } -export interface LicenseDeleteResponse extends AcknowledgedResponseBase { -} +export type LicenseDeleteResponse = AcknowledgedResponseBase export interface LicenseGetLicenseInformation { expiry_date?: DateString @@ -11293,7 +11346,8 @@ export interface LicensePostStartBasicRequest extends RequestBase { acknowledge?: boolean } -export interface LicensePostStartBasicResponse extends AcknowledgedResponseBase { +export interface LicensePostStartBasicResponse { + acknowledged: boolean basic_was_started: boolean error_message?: string type?: LicenseLicenseType @@ -11305,7 +11359,8 @@ export interface LicensePostStartTrialRequest extends RequestBase { type_query_string?: string } -export interface LicensePostStartTrialResponse extends AcknowledgedResponseBase { +export interface LicensePostStartTrialResponse { + acknowledged: boolean error_message?: string trial_was_started: boolean type?: LicenseLicenseType @@ -12377,16 +12432,14 @@ export interface MlDeleteCalendarRequest extends RequestBase { calendar_id: Id } -export interface MlDeleteCalendarResponse extends AcknowledgedResponseBase { -} +export type MlDeleteCalendarResponse = AcknowledgedResponseBase export interface MlDeleteCalendarEventRequest extends RequestBase { calendar_id: Id event_id: Id } -export interface MlDeleteCalendarEventResponse extends AcknowledgedResponseBase { -} +export type MlDeleteCalendarEventResponse = AcknowledgedResponseBase export interface MlDeleteCalendarJobRequest extends RequestBase { calendar_id: Id @@ -12405,16 +12458,14 @@ export interface MlDeleteDataFrameAnalyticsRequest extends RequestBase { timeout?: Time } -export interface MlDeleteDataFrameAnalyticsResponse extends AcknowledgedResponseBase { -} +export type MlDeleteDataFrameAnalyticsResponse = AcknowledgedResponseBase export interface MlDeleteDatafeedRequest extends RequestBase { datafeed_id: Id force?: boolean } -export interface MlDeleteDatafeedResponse extends AcknowledgedResponseBase { -} +export type MlDeleteDatafeedResponse = AcknowledgedResponseBase export interface MlDeleteExpiredDataRequest extends RequestBase { job_id?: Id @@ -12435,8 +12486,7 @@ export interface MlDeleteFilterRequest extends RequestBase { filter_id: Id } -export interface MlDeleteFilterResponse extends AcknowledgedResponseBase { -} +export type MlDeleteFilterResponse = AcknowledgedResponseBase export interface MlDeleteForecastRequest extends RequestBase { job_id: Id @@ -12445,8 +12495,7 @@ export interface MlDeleteForecastRequest extends RequestBase { timeout?: Time } -export interface MlDeleteForecastResponse extends AcknowledgedResponseBase { -} +export type MlDeleteForecastResponse = AcknowledgedResponseBase export interface MlDeleteJobRequest extends RequestBase { job_id: Id @@ -12454,32 +12503,28 @@ export interface MlDeleteJobRequest extends RequestBase { wait_for_completion?: boolean } -export interface MlDeleteJobResponse extends AcknowledgedResponseBase { -} +export type MlDeleteJobResponse = AcknowledgedResponseBase export interface MlDeleteModelSnapshotRequest extends RequestBase { job_id: Id snapshot_id: Id } -export interface MlDeleteModelSnapshotResponse extends AcknowledgedResponseBase { -} +export type MlDeleteModelSnapshotResponse = AcknowledgedResponseBase export interface MlDeleteTrainedModelRequest extends RequestBase { model_id: Id force?: boolean } -export interface MlDeleteTrainedModelResponse extends AcknowledgedResponseBase { -} +export type MlDeleteTrainedModelResponse = AcknowledgedResponseBase export interface MlDeleteTrainedModelAliasRequest extends RequestBase { model_alias: Name model_id: Id } -export interface MlDeleteTrainedModelAliasResponse extends AcknowledgedResponseBase { -} +export type MlDeleteTrainedModelAliasResponse = AcknowledgedResponseBase export interface MlEstimateModelMemoryRequest extends RequestBase { /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */ @@ -12643,7 +12688,8 @@ export interface MlForecastRequest extends RequestBase { } } -export interface MlForecastResponse extends AcknowledgedResponseBase { +export interface MlForecastResponse { + acknowledged: boolean forecast_id: Id } @@ -12829,6 +12875,58 @@ export interface MlGetJobsResponse { jobs: MlJob[] } +export interface MlGetMemoryStatsJvmStats { + heap_max: ByteSize + heap_max_in_bytes: integer + java_inference: ByteSize + java_inference_in_bytes: integer + java_inference_max: ByteSize + java_inference_max_in_bytes: integer +} + +export interface MlGetMemoryStatsMemMlStats { + anomaly_detectors: ByteSize + anomaly_detectors_in_bytes: integer + data_frame_analytics: ByteSize + data_frame_analytics_in_bytes: integer + max: ByteSize + max_in_bytes: integer + native_code_overhead: ByteSize + native_code_overhead_in_bytes: integer + native_inference: ByteSize + native_inference_in_bytes: integer +} + +export interface MlGetMemoryStatsMemStats { + adjusted_total: ByteSize + adjusted_total_in_bytes: integer + total: ByteSize + total_in_bytes: integer + ml: MlGetMemoryStatsMemMlStats +} + +export interface MlGetMemoryStatsMemory { + attributes: string[] + jvm: MlGetMemoryStatsJvmStats + mem: MlGetMemoryStatsMemStats + name: Name + roles: string[] + transport_address: TransportAddress +} + +export interface MlGetMemoryStatsRequest extends RequestBase { + node_id?: Id + human?: boolean + master_timeout?: Time + timeout?: Time +} + +export interface MlGetMemoryStatsResponse { + _nodes: NodeStatistics + cluser_name: Name + nodes: Record +} + export interface MlGetModelSnapshotsRequest extends RequestBase { job_id: Id snapshot_id?: Id @@ -13337,8 +13435,7 @@ export interface MlPutTrainedModelAliasRequest extends RequestBase { reassign?: boolean } -export interface MlPutTrainedModelAliasResponse extends AcknowledgedResponseBase { -} +export type MlPutTrainedModelAliasResponse = AcknowledgedResponseBase export interface MlPutTrainedModelDefinitionPartRequest extends RequestBase { model_id: Id @@ -13351,27 +13448,25 @@ export interface MlPutTrainedModelDefinitionPartRequest extends RequestBase { } } -export interface MlPutTrainedModelDefinitionPartResponse extends AcknowledgedResponseBase { -} +export type MlPutTrainedModelDefinitionPartResponse = AcknowledgedResponseBase export interface MlPutTrainedModelVocabularyRequest extends RequestBase { model_id: Id /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */ body?: { vocabulary: string[] + merges?: string[] } } -export interface MlPutTrainedModelVocabularyResponse extends AcknowledgedResponseBase { -} +export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase export interface MlResetJobRequest extends RequestBase { job_id: Id wait_for_completion?: boolean } -export interface MlResetJobResponse extends AcknowledgedResponseBase { -} +export type MlResetJobResponse = AcknowledgedResponseBase export interface MlRevertModelSnapshotRequest extends RequestBase { job_id: Id @@ -13392,15 +13487,15 @@ export interface MlSetUpgradeModeRequest extends RequestBase { timeout?: Time } -export interface MlSetUpgradeModeResponse extends AcknowledgedResponseBase { -} +export type MlSetUpgradeModeResponse = AcknowledgedResponseBase export interface MlStartDataFrameAnalyticsRequest extends RequestBase { id: Id timeout?: Time } -export interface MlStartDataFrameAnalyticsResponse extends AcknowledgedResponseBase { +export interface MlStartDataFrameAnalyticsResponse { + acknowledged: boolean node: NodeId } @@ -13610,7 +13705,8 @@ export interface MlUpdateModelSnapshotRequest extends RequestBase { } } -export interface MlUpdateModelSnapshotResponse extends AcknowledgedResponseBase { +export interface MlUpdateModelSnapshotResponse { + acknowledged: boolean model: MlModelSnapshot } @@ -13641,16 +13737,14 @@ export interface MlValidateRequest extends RequestBase { } } -export interface MlValidateResponse extends AcknowledgedResponseBase { -} +export type MlValidateResponse = AcknowledgedResponseBase export interface MlValidateDetectorRequest extends RequestBase { /** @deprecated The use of the 'body' key has been deprecated, use 'detector' instead. */ body?: MlDetector } -export interface MlValidateDetectorResponse extends AcknowledgedResponseBase { -} +export type MlValidateDetectorResponse = AcknowledgedResponseBase export interface MonitoringBulkRequest extends RequestBase { type?: string @@ -14118,7 +14212,9 @@ export interface NodesClearRepositoriesMeteringArchiveRequest extends RequestBas max_archive_version: long } -export interface NodesClearRepositoriesMeteringArchiveResponse extends NodesNodesResponseBase { +export type NodesClearRepositoriesMeteringArchiveResponse = NodesClearRepositoriesMeteringArchiveResponseBase + +export interface NodesClearRepositoriesMeteringArchiveResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14127,7 +14223,9 @@ export interface NodesGetRepositoriesMeteringInfoRequest extends RequestBase { node_id: NodeIds } -export interface NodesGetRepositoriesMeteringInfoResponse extends NodesNodesResponseBase { +export type NodesGetRepositoriesMeteringInfoResponse = NodesGetRepositoriesMeteringInfoResponseBase + +export interface NodesGetRepositoriesMeteringInfoResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14502,7 +14600,9 @@ export interface NodesInfoRequest extends RequestBase { timeout?: Time } -export interface NodesInfoResponse extends NodesNodesResponseBase { +export type NodesInfoResponse = NodesInfoResponseBase + +export interface NodesInfoResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14516,7 +14616,9 @@ export interface NodesReloadSecureSettingsRequest extends RequestBase { } } -export interface NodesReloadSecureSettingsResponse extends NodesNodesResponseBase { +export type NodesReloadSecureSettingsResponse = NodesReloadSecureSettingsResponseBase + +export interface NodesReloadSecureSettingsResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14537,7 +14639,9 @@ export interface NodesStatsRequest extends RequestBase { include_unloaded_segments?: boolean } -export interface NodesStatsResponse extends NodesNodesResponseBase { +export type NodesStatsResponse = NodesStatsResponseBase + +export interface NodesStatsResponseBase extends NodesNodesResponseBase { cluster_name?: Name nodes: Record } @@ -14555,7 +14659,9 @@ export interface NodesUsageRequest extends RequestBase { timeout?: Time } -export interface NodesUsageResponse extends NodesNodesResponseBase { +export type NodesUsageResponse = NodesUsageResponseBase + +export interface NodesUsageResponseBase extends NodesNodesResponseBase { cluster_name: Name nodes: Record } @@ -14596,7 +14702,8 @@ export interface RollupDeleteJobRequest extends RequestBase { id: Id } -export interface RollupDeleteJobResponse extends AcknowledgedResponseBase { +export interface RollupDeleteJobResponse { + acknowledged: boolean task_failures?: TaskFailure[] } @@ -14652,8 +14759,7 @@ export interface RollupGetRollupCapsRequest extends RequestBase { id?: Id } -export interface RollupGetRollupCapsResponse extends DictionaryResponseBase { -} +export type RollupGetRollupCapsResponse = Record export interface RollupGetRollupCapsRollupCapabilities { rollup_jobs: RollupGetRollupCapsRollupCapabilitySummary[] @@ -14674,8 +14780,7 @@ export interface RollupGetRollupIndexCapsRequest extends RequestBase { index: Ids } -export interface RollupGetRollupIndexCapsResponse extends DictionaryResponseBase { -} +export type RollupGetRollupIndexCapsResponse = Record export interface RollupGetRollupIndexCapsRollupJobSummary { fields: Record @@ -14705,8 +14810,7 @@ export interface RollupPutJobRequest extends RequestBase { } } -export interface RollupPutJobResponse extends AcknowledgedResponseBase { -} +export type RollupPutJobResponse = AcknowledgedResponseBase export interface RollupRollupRequest extends RequestBase { index: IndexName @@ -15084,8 +15188,7 @@ export interface SecurityDeletePrivilegesRequest extends RequestBase { refresh?: Refresh } -export interface SecurityDeletePrivilegesResponse extends DictionaryResponseBase> { -} +export type SecurityDeletePrivilegesResponse = Record> export interface SecurityDeleteRoleRequest extends RequestBase { name: Name @@ -15191,15 +15294,13 @@ export interface SecurityGetPrivilegesRequest extends RequestBase { name?: Names } -export interface SecurityGetPrivilegesResponse extends DictionaryResponseBase> { -} +export type SecurityGetPrivilegesResponse = Record> export interface SecurityGetRoleRequest extends RequestBase { name?: Names } -export interface SecurityGetRoleResponse extends DictionaryResponseBase { -} +export type SecurityGetRoleResponse = Record export interface SecurityGetRoleRole { cluster: string[] @@ -15223,16 +15324,14 @@ export interface SecurityGetRoleMappingRequest extends RequestBase { name?: Names } -export interface SecurityGetRoleMappingResponse extends DictionaryResponseBase { -} +export type SecurityGetRoleMappingResponse = Record export interface SecurityGetServiceAccountsRequest extends RequestBase { namespace?: Namespace service?: Service } -export interface SecurityGetServiceAccountsResponse extends DictionaryResponseBase { -} +export type SecurityGetServiceAccountsResponse = Record export interface SecurityGetServiceAccountsRoleDescriptor { cluster: string[] @@ -15314,8 +15413,7 @@ export interface SecurityGetUserRequest extends RequestBase { username?: Username | Username[] } -export interface SecurityGetUserResponse extends DictionaryResponseBase { -} +export type SecurityGetUserResponse = Record export interface SecurityGetUserPrivilegesRequest extends RequestBase { application?: Name @@ -15442,8 +15540,7 @@ export interface SecurityPutPrivilegesRequest extends RequestBase { body?: Record> } -export interface SecurityPutPrivilegesResponse extends DictionaryResponseBase> { -} +export type SecurityPutPrivilegesResponse = Record> export interface SecurityPutRoleRequest extends RequestBase { name: Name @@ -15602,8 +15699,7 @@ export interface ShutdownDeleteNodeRequest extends RequestBase { node_id: NodeId } -export interface ShutdownDeleteNodeResponse extends AcknowledgedResponseBase { -} +export type ShutdownDeleteNodeResponse = AcknowledgedResponseBase export interface ShutdownGetNodeNodeShutdownStatus { node_id: NodeId @@ -15644,8 +15740,7 @@ export interface ShutdownPutNodeRequest extends RequestBase { node_id: NodeId } -export interface ShutdownPutNodeResponse extends AcknowledgedResponseBase { -} +export type ShutdownPutNodeResponse = AcknowledgedResponseBase export interface SlmConfiguration { ignore_unavailable?: boolean @@ -15716,8 +15811,7 @@ export interface SlmDeleteLifecycleRequest extends RequestBase { policy_id: Name } -export interface SlmDeleteLifecycleResponse extends AcknowledgedResponseBase { -} +export type SlmDeleteLifecycleResponse = AcknowledgedResponseBase export interface SlmExecuteLifecycleRequest extends RequestBase { policy_id: Name @@ -15730,15 +15824,13 @@ export interface SlmExecuteLifecycleResponse { export interface SlmExecuteRetentionRequest extends RequestBase { } -export interface SlmExecuteRetentionResponse extends AcknowledgedResponseBase { -} +export type SlmExecuteRetentionResponse = AcknowledgedResponseBase export interface SlmGetLifecycleRequest extends RequestBase { policy_id?: Names } -export interface SlmGetLifecycleResponse extends DictionaryResponseBase { -} +export type SlmGetLifecycleResponse = Record export interface SlmGetStatsRequest extends RequestBase { } @@ -15777,20 +15869,17 @@ export interface SlmPutLifecycleRequest extends RequestBase { } } -export interface SlmPutLifecycleResponse extends AcknowledgedResponseBase { -} +export type SlmPutLifecycleResponse = AcknowledgedResponseBase export interface SlmStartRequest extends RequestBase { } -export interface SlmStartResponse extends AcknowledgedResponseBase { -} +export type SlmStartResponse = AcknowledgedResponseBase export interface SlmStopRequest extends RequestBase { } -export interface SlmStopResponse extends AcknowledgedResponseBase { -} +export type SlmStopResponse = AcknowledgedResponseBase export interface SnapshotFileCountSnapshotStats { file_count: integer @@ -15937,8 +16026,7 @@ export interface SnapshotCloneRequest extends RequestBase { } } -export interface SnapshotCloneResponse extends AcknowledgedResponseBase { -} +export type SnapshotCloneResponse = AcknowledgedResponseBase export interface SnapshotCreateRequest extends RequestBase { repository: Name @@ -15974,8 +16062,7 @@ export interface SnapshotCreateRepositoryRequest extends RequestBase { } } -export interface SnapshotCreateRepositoryResponse extends AcknowledgedResponseBase { -} +export type SnapshotCreateRepositoryResponse = AcknowledgedResponseBase export interface SnapshotDeleteRequest extends RequestBase { repository: Name @@ -15983,8 +16070,7 @@ export interface SnapshotDeleteRequest extends RequestBase { master_timeout?: Time } -export interface SnapshotDeleteResponse extends AcknowledgedResponseBase { -} +export type SnapshotDeleteResponse = AcknowledgedResponseBase export interface SnapshotDeleteRepositoryRequest extends RequestBase { name: Names @@ -15992,8 +16078,7 @@ export interface SnapshotDeleteRepositoryRequest extends RequestBase { timeout?: Time } -export interface SnapshotDeleteRepositoryResponse extends AcknowledgedResponseBase { -} +export type SnapshotDeleteRepositoryResponse = AcknowledgedResponseBase export interface SnapshotGetRequest extends RequestBase { repository: Name @@ -16032,8 +16117,7 @@ export interface SnapshotGetRepositoryRequest extends RequestBase { master_timeout?: Time } -export interface SnapshotGetRepositoryResponse extends DictionaryResponseBase { -} +export type SnapshotGetRepositoryResponse = Record export interface SnapshotRestoreRequest extends RequestBase { repository: Name @@ -16111,8 +16195,7 @@ export interface SqlDeleteAsyncRequest extends RequestBase { id: Id } -export interface SqlDeleteAsyncResponse extends AcknowledgedResponseBase { -} +export type SqlDeleteAsyncResponse = AcknowledgedResponseBase export interface SqlGetAsyncRequest extends RequestBase { id: Id @@ -16276,8 +16359,7 @@ export interface TasksCancelRequest extends RequestBase { wait_for_completion?: boolean } -export interface TasksCancelResponse extends TasksTaskListResponseBase { -} +export type TasksCancelResponse = TasksTaskListResponseBase export interface TasksGetRequest extends RequestBase { task_id: Id @@ -16303,8 +16385,7 @@ export interface TasksListRequest extends RequestBase { wait_for_completion?: boolean } -export interface TasksListResponse extends TasksTaskListResponseBase { -} +export type TasksListResponse = TasksTaskListResponseBase export interface TextStructureFindStructureFieldStat { count: integer @@ -16428,8 +16509,7 @@ export interface TransformDeleteTransformRequest extends RequestBase { timeout?: Time } -export interface TransformDeleteTransformResponse extends AcknowledgedResponseBase { -} +export type TransformDeleteTransformResponse = AcknowledgedResponseBase export interface TransformGetTransformRequest extends RequestBase { transform_id?: Names @@ -16567,24 +16647,21 @@ export interface TransformPutTransformRequest extends RequestBase { } } -export interface TransformPutTransformResponse extends AcknowledgedResponseBase { -} +export type TransformPutTransformResponse = AcknowledgedResponseBase export interface TransformResetTransformRequest extends RequestBase { transform_id: Id force?: boolean } -export interface TransformResetTransformResponse extends AcknowledgedResponseBase { -} +export type TransformResetTransformResponse = AcknowledgedResponseBase export interface TransformStartTransformRequest extends RequestBase { transform_id: Id timeout?: Time } -export interface TransformStartTransformResponse extends AcknowledgedResponseBase { -} +export type TransformStartTransformResponse = AcknowledgedResponseBase export interface TransformStopTransformRequest extends RequestBase { transform_id: Name @@ -16595,8 +16672,7 @@ export interface TransformStopTransformRequest extends RequestBase { wait_for_completion?: boolean } -export interface TransformStopTransformResponse extends AcknowledgedResponseBase { -} +export type TransformStopTransformResponse = AcknowledgedResponseBase export interface TransformUpdateTransformRequest extends RequestBase { transform_id: Id @@ -17037,10 +17113,18 @@ export interface WatcherSearchInputRequestDefinition { indices?: IndexName[] indices_options?: IndicesOptions search_type?: SearchType - template?: SearchTemplateRequest + template?: WatcherSearchTemplateRequestBody rest_total_hits_as_int?: boolean } +export interface WatcherSearchTemplateRequestBody { + explain?: boolean + id?: Id + params?: Record + profile?: boolean + source?: string +} + export interface WatcherSimulatedActions { actions: string[] all: WatcherSimulatedActions @@ -17289,8 +17373,7 @@ export interface WatcherQueryWatchesResponse { export interface WatcherStartRequest extends RequestBase { } -export interface WatcherStartResponse extends AcknowledgedResponseBase { -} +export type WatcherStartResponse = AcknowledgedResponseBase export interface WatcherStatsRequest extends RequestBase { metric?: WatcherStatsWatcherMetric | WatcherStatsWatcherMetric[] @@ -17332,8 +17415,7 @@ export type WatcherStatsWatcherState = 'stopped' | 'starting' | 'started' | 'sto export interface WatcherStopRequest extends RequestBase { } -export interface WatcherStopResponse extends AcknowledgedResponseBase { -} +export type WatcherStopResponse = AcknowledgedResponseBase export interface XpackInfoBuildInformation { date: DateString @@ -17375,6 +17457,7 @@ export interface XpackInfoFeatures { vectors?: XpackInfoFeature voting_only: XpackInfoFeature watcher: XpackInfoFeature + archive: XpackInfoFeature } export interface XpackInfoMinimalLicenseInformation { @@ -17393,6 +17476,7 @@ export interface XpackInfoNativeCodeInformation { export interface XpackInfoRequest extends RequestBase { categories?: string[] accept_enterprise?: boolean + human?: boolean } export interface XpackInfoResponse { @@ -17426,6 +17510,10 @@ export interface XpackUsageAnalyticsStatistics { multi_terms_usage?: long } +export interface XpackUsageArchive extends XpackUsageBase { + indices_count: long +} + export interface XpackUsageAudit extends XpackUsageFeatureToggle { outputs?: string[] } @@ -17667,6 +17755,7 @@ export interface XpackUsageRequest extends RequestBase { export interface XpackUsageResponse { aggregate_metric: XpackUsageBase analytics: XpackUsageAnalytics + archive: XpackUsageArchive watcher: XpackUsageWatcher ccr: XpackUsageCcr data_frame?: XpackUsageBase