API generation

This commit is contained in:
delvedor
2020-09-23 11:45:00 +02:00
parent bd7b38b24e
commit d24fff058e
347 changed files with 1196 additions and 30391 deletions

836
api/requestParams.d.ts vendored
View File

@ -63,7 +63,7 @@ export interface AsyncSearchSubmit<T = RequestBody> extends Generic {
suggest_text?: string;
timeout?: string;
track_scores?: boolean;
track_total_hits?: boolean | number;
track_total_hits?: boolean;
allow_partial_search_results?: boolean;
typed_keys?: boolean;
version?: boolean;
@ -202,7 +202,6 @@ export interface CatMlDataFrameAnalytics extends Generic {
export interface CatMlDatafeeds extends Generic {
datafeed_id?: string;
allow_no_match?: boolean;
allow_no_datafeeds?: boolean;
format?: string;
h?: string | string[];
@ -214,7 +213,6 @@ export interface CatMlDatafeeds extends Generic {
export interface CatMlJobs extends Generic {
job_id?: string;
allow_no_match?: boolean;
allow_no_jobs?: boolean;
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
format?: string;
@ -451,10 +449,6 @@ export interface ClearScroll<T = RequestBody> extends Generic {
body?: T;
}
export interface ClosePointInTime<T = RequestBody> extends Generic {
body?: T;
}
export interface ClusterAllocationExplain<T = RequestBody> extends Generic {
include_yes_decisions?: boolean;
include_disk_info?: boolean;
@ -831,30 +825,12 @@ export interface GetSource extends Generic {
version_type?: 'internal' | 'external' | 'external_gte' | 'force';
}
<<<<<<< HEAD
export interface Index<T = RequestBody> extends Generic {
id?: string;
index: string;
type?: string;
wait_for_active_shards?: string;
op_type?: 'index' | 'create';
refresh?: 'wait_for' | boolean;
=======
export interface GraphExplore<T = RequestBody> extends Generic {
index: string | string[];
>>>>>>> a064f0f3... Improve child performances (#1314)
type?: string | string[];
routing?: string;
timeout?: string;
<<<<<<< HEAD
version?: number;
version_type?: 'internal' | 'external' | 'external_gte';
if_seq_no?: number;
if_primary_term?: number;
pipeline?: string;
body: T;
=======
body?: T;
>>>>>>> 3db1bed4... Improve child performances (#1314)
}
export interface IlmDeleteLifecycle extends Generic {
@ -901,6 +877,7 @@ export interface IlmStop extends Generic {
export interface Index<T = RequestBody> extends Generic {
id?: string;
index: string;
type?: string;
wait_for_active_shards?: string;
op_type?: 'index' | 'create';
refresh?: 'wait_for' | boolean;
@ -911,7 +888,6 @@ export interface Index<T = RequestBody> extends Generic {
if_seq_no?: number;
if_primary_term?: number;
pipeline?: string;
require_alias?: boolean;
body: T;
}
@ -1449,777 +1425,6 @@ export interface Mget<T = RequestBody> extends Generic {
body: T;
}
<<<<<<< HEAD
export interface Msearch<T = RequestNDBody> extends Generic {
index?: string | string[];
type?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
max_concurrent_searches?: number;
typed_keys?: boolean;
pre_filter_shard_size?: number;
max_concurrent_shard_requests?: number;
rest_total_hits_as_int?: boolean;
ccs_minimize_roundtrips?: boolean;
body: T;
}
export interface MsearchTemplate<T = RequestNDBody> extends Generic {
index?: string | string[];
type?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
typed_keys?: boolean;
max_concurrent_searches?: number;
rest_total_hits_as_int?: boolean;
ccs_minimize_roundtrips?: boolean;
body: T;
}
export interface Mtermvectors<T = RequestBody> extends Generic {
index?: string;
type?: string;
ids?: string | string[];
term_statistics?: boolean;
field_statistics?: boolean;
fields?: string | string[];
offsets?: boolean;
positions?: boolean;
payloads?: boolean;
preference?: string;
routing?: string;
realtime?: boolean;
version?: number;
version_type?: 'internal' | 'external' | 'external_gte' | 'force';
body?: T;
=======
export interface MigrationDeprecations extends Generic {
index?: string;
}
export interface MlCloseJob<T = RequestBody> extends Generic {
job_id: string;
allow_no_match?: boolean;
allow_no_jobs?: boolean;
force?: boolean;
timeout?: string;
body?: T;
}
export interface MlDeleteCalendar extends Generic {
calendar_id: string;
>>>>>>> a064f0f3... Improve child performances (#1314)
}
export interface MlDeleteCalendarEvent extends Generic {
calendar_id: string;
event_id: string;
}
export interface MlDeleteCalendarJob extends Generic {
calendar_id: string;
job_id: string;
}
export interface MlDeleteDataFrameAnalytics extends Generic {
id: string;
force?: boolean;
timeout?: string;
}
export interface MlDeleteDatafeed extends Generic {
datafeed_id: string;
force?: boolean;
}
export interface MlDeleteExpiredData<T = RequestBody> extends Generic {
job_id?: string;
requests_per_second?: number;
timeout?: string;
body?: T;
}
export interface MlDeleteFilter extends Generic {
filter_id: string;
}
export interface MlDeleteForecast extends Generic {
job_id: string;
forecast_id?: string;
allow_no_forecasts?: boolean;
timeout?: string;
}
export interface MlDeleteJob extends Generic {
job_id: string;
force?: boolean;
wait_for_completion?: boolean;
}
export interface MlDeleteModelSnapshot extends Generic {
job_id: string;
snapshot_id: string;
}
export interface MlDeleteTrainedModel extends Generic {
model_id: string;
}
export interface MlEstimateModelMemory<T = RequestBody> extends Generic {
body: T;
}
<<<<<<< HEAD
export interface RankEval<T = RequestBody> extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
body: T;
}
export interface Reindex<T = RequestBody> extends Generic {
refresh?: boolean;
timeout?: string;
wait_for_active_shards?: string;
wait_for_completion?: boolean;
requests_per_second?: number;
scroll?: string;
slices?: number|string;
max_docs?: number;
body: T;
}
export interface ReindexRethrottle extends Generic {
task_id: string;
requests_per_second: number;
}
export interface RenderSearchTemplate<T = RequestBody> extends Generic {
id?: string;
body?: T;
}
export interface ScriptsPainlessExecute<T = RequestBody> extends Generic {
body?: T;
}
export interface Scroll<T = RequestBody> extends Generic {
scroll_id?: string;
scroll?: string;
rest_total_hits_as_int?: boolean;
body?: T;
}
export interface Search<T = RequestBody> extends Generic {
index?: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;
analyze_wildcard?: boolean;
ccs_minimize_roundtrips?: boolean;
default_operator?: 'AND' | 'OR';
df?: string;
explain?: boolean;
stored_fields?: string | string[];
docvalue_fields?: string | string[];
from?: number;
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
lenient?: boolean;
preference?: string;
q?: string;
routing?: string | string[];
scroll?: string;
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
size?: number;
sort?: string | string[];
_source?: string | string[];
_source_excludes?: string | string[];
_source_includes?: string | string[];
terminate_after?: number;
stats?: string | string[];
suggest_field?: string;
suggest_mode?: 'missing' | 'popular' | 'always';
suggest_size?: number;
suggest_text?: string;
timeout?: string;
track_scores?: boolean;
track_total_hits?: boolean;
allow_partial_search_results?: boolean;
typed_keys?: boolean;
version?: boolean;
seq_no_primary_term?: boolean;
request_cache?: boolean;
batched_reduce_size?: number;
max_concurrent_shard_requests?: number;
pre_filter_shard_size?: number;
rest_total_hits_as_int?: boolean;
body?: T;
}
export interface SearchShards extends Generic {
index?: string | string[];
preference?: string;
routing?: string;
local?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface SearchTemplate<T = RequestBody> extends Generic {
index?: string | string[];
type?: string | string[];
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
preference?: string;
routing?: string | string[];
scroll?: string;
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
explain?: boolean;
profile?: boolean;
typed_keys?: boolean;
rest_total_hits_as_int?: boolean;
ccs_minimize_roundtrips?: boolean;
body: T;
}
export interface SnapshotCleanupRepository extends Generic {
repository: string;
master_timeout?: string;
timeout?: string;
}
export interface SnapshotCreate<T = RequestBody> extends Generic {
repository: string;
snapshot: string;
master_timeout?: string;
wait_for_completion?: boolean;
body?: T;
}
export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
repository: string;
master_timeout?: string;
timeout?: string;
verify?: boolean;
body: T;
}
export interface SnapshotDelete extends Generic {
repository: string;
snapshot: string;
master_timeout?: string;
}
export interface SnapshotDeleteRepository extends Generic {
repository: string | string[];
master_timeout?: string;
timeout?: string;
}
export interface SnapshotGet extends Generic {
repository: string;
snapshot: string | string[];
master_timeout?: string;
ignore_unavailable?: boolean;
verbose?: boolean;
}
export interface SnapshotGetRepository extends Generic {
repository?: string | string[];
master_timeout?: string;
local?: boolean;
}
export interface SnapshotRestore<T = RequestBody> extends Generic {
repository: string;
snapshot: string;
master_timeout?: string;
wait_for_completion?: boolean;
body?: T;
}
export interface SnapshotStatus extends Generic {
repository?: string;
snapshot?: string | string[];
master_timeout?: string;
ignore_unavailable?: boolean;
}
export interface SnapshotVerifyRepository extends Generic {
repository: string;
master_timeout?: string;
timeout?: string;
}
export interface TasksCancel extends Generic {
task_id?: string;
nodes?: string | string[];
actions?: string | string[];
parent_task_id?: string;
wait_for_completion?: boolean;
}
export interface TasksGet extends Generic {
task_id: string;
wait_for_completion?: boolean;
timeout?: string;
}
export interface TasksList extends Generic {
nodes?: string | string[];
actions?: string | string[];
detailed?: boolean;
parent_task_id?: string;
wait_for_completion?: boolean;
group_by?: 'nodes' | 'parents' | 'none';
timeout?: string;
}
export interface Termvectors<T = RequestBody> extends Generic {
index: string;
id?: string;
type?: string;
term_statistics?: boolean;
field_statistics?: boolean;
fields?: string | string[];
offsets?: boolean;
positions?: boolean;
payloads?: boolean;
preference?: string;
routing?: string;
realtime?: boolean;
version?: number;
version_type?: 'internal' | 'external' | 'external_gte' | 'force';
body?: T;
}
export interface Update<T = RequestBody> extends Generic {
id: string;
index: string;
type?: string;
_source_exclude?: string | string[];
_source_include?: string | string[];
wait_for_active_shards?: string;
_source?: string | string[];
_source_excludes?: string | string[];
_source_includes?: string | string[];
lang?: string;
refresh?: 'wait_for' | boolean;
retry_on_conflict?: number;
routing?: string;
timeout?: string;
if_seq_no?: number;
if_primary_term?: number;
body: T;
}
export interface UpdateByQuery<T = RequestBody> extends Generic {
index: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;
analyze_wildcard?: boolean;
default_operator?: 'AND' | 'OR';
df?: string;
from?: number;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
conflicts?: 'abort' | 'proceed';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
lenient?: boolean;
pipeline?: string;
preference?: string;
q?: string;
routing?: string | string[];
scroll?: string;
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
search_timeout?: string;
size?: number;
max_docs?: number;
sort?: string | string[];
_source?: string | string[];
_source_excludes?: string | string[];
_source_includes?: string | string[];
terminate_after?: number;
stats?: string | string[];
version?: boolean;
version_type?: boolean;
request_cache?: boolean;
refresh?: boolean;
timeout?: string;
wait_for_active_shards?: string;
scroll_size?: number;
wait_for_completion?: boolean;
requests_per_second?: number;
slices?: number|string;
body?: T;
}
export interface UpdateByQueryRethrottle extends Generic {
task_id: string;
requests_per_second: number;
}
export interface AsyncSearchDelete extends Generic {
id: string;
}
export interface AsyncSearchGet extends Generic {
id: string;
wait_for_completion_timeout?: string;
keep_alive?: string;
typed_keys?: boolean;
}
export interface AsyncSearchSubmit<T = RequestBody> extends Generic {
index?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
wait_for_completion_timeout?: string;
keep_on_completion?: boolean;
keep_alive?: string;
batched_reduce_size?: number;
request_cache?: boolean;
analyzer?: string;
analyze_wildcard?: boolean;
default_operator?: 'AND' | 'OR';
df?: string;
explain?: boolean;
stored_fields?: string | string[];
docvalue_fields?: string | string[];
from?: number;
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
lenient?: boolean;
preference?: string;
q?: string;
routing?: string | string[];
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
size?: number;
sort?: string | string[];
_source?: string | string[];
_source_excludes?: string | string[];
_source_includes?: string | string[];
terminate_after?: number;
stats?: string | string[];
suggest_field?: string;
suggest_mode?: 'missing' | 'popular' | 'always';
suggest_size?: number;
suggest_text?: string;
timeout?: string;
track_scores?: boolean;
track_total_hits?: boolean;
allow_partial_search_results?: boolean;
typed_keys?: boolean;
version?: boolean;
seq_no_primary_term?: boolean;
max_concurrent_shard_requests?: number;
body?: T;
}
export interface AutoscalingDeleteAutoscalingPolicy extends Generic {
name: string;
}
export interface AutoscalingGetAutoscalingDecision extends Generic {
}
export interface AutoscalingGetAutoscalingPolicy extends Generic {
name: string;
}
export interface AutoscalingPutAutoscalingPolicy<T = RequestBody> extends Generic {
name: string;
body: T;
}
export interface CatMlDataFrameAnalytics extends Generic {
id?: string;
allow_no_match?: boolean;
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
format?: string;
h?: string | string[];
help?: boolean;
s?: string | string[];
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
}
export interface CatMlDatafeeds extends Generic {
datafeed_id?: string;
allow_no_datafeeds?: boolean;
format?: string;
h?: string | string[];
help?: boolean;
s?: string | string[];
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
}
export interface CatMlJobs extends Generic {
job_id?: string;
allow_no_jobs?: boolean;
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
format?: string;
h?: string | string[];
help?: boolean;
s?: string | string[];
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
}
export interface CatMlTrainedModels extends Generic {
model_id?: string;
allow_no_match?: boolean;
from?: number;
size?: number;
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
format?: string;
h?: string | string[];
help?: boolean;
s?: string | string[];
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
}
export interface CatTransforms extends Generic {
transform_id?: string;
from?: number;
size?: number;
allow_no_match?: boolean;
format?: string;
h?: string | string[];
help?: boolean;
s?: string | string[];
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
}
export interface CcrDeleteAutoFollowPattern extends Generic {
name: string;
}
export interface CcrFollow<T = RequestBody> extends Generic {
index: string;
wait_for_active_shards?: string;
body: T;
}
export interface CcrFollowInfo extends Generic {
index: string | string[];
}
export interface CcrFollowStats extends Generic {
index: string | string[];
}
export interface CcrForgetFollower<T = RequestBody> extends Generic {
index: string;
body: T;
}
export interface CcrGetAutoFollowPattern extends Generic {
name?: string;
}
export interface CcrPauseAutoFollowPattern extends Generic {
name: string;
}
export interface CcrPauseFollow extends Generic {
index: string;
}
export interface CcrPutAutoFollowPattern<T = RequestBody> extends Generic {
name: string;
body: T;
}
export interface CcrResumeAutoFollowPattern extends Generic {
name: string;
}
export interface CcrResumeFollow<T = RequestBody> extends Generic {
index: string;
body?: T;
}
export interface CcrStats extends Generic {
}
export interface CcrUnfollow extends Generic {
index: string;
}
export interface EnrichDeletePolicy extends Generic {
name: string;
}
export interface EnrichExecutePolicy extends Generic {
name: string;
wait_for_completion?: boolean;
}
export interface EnrichGetPolicy extends Generic {
name?: string | string[];
}
export interface EnrichPutPolicy<T = RequestBody> extends Generic {
name: string;
body: T;
}
export interface EnrichStats extends Generic {
}
export interface EqlDelete extends Generic {
id: string;
}
export interface EqlGet extends Generic {
id: string;
wait_for_completion_timeout?: string;
keep_alive?: string;
}
export interface EqlSearch<T = RequestBody> extends Generic {
index: string;
wait_for_completion_timeout?: string;
keep_on_completion?: boolean;
keep_alive?: string;
body: T;
}
export interface GraphExplore<T = RequestBody> extends Generic {
index: string | string[];
type?: string | string[];
routing?: string;
timeout?: string;
body?: T;
}
export interface IlmDeleteLifecycle extends Generic {
policy: string;
}
export interface IlmExplainLifecycle extends Generic {
index: string;
only_managed?: boolean;
only_errors?: boolean;
}
export interface IlmGetLifecycle extends Generic {
policy?: string;
}
export interface IlmGetStatus extends Generic {
}
export interface IlmMoveToStep<T = RequestBody> extends Generic {
index: string;
body?: T;
}
export interface IlmPutLifecycle<T = RequestBody> extends Generic {
policy: string;
body?: T;
}
export interface IlmRemovePolicy extends Generic {
index: string;
}
export interface IlmRetry extends Generic {
index: string;
}
export interface IlmStart extends Generic {
}
export interface IlmStop extends Generic {
}
export interface IndicesCreateDataStream extends Generic {
name: string;
}
export interface IndicesDataStreamsStats extends Generic {
name?: string | string[];
}
export interface IndicesDeleteDataStream extends Generic {
name: string | string[];
}
export interface IndicesFreeze extends Generic {
index: string;
timeout?: string;
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
wait_for_active_shards?: string;
}
export interface IndicesGetDataStream extends Generic {
name?: string | string[];
}
export interface IndicesReloadSearchAnalyzers extends Generic {
index: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesUnfreeze extends Generic {
index: string;
timeout?: string;
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
wait_for_active_shards?: string;
}
export interface LicenseDelete extends Generic {
}
export interface LicenseGet extends Generic {
local?: boolean;
accept_enterprise?: boolean;
}
export interface LicenseGetBasicStatus extends Generic {
}
export interface LicenseGetTrialStatus extends Generic {
}
export interface LicensePost<T = RequestBody> extends Generic {
acknowledge?: boolean;
body?: T;
}
export interface LicensePostStartBasic extends Generic {
acknowledge?: boolean;
}
export interface LicensePostStartTrial extends Generic {
type?: string;
acknowledge?: boolean;
}
export interface MigrationDeprecations extends Generic {
index?: string;
}
@ -2294,8 +1499,6 @@ export interface MlEstimateModelMemory<T = RequestBody> extends Generic {
body: T;
}
=======
>>>>>>> a064f0f3... Improve child performances (#1314)
export interface MlEvaluateDataFrame<T = RequestBody> extends Generic {
body: T;
}
@ -2473,7 +1676,7 @@ export interface MlGetRecords<T = RequestBody> extends Generic {
export interface MlGetTrainedModels extends Generic {
model_id?: string;
allow_no_match?: boolean;
include?: string;
include_model_definition?: boolean;
decompress_definition?: boolean;
from?: number;
size?: number;
@ -2637,12 +1840,9 @@ export interface MonitoringBulk<T = RequestNDBody> extends Generic {
body: T;
}
<<<<<<< HEAD
export interface RollupDeleteJob extends Generic {
id: string;
=======
export interface Msearch<T = RequestNDBody> extends Generic {
index?: string | string[];
type?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
max_concurrent_searches?: number;
typed_keys?: boolean;
@ -2651,11 +1851,11 @@ export interface Msearch<T = RequestNDBody> extends Generic {
rest_total_hits_as_int?: boolean;
ccs_minimize_roundtrips?: boolean;
body: T;
>>>>>>> 3db1bed4... Improve child performances (#1314)
}
export interface MsearchTemplate<T = RequestNDBody> extends Generic {
index?: string | string[];
type?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
typed_keys?: boolean;
max_concurrent_searches?: number;
@ -2666,6 +1866,7 @@ export interface MsearchTemplate<T = RequestNDBody> extends Generic {
export interface Mtermvectors<T = RequestBody> extends Generic {
index?: string;
type?: string;
ids?: string | string[];
term_statistics?: boolean;
field_statistics?: boolean;
@ -2677,7 +1878,7 @@ export interface Mtermvectors<T = RequestBody> extends Generic {
routing?: string;
realtime?: boolean;
version?: number;
version_type?: 'internal' | 'external' | 'external_gte';
version_type?: 'internal' | 'external' | 'external_gte' | 'force';
body?: T;
}
@ -2724,15 +1925,6 @@ export interface NodesUsage extends Generic {
timeout?: string;
}
export interface OpenPointInTime extends Generic {
index?: string | string[];
preference?: string;
routing?: string;
ignore_unavailable?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
keep_alive?: string;
}
export interface Ping extends Generic {
}
@ -2827,6 +2019,7 @@ export interface Scroll<T = RequestBody> extends Generic {
export interface Search<T = RequestBody> extends Generic {
index?: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;
@ -2861,7 +2054,7 @@ export interface Search<T = RequestBody> extends Generic {
suggest_text?: string;
timeout?: string;
track_scores?: boolean;
track_total_hits?: boolean | number;
track_total_hits?: boolean;
allow_partial_search_results?: boolean;
typed_keys?: boolean;
version?: boolean;
@ -2886,6 +2079,7 @@ export interface SearchShards extends Generic {
export interface SearchTemplate<T = RequestBody> extends Generic {
index?: string | string[];
type?: string | string[];
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
@ -3110,7 +2304,7 @@ export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
export interface SnapshotDelete extends Generic {
repository: string;
snapshot: string | string[];
snapshot: string;
master_timeout?: string;
}
@ -3198,6 +2392,7 @@ export interface TasksList extends Generic {
export interface Termvectors<T = RequestBody> extends Generic {
index: string;
id?: string;
type?: string;
term_statistics?: boolean;
field_statistics?: boolean;
fields?: string | string[];
@ -3208,7 +2403,7 @@ export interface Termvectors<T = RequestBody> extends Generic {
routing?: string;
realtime?: boolean;
version?: number;
version_type?: 'internal' | 'external' | 'external_gte';
version_type?: 'internal' | 'external' | 'external_gte' | 'force';
body?: T;
}
@ -3278,12 +2473,12 @@ export interface Update<T = RequestBody> extends Generic {
timeout?: string;
if_seq_no?: number;
if_primary_term?: number;
require_alias?: boolean;
body: T;
}
export interface UpdateByQuery<T = RequestBody> extends Generic {
index: string | string[];
type?: string | string[];
_source_exclude?: string | string[];
_source_include?: string | string[];
analyzer?: string;
@ -3303,6 +2498,7 @@ export interface UpdateByQuery<T = RequestBody> extends Generic {
scroll?: string;
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
search_timeout?: string;
size?: number;
max_docs?: number;
sort?: string | string[];
_source?: string | string[];