Skip to content

Commit cd55eb4

Browse files
Auto-generated API code (#2954)
1 parent 39d1be8 commit cd55eb4

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

docs/reference/api-reference.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4620,7 +4620,12 @@ If false, the query and its results are stored in the cluster only if the reques
46204620
It is valid only for the CSV format.
46214621
- **`drop_null_columns` (Optional, boolean)**: Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
46224622
If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.
4623-
- **`format` (Optional, Enum("csv" \| "json" \| "tsv" \| "txt" \| "yaml" \| "cbor" \| "smile" \| "arrow"))**: A short version of the Accept header, for example `json` or `yaml`.
4623+
- **`format` (Optional, Enum("csv" \| "json" \| "tsv" \| "txt" \| "yaml" \| "cbor" \| "smile" \| "arrow"))**: A short version of the Accept header, e.g. json, yaml.
4624+
4625+
`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.
4626+
4627+
For async requests, nothing will be returned if the async query doesn't finish within the timeout.
4628+
The query ID and running status are available in the `X-Elasticsearch-Async-Id` and `X-Elasticsearch-Async-Is-Running` HTTP headers of the response, respectively.
46244629

46254630
## client.esql.asyncQueryDelete [_esql.async_query_delete]
46264631
Delete an async ES|QL query.
@@ -4721,6 +4726,8 @@ name and the next level key is the column name.
47214726
object with information about the clusters that participated in the search along with info such as shards
47224727
count.
47234728
- **`format` (Optional, Enum("csv" \| "json" \| "tsv" \| "txt" \| "yaml" \| "cbor" \| "smile" \| "arrow"))**: A short version of the Accept header, e.g. json, yaml.
4729+
4730+
`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.
47244731
- **`delimiter` (Optional, string)**: The character to use between values within a CSV row. Only valid for the CSV format.
47254732
- **`drop_null_columns` (Optional, boolean)**: Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?
47264733
Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns.

src/api/types.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17850,7 +17850,13 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
1785017850
export type EqlSearchResultPosition = 'tail' | 'head'
1785117851

1785217852
export interface EsqlAsyncEsqlResult extends EsqlEsqlResult {
17853+
/** The ID of the async query, to be used in subsequent requests to check the status or retrieve results.
17854+
*
17855+
* Also available in the `X-Elasticsearch-Async-Id` HTTP header. */
1785317856
id?: string
17857+
/** Indicates whether the async query is still running or has completed.
17858+
*
17859+
* Also available in the `X-Elasticsearch-Async-Is-Running` HTTP header. */
1785417860
is_running: boolean
1785517861
}
1785617862

@@ -17931,7 +17937,12 @@ export interface EsqlAsyncQueryRequest extends RequestBase {
1793117937
/** Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
1793217938
* If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. */
1793317939
drop_null_columns?: boolean
17934-
/** A short version of the Accept header, for example `json` or `yaml`. */
17940+
/** A short version of the Accept header, e.g. json, yaml.
17941+
*
17942+
* `csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.
17943+
*
17944+
* For async requests, nothing will be returned if the async query doesn't finish within the timeout.
17945+
* The query ID and running status are available in the `X-Elasticsearch-Async-Id` and `X-Elasticsearch-Async-Is-Running` HTTP headers of the response, respectively. */
1793517946
format?: EsqlEsqlFormat
1793617947
/** By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results. */
1793717948
columnar?: boolean
@@ -18031,7 +18042,9 @@ export interface EsqlAsyncQueryStopRequest extends RequestBase {
1803118042
export type EsqlAsyncQueryStopResponse = EsqlEsqlResult
1803218043

1803318044
export interface EsqlQueryRequest extends RequestBase {
18034-
/** A short version of the Accept header, e.g. json, yaml. */
18045+
/** A short version of the Accept header, e.g. json, yaml.
18046+
*
18047+
* `csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response. */
1803518048
format?: EsqlEsqlFormat
1803618049
/** The character to use between values within a CSV row. Only valid for the CSV format. */
1803718050
delimiter?: string

0 commit comments

Comments
 (0)