diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 6a9122788b..af697ecfc5 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -14058,7 +14058,7 @@ "tags": [ "indices" ], - "summary": "Get index templates", + "summary": "Get legacy index templates", "description": "Get information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "externalDocs": { "url": "https://www.elastic.co/docs/manage-data/data-store/templates" @@ -14082,13 +14082,14 @@ "200": { "$ref": "#/components/responses/indices.get_template-200" } - } + }, + "deprecated": true }, "put": { "tags": [ "indices" ], - "summary": "Create or update an index template", + "summary": "Create or update a legacy index template", "description": "Index templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", "externalDocs": { "url": "https://www.elastic.co/docs/manage-data/data-store/templates" @@ -14118,13 +14119,14 @@ "200": { "$ref": "#/components/responses/indices.put_template-200" } - } + }, + "deprecated": true }, "post": { "tags": [ "indices" ], - "summary": "Create or update an index template", + "summary": "Create or update a legacy index template", "description": "Index templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", "externalDocs": { "url": "https://www.elastic.co/docs/manage-data/data-store/templates" @@ -14154,13 +14156,15 @@ "200": { "$ref": "#/components/responses/indices.put_template-200" } - } + }, + "deprecated": true }, "delete": { "tags": [ "indices" ], "summary": "Delete a legacy index template", + "description": "IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "operationId": "indices-delete-template", "parameters": [ { @@ -14206,7 +14210,8 @@ } } } - } + }, + "deprecated": true }, "head": { "tags": [ @@ -15602,7 +15607,7 @@ "tags": [ "indices" ], - "summary": "Get index templates", + "summary": "Get legacy index templates", "description": "Get information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "externalDocs": { "url": "https://www.elastic.co/docs/manage-data/data-store/templates" @@ -15623,7 +15628,8 @@ "200": { "$ref": "#/components/responses/indices.get_template-200" } - } + }, + "deprecated": true } }, "/_migration/reindex": { @@ -18715,7 +18721,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/inference._types.InferenceEndpointInfo" + "$ref": "#/components/schemas/inference._types.InferenceEndpointInfoJinaAi" } } } @@ -80185,6 +80191,36 @@ "search" ] }, + "inference._types.InferenceEndpointInfoJinaAi": { + "allOf": [ + { + "$ref": "#/components/schemas/inference._types.InferenceEndpoint" + }, + { + "type": "object", + "properties": { + "inference_id": { + "description": "The inference Id", + "type": "string" + }, + "task_type": { + "$ref": "#/components/schemas/inference._types.TaskTypeJinaAi" + } + }, + "required": [ + "inference_id", + "task_type" + ] + } + ] + }, + "inference._types.TaskTypeJinaAi": { + "type": "string", + "enum": [ + "text_embedding", + "rerank" + ] + }, "inference._types.MistralTaskType": { "type": "string", "enum": [ @@ -95333,7 +95369,7 @@ "type": "string" }, "shard_id": { - "$ref": "#/components/schemas/_types.Id" + "type": "number" }, "index_uuid": { "$ref": "#/components/schemas/_types.Id" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index cc8ef7679b..15fad418e4 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -10648,7 +10648,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/inference._types.InferenceEndpointInfo" + "$ref": "#/components/schemas/inference._types.InferenceEndpointInfoJinaAi" } } } @@ -51499,6 +51499,36 @@ "search" ] }, + "inference._types.InferenceEndpointInfoJinaAi": { + "allOf": [ + { + "$ref": "#/components/schemas/inference._types.InferenceEndpoint" + }, + { + "type": "object", + "properties": { + "inference_id": { + "description": "The inference Id", + "type": "string" + }, + "task_type": { + "$ref": "#/components/schemas/inference._types.TaskTypeJinaAi" + } + }, + "required": [ + "inference_id", + "task_type" + ] + } + ] + }, + "inference._types.TaskTypeJinaAi": { + "type": "string", + "enum": [ + "text_embedding", + "rerank" + ] + }, "inference._types.MistralTaskType": { "type": "string", "enum": [ diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 5356de0000..53634b5edf 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -29262,7 +29262,7 @@ "value": { "kind": "instance_of", "type": { - "name": "InferenceEndpointInfo", + "name": "InferenceEndpointInfoJinaAi", "namespace": "inference._types" } } @@ -81558,7 +81558,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -105656,7 +105656,7 @@ "name": "ServiceSettings", "namespace": "inference._types" }, - "specLocation": "inference/_types/Services.ts#L91-L91", + "specLocation": "inference/_types/Services.ts#L102-L102", "type": { "kind": "user_defined_value" } @@ -105694,7 +105694,7 @@ "name": "TaskSettings", "namespace": "inference._types" }, - "specLocation": "inference/_types/Services.ts#L93-L93", + "specLocation": "inference/_types/Services.ts#L104-L104", "type": { "kind": "user_defined_value" } @@ -105724,6 +105724,22 @@ }, "specLocation": "inference/_types/TaskType.ts#L20-L29" }, + { + "kind": "enum", + "members": [ + { + "name": "text_embedding" + }, + { + "name": "rerank" + } + ], + "name": { + "name": "TaskTypeJinaAi", + "namespace": "inference._types" + }, + "specLocation": "inference/_types/TaskType.ts#L31-L34" + }, { "kind": "enum", "members": [ @@ -126594,7 +126610,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L60-L89" + "specLocation": "inference/_types/Services.ts#L71-L100" }, { "description": "InferenceResult is an aggregation of mutually exclusive variants", @@ -126895,7 +126911,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L95-L100" + "specLocation": "inference/_types/Services.ts#L106-L111" }, { "kind": "interface", @@ -128075,6 +128091,46 @@ ], "specLocation": "inference/_types/CommonTypes.ts#L933-L954" }, + { + "inherits": { + "type": { + "name": "InferenceEndpoint", + "namespace": "inference._types" + } + }, + "kind": "interface", + "name": { + "name": "InferenceEndpointInfoJinaAi", + "namespace": "inference._types" + }, + "properties": [ + { + "description": "The inference Id", + "name": "inference_id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The task type", + "name": "task_type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "TaskTypeJinaAi", + "namespace": "inference._types" + } + } + } + ], + "specLocation": "inference/_types/Services.ts#L60-L69" + }, { "kind": "interface", "name": { diff --git a/output/schema/schema.json b/output/schema/schema.json index b2bde0440d..5a86516f46 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -6968,7 +6968,11 @@ "stability": "stable" } }, - "description": "Delete a legacy index template.", + "deprecation": { + "description": "", + "version": "7.8.0" + }, + "description": "Delete a legacy index template.\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "docId": "indices-delete-template-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-template", "name": "indices.delete_template", @@ -7859,7 +7863,11 @@ "stability": "stable" } }, - "description": "Get index templates.\nGet information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", + "deprecation": { + "description": "", + "version": "7.8.0" + }, + "description": "Get legacy index templates.\nGet information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "docId": "indices-get-template-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-template", "extDocId": "index-templates", @@ -8322,7 +8330,11 @@ "stability": "stable" } }, - "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", + "deprecation": { + "description": "", + "version": "7.8.0" + }, + "description": "Create or update a legacy index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", "docId": "index-templates-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-template", "extDocId": "index-templates", @@ -41733,7 +41745,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -140126,7 +140138,11 @@ "body": { "kind": "no_body" }, - "description": "Delete a legacy index template.", + "deprecation": { + "description": "", + "version": "7.8.0" + }, + "description": "Delete a legacy index template.\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "inherits": { "type": { "name": "RequestBase", @@ -140179,7 +140195,7 @@ } } ], - "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L59" + "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L61" }, { "kind": "response", @@ -143599,7 +143615,11 @@ "body": { "kind": "no_body" }, - "description": "Get index templates.\nGet information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", + "deprecation": { + "description": "", + "version": "7.8.0" + }, + "description": "Get legacy index templates.\nGet information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "inherits": { "type": { "name": "RequestBase", @@ -143665,7 +143685,7 @@ } } ], - "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L72" + "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L73" }, { "kind": "response", @@ -145472,7 +145492,11 @@ } ] }, - "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", + "deprecation": { + "description": "", + "version": "7.8.0" + }, + "description": "Create or update a legacy index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", "examples": { "indicesPutTemplateRequestExample1": { "summary": "Create an index template", @@ -145560,7 +145584,7 @@ } } ], - "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L123" + "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L124" }, { "kind": "response", @@ -153774,7 +153798,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L60-L89" + "specLocation": "inference/_types/Services.ts#L71-L100" }, { "kind": "interface", @@ -153876,6 +153900,46 @@ ], "specLocation": "inference/_types/Services.ts#L46-L58" }, + { + "kind": "interface", + "inherits": { + "type": { + "name": "InferenceEndpoint", + "namespace": "inference._types" + } + }, + "name": { + "name": "InferenceEndpointInfoJinaAi", + "namespace": "inference._types" + }, + "properties": [ + { + "description": "The inference Id", + "name": "inference_id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The task type", + "name": "task_type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "TaskTypeJinaAi", + "namespace": "inference._types" + } + } + } + ], + "specLocation": "inference/_types/Services.ts#L60-L69" + }, { "kind": "interface", "description": "InferenceResult is an aggregation of mutually exclusive variants", @@ -154541,7 +154605,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L95-L100" + "specLocation": "inference/_types/Services.ts#L106-L111" }, { "kind": "interface", @@ -154689,7 +154753,7 @@ "name": "ServiceSettings", "namespace": "inference._types" }, - "specLocation": "inference/_types/Services.ts#L91-L91", + "specLocation": "inference/_types/Services.ts#L102-L102", "type": { "kind": "user_defined_value" } @@ -154773,7 +154837,7 @@ "name": "TaskSettings", "namespace": "inference._types" }, - "specLocation": "inference/_types/Services.ts#L93-L93", + "specLocation": "inference/_types/Services.ts#L104-L104", "type": { "kind": "user_defined_value" } @@ -154803,6 +154867,22 @@ }, "specLocation": "inference/_types/TaskType.ts#L20-L29" }, + { + "kind": "enum", + "members": [ + { + "name": "text_embedding" + }, + { + "name": "rerank" + } + ], + "name": { + "name": "TaskTypeJinaAi", + "namespace": "inference._types" + }, + "specLocation": "inference/_types/TaskType.ts#L31-L34" + }, { "kind": "interface", "description": "The text embedding result object for byte representation", @@ -157409,7 +157489,7 @@ "value": { "kind": "instance_of", "type": { - "name": "InferenceEndpointInfo", + "name": "InferenceEndpointInfoJinaAi", "namespace": "inference._types" } } @@ -224239,7 +224319,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Id", + "name": "integer", "namespace": "_types" } } @@ -224267,7 +224347,7 @@ } } ], - "specLocation": "snapshot/_types/SnapshotShardFailure.ts#L22-L29" + "specLocation": "snapshot/_types/SnapshotShardFailure.ts#L23-L30" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 8fb23024c3..cff36d940e 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1746,7 +1746,7 @@ export interface SearchShardProfile { index: IndexName node_id: NodeId searches: SearchSearchProfile[] - shard_id: long + shard_id: integer } export interface SearchSmoothingModelContainer { @@ -13476,6 +13476,11 @@ export interface InferenceInferenceEndpointInfo extends InferenceInferenceEndpoi task_type: InferenceTaskType } +export interface InferenceInferenceEndpointInfoJinaAi extends InferenceInferenceEndpoint { + inference_id: string + task_type: InferenceTaskTypeJinaAi +} + export interface InferenceInferenceResult { text_embedding_bytes?: InferenceTextEmbeddingByteResult[] text_embedding_bits?: InferenceTextEmbeddingByteResult[] @@ -13584,6 +13589,8 @@ export type InferenceTaskSettings = any export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' | 'completion' | 'chat_completion' +export type InferenceTaskTypeJinaAi = 'text_embedding' | 'rerank' + export interface InferenceTextEmbeddingByteResult { embedding: InferenceDenseByteVector } @@ -13849,7 +13856,7 @@ export interface InferencePutJinaaiRequest extends RequestBase { } } -export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfo +export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfoJinaAi export interface InferencePutMistralRequest extends RequestBase { task_type: InferenceMistralTaskType @@ -20648,7 +20655,7 @@ export interface SnapshotSnapshotShardFailure { index: IndexName node_id?: Id reason: string - shard_id: Id + shard_id: integer index_uuid: Id status: string }