Skip to content

Commit 528dd6b

Browse files
Auto-generated API code (#2608)
1 parent d540d7f commit 528dd6b

File tree

2 files changed

+72
-32
lines changed

2 files changed

+72
-32
lines changed

src/api/types.ts

+36-16
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export interface BulkCreateOperation extends BulkWriteOperation {
3434
export interface BulkDeleteOperation extends BulkOperationBase {
3535
}
3636

37+
export type BulkFailureStoreStatus = 'not_applicable_or_unknown' | 'used' | 'not_enabled' | 'failed'
38+
3739
export interface BulkIndexOperation extends BulkWriteOperation {
3840
}
3941

@@ -83,6 +85,7 @@ export interface BulkResponseItem {
8385
_id?: string | null
8486
_index: string
8587
status: integer
88+
failure_store?: BulkFailureStoreStatus
8689
error?: ErrorCause
8790
_primary_term?: long
8891
result?: string
@@ -13681,20 +13684,21 @@ export interface MlAnomaly {
1368113684
}
1368213685

1368313686
export interface MlAnomalyCause {
13684-
actual: double[]
13685-
by_field_name: Name
13686-
by_field_value: string
13687-
correlated_by_field_value: string
13688-
field_name: Field
13689-
function: string
13690-
function_description: string
13691-
influencers: MlInfluence[]
13692-
over_field_name: Name
13693-
over_field_value: string
13694-
partition_field_name: string
13695-
partition_field_value: string
13687+
actual?: double[]
13688+
by_field_name?: Name
13689+
by_field_value?: string
13690+
correlated_by_field_value?: string
13691+
field_name?: Field
13692+
function?: string
13693+
function_description?: string
13694+
geo_results?: MlGeoResults
13695+
influencers?: MlInfluence[]
13696+
over_field_name?: Name
13697+
over_field_value?: string
13698+
partition_field_name?: string
13699+
partition_field_value?: string
1369613700
probability: double
13697-
typical: double[]
13701+
typical?: double[]
1369813702
}
1369913703

1370013704
export interface MlAnomalyExplanation {
@@ -14263,8 +14267,8 @@ export interface MlFilterRef {
1426314267
export type MlFilterType = 'include' | 'exclude'
1426414268

1426514269
export interface MlGeoResults {
14266-
actual_point: string
14267-
typical_point: string
14270+
actual_point?: string
14271+
typical_point?: string
1426814272
}
1426914273

1427014274
export interface MlHyperparameter {
@@ -18838,6 +18842,18 @@ export interface ShutdownPutNodeRequest extends RequestBase {
1883818842

1883918843
export type ShutdownPutNodeResponse = AcknowledgedResponseBase
1884018844

18845+
export interface SimulateIngestIngestDocumentSimulationKeys {
18846+
_id: Id
18847+
_index: IndexName
18848+
_source: Record<string, any>
18849+
_version: SpecUtilsStringified<VersionNumber>
18850+
executed_pipelines: string[]
18851+
ignored_fields?: Record<string, string>[]
18852+
error?: ErrorCause
18853+
}
18854+
export type SimulateIngestIngestDocumentSimulation = SimulateIngestIngestDocumentSimulationKeys
18855+
& { [property: string]: string | Id | IndexName | Record<string, any> | SpecUtilsStringified<VersionNumber> | string[] | Record<string, string>[] | ErrorCause }
18856+
1884118857
export interface SimulateIngestRequest extends RequestBase {
1884218858
index?: IndexName
1884318859
pipeline?: PipelineName
@@ -18849,7 +18865,11 @@ export interface SimulateIngestRequest extends RequestBase {
1884918865
}
1885018866

1885118867
export interface SimulateIngestResponse {
18852-
docs: IngestSimulateDocumentResult[]
18868+
docs: SimulateIngestSimulateIngestDocumentResult[]
18869+
}
18870+
18871+
export interface SimulateIngestSimulateIngestDocumentResult {
18872+
doc?: SimulateIngestIngestDocumentSimulation
1885318873
}
1885418874

1885518875
export interface SlmConfiguration {

src/api/typesWithBodyKey.ts

+36-16
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export interface BulkCreateOperation extends BulkWriteOperation {
3434
export interface BulkDeleteOperation extends BulkOperationBase {
3535
}
3636

37+
export type BulkFailureStoreStatus = 'not_applicable_or_unknown' | 'used' | 'not_enabled' | 'failed'
38+
3739
export interface BulkIndexOperation extends BulkWriteOperation {
3840
}
3941

@@ -84,6 +86,7 @@ export interface BulkResponseItem {
8486
_id?: string | null
8587
_index: string
8688
status: integer
89+
failure_store?: BulkFailureStoreStatus
8790
error?: ErrorCause
8891
_primary_term?: long
8992
result?: string
@@ -13943,20 +13946,21 @@ export interface MlAnomaly {
1394313946
}
1394413947

1394513948
export interface MlAnomalyCause {
13946-
actual: double[]
13947-
by_field_name: Name
13948-
by_field_value: string
13949-
correlated_by_field_value: string
13950-
field_name: Field
13951-
function: string
13952-
function_description: string
13953-
influencers: MlInfluence[]
13954-
over_field_name: Name
13955-
over_field_value: string
13956-
partition_field_name: string
13957-
partition_field_value: string
13949+
actual?: double[]
13950+
by_field_name?: Name
13951+
by_field_value?: string
13952+
correlated_by_field_value?: string
13953+
field_name?: Field
13954+
function?: string
13955+
function_description?: string
13956+
geo_results?: MlGeoResults
13957+
influencers?: MlInfluence[]
13958+
over_field_name?: Name
13959+
over_field_value?: string
13960+
partition_field_name?: string
13961+
partition_field_value?: string
1395813962
probability: double
13959-
typical: double[]
13963+
typical?: double[]
1396013964
}
1396113965

1396213966
export interface MlAnomalyExplanation {
@@ -14525,8 +14529,8 @@ export interface MlFilterRef {
1452514529
export type MlFilterType = 'include' | 'exclude'
1452614530

1452714531
export interface MlGeoResults {
14528-
actual_point: string
14529-
typical_point: string
14532+
actual_point?: string
14533+
typical_point?: string
1453014534
}
1453114535

1453214536
export interface MlHyperparameter {
@@ -19348,6 +19352,18 @@ export interface ShutdownPutNodeRequest extends RequestBase {
1934819352

1934919353
export type ShutdownPutNodeResponse = AcknowledgedResponseBase
1935019354

19355+
export interface SimulateIngestIngestDocumentSimulationKeys {
19356+
_id: Id
19357+
_index: IndexName
19358+
_source: Record<string, any>
19359+
_version: SpecUtilsStringified<VersionNumber>
19360+
executed_pipelines: string[]
19361+
ignored_fields?: Record<string, string>[]
19362+
error?: ErrorCause
19363+
}
19364+
export type SimulateIngestIngestDocumentSimulation = SimulateIngestIngestDocumentSimulationKeys
19365+
& { [property: string]: string | Id | IndexName | Record<string, any> | SpecUtilsStringified<VersionNumber> | string[] | Record<string, string>[] | ErrorCause }
19366+
1935119367
export interface SimulateIngestRequest extends RequestBase {
1935219368
index?: IndexName
1935319369
pipeline?: PipelineName
@@ -19362,7 +19378,11 @@ export interface SimulateIngestRequest extends RequestBase {
1936219378
}
1936319379

1936419380
export interface SimulateIngestResponse {
19365-
docs: IngestSimulateDocumentResult[]
19381+
docs: SimulateIngestSimulateIngestDocumentResult[]
19382+
}
19383+
19384+
export interface SimulateIngestSimulateIngestDocumentResult {
19385+
doc?: SimulateIngestIngestDocumentSimulation
1936619386
}
1936719387

1936819388
export interface SlmConfiguration {

0 commit comments

Comments
 (0)