From 8e162dd8b87263982d76df94aa481ba9752b2fe2 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Sat, 8 Jun 2024 01:51:48 +1000 Subject: [PATCH] Auto-generated code for main (#2281) --- docs/reference.asciidoc | 4 +++- src/api/types.ts | 11 ++++++++--- src/api/typesWithBodyKey.ts | 11 ++++++++--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 7db4ac61a..59fc4094a 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -4252,7 +4252,7 @@ a new date field is added instead of string. not used at all by Elasticsearch, but can be used to store application-specific metadata. ** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields. -** *`properties` (Optional, Record)*: Mapping for a field. For new fields, this mapping can include: +** *`properties` (Optional, Record)*: Mapping for a field. For new fields, this mapping can include: - Field name - Field data type @@ -4784,6 +4784,8 @@ client.inference.delete({ inference_id }) * *Request (object):* ** *`inference_id` (string)*: The inference Id ** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding" | "rerank" | "completion"))*: The task type +** *`dry_run` (Optional, boolean)*: When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned +** *`force` (Optional, boolean)*: When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields [discrete] ==== get diff --git a/src/api/types.ts b/src/api/types.ts index d594b32e5..bb07bb0ae 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -5074,7 +5074,6 @@ export interface MappingIcuCollationProperty extends MappingDocValuesPropertyBas index_options?: MappingIndexOptions index?: boolean null_value?: string - store?: boolean rules?: string language?: string country?: string @@ -11909,6 +11908,10 @@ export interface InferenceCompletionResult { result: string } +export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase { + pipelines: string[] +} + export type InferenceDenseByteVector = byte[] export type InferenceDenseVector = float[] @@ -11961,9 +11964,11 @@ export interface InferenceTextEmbeddingResult { export interface InferenceDeleteRequest extends RequestBase { task_type?: InferenceTaskType inference_id: Id + dry_run?: boolean + force?: boolean } -export type InferenceDeleteResponse = AcknowledgedResponseBase +export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult export interface InferenceGetRequest extends RequestBase { task_type?: InferenceTaskType @@ -13305,7 +13310,7 @@ export interface MlInferenceConfigUpdateContainer { export interface MlInferenceResponseResult { entities?: MlTrainedModelEntities[] is_truncated?: boolean - predicted_value?: MlPredictedValue[] + predicted_value?: MlPredictedValue | MlPredictedValue[] predicted_value_sequence?: string prediction_probability?: double prediction_score?: double diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index fe6fe2fc4..5b2206395 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -5147,7 +5147,6 @@ export interface MappingIcuCollationProperty extends MappingDocValuesPropertyBas index_options?: MappingIndexOptions index?: boolean null_value?: string - store?: boolean rules?: string language?: string country?: string @@ -12130,6 +12129,10 @@ export interface InferenceCompletionResult { result: string } +export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase { + pipelines: string[] +} + export type InferenceDenseByteVector = byte[] export type InferenceDenseVector = float[] @@ -12182,9 +12185,11 @@ export interface InferenceTextEmbeddingResult { export interface InferenceDeleteRequest extends RequestBase { task_type?: InferenceTaskType inference_id: Id + dry_run?: boolean + force?: boolean } -export type InferenceDeleteResponse = AcknowledgedResponseBase +export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult export interface InferenceGetRequest extends RequestBase { task_type?: InferenceTaskType @@ -13540,7 +13545,7 @@ export interface MlInferenceConfigUpdateContainer { export interface MlInferenceResponseResult { entities?: MlTrainedModelEntities[] is_truncated?: boolean - predicted_value?: MlPredictedValue[] + predicted_value?: MlPredictedValue | MlPredictedValue[] predicted_value_sequence?: string prediction_probability?: double prediction_score?: double