Skip to content

Commit e834c0e

Browse files
feat: latest Elasticsearch serverless specification changes (#68)
Auto-generated API code
1 parent a46eda6 commit e834c0e

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

docs/reference.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,7 @@ a new date field is added instead of string.
25722572
not used at all by Elasticsearch, but can be used to store
25732573
application-specific metadata.
25742574
** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields.
2575-
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, script, on_script_error, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, element_type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, subobjects, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type } | { type, norms, index_options, index, null_value, store, rules, language, country, variant, strength, decomposition, alternate, case_level, case_first, numeric, variable_top, hiragana_quaternary_mode }>)*: Mapping for a field. For new fields, this mapping can include:
2575+
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, script, on_script_error, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, element_type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, subobjects, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type } | { type, norms, index_options, index, null_value, rules, language, country, variant, strength, decomposition, alternate, case_level, case_first, numeric, variable_top, hiragana_quaternary_mode }>)*: Mapping for a field. For new fields, this mapping can include:
25762576

25772577
- Field name
25782578
- Field data type
@@ -2880,6 +2880,8 @@ client.inference.delete({ inference_id })
28802880
* *Request (object):*
28812881
** *`inference_id` (string)*: The inference Id
28822882
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding" | "rerank" | "completion"))*: The task type
2883+
** *`dry_run` (Optional, boolean)*: When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned
2884+
** *`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
28832885

28842886
[discrete]
28852887
==== get

src/api/types.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5053,7 +5053,6 @@ export interface MappingIcuCollationProperty extends MappingDocValuesPropertyBas
50535053
index_options?: MappingIndexOptions
50545054
index?: boolean
50555055
null_value?: string
5056-
store?: boolean
50575056
rules?: string
50585057
language?: string
50595058
country?: string
@@ -11846,6 +11845,10 @@ export interface InferenceCompletionResult {
1184611845
result: string
1184711846
}
1184811847

11848+
export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase {
11849+
pipelines: string[]
11850+
}
11851+
1184911852
export type InferenceDenseByteVector = byte[]
1185011853

1185111854
export type InferenceDenseVector = float[]
@@ -11898,9 +11901,11 @@ export interface InferenceTextEmbeddingResult {
1189811901
export interface InferenceDeleteRequest extends RequestBase {
1189911902
task_type?: InferenceTaskType
1190011903
inference_id: Id
11904+
dry_run?: boolean
11905+
force?: boolean
1190111906
}
1190211907

11903-
export type InferenceDeleteResponse = AcknowledgedResponseBase
11908+
export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult
1190411909

1190511910
export interface InferenceGetRequest extends RequestBase {
1190611911
task_type?: InferenceTaskType
@@ -13232,7 +13237,7 @@ export interface MlInferenceConfigUpdateContainer {
1323213237
export interface MlInferenceResponseResult {
1323313238
entities?: MlTrainedModelEntities[]
1323413239
is_truncated?: boolean
13235-
predicted_value?: MlPredictedValue[]
13240+
predicted_value?: MlPredictedValue | MlPredictedValue[]
1323613241
predicted_value_sequence?: string
1323713242
prediction_probability?: double
1323813243
prediction_score?: double

src/api/typesWithBodyKey.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5126,7 +5126,6 @@ export interface MappingIcuCollationProperty extends MappingDocValuesPropertyBas
51265126
index_options?: MappingIndexOptions
51275127
index?: boolean
51285128
null_value?: string
5129-
store?: boolean
51305129
rules?: string
51315130
language?: string
51325131
country?: string
@@ -12067,6 +12066,10 @@ export interface InferenceCompletionResult {
1206712066
result: string
1206812067
}
1206912068

12069+
export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase {
12070+
pipelines: string[]
12071+
}
12072+
1207012073
export type InferenceDenseByteVector = byte[]
1207112074

1207212075
export type InferenceDenseVector = float[]
@@ -12119,9 +12122,11 @@ export interface InferenceTextEmbeddingResult {
1211912122
export interface InferenceDeleteRequest extends RequestBase {
1212012123
task_type?: InferenceTaskType
1212112124
inference_id: Id
12125+
dry_run?: boolean
12126+
force?: boolean
1212212127
}
1212312128

12124-
export type InferenceDeleteResponse = AcknowledgedResponseBase
12129+
export type InferenceDeleteResponse = InferenceDeleteInferenceEndpointResult
1212512130

1212612131
export interface InferenceGetRequest extends RequestBase {
1212712132
task_type?: InferenceTaskType
@@ -13467,7 +13472,7 @@ export interface MlInferenceConfigUpdateContainer {
1346713472
export interface MlInferenceResponseResult {
1346813473
entities?: MlTrainedModelEntities[]
1346913474
is_truncated?: boolean
13470-
predicted_value?: MlPredictedValue[]
13475+
predicted_value?: MlPredictedValue | MlPredictedValue[]
1347113476
predicted_value_sequence?: string
1347213477
prediction_probability?: double
1347313478
prediction_score?: double

0 commit comments

Comments
 (0)