From 8856d0a486cd971f927ee07e2f92171463389bea Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Mon, 24 Feb 2025 06:04:02 +0000 Subject: [PATCH] Auto-generated API code --- docs/reference.asciidoc | 93 +++++++++++++++++++++++++++++++++++-- src/api/api/indices.ts | 13 ++++-- src/api/types.ts | 55 ++++++++++++++++++++-- src/api/typesWithBodyKey.ts | 59 +++++++++++++++++++++-- 4 files changed, 207 insertions(+), 13 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 6dea24605..c2707abd0 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -2459,6 +2459,8 @@ aggregation for its associated searches. You can retrieve these stats using the indices stats API. ** *`wait_for_completion_timeout` (Optional, string | -1 | 0)*: Blocks and waits until the search is completed up to a certain timeout. When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. +** *`keep_alive` (Optional, string | -1 | 0)*: Specifies how long the async search needs to be available. +Ongoing async searches and any saved search results are deleted after this period. ** *`keep_on_completion` (Optional, boolean)*: If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`. ** *`allow_no_indices` (Optional, boolean)*: Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) ** *`allow_partial_search_results` (Optional, boolean)*: Indicate if an error should be returned if there is a partial search failure or timeout @@ -2606,6 +2608,10 @@ client.cat.aliases({ ... }) * *Request (object):* ** *`name` (Optional, string | string[])*: A list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. It supports a list of values, such as `open,hidden`. @@ -2637,6 +2643,10 @@ client.cat.allocation({ ... }) * *Request (object):* ** *`node_id` (Optional, string | string[])*: A list of node identifiers or names used to limit the returned information. ** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -2666,6 +2676,10 @@ client.cat.componentTemplates({ ... }) ** *`name` (Optional, string)*: The name of the component template. It accepts wildcard expressions. If it is omitted, all component templates are returned. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -2695,6 +2709,10 @@ client.cat.count({ ... }) ** *`index` (Optional, string | string[])*: A list of data streams, indices, and aliases used to limit the request. It supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. [discrete] ==== fielddata @@ -2718,6 +2736,10 @@ client.cat.fielddata({ ... }) ** *`fields` (Optional, string | string[])*: List of fields used to limit returned information. To retrieve all fields, omit this parameter. ** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. [discrete] ==== health @@ -2745,6 +2767,10 @@ client.cat.health({ ... }) * *Request (object):* ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: The unit used to display time values. ** *`ts` (Optional, boolean)*: If true, returns `HH:MM:SS` and Unix epoch timestamps. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. [discrete] ==== help @@ -2797,6 +2823,10 @@ Supports wildcards (`*`). To target all data streams and indices, omit this para ** *`pri` (Optional, boolean)*: If true, the response only includes information from primary shards. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: The unit used to display time values. ** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. [discrete] ==== master @@ -2816,6 +2846,10 @@ client.cat.master({ ... }) ==== Arguments * *Request (object):* +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -2973,6 +3007,10 @@ client.cat.nodeattrs({ ... }) ==== Arguments * *Request (object):* +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -2999,6 +3037,10 @@ client.cat.nodes({ ... }) ** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values. ** *`full_id` (Optional, boolean | string)*: If `true`, return the full node ID. If `false`, return the shortened node ID. ** *`include_unloaded_segments` (Optional, boolean)*: If true, the response includes information from segments that are not loaded into memory. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: Unit used to display time values. @@ -3019,6 +3061,10 @@ client.cat.pendingTasks({ ... }) ==== Arguments * *Request (object):* +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -3043,6 +3089,10 @@ client.cat.plugins({ ... }) ==== Arguments * *Request (object):* +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`include_bootstrap` (Optional, boolean)*: Include bootstrap plugins in the response ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed @@ -3074,6 +3124,10 @@ Supports wildcards (`*`). To target all data streams and indices, omit this para ** *`active_only` (Optional, boolean)*: If `true`, the response only includes ongoing shard recoveries. ** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values. ** *`detailed` (Optional, boolean)*: If `true`, the response includes detailed information about shard recoveries. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: Unit used to display time values. [discrete] @@ -3093,6 +3147,10 @@ client.cat.repositories({ ... }) ==== Arguments * *Request (object):* +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -3121,6 +3179,10 @@ client.cat.segments({ ... }) Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`. ** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -3149,6 +3211,10 @@ client.cat.shards({ ... }) Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`. ** *`bytes` (Optional, Enum("b" | "kb" | "mb" | "gb" | "tb" | "pb"))*: The unit used to display byte values. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: Unit used to display time values. @@ -3175,6 +3241,10 @@ Accepts wildcard expressions. `_all` returns all repositories. If any repository fails during the request, Elasticsearch returns an error. ** *`ignore_unavailable` (Optional, boolean)*: If `true`, the response does not include information from unavailable snapshots. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: Unit used to display time values. @@ -3199,6 +3269,10 @@ client.cat.tasks({ ... }) ** *`detailed` (Optional, boolean)*: If `true`, the response includes detailed information about shard recoveries. ** *`nodes` (Optional, string[])*: Unique node identifiers, which are used to limit the response. ** *`parent_task_id` (Optional, string)*: The parent task identifier, which is used to limit the response. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: Unit used to display time values. ** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. @@ -3224,6 +3298,10 @@ client.cat.templates({ ... }) * *Request (object):* ** *`name` (Optional, string)*: The name of the template to return. Accepts wildcard expressions. If omitted, all templates are returned. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating @@ -3250,6 +3328,10 @@ client.cat.threadPool({ ... }) * *Request (object):* ** *`thread_pool_patterns` (Optional, string | string[])*: A list of thread pool names used to limit the request. Accepts wildcard expressions. +** *`h` (Optional, string | string[])*: List of columns to appear in the response. Supports simple wildcards. +** *`s` (Optional, string | string[])*: List of columns that determine how the table should be sorted. +Sorting defaults to ascending and can be changed by setting `:asc` +or `:desc` as a suffix to the column name. ** *`time` (Optional, Enum("nanos" | "micros" | "ms" | "s" | "m" | "h" | "d"))*: The unit used to display time values. ** *`local` (Optional, boolean)*: If `true`, the request computes the list of selected nodes from the local cluster state. If `false` the list of selected nodes are computed @@ -6926,7 +7008,12 @@ client.indices.putDataLifecycle({ name }) ** *`name` (string | string[])*: List of data streams used to limit the request. Supports wildcards (`*`). To target all data streams use `*` or `_all`. -** *`lifecycle` (Optional, { data_retention, downsampling, enabled })* +** *`data_retention` (Optional, string | -1 | 0)*: If defined, every document added to this data stream will be stored at least for this time frame. +Any time after this duration the document could be deleted. +When empty, every document in this data stream will be stored indefinitely. +** *`downsampling` (Optional, { rounds })*: The downsampling configuration to execute for the managed backing index after rollover. +** *`enabled` (Optional, boolean)*: If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle +that's disabled (enabled: `false`) will have no effect on the data stream. ** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of data stream that wildcard patterns can match. Supports a list of values, such as `open,hidden`. Valid values are: `all`, `hidden`, `open`, `closed`, `none`. @@ -7957,7 +8044,7 @@ client.inference.put({ inference_id }) * *Request (object):* ** *`inference_id` (string)*: The inference Id ** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding" | "rerank" | "completion"))*: The task type -** *`inference_config` (Optional, { service, service_settings, task_settings })* +** *`inference_config` (Optional, { chunking_settings, service, service_settings, task_settings })* [discrete] ==== stream_inference @@ -8032,7 +8119,7 @@ client.inference.update({ inference_id }) * *Request (object):* ** *`inference_id` (string)*: The unique identifier of the inference endpoint. ** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding" | "rerank" | "completion"))*: The type of inference task that the model performs. -** *`inference_config` (Optional, { service, service_settings, task_settings })* +** *`inference_config` (Optional, { chunking_settings, service, service_settings, task_settings })* [discrete] === ingest diff --git a/src/api/api/indices.ts b/src/api/api/indices.ts index 59eb8f1ff..514d1297c 100644 --- a/src/api/api/indices.ts +++ b/src/api/api/indices.ts @@ -1634,15 +1634,22 @@ export default class Indices { async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptions): Promise async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['name'] - const acceptedBody: string[] = ['lifecycle'] + const acceptedBody: string[] = ['data_retention', 'downsampling', 'enabled'] const querystring: Record = {} // @ts-expect-error - let body: any = params.body ?? undefined + const userBody: any = params?.body + let body: Record | string + if (typeof userBody === 'string') { + body = userBody + } else { + body = userBody != null ? { ...userBody } : undefined + } for (const key in params) { if (acceptedBody.includes(key)) { + body = body ?? {} // @ts-expect-error - body = params[key] + body[key] = params[key] } else if (acceptedPath.includes(key)) { continue } else if (key !== 'body') { diff --git a/src/api/types.ts b/src/api/types.ts index 76679df6f..769e6d8f2 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -6715,6 +6715,7 @@ export interface AsyncSearchStatusStatusResponseBase extends AsyncSearchAsyncSea export interface AsyncSearchSubmitRequest extends RequestBase { index?: Indices wait_for_completion_timeout?: Duration + keep_alive?: Duration keep_on_completion?: boolean allow_no_indices?: boolean allow_partial_search_results?: boolean @@ -6890,6 +6891,8 @@ export interface CatAliasesAliasesRecord { export interface CatAliasesRequest extends CatCatRequestBase { name?: Names + h?: Names + s?: Names expand_wildcards?: ExpandWildcards local?: boolean master_timeout?: Duration @@ -6936,6 +6939,8 @@ export interface CatAllocationAllocationRecord { export interface CatAllocationRequest extends CatCatRequestBase { node_id?: NodeIds bytes?: Bytes + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -6954,6 +6959,8 @@ export interface CatComponentTemplatesComponentTemplate { export interface CatComponentTemplatesRequest extends CatCatRequestBase { name?: string + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -6976,6 +6983,8 @@ export interface CatCountCountRecord { export interface CatCountRequest extends CatCatRequestBase { index?: Indices + h?: Names + s?: Names } export type CatCountResponse = CatCountCountRecord[] @@ -6995,6 +7004,8 @@ export interface CatFielddataFielddataRecord { export interface CatFielddataRequest extends CatCatRequestBase { fields?: Fields bytes?: Bytes + h?: Names + s?: Names } export type CatFielddataResponse = CatFielddataFielddataRecord[] @@ -7055,6 +7066,8 @@ export interface CatHealthHealthRecord { export interface CatHealthRequest extends CatCatRequestBase { time?: TimeUnit ts?: boolean + h?: Names + s?: Names } export type CatHealthResponse = CatHealthHealthRecord[] @@ -7365,6 +7378,8 @@ export interface CatIndicesRequest extends CatCatRequestBase { pri?: boolean time?: TimeUnit master_timeout?: Duration + h?: Names + s?: Names } export type CatIndicesResponse = CatIndicesIndicesRecord[] @@ -7379,6 +7394,8 @@ export interface CatMasterMasterRecord { } export interface CatMasterRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -7749,6 +7766,8 @@ export interface CatNodeattrsNodeAttributesRecord { } export interface CatNodeattrsRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8029,6 +8048,8 @@ export interface CatNodesRequest extends CatCatRequestBase { bytes?: Bytes full_id?: boolean | string include_unloaded_segments?: boolean + h?: Names + s?: Names master_timeout?: Duration time?: TimeUnit } @@ -8047,6 +8068,8 @@ export interface CatPendingTasksPendingTasksRecord { } export interface CatPendingTasksRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration time?: TimeUnit @@ -8069,6 +8092,8 @@ export interface CatPluginsPluginsRecord { } export interface CatPluginsRequest extends CatCatRequestBase { + h?: Names + s?: Names include_bootstrap?: boolean local?: boolean master_timeout?: Duration @@ -8139,6 +8164,8 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean + h?: Names + s?: Names time?: TimeUnit } @@ -8152,6 +8179,8 @@ export interface CatRepositoriesRepositoriesRecord { } export interface CatRepositoriesRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8161,6 +8190,8 @@ export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[] export interface CatSegmentsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8212,6 +8243,8 @@ export interface CatSegmentsSegmentsRecord { export interface CatShardsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes + h?: Names + s?: Names master_timeout?: Duration time?: TimeUnit } @@ -8436,6 +8469,8 @@ export interface CatShardsShardsRecord { export interface CatSnapshotsRequest extends CatCatRequestBase { repository?: Names ignore_unavailable?: boolean + h?: Names + s?: Names master_timeout?: Duration time?: TimeUnit } @@ -8481,6 +8516,8 @@ export interface CatTasksRequest extends CatCatRequestBase { detailed?: boolean nodes?: string[] parent_task_id?: string + h?: Names + s?: Names time?: TimeUnit timeout?: Duration wait_for_completion?: boolean @@ -8525,6 +8562,8 @@ export interface CatTasksTasksRecord { export interface CatTemplatesRequest extends CatCatRequestBase { name?: Name + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8547,6 +8586,8 @@ export interface CatTemplatesTemplatesRecord { export interface CatThreadPoolRequest extends CatCatRequestBase { thread_pool_patterns?: Names + h?: Names + s?: Names time?: TimeUnit local?: boolean master_timeout?: Duration @@ -12068,7 +12109,9 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase { expand_wildcards?: ExpandWildcards master_timeout?: Duration timeout?: Duration - lifecycle?: IndicesDataStreamLifecycle + data_retention?: Duration + downsampling?: IndicesDataStreamLifecycleDownsampling + enabled?: boolean } export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase @@ -12794,7 +12837,15 @@ export type InferenceDenseByteVector = byte[] export type InferenceDenseVector = float[] +export interface InferenceInferenceChunkingSettings extends InferenceInferenceEndpoint { + max_chunk_size?: integer + overlap?: integer + sentence_overlap?: integer + strategy?: string +} + export interface InferenceInferenceEndpoint { + chunking_settings?: InferenceInferenceChunkingSettings service: string service_settings: InferenceServiceSettings task_settings?: InferenceTaskSettings @@ -21648,9 +21699,7 @@ export interface SpecUtilsCommonQueryParameters { export interface SpecUtilsCommonCatQueryParameters { format?: string - h?: Names help?: boolean - s?: Names v?: boolean } diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index b486bd1eb..3de88ff49 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -6792,6 +6792,7 @@ export interface AsyncSearchStatusStatusResponseBase extends AsyncSearchAsyncSea export interface AsyncSearchSubmitRequest extends RequestBase { index?: Indices wait_for_completion_timeout?: Duration + keep_alive?: Duration keep_on_completion?: boolean allow_no_indices?: boolean allow_partial_search_results?: boolean @@ -6971,6 +6972,8 @@ export interface CatAliasesAliasesRecord { export interface CatAliasesRequest extends CatCatRequestBase { name?: Names + h?: Names + s?: Names expand_wildcards?: ExpandWildcards local?: boolean master_timeout?: Duration @@ -7017,6 +7020,8 @@ export interface CatAllocationAllocationRecord { export interface CatAllocationRequest extends CatCatRequestBase { node_id?: NodeIds bytes?: Bytes + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -7035,6 +7040,8 @@ export interface CatComponentTemplatesComponentTemplate { export interface CatComponentTemplatesRequest extends CatCatRequestBase { name?: string + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -7057,6 +7064,8 @@ export interface CatCountCountRecord { export interface CatCountRequest extends CatCatRequestBase { index?: Indices + h?: Names + s?: Names } export type CatCountResponse = CatCountCountRecord[] @@ -7076,6 +7085,8 @@ export interface CatFielddataFielddataRecord { export interface CatFielddataRequest extends CatCatRequestBase { fields?: Fields bytes?: Bytes + h?: Names + s?: Names } export type CatFielddataResponse = CatFielddataFielddataRecord[] @@ -7136,6 +7147,8 @@ export interface CatHealthHealthRecord { export interface CatHealthRequest extends CatCatRequestBase { time?: TimeUnit ts?: boolean + h?: Names + s?: Names } export type CatHealthResponse = CatHealthHealthRecord[] @@ -7446,6 +7459,8 @@ export interface CatIndicesRequest extends CatCatRequestBase { pri?: boolean time?: TimeUnit master_timeout?: Duration + h?: Names + s?: Names } export type CatIndicesResponse = CatIndicesIndicesRecord[] @@ -7460,6 +7475,8 @@ export interface CatMasterMasterRecord { } export interface CatMasterRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -7830,6 +7847,8 @@ export interface CatNodeattrsNodeAttributesRecord { } export interface CatNodeattrsRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8110,6 +8129,8 @@ export interface CatNodesRequest extends CatCatRequestBase { bytes?: Bytes full_id?: boolean | string include_unloaded_segments?: boolean + h?: Names + s?: Names master_timeout?: Duration time?: TimeUnit } @@ -8128,6 +8149,8 @@ export interface CatPendingTasksPendingTasksRecord { } export interface CatPendingTasksRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration time?: TimeUnit @@ -8150,6 +8173,8 @@ export interface CatPluginsPluginsRecord { } export interface CatPluginsRequest extends CatCatRequestBase { + h?: Names + s?: Names include_bootstrap?: boolean local?: boolean master_timeout?: Duration @@ -8220,6 +8245,8 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean + h?: Names + s?: Names time?: TimeUnit } @@ -8233,6 +8260,8 @@ export interface CatRepositoriesRepositoriesRecord { } export interface CatRepositoriesRequest extends CatCatRequestBase { + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8242,6 +8271,8 @@ export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[] export interface CatSegmentsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8293,6 +8324,8 @@ export interface CatSegmentsSegmentsRecord { export interface CatShardsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes + h?: Names + s?: Names master_timeout?: Duration time?: TimeUnit } @@ -8517,6 +8550,8 @@ export interface CatShardsShardsRecord { export interface CatSnapshotsRequest extends CatCatRequestBase { repository?: Names ignore_unavailable?: boolean + h?: Names + s?: Names master_timeout?: Duration time?: TimeUnit } @@ -8562,6 +8597,8 @@ export interface CatTasksRequest extends CatCatRequestBase { detailed?: boolean nodes?: string[] parent_task_id?: string + h?: Names + s?: Names time?: TimeUnit timeout?: Duration wait_for_completion?: boolean @@ -8606,6 +8643,8 @@ export interface CatTasksTasksRecord { export interface CatTemplatesRequest extends CatCatRequestBase { name?: Name + h?: Names + s?: Names local?: boolean master_timeout?: Duration } @@ -8628,6 +8667,8 @@ export interface CatTemplatesTemplatesRecord { export interface CatThreadPoolRequest extends CatCatRequestBase { thread_pool_patterns?: Names + h?: Names + s?: Names time?: TimeUnit local?: boolean master_timeout?: Duration @@ -12279,8 +12320,12 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase { expand_wildcards?: ExpandWildcards master_timeout?: Duration timeout?: Duration - /** @deprecated The use of the 'body' key has been deprecated, use 'lifecycle' instead. */ - body?: IndicesDataStreamLifecycle + /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */ + body?: { + data_retention?: Duration + downsampling?: IndicesDataStreamLifecycleDownsampling + enabled?: boolean + } } export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase @@ -13034,7 +13079,15 @@ export type InferenceDenseByteVector = byte[] export type InferenceDenseVector = float[] +export interface InferenceInferenceChunkingSettings extends InferenceInferenceEndpoint { + max_chunk_size?: integer + overlap?: integer + sentence_overlap?: integer + strategy?: string +} + export interface InferenceInferenceEndpoint { + chunking_settings?: InferenceInferenceChunkingSettings service: string service_settings: InferenceServiceSettings task_settings?: InferenceTaskSettings @@ -22220,9 +22273,7 @@ export interface SpecUtilsCommonQueryParameters { export interface SpecUtilsCommonCatQueryParameters { format?: string - h?: Names help?: boolean - s?: Names v?: boolean }