@@ -525,7 +525,6 @@ export interface ClusterHealth extends Generic {
525
525
wait_for_no_relocating_shards ?: boolean ;
526
526
wait_for_no_initializing_shards ?: boolean ;
527
527
wait_for_status ?: 'green' | 'yellow' | 'red' ;
528
- return_200_for_cluster_health_timeout ?: boolean ;
529
528
}
530
529
531
530
export interface ClusterPendingTasks extends Generic {
@@ -654,8 +653,6 @@ export interface Delete extends Generic {
654
653
export interface DeleteByQuery < T = RequestBody > extends Generic {
655
654
index : string | string [ ] ;
656
655
type ?: string | string [ ] ;
657
- _source_exclude ?: string | string [ ] ;
658
- _source_include ?: string | string [ ] ;
659
656
analyzer ?: string ;
660
657
analyze_wildcard ?: boolean ;
661
658
default_operator ?: 'AND' | 'OR' ;
@@ -675,9 +672,6 @@ export interface DeleteByQuery<T = RequestBody> extends Generic {
675
672
size ?: number ;
676
673
max_docs ?: number ;
677
674
sort ?: string | string [ ] ;
678
- _source ?: string | string [ ] ;
679
- _source_excludes ?: string | string [ ] ;
680
- _source_includes ?: string | string [ ] ;
681
675
terminate_after ?: number ;
682
676
stats ?: string | string [ ] ;
683
677
version ?: boolean ;
@@ -1664,11 +1658,12 @@ export interface MlFlushJob<T = RequestBody> extends Generic {
1664
1658
body ?: T ;
1665
1659
}
1666
1660
1667
- export interface MlForecast extends Generic {
1661
+ export interface MlForecast < T = RequestBody > extends Generic {
1668
1662
job_id : string ;
1669
1663
duration ?: string ;
1670
1664
expires_in ?: string ;
1671
1665
max_model_memory ?: string ;
1666
+ body ?: T ;
1672
1667
}
1673
1668
1674
1669
export interface MlGetBuckets < T = RequestBody > extends Generic {
@@ -1832,8 +1827,9 @@ export interface MlGetTrainedModelsStats extends Generic {
1832
1827
export interface MlInfo extends Generic {
1833
1828
}
1834
1829
1835
- export interface MlOpenJob extends Generic {
1830
+ export interface MlOpenJob < T = RequestBody > extends Generic {
1836
1831
job_id : string ;
1832
+ body ?: T ;
1837
1833
}
1838
1834
1839
1835
export interface MlPostCalendarEvents < T = RequestBody > extends Generic {
@@ -2111,7 +2107,7 @@ export interface OpenPointInTime extends Generic {
2111
2107
routing ?: string ;
2112
2108
ignore_unavailable ?: boolean ;
2113
2109
expand_wildcards ?: 'open' | 'closed' | 'hidden' | 'none' | 'all' ;
2114
- keep_alive ? : string ;
2110
+ keep_alive : string ;
2115
2111
}
2116
2112
2117
2113
export interface Ping extends Generic {
@@ -2771,6 +2767,7 @@ export interface TextStructureFindStructure<T = RequestNDBody> extends Generic {
2771
2767
export interface TransformDeleteTransform extends Generic {
2772
2768
transform_id : string ;
2773
2769
force ?: boolean ;
2770
+ timeout ?: string ;
2774
2771
}
2775
2772
2776
2773
export interface TransformGetTransform extends Generic {
@@ -2790,12 +2787,14 @@ export interface TransformGetTransformStats extends Generic {
2790
2787
2791
2788
export interface TransformPreviewTransform < T = RequestBody > extends Generic {
2792
2789
transform_id ?: string ;
2790
+ timeout ?: string ;
2793
2791
body ?: T ;
2794
2792
}
2795
2793
2796
2794
export interface TransformPutTransform < T = RequestBody > extends Generic {
2797
2795
transform_id : string ;
2798
2796
defer_validation ?: boolean ;
2797
+ timeout ?: string ;
2799
2798
body : T ;
2800
2799
}
2801
2800
@@ -2816,11 +2815,13 @@ export interface TransformStopTransform extends Generic {
2816
2815
export interface TransformUpdateTransform < T = RequestBody > extends Generic {
2817
2816
transform_id : string ;
2818
2817
defer_validation ?: boolean ;
2818
+ timeout ?: string ;
2819
2819
body : T ;
2820
2820
}
2821
2821
2822
2822
export interface TransformUpgradeTransforms extends Generic {
2823
2823
dry_run ?: boolean ;
2824
+ timeout ?: string ;
2824
2825
}
2825
2826
2826
2827
export interface Update < T = RequestBody > extends Generic {
@@ -2847,8 +2848,6 @@ export interface Update<T = RequestBody> extends Generic {
2847
2848
export interface UpdateByQuery < T = RequestBody > extends Generic {
2848
2849
index : string | string [ ] ;
2849
2850
type ?: string | string [ ] ;
2850
- _source_exclude ?: string | string [ ] ;
2851
- _source_include ?: string | string [ ] ;
2852
2851
analyzer ?: string ;
2853
2852
analyze_wildcard ?: boolean ;
2854
2853
default_operator ?: 'AND' | 'OR' ;
@@ -2869,9 +2868,6 @@ export interface UpdateByQuery<T = RequestBody> extends Generic {
2869
2868
size ?: number ;
2870
2869
max_docs ?: number ;
2871
2870
sort ?: string | string [ ] ;
2872
- _source ?: string | string [ ] ;
2873
- _source_excludes ?: string | string [ ] ;
2874
- _source_includes ?: string | string [ ] ;
2875
2871
terminate_after ?: number ;
2876
2872
stats ?: string | string [ ] ;
2877
2873
version ?: boolean ;
0 commit comments