Skip to content

Auto-generated code for 8.19 #2851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6209,6 +6209,7 @@ client.indices.deleteIndexTemplate({ name })
[discrete]
==== delete_template
Delete a legacy index template.
IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.

{ref}/indices-delete-template-v1.html[Endpoint documentation]
[source,ts]
Expand Down Expand Up @@ -6822,7 +6823,7 @@ error.

[discrete]
==== get_template
Get index templates.
Get legacy index templates.
Get information about one or more index templates.

IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
Expand Down Expand Up @@ -7279,7 +7280,7 @@ will be closed temporarily and then reopened in order to apply the changes.

[discrete]
==== put_template
Create or update an index template.
Create or update a legacy index template.
Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
Elasticsearch applies templates to new indices based on an index pattern that matches the index name.

Expand Down
6 changes: 3 additions & 3 deletions src/api/api/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ export default class Indices {
}

/**
* Delete a legacy index template.
* Delete a legacy index template. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-delete-template-v1.html | Elasticsearch API documentation}
*/
async deleteTemplate (this: That, params: T.IndicesDeleteTemplateRequest | TB.IndicesDeleteTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesDeleteTemplateResponse>
Expand Down Expand Up @@ -1427,7 +1427,7 @@ export default class Indices {
}

/**
* Get index templates. Get information about one or more index templates. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
* Get legacy index templates. Get information about one or more index templates. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-get-template-v1.html | Elasticsearch API documentation}
*/
async getTemplate (this: That, params?: T.IndicesGetTemplateRequest | TB.IndicesGetTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesGetTemplateResponse>
Expand Down Expand Up @@ -1898,7 +1898,7 @@ export default class Indices {
}

/**
* Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices. Elasticsearch applies templates to new indices based on an index pattern that matches the index name. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. Composable templates always take precedence over legacy templates. If no composable template matches a new index, matching legacy templates are applied according to their order. Index templates are only applied during index creation. Changes to index templates do not affect existing indices. Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. You can use C-style `/* *\/` block comments in index templates. You can include comments anywhere in the request body, except before the opening curly bracket. **Indices matching multiple templates** Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.
* Create or update a legacy index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices. Elasticsearch applies templates to new indices based on an index pattern that matches the index name. IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. Composable templates always take precedence over legacy templates. If no composable template matches a new index, matching legacy templates are applied according to their order. Index templates are only applied during index creation. Changes to index templates do not affect existing indices. Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. You can use C-style `/* *\/` block comments in index templates. You can include comments anywhere in the request body, except before the opening curly bracket. **Indices matching multiple templates** Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-templates-v1.html | Elasticsearch API documentation}
*/
async putTemplate (this: That, params: T.IndicesPutTemplateRequest | TB.IndicesPutTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesPutTemplateResponse>
Expand Down
13 changes: 10 additions & 3 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ export interface SearchShardProfile {
index: IndexName
node_id: NodeId
searches: SearchSearchProfile[]
shard_id: long
shard_id: integer
}

export interface SearchSmoothingModelContainer {
Expand Down Expand Up @@ -13239,6 +13239,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[]
Expand Down Expand Up @@ -13347,6 +13352,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
}
Expand Down Expand Up @@ -13584,7 +13591,7 @@ export interface InferencePutJinaaiRequest extends RequestBase {
task_settings?: InferenceJinaAITaskSettings
}

export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfo
export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfoJinaAi

export interface InferencePutMistralRequest extends RequestBase {
task_type: InferenceMistralTaskType
Expand Down Expand Up @@ -20143,7 +20150,7 @@ export interface SnapshotSnapshotShardFailure {
index: IndexName
node_id?: Id
reason: string
shard_id: Id
shard_id: integer
index_uuid: Id
status: string
}
Expand Down
13 changes: 10 additions & 3 deletions src/api/typesWithBodyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ export interface SearchShardProfile {
index: IndexName
node_id: NodeId
searches: SearchSearchProfile[]
shard_id: long
shard_id: integer
}

export interface SearchSmoothingModelContainer {
Expand Down Expand Up @@ -13481,6 +13481,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[]
Expand Down Expand Up @@ -13589,6 +13594,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
}
Expand Down Expand Up @@ -13870,7 +13877,7 @@ export interface InferencePutJinaaiRequest extends RequestBase {
}
}

export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfo
export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfoJinaAi

export interface InferencePutMistralRequest extends RequestBase {
task_type: InferenceMistralTaskType
Expand Down Expand Up @@ -20725,7 +20732,7 @@ export interface SnapshotSnapshotShardFailure {
index: IndexName
node_id?: Id
reason: string
shard_id: Id
shard_id: integer
index_uuid: Id
status: string
}
Expand Down