@@ -525,7 +525,6 @@ export interface ClusterHealth extends Generic {
525525 wait_for_no_relocating_shards ?: boolean ;
526526 wait_for_no_initializing_shards ?: boolean ;
527527 wait_for_status ?: 'green' | 'yellow' | 'red' ;
528- return_200_for_cluster_health_timeout ?: boolean ;
529528}
530529
531530export interface ClusterPendingTasks extends Generic {
@@ -654,8 +653,6 @@ export interface Delete extends Generic {
654653export interface DeleteByQuery < T = RequestBody > extends Generic {
655654 index : string | string [ ] ;
656655 type ?: string | string [ ] ;
657- _source_exclude ?: string | string [ ] ;
658- _source_include ?: string | string [ ] ;
659656 analyzer ?: string ;
660657 analyze_wildcard ?: boolean ;
661658 default_operator ?: 'AND' | 'OR' ;
@@ -675,9 +672,6 @@ export interface DeleteByQuery<T = RequestBody> extends Generic {
675672 size ?: number ;
676673 max_docs ?: number ;
677674 sort ?: string | string [ ] ;
678- _source ?: string | string [ ] ;
679- _source_excludes ?: string | string [ ] ;
680- _source_includes ?: string | string [ ] ;
681675 terminate_after ?: number ;
682676 stats ?: string | string [ ] ;
683677 version ?: boolean ;
@@ -1664,11 +1658,12 @@ export interface MlFlushJob<T = RequestBody> extends Generic {
16641658 body ?: T ;
16651659}
16661660
1667- export interface MlForecast extends Generic {
1661+ export interface MlForecast < T = RequestBody > extends Generic {
16681662 job_id : string ;
16691663 duration ?: string ;
16701664 expires_in ?: string ;
16711665 max_model_memory ?: string ;
1666+ body ?: T ;
16721667}
16731668
16741669export interface MlGetBuckets < T = RequestBody > extends Generic {
@@ -1832,8 +1827,9 @@ export interface MlGetTrainedModelsStats extends Generic {
18321827export interface MlInfo extends Generic {
18331828}
18341829
1835- export interface MlOpenJob extends Generic {
1830+ export interface MlOpenJob < T = RequestBody > extends Generic {
18361831 job_id : string ;
1832+ body ?: T ;
18371833}
18381834
18391835export interface MlPostCalendarEvents < T = RequestBody > extends Generic {
@@ -2111,7 +2107,7 @@ export interface OpenPointInTime extends Generic {
21112107 routing ?: string ;
21122108 ignore_unavailable ?: boolean ;
21132109 expand_wildcards ?: 'open' | 'closed' | 'hidden' | 'none' | 'all' ;
2114- keep_alive ? : string ;
2110+ keep_alive : string ;
21152111}
21162112
21172113export interface Ping extends Generic {
@@ -2771,6 +2767,7 @@ export interface TextStructureFindStructure<T = RequestNDBody> extends Generic {
27712767export interface TransformDeleteTransform extends Generic {
27722768 transform_id : string ;
27732769 force ?: boolean ;
2770+ timeout ?: string ;
27742771}
27752772
27762773export interface TransformGetTransform extends Generic {
@@ -2790,12 +2787,14 @@ export interface TransformGetTransformStats extends Generic {
27902787
27912788export interface TransformPreviewTransform < T = RequestBody > extends Generic {
27922789 transform_id ?: string ;
2790+ timeout ?: string ;
27932791 body ?: T ;
27942792}
27952793
27962794export interface TransformPutTransform < T = RequestBody > extends Generic {
27972795 transform_id : string ;
27982796 defer_validation ?: boolean ;
2797+ timeout ?: string ;
27992798 body : T ;
28002799}
28012800
@@ -2816,11 +2815,13 @@ export interface TransformStopTransform extends Generic {
28162815export interface TransformUpdateTransform < T = RequestBody > extends Generic {
28172816 transform_id : string ;
28182817 defer_validation ?: boolean ;
2818+ timeout ?: string ;
28192819 body : T ;
28202820}
28212821
28222822export interface TransformUpgradeTransforms extends Generic {
28232823 dry_run ?: boolean ;
2824+ timeout ?: string ;
28242825}
28252826
28262827export interface Update < T = RequestBody > extends Generic {
@@ -2847,8 +2848,6 @@ export interface Update<T = RequestBody> extends Generic {
28472848export interface UpdateByQuery < T = RequestBody > extends Generic {
28482849 index : string | string [ ] ;
28492850 type ?: string | string [ ] ;
2850- _source_exclude ?: string | string [ ] ;
2851- _source_include ?: string | string [ ] ;
28522851 analyzer ?: string ;
28532852 analyze_wildcard ?: boolean ;
28542853 default_operator ?: 'AND' | 'OR' ;
@@ -2869,9 +2868,6 @@ export interface UpdateByQuery<T = RequestBody> extends Generic {
28692868 size ?: number ;
28702869 max_docs ?: number ;
28712870 sort ?: string | string [ ] ;
2872- _source ?: string | string [ ] ;
2873- _source_excludes ?: string | string [ ] ;
2874- _source_includes ?: string | string [ ] ;
28752871 terminate_after ?: number ;
28762872 stats ?: string | string [ ] ;
28772873 version ?: boolean ;
0 commit comments