diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5d3f2d8a5c..b2200f056e 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -9640,6 +9640,9 @@ "include_ccs_metadata": { "description": "When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`\nobject with information about the clusters that participated in the search along with info such as shards\ncount.", "type": "boolean" + }, + "wait_for_completion_timeout": { + "$ref": "#/components/schemas/_types:Duration" } }, "required": [ @@ -34966,7 +34969,7 @@ "schema": { "type": "object", "properties": { - "access_token": { + "token": { "description": "The access token to be invalidated.", "type": "string" }, @@ -34976,7 +34979,7 @@ } }, "required": [ - "access_token" + "token" ] }, "examples": { @@ -115363,6 +115366,38 @@ "additionalProperties": { "type": "string" } + }, + "fields": { + "$ref": "#/components/schemas/_types:Fields" + }, + "field_statistics": { + "description": "If `true`, the response includes:\n\n* The document count (how many documents contain this field).\n* The sum of document frequencies (the sum of document frequencies for all terms in this field).\n* The sum of total term frequencies (the sum of total term frequencies of each term in this field).", + "type": "boolean" + }, + "offsets": { + "description": "If `true`, the response includes term offsets.", + "type": "boolean" + }, + "payloads": { + "description": "If `true`, the response includes term payloads.", + "type": "boolean" + }, + "positions": { + "description": "If `true`, the response includes term positions.", + "type": "boolean" + }, + "term_statistics": { + "description": "If `true`, the response includes:\n\n* The total term frequency (how often a term occurs in all documents).\n* The document frequency (the number of documents containing the current term).\n\nBy default these values are not returned since term statistics can have a serious performance impact.", + "type": "boolean" + }, + "routing": { + "$ref": "#/components/schemas/_types:Routing" + }, + "version": { + "$ref": "#/components/schemas/_types:VersionNumber" + }, + "version_type": { + "$ref": "#/components/schemas/_types:VersionType" } } }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 124dae311d..33ed7e19d1 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -67479,6 +67479,38 @@ "additionalProperties": { "type": "string" } + }, + "fields": { + "$ref": "#/components/schemas/_types:Fields" + }, + "field_statistics": { + "description": "If `true`, the response includes:\n\n* The document count (how many documents contain this field).\n* The sum of document frequencies (the sum of document frequencies for all terms in this field).\n* The sum of total term frequencies (the sum of total term frequencies of each term in this field).", + "type": "boolean" + }, + "offsets": { + "description": "If `true`, the response includes term offsets.", + "type": "boolean" + }, + "payloads": { + "description": "If `true`, the response includes term payloads.", + "type": "boolean" + }, + "positions": { + "description": "If `true`, the response includes term positions.", + "type": "boolean" + }, + "term_statistics": { + "description": "If `true`, the response includes:\n\n* The total term frequency (how often a term occurs in all documents).\n* The document frequency (the number of documents containing the current term).\n\nBy default these values are not returned since term statistics can have a serious performance impact.", + "type": "boolean" + }, + "routing": { + "$ref": "#/components/schemas/_types:Routing" + }, + "version": { + "$ref": "#/components/schemas/_types:VersionNumber" + }, + "version_type": { + "$ref": "#/components/schemas/_types:VersionType" } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index c9f2f55223..80f07c8af3 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -43885,6 +43885,119 @@ } } } + }, + { + "description": "A list of fields to include in the statistics.\nIt is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.", + "name": "fields", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Fields", + "namespace": "_types" + } + } + }, + { + "description": "If `true`, the response includes:\n\n* The document count (how many documents contain this field).\n* The sum of document frequencies (the sum of document frequencies for all terms in this field).\n* The sum of total term frequencies (the sum of total term frequencies of each term in this field).", + "name": "field_statistics", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the response includes term offsets.", + "name": "offsets", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the response includes term payloads.", + "name": "payloads", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the response includes term positions.", + "name": "positions", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the response includes:\n\n* The total term frequency (how often a term occurs in all documents).\n* The document frequency (the number of documents containing the current term).\n\nBy default these values are not returned since term statistics can have a serious performance impact.", + "name": "term_statistics", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "A custom value that is used to route operations to a specific shard.", + "name": "routing", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Routing", + "namespace": "_types" + } + } + }, + { + "description": "If `true`, returns the document version as part of a hit.", + "name": "version", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "VersionNumber", + "namespace": "_types" + } + } + }, + { + "description": "The version type.", + "name": "version_type", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "VersionType", + "namespace": "_types" + } + } } ] }, @@ -44100,7 +44213,7 @@ } } ], - "specLocation": "_global/termvectors/TermVectorsRequest.ts#L33-L187" + "specLocation": "_global/termvectors/TermVectorsRequest.ts#L33-L239" }, { "kind": "response", @@ -124227,6 +124340,19 @@ "namespace": "_builtins" } } + }, + { + "description": "The period to wait for the request to finish.\nBy default, the request waits for 1 second for the query results.\nIf the query completes during this period, results are returned\nOtherwise, a query ID is returned that can later be used to retrieve the results.", + "name": "wait_for_completion_timeout", + "required": false, + "serverDefault": "1s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ] }, @@ -124325,7 +124451,7 @@ } } ], - "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L125" + "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L133" }, { "kind": "response", @@ -208235,7 +208361,7 @@ "properties": [ { "description": "The access token to be invalidated.", - "name": "access_token", + "name": "token", "required": true, "type": { "kind": "instance_of", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 8010d6e3ba..24f8cc3457 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2023,6 +2023,15 @@ export interface TermvectorsRequest extends RequestBase { doc?: TDocument filter?: TermvectorsFilter per_field_analyzer?: Record + fields?: Fields + field_statistics?: boolean + offsets?: boolean + payloads?: boolean + positions?: boolean + term_statistics?: boolean + routing?: Routing + version?: VersionNumber + version_type?: VersionType } } @@ -10591,6 +10600,7 @@ export interface EsqlAsyncQueryRequest extends RequestBase { query: string tables?: Record> include_ccs_metadata?: boolean + wait_for_completion_timeout?: Duration } } @@ -19228,7 +19238,7 @@ export interface SecurityOidcAuthenticateResponse { export interface SecurityOidcLogoutRequest extends RequestBase { body?: { - access_token: string + token: string refresh_token?: string } } diff --git a/specification/_global/termvectors/TermVectorsRequest.ts b/specification/_global/termvectors/TermVectorsRequest.ts index 6522f1bb39..c74e4da22f 100644 --- a/specification/_global/termvectors/TermVectorsRequest.ts +++ b/specification/_global/termvectors/TermVectorsRequest.ts @@ -183,5 +183,57 @@ export interface Request extends RequestBase { * When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated. */ per_field_analyzer?: Dictionary + /** + * A list of fields to include in the statistics. + * It is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. + */ + fields?: Fields + /** + * If `true`, the response includes: + * + * * The document count (how many documents contain this field). + * * The sum of document frequencies (the sum of document frequencies for all terms in this field). + * * The sum of total term frequencies (the sum of total term frequencies of each term in this field). + * @server_default true + */ + field_statistics?: boolean + /** + * If `true`, the response includes term offsets. + * @server_default true + */ + offsets?: boolean + /** + * If `true`, the response includes term payloads. + * @server_default true + */ + payloads?: boolean + /** + * If `true`, the response includes term positions. + * @server_default true + */ + positions?: boolean + /** + * If `true`, the response includes: + * + * * The total term frequency (how often a term occurs in all documents). + * * The document frequency (the number of documents containing the current term). + * + * By default these values are not returned since term statistics can have a serious performance impact. + * + * @server_default false + */ + term_statistics?: boolean + /** + * A custom value that is used to route operations to a specific shard. + */ + routing?: Routing + /** + * If `true`, returns the document version as part of a hit. + */ + version?: VersionNumber + /** + * The version type. + */ + version_type?: VersionType } } diff --git a/specification/esql/async_query/AsyncQueryRequest.ts b/specification/esql/async_query/AsyncQueryRequest.ts index 9f918d9114..9885211e2e 100644 --- a/specification/esql/async_query/AsyncQueryRequest.ts +++ b/specification/esql/async_query/AsyncQueryRequest.ts @@ -121,5 +121,13 @@ export interface Request extends RequestBase { * @server_default false */ include_ccs_metadata?: boolean + /** + * The period to wait for the request to finish. + * By default, the request waits for 1 second for the query results. + * If the query completes during this period, results are returned + * Otherwise, a query ID is returned that can later be used to retrieve the results. + * @server_default 1s + */ + wait_for_completion_timeout?: Duration } } diff --git a/specification/security/oidc_logout/Request.ts b/specification/security/oidc_logout/Request.ts index 78712c208f..cc91378583 100644 --- a/specification/security/oidc_logout/Request.ts +++ b/specification/security/oidc_logout/Request.ts @@ -43,7 +43,7 @@ export interface Request extends RequestBase { /** * The access token to be invalidated. */ - access_token: string + token: string /** * The refresh token to be invalidated. */