From 72355dd7dda10c89bd69f540f1b314f4be5e7565 Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Sat, 12 Jul 2025 04:13:57 +0000 Subject: [PATCH] Update rest-api-spec --- output/openapi/elasticsearch-openapi.json | 6 +++++- .../elasticsearch-serverless-openapi.json | 6 +++++- output/schema/schema.json | 21 +++++++++++++++++-- output/schema/validation-errors.json | 6 ------ output/typescript/types.ts | 1 + specification/_json_spec/search_mvt.json | 6 ++++++ 6 files changed, 36 insertions(+), 10 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index a7ef2f09b4..0a9cd11452 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -16127,7 +16127,7 @@ "indices" ], "summary": "Check index templates", - "description": "Check whether index templates exist.", + "description": "Check whether index templates exist.\n\n## Required authorization\n\n* Cluster privileges: `manage_index_templates`\n", "operationId": "indices-exists-index-template", "parameters": [ { @@ -125348,6 +125348,10 @@ } ] }, + "input_type": { + "description": "Specifies the input data type for the text embedding model. The `input_type` parameter only applies to Inference Endpoints with the `text_embedding` task type. Possible values include:\n* `SEARCH`\n* `INGEST`\n* `CLASSIFICATION`\n* `CLUSTERING`\nNot all services support all values. Unsupported values will trigger a validation exception.\nAccepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info.\n\n> info\n> The `input_type` parameter specified on the root level of the request body will take precedence over the `input_type` parameter specified in `task_settings`.", + "type": "string" + }, "task_settings": { "$ref": "#/components/schemas/inference._types.TaskSettings" } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5e602aafe2..2549bc0da9 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -8610,7 +8610,7 @@ "indices" ], "summary": "Check index templates", - "description": "Check whether index templates exist.", + "description": "Check whether index templates exist.\n\n## Required authorization\n\n* Cluster privileges: `manage_index_templates`\n", "operationId": "indices-exists-index-template", "parameters": [ { @@ -75012,6 +75012,10 @@ } ] }, + "input_type": { + "description": "Specifies the input data type for the text embedding model. The `input_type` parameter only applies to Inference Endpoints with the `text_embedding` task type. Possible values include:\n* `SEARCH`\n* `INGEST`\n* `CLASSIFICATION`\n* `CLUSTERING`\nNot all services support all values. Unsupported values will trigger a validation exception.\nAccepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info.\n\n> info\n> The `input_type` parameter specified on the root level of the request body will take precedence over the `input_type` parameter specified in `task_settings`.", + "type": "string" + }, "task_settings": { "$ref": "#/components/schemas/inference._types.TaskSettings" } diff --git a/output/schema/schema.json b/output/schema/schema.json index 5cfb4fd27d..f846a8771e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -7460,6 +7460,11 @@ "docId": "index-templates-exist", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-index-template", "name": "indices.exists_index_template", + "privileges": { + "cluster": [ + "manage_index_templates" + ] + }, "request": { "name": "Request", "namespace": "indices.exists_index_template" @@ -151626,7 +151631,7 @@ } } ], - "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L61" + "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L62" }, { "kind": "response", @@ -170275,6 +170280,18 @@ ] } }, + { + "description": "Specifies the input data type for the text embedding model. The `input_type` parameter only applies to Inference Endpoints with the `text_embedding` task type. Possible values include:\n* `SEARCH`\n* `INGEST`\n* `CLASSIFICATION`\n* `CLUSTERING`\nNot all services support all values. Unsupported values will trigger a validation exception.\nAccepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info.\n\n> info\n> The `input_type` parameter specified on the root level of the request body will take precedence over the `input_type` parameter specified in `task_settings`.", + "name": "input_type", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "description": "Task settings for the individual inference request.\nThese settings are specific to the task type you specified and override the task settings specified when initializing the service.", "name": "task_settings", @@ -170341,7 +170358,7 @@ } } ], - "specLocation": "inference/inference/InferenceRequest.ts#L26-L91" + "specLocation": "inference/inference/InferenceRequest.ts#L26-L104" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 9e0795aa23..7ef79abf8c 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -41,12 +41,6 @@ ], "response": [] }, - "search_mvt": { - "request": [ - "Request: query parameter 'grid_agg' does not exist in the json spec" - ], - "response": [] - }, "searchable_snapshots.clear_cache": { "request": [ "Request: missing json spec query parameter 'index'" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index eab7adccb0..3d4b61afaf 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -14150,6 +14150,7 @@ export interface InferenceInferenceRequest extends RequestBase { body?: { query?: string input: string | string[] + input_type?: string task_settings?: InferenceTaskSettings } } diff --git a/specification/_json_spec/search_mvt.json b/specification/_json_spec/search_mvt.json index 9dc7676d73..36a98c3fd3 100644 --- a/specification/_json_spec/search_mvt.json +++ b/specification/_json_spec/search_mvt.json @@ -62,6 +62,12 @@ "description": "Determines the geometry type for features in the aggs layer.", "default": "grid" }, + "grid_agg": { + "type": "enum", + "options": ["geotile", "geohex"], + "description": "Aggregation used to create a grid for `field`.", + "default": "geotile" + }, "size": { "type": "int", "description": "Maximum number of features to return in the hits layer. Accepts 0-10000.",