Skip to content
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

Auto-generated code for 8.17 #2608

Merged
merged 1 commit into from
Feb 10, 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
52 changes: 36 additions & 16 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}

Expand Down Expand Up @@ -83,6 +85,7 @@ export interface BulkResponseItem {
_id?: string | null
_index: string
status: integer
failure_store?: BulkFailureStoreStatus
error?: ErrorCause
_primary_term?: long
result?: string
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -18838,6 +18842,18 @@ export interface ShutdownPutNodeRequest extends RequestBase {

export type ShutdownPutNodeResponse = AcknowledgedResponseBase

export interface SimulateIngestIngestDocumentSimulationKeys {
_id: Id
_index: IndexName
_source: Record<string, any>
_version: SpecUtilsStringified<VersionNumber>
executed_pipelines: string[]
ignored_fields?: Record<string, string>[]
error?: ErrorCause
}
export type SimulateIngestIngestDocumentSimulation = SimulateIngestIngestDocumentSimulationKeys
& { [property: string]: string | Id | IndexName | Record<string, any> | SpecUtilsStringified<VersionNumber> | string[] | Record<string, string>[] | ErrorCause }

export interface SimulateIngestRequest extends RequestBase {
index?: IndexName
pipeline?: PipelineName
Expand All @@ -18849,7 +18865,11 @@ export interface SimulateIngestRequest extends RequestBase {
}

export interface SimulateIngestResponse {
docs: IngestSimulateDocumentResult[]
docs: SimulateIngestSimulateIngestDocumentResult[]
}

export interface SimulateIngestSimulateIngestDocumentResult {
doc?: SimulateIngestIngestDocumentSimulation
}

export interface SlmConfiguration {
Expand Down
52 changes: 36 additions & 16 deletions src/api/typesWithBodyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}

Expand Down Expand Up @@ -84,6 +86,7 @@ export interface BulkResponseItem {
_id?: string | null
_index: string
status: integer
failure_store?: BulkFailureStoreStatus
error?: ErrorCause
_primary_term?: long
result?: string
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -19348,6 +19352,18 @@ export interface ShutdownPutNodeRequest extends RequestBase {

export type ShutdownPutNodeResponse = AcknowledgedResponseBase

export interface SimulateIngestIngestDocumentSimulationKeys {
_id: Id
_index: IndexName
_source: Record<string, any>
_version: SpecUtilsStringified<VersionNumber>
executed_pipelines: string[]
ignored_fields?: Record<string, string>[]
error?: ErrorCause
}
export type SimulateIngestIngestDocumentSimulation = SimulateIngestIngestDocumentSimulationKeys
& { [property: string]: string | Id | IndexName | Record<string, any> | SpecUtilsStringified<VersionNumber> | string[] | Record<string, string>[] | ErrorCause }

export interface SimulateIngestRequest extends RequestBase {
index?: IndexName
pipeline?: PipelineName
Expand All @@ -19362,7 +19378,11 @@ export interface SimulateIngestRequest extends RequestBase {
}

export interface SimulateIngestResponse {
docs: IngestSimulateDocumentResult[]
docs: SimulateIngestSimulateIngestDocumentResult[]
}

export interface SimulateIngestSimulateIngestDocumentResult {
doc?: SimulateIngestIngestDocumentSimulation
}

export interface SlmConfiguration {
Expand Down