From eea191a91cd7e5ccc0e8fe9627b495d889be27a2 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Mon, 10 Feb 2025 06:03:56 +0000 Subject: [PATCH] Auto-generated API code --- src/api/types.ts | 52 +++++++++++++++++++++++++------------ src/api/typesWithBodyKey.ts | 52 +++++++++++++++++++++++++------------ 2 files changed, 72 insertions(+), 32 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index 1a1bf4c61..103119203 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -34,6 +34,8 @@ export interface BulkCreateOperation extends BulkWriteOperation { export interface BulkDeleteOperation extends BulkOperationBase { } +export type BulkFailureStoreStatus = 'not_applicable_or_unknown' | 'used' | 'not_enabled' | 'failed' + export interface BulkIndexOperation extends BulkWriteOperation { } @@ -83,6 +85,7 @@ export interface BulkResponseItem { _id?: string | null _index: string status: integer + failure_store?: BulkFailureStoreStatus error?: ErrorCause _primary_term?: long result?: string @@ -13681,20 +13684,21 @@ export interface MlAnomaly { } export interface MlAnomalyCause { - actual: double[] - by_field_name: Name - by_field_value: string - correlated_by_field_value: string - field_name: Field - function: string - function_description: string - influencers: MlInfluence[] - over_field_name: Name - over_field_value: string - partition_field_name: string - partition_field_value: string + actual?: double[] + by_field_name?: Name + by_field_value?: string + correlated_by_field_value?: string + field_name?: Field + function?: string + function_description?: string + geo_results?: MlGeoResults + influencers?: MlInfluence[] + over_field_name?: Name + over_field_value?: string + partition_field_name?: string + partition_field_value?: string probability: double - typical: double[] + typical?: double[] } export interface MlAnomalyExplanation { @@ -14263,8 +14267,8 @@ export interface MlFilterRef { export type MlFilterType = 'include' | 'exclude' export interface MlGeoResults { - actual_point: string - typical_point: string + actual_point?: string + typical_point?: string } export interface MlHyperparameter { @@ -18838,6 +18842,18 @@ export interface ShutdownPutNodeRequest extends RequestBase { export type ShutdownPutNodeResponse = AcknowledgedResponseBase +export interface SimulateIngestIngestDocumentSimulationKeys { + _id: Id + _index: IndexName + _source: Record + _version: SpecUtilsStringified + executed_pipelines: string[] + ignored_fields?: Record[] + error?: ErrorCause +} +export type SimulateIngestIngestDocumentSimulation = SimulateIngestIngestDocumentSimulationKeys +& { [property: string]: string | Id | IndexName | Record | SpecUtilsStringified | string[] | Record[] | ErrorCause } + export interface SimulateIngestRequest extends RequestBase { index?: IndexName pipeline?: PipelineName @@ -18849,7 +18865,11 @@ export interface SimulateIngestRequest extends RequestBase { } export interface SimulateIngestResponse { - docs: IngestSimulateDocumentResult[] + docs: SimulateIngestSimulateIngestDocumentResult[] +} + +export interface SimulateIngestSimulateIngestDocumentResult { + doc?: SimulateIngestIngestDocumentSimulation } export interface SlmConfiguration { diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index 90df6aebb..806654250 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -34,6 +34,8 @@ export interface BulkCreateOperation extends BulkWriteOperation { export interface BulkDeleteOperation extends BulkOperationBase { } +export type BulkFailureStoreStatus = 'not_applicable_or_unknown' | 'used' | 'not_enabled' | 'failed' + export interface BulkIndexOperation extends BulkWriteOperation { } @@ -84,6 +86,7 @@ export interface BulkResponseItem { _id?: string | null _index: string status: integer + failure_store?: BulkFailureStoreStatus error?: ErrorCause _primary_term?: long result?: string @@ -13943,20 +13946,21 @@ export interface MlAnomaly { } export interface MlAnomalyCause { - actual: double[] - by_field_name: Name - by_field_value: string - correlated_by_field_value: string - field_name: Field - function: string - function_description: string - influencers: MlInfluence[] - over_field_name: Name - over_field_value: string - partition_field_name: string - partition_field_value: string + actual?: double[] + by_field_name?: Name + by_field_value?: string + correlated_by_field_value?: string + field_name?: Field + function?: string + function_description?: string + geo_results?: MlGeoResults + influencers?: MlInfluence[] + over_field_name?: Name + over_field_value?: string + partition_field_name?: string + partition_field_value?: string probability: double - typical: double[] + typical?: double[] } export interface MlAnomalyExplanation { @@ -14525,8 +14529,8 @@ export interface MlFilterRef { export type MlFilterType = 'include' | 'exclude' export interface MlGeoResults { - actual_point: string - typical_point: string + actual_point?: string + typical_point?: string } export interface MlHyperparameter { @@ -19348,6 +19352,18 @@ export interface ShutdownPutNodeRequest extends RequestBase { export type ShutdownPutNodeResponse = AcknowledgedResponseBase +export interface SimulateIngestIngestDocumentSimulationKeys { + _id: Id + _index: IndexName + _source: Record + _version: SpecUtilsStringified + executed_pipelines: string[] + ignored_fields?: Record[] + error?: ErrorCause +} +export type SimulateIngestIngestDocumentSimulation = SimulateIngestIngestDocumentSimulationKeys +& { [property: string]: string | Id | IndexName | Record | SpecUtilsStringified | string[] | Record[] | ErrorCause } + export interface SimulateIngestRequest extends RequestBase { index?: IndexName pipeline?: PipelineName @@ -19362,7 +19378,11 @@ export interface SimulateIngestRequest extends RequestBase { } export interface SimulateIngestResponse { - docs: IngestSimulateDocumentResult[] + docs: SimulateIngestSimulateIngestDocumentResult[] +} + +export interface SimulateIngestSimulateIngestDocumentResult { + doc?: SimulateIngestIngestDocumentSimulation } export interface SlmConfiguration {