API generation

This commit is contained in:
delvedor
2020-06-30 10:13:55 +02:00
parent 4711cf6d70
commit 33a4e4dc31
13 changed files with 1061 additions and 22 deletions

View File

@ -397,6 +397,23 @@ export interface Create<T = RequestBody> extends Generic {
body: T;
}
export interface DanglingIndicesDeleteDanglingIndex extends Generic {
index_uuid: string;
accept_data_loss?: boolean;
timeout?: string;
master_timeout?: string;
}
export interface DanglingIndicesImportDanglingIndex extends Generic {
index_uuid: string;
accept_data_loss?: boolean;
timeout?: string;
master_timeout?: string;
}
export interface DanglingIndicesListDanglingIndices extends Generic {
}
export interface Delete extends Generic {
id: string;
index: string;
@ -515,13 +532,14 @@ export interface Explain<T = RequestBody> extends Generic {
body?: T;
}
export interface FieldCaps extends Generic {
export interface FieldCaps<T = RequestBody> extends Generic {
index?: string | string[];
fields?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
include_unmapped?: boolean;
body?: T;
}
export interface Get extends Generic {
@ -584,6 +602,16 @@ export interface Index<T = RequestBody> extends Generic {
body: T;
}
export interface IndicesAddBlock extends Generic {
index: string | string[];
block: string;
timeout?: string;
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesAnalyze<T = RequestBody> extends Generic {
index?: string;
body?: T;
@ -870,6 +898,11 @@ export interface IndicesRefresh extends Generic {
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesResolveIndex extends Generic {
name: string | string[];
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesRollover<T = RequestBody> extends Generic {
alias: string;
new_index?: string;
@ -1672,8 +1705,21 @@ export interface EnrichPutPolicy<T = RequestBody> extends Generic {
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;
}
@ -2261,6 +2307,10 @@ export interface SecurityChangePassword<T = RequestBody> extends Generic {
body: T;
}
export interface SecurityClearCachedPrivileges extends Generic {
application: string | string[];
}
export interface SecurityClearCachedRealms extends Generic {
realms: string | string[];
usernames?: string | string[];