Skip to content

Commit e031782

Browse files
Auto-generated code for 8.14 (#2260)
1 parent eab828b commit e031782

File tree

4 files changed

+3
-24
lines changed

4 files changed

+3
-24
lines changed

docs/reference.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2826,7 +2826,6 @@ client.esql.query({ query })
28262826
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.
28272827
** *`locale` (Optional, string)*
28282828
** *`params` (Optional, number | number | string | boolean | null[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
2829-
** *`version` (Optional, Enum("2024.04.01"))*: The version of the ES|QL language in which the "query" field was written.
28302829
** *`format` (Optional, string)*: A short version of the Accept header, e.g. json, yaml.
28312830
** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. Only valid for the CSV format.
28322831

src/api/api/esql.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class Esql {
5252
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>
5353
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<any> {
5454
const acceptedPath: string[] = []
55-
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'query', 'version']
55+
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'query']
5656
const querystring: Record<string, any> = {}
5757
// @ts-expect-error
5858
const userBody: any = params?.body
@@ -63,12 +63,6 @@ export default class Esql {
6363
body = userBody != null ? { ...userBody } : undefined
6464
}
6565

66-
// a version number is required for all ES|QL queries.
67-
// inject a default value if none is provided.
68-
if (typeof body === 'object' && body.version == null) {
69-
body.version = '2024.04.01'
70-
}
71-
7266
for (const key in params) {
7367
if (acceptedBody.includes(key)) {
7468
body = body ?? {}

src/api/types.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9684,12 +9684,6 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
96849684

96859685
export type EqlSearchResultPosition = 'tail' | 'head'
96869686

9687-
export type EsqlBaseServerlessEsqlVersion = '2024.04.01'
9688-
9689-
export type EsqlBaseStatefulEsqlVersion = '2024.04.01'
9690-
9691-
export type EsqlEsqlVersion = '2024.04.01'
9692-
96939687
export interface EsqlQueryRequest extends RequestBase {
96949688
format?: string
96959689
delimiter?: string
@@ -9698,7 +9692,6 @@ export interface EsqlQueryRequest extends RequestBase {
96989692
locale?: string
96999693
params?: ScalarValue[]
97009694
query: string
9701-
version?: EsqlEsqlVersion
97029695
}
97039696

97049697
export type EsqlQueryResponse = EsqlColumns
@@ -10546,7 +10539,7 @@ export interface IndicesStorage {
1054610539
allow_mmap?: boolean
1054710540
}
1054810541

10549-
export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string
10542+
export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' | string
1055010543

1055110544
export interface IndicesTemplateMapping {
1055210545
aliases: Record<IndexName, IndicesAlias>

src/api/typesWithBodyKey.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9839,12 +9839,6 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
98399839

98409840
export type EqlSearchResultPosition = 'tail' | 'head'
98419841

9842-
export type EsqlBaseServerlessEsqlVersion = '2024.04.01'
9843-
9844-
export type EsqlBaseStatefulEsqlVersion = '2024.04.01'
9845-
9846-
export type EsqlEsqlVersion = '2024.04.01'
9847-
98489842
export interface EsqlQueryRequest extends RequestBase {
98499843
format?: string
98509844
delimiter?: string
@@ -9855,7 +9849,6 @@ export interface EsqlQueryRequest extends RequestBase {
98559849
locale?: string
98569850
params?: ScalarValue[]
98579851
query: string
9858-
version?: EsqlEsqlVersion
98599852
}
98609853
}
98619854

@@ -10720,7 +10713,7 @@ export interface IndicesStorage {
1072010713
allow_mmap?: boolean
1072110714
}
1072210715

10723-
export type IndicesStorageType = 'fs' | '' | 'niofs' | 'mmapfs' | 'hybridfs' | string
10716+
export type IndicesStorageType = 'fs' | 'niofs' | 'mmapfs' | 'hybridfs' | string
1072410717

1072510718
export interface IndicesTemplateMapping {
1072610719
aliases: Record<IndexName, IndicesAlias>

0 commit comments

Comments
 (0)