Auto-generated API code (#2619)

This commit is contained in:
Elastic Machine
2025-02-18 17:39:36 +01:00
committed by GitHub
parent 528dd6b24a
commit 85dea32310
4 changed files with 28 additions and 8 deletions

View File

@ -4895,6 +4895,9 @@ and its format can change at any time but it can give some insight into the perf
of each part of the query. of each part of the query.
** *`tables` (Optional, Record<string, Record<string, { integer, keyword, long, double }>>)*: Tables to use with the LOOKUP operation. The top level key is the table ** *`tables` (Optional, Record<string, Record<string, { integer, keyword, long, double }>>)*: Tables to use with the LOOKUP operation. The top level key is the table
name and the next level key is the column name. name and the next level key is the column name.
** *`include_ccs_metadata` (Optional, boolean)*: When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`
object with information about the clusters that participated in the search along with info such as shards
count.
** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. ** *`delimiter` (Optional, string)*: The character to use between values within a CSV row.
It is valid only for the CSV format. It is valid only for the CSV format.
** *`drop_null_columns` (Optional, boolean)*: Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. ** *`drop_null_columns` (Optional, boolean)*: Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
@ -4990,6 +4993,9 @@ and its format can change at any time but it can give some insight into the perf
of each part of the query. of each part of the query.
** *`tables` (Optional, Record<string, Record<string, { integer, keyword, long, double }>>)*: Tables to use with the LOOKUP operation. The top level key is the table ** *`tables` (Optional, Record<string, Record<string, { integer, keyword, long, double }>>)*: Tables to use with the LOOKUP operation. The top level key is the table
name and the next level key is the column name. name and the next level key is the column name.
** *`include_ccs_metadata` (Optional, boolean)*: When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`
object with information about the clusters that participated in the search along with info such as shards
count.
** *`format` (Optional, Enum("csv" | "json" | "tsv" | "txt" | "yaml" | "cbor" | "smile" | "arrow"))*: A short version of the Accept header, e.g. json, yaml. ** *`format` (Optional, Enum("csv" | "json" | "tsv" | "txt" | "yaml" | "cbor" | "smile" | "arrow"))*: A short version of the Accept header, e.g. json, yaml.
** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. Only valid for the CSV format. ** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. Only valid for the CSV format.
** *`drop_null_columns` (Optional, boolean)*: Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results? ** *`drop_null_columns` (Optional, boolean)*: Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?

View File

@ -53,7 +53,7 @@ export default class Esql {
async asyncQuery (this: That, params: T.EsqlAsyncQueryRequest | TB.EsqlAsyncQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlAsyncQueryResponse> async asyncQuery (this: That, params: T.EsqlAsyncQueryRequest | TB.EsqlAsyncQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlAsyncQueryResponse>
async asyncQuery (this: That, params: T.EsqlAsyncQueryRequest | TB.EsqlAsyncQueryRequest, options?: TransportRequestOptions): Promise<any> { async asyncQuery (this: That, params: T.EsqlAsyncQueryRequest | TB.EsqlAsyncQueryRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = [] const acceptedPath: string[] = []
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables'] const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables', 'include_ccs_metadata']
const querystring: Record<string, any> = {} const querystring: Record<string, any> = {}
// @ts-expect-error // @ts-expect-error
const userBody: any = params?.body const userBody: any = params?.body
@ -158,7 +158,7 @@ export default class Esql {
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse> async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<any> { async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = [] const acceptedPath: string[] = []
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables'] const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables', 'include_ccs_metadata']
const querystring: Record<string, any> = {} const querystring: Record<string, any> = {}
// @ts-expect-error // @ts-expect-error
const userBody: any = params?.body const userBody: any = params?.body

View File

@ -10325,6 +10325,7 @@ export interface EsqlAsyncQueryRequest extends RequestBase {
profile?: boolean profile?: boolean
query: string query: string
tables?: Record<string, Record<string, EsqlTableValuesContainer>> tables?: Record<string, Record<string, EsqlTableValuesContainer>>
include_ccs_metadata?: boolean
} }
export type EsqlAsyncQueryResponse = EsqlResult export type EsqlAsyncQueryResponse = EsqlResult
@ -10357,6 +10358,7 @@ export interface EsqlQueryRequest extends RequestBase {
profile?: boolean profile?: boolean
query: string query: string
tables?: Record<string, Record<string, EsqlTableValuesContainer>> tables?: Record<string, Record<string, EsqlTableValuesContainer>>
include_ccs_metadata?: boolean
} }
export type EsqlQueryResponse = EsqlResult export type EsqlQueryResponse = EsqlResult
@ -10674,7 +10676,7 @@ export interface IlmExplainLifecycleLifecycleExplainManaged {
age?: Duration age?: Duration
failed_step?: Name failed_step?: Name
failed_step_retry_count?: integer failed_step_retry_count?: integer
index?: IndexName index: IndexName
index_creation_date?: DateTime index_creation_date?: DateTime
index_creation_date_millis?: EpochTime<UnitMillis> index_creation_date_millis?: EpochTime<UnitMillis>
is_auto_retryable_error?: boolean is_auto_retryable_error?: boolean
@ -10684,7 +10686,11 @@ export interface IlmExplainLifecycleLifecycleExplainManaged {
phase: Name phase: Name
phase_time?: DateTime phase_time?: DateTime
phase_time_millis?: EpochTime<UnitMillis> phase_time_millis?: EpochTime<UnitMillis>
policy: Name policy?: Name
previous_step_info?: Record<string, any>
repository_name?: string
snapshot_name?: string
shrink_index_name?: string
step?: Name step?: Name
step_info?: Record<string, any> step_info?: Record<string, any>
step_time?: DateTime step_time?: DateTime
@ -10694,6 +10700,7 @@ export interface IlmExplainLifecycleLifecycleExplainManaged {
} }
export interface IlmExplainLifecycleLifecycleExplainPhaseExecution { export interface IlmExplainLifecycleLifecycleExplainPhaseExecution {
phase_definition?: IlmPhase
policy: Name policy: Name
version: VersionNumber version: VersionNumber
modified_date_in_millis: EpochTime<UnitMillis> modified_date_in_millis: EpochTime<UnitMillis>
@ -12673,7 +12680,7 @@ export interface InferenceInferenceResult {
export interface InferenceRankedDocument { export interface InferenceRankedDocument {
index: integer index: integer
score: float relevance_score: float
text?: string text?: string
} }

View File

@ -10498,6 +10498,7 @@ export interface EsqlAsyncQueryRequest extends RequestBase {
profile?: boolean profile?: boolean
query: string query: string
tables?: Record<string, Record<string, EsqlTableValuesContainer>> tables?: Record<string, Record<string, EsqlTableValuesContainer>>
include_ccs_metadata?: boolean
} }
} }
@ -10533,6 +10534,7 @@ export interface EsqlQueryRequest extends RequestBase {
profile?: boolean profile?: boolean
query: string query: string
tables?: Record<string, Record<string, EsqlTableValuesContainer>> tables?: Record<string, Record<string, EsqlTableValuesContainer>>
include_ccs_metadata?: boolean
} }
} }
@ -10858,7 +10860,7 @@ export interface IlmExplainLifecycleLifecycleExplainManaged {
age?: Duration age?: Duration
failed_step?: Name failed_step?: Name
failed_step_retry_count?: integer failed_step_retry_count?: integer
index?: IndexName index: IndexName
index_creation_date?: DateTime index_creation_date?: DateTime
index_creation_date_millis?: EpochTime<UnitMillis> index_creation_date_millis?: EpochTime<UnitMillis>
is_auto_retryable_error?: boolean is_auto_retryable_error?: boolean
@ -10868,7 +10870,11 @@ export interface IlmExplainLifecycleLifecycleExplainManaged {
phase: Name phase: Name
phase_time?: DateTime phase_time?: DateTime
phase_time_millis?: EpochTime<UnitMillis> phase_time_millis?: EpochTime<UnitMillis>
policy: Name policy?: Name
previous_step_info?: Record<string, any>
repository_name?: string
snapshot_name?: string
shrink_index_name?: string
step?: Name step?: Name
step_info?: Record<string, any> step_info?: Record<string, any>
step_time?: DateTime step_time?: DateTime
@ -10878,6 +10884,7 @@ export interface IlmExplainLifecycleLifecycleExplainManaged {
} }
export interface IlmExplainLifecycleLifecycleExplainPhaseExecution { export interface IlmExplainLifecycleLifecycleExplainPhaseExecution {
phase_definition?: IlmPhase
policy: Name policy: Name
version: VersionNumber version: VersionNumber
modified_date_in_millis: EpochTime<UnitMillis> modified_date_in_millis: EpochTime<UnitMillis>
@ -12913,7 +12920,7 @@ export interface InferenceInferenceResult {
export interface InferenceRankedDocument { export interface InferenceRankedDocument {
index: integer index: integer
score: float relevance_score: float
text?: string text?: string
} }