Skip to content

Commit 642f830

Browse files
committed
Update APIs to latest 8.9.0
1 parent 0b9be7c commit 642f830

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+2362
-81
lines changed

docs/reference.asciidoc

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,16 @@ Returns basic information about the health of the cluster.
979979
client.cluster.health(...)
980980
----
981981

982+
[discrete]
983+
==== info
984+
Returns different information about the cluster.
985+
986+
{ref}/cluster-info.html[Endpoint documentation]
987+
[source,ts]
988+
----
989+
client.cluster.info(...)
990+
----
991+
982992
[discrete]
983993
==== pending_tasks
984994
Returns a list of any cluster-level changes (e.g. create index, update mapping,
@@ -3089,6 +3099,16 @@ Creates a behavioral analytics collection.
30893099
client.searchApplication.putBehavioralAnalytics(...)
30903100
----
30913101

3102+
[discrete]
3103+
==== render_query
3104+
Renders a query for given search application search parameters
3105+
3106+
{ref}/search-application-render-query.html[Endpoint documentation]
3107+
[source,ts]
3108+
----
3109+
client.searchApplication.renderQuery(...)
3110+
----
3111+
30923112
[discrete]
30933113
==== search
30943114
Perform a search against a search application
@@ -3233,6 +3253,16 @@ Creates an API key for access without requiring basic authentication.
32333253
client.security.createApiKey(...)
32343254
----
32353255

3256+
[discrete]
3257+
==== create_cross_cluster_api_key
3258+
Creates a cross-cluster API key for API key based remote cluster access.
3259+
3260+
{ref}/security-api-create-cross-cluster-api-key.html[Endpoint documentation]
3261+
[source,ts]
3262+
----
3263+
client.security.createCrossClusterApiKey(...)
3264+
----
3265+
32363266
[discrete]
32373267
==== create_service_token
32383268
Creates a service account token for access without requiring basic authentication.
@@ -3623,6 +3653,16 @@ Updates attributes of an existing API key.
36233653
client.security.updateApiKey(...)
36243654
----
36253655

3656+
[discrete]
3657+
==== update_cross_cluster_api_key
3658+
Updates attributes of an existing cross-cluster API key.
3659+
3660+
{ref}/security-api-update-cross-cluster-api-key.html[Endpoint documentation]
3661+
[source,ts]
3662+
----
3663+
client.security.updateCrossClusterApiKey(...)
3664+
----
3665+
36263666
[discrete]
36273667
=== slm
36283668
[discrete]
@@ -3911,6 +3951,38 @@ Retrieves information about the X.509 certificates used to encrypt communication
39113951
client.ssl.certificates(...)
39123952
----
39133953

3954+
[discrete]
3955+
=== synonyms
3956+
[discrete]
3957+
==== delete
3958+
Deletes a synonym set
3959+
3960+
{ref}/delete-synonyms.html[Endpoint documentation]
3961+
[source,ts]
3962+
----
3963+
client.synonyms.delete(...)
3964+
----
3965+
3966+
[discrete]
3967+
==== get
3968+
Retrieves a synonym set
3969+
3970+
{ref}/get-synonyms.html[Endpoint documentation]
3971+
[source,ts]
3972+
----
3973+
client.synonyms.get(...)
3974+
----
3975+
3976+
[discrete]
3977+
==== put
3978+
Creates or updates a synonyms set
3979+
3980+
{ref}/put-synonyms.html[Endpoint documentation]
3981+
[source,ts]
3982+
----
3983+
client.synonyms.put(...)
3984+
----
3985+
39143986
[discrete]
39153987
=== tasks
39163988
[discrete]
@@ -4119,6 +4191,16 @@ Forces the execution of a stored watch.
41194191
client.watcher.executeWatch(...)
41204192
----
41214193

4194+
[discrete]
4195+
==== get_settings
4196+
Retrieve settings for the watcher system index
4197+
4198+
{ref}/watcher-api-get-settings.html[Endpoint documentation]
4199+
[source,ts]
4200+
----
4201+
client.watcher.getSettings(...)
4202+
----
4203+
41224204
[discrete]
41234205
==== get_watch
41244206
Retrieves a watch by its ID.
@@ -4179,6 +4261,16 @@ Stops Watcher if it is running.
41794261
client.watcher.stop(...)
41804262
----
41814263

4264+
[discrete]
4265+
==== update_settings
4266+
Update settings for the watcher system index
4267+
4268+
{ref}/watcher-api-update-settings.html[Endpoint documentation]
4269+
[source,ts]
4270+
----
4271+
client.watcher.updateSettings(...)
4272+
----
4273+
41824274
[discrete]
41834275
=== xpack
41844276
[discrete]

src/api/api/async_search.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export default class AsyncSearch {
4343
this.transport = transport
4444
}
4545

46+
/**
47+
* Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
48+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html Elasticsearch API docs}
49+
*/
4650
async delete (this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchDeleteResponse>
4751
async delete (this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchDeleteResponse, unknown>>
4852
async delete (this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchDeleteResponse>
@@ -65,6 +69,10 @@ export default class AsyncSearch {
6569
return await this.transport.request({ path, method, querystring, body }, options)
6670
}
6771

72+
/**
73+
* Retrieves the results of a previously submitted async search request given its ID.
74+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html Elasticsearch API docs}
75+
*/
6876
async get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchGetResponse<TDocument, TAggregations>>
6977
async get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchGetResponse<TDocument, TAggregations>, unknown>>
7078
async get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchGetResponse<TDocument, TAggregations>>
@@ -87,6 +95,10 @@ export default class AsyncSearch {
8795
return await this.transport.request({ path, method, querystring, body }, options)
8896
}
8997

98+
/**
99+
* Retrieves the status of a previously submitted async search request given its ID.
100+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html Elasticsearch API docs}
101+
*/
90102
async status (this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchStatusResponse>
91103
async status (this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchStatusResponse, unknown>>
92104
async status (this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchStatusResponse>
@@ -109,6 +121,10 @@ export default class AsyncSearch {
109121
return await this.transport.request({ path, method, querystring, body }, options)
110122
}
111123

124+
/**
125+
* Executes a search request asynchronously.
126+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html Elasticsearch API docs}
127+
*/
112128
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>
113129
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchSubmitResponse<TDocument, TAggregations>, unknown>>
114130
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>

src/api/api/autoscaling.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export default class Autoscaling {
4343
this.transport = transport
4444
}
4545

46+
/**
47+
* Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
48+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-delete-autoscaling-policy.html Elasticsearch API docs}
49+
*/
4650
async deleteAutoscalingPolicy (this: That, params: T.AutoscalingDeleteAutoscalingPolicyRequest | TB.AutoscalingDeleteAutoscalingPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingDeleteAutoscalingPolicyResponse>
4751
async deleteAutoscalingPolicy (this: That, params: T.AutoscalingDeleteAutoscalingPolicyRequest | TB.AutoscalingDeleteAutoscalingPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingDeleteAutoscalingPolicyResponse, unknown>>
4852
async deleteAutoscalingPolicy (this: That, params: T.AutoscalingDeleteAutoscalingPolicyRequest | TB.AutoscalingDeleteAutoscalingPolicyRequest, options?: TransportRequestOptions): Promise<T.AutoscalingDeleteAutoscalingPolicyResponse>
@@ -65,6 +69,10 @@ export default class Autoscaling {
6569
return await this.transport.request({ path, method, querystring, body }, options)
6670
}
6771

72+
/**
73+
* Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
74+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-get-autoscaling-capacity.html Elasticsearch API docs}
75+
*/
6876
async getAutoscalingCapacity (this: That, params?: T.AutoscalingGetAutoscalingCapacityRequest | TB.AutoscalingGetAutoscalingCapacityRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingGetAutoscalingCapacityResponse>
6977
async getAutoscalingCapacity (this: That, params?: T.AutoscalingGetAutoscalingCapacityRequest | TB.AutoscalingGetAutoscalingCapacityRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingGetAutoscalingCapacityResponse, unknown>>
7078
async getAutoscalingCapacity (this: That, params?: T.AutoscalingGetAutoscalingCapacityRequest | TB.AutoscalingGetAutoscalingCapacityRequest, options?: TransportRequestOptions): Promise<T.AutoscalingGetAutoscalingCapacityResponse>
@@ -88,6 +96,10 @@ export default class Autoscaling {
8896
return await this.transport.request({ path, method, querystring, body }, options)
8997
}
9098

99+
/**
100+
* Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
101+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-get-autoscaling-capacity.html Elasticsearch API docs}
102+
*/
91103
async getAutoscalingPolicy (this: That, params: T.AutoscalingGetAutoscalingPolicyRequest | TB.AutoscalingGetAutoscalingPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingGetAutoscalingPolicyResponse>
92104
async getAutoscalingPolicy (this: That, params: T.AutoscalingGetAutoscalingPolicyRequest | TB.AutoscalingGetAutoscalingPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingGetAutoscalingPolicyResponse, unknown>>
93105
async getAutoscalingPolicy (this: That, params: T.AutoscalingGetAutoscalingPolicyRequest | TB.AutoscalingGetAutoscalingPolicyRequest, options?: TransportRequestOptions): Promise<T.AutoscalingGetAutoscalingPolicyResponse>
@@ -110,6 +122,10 @@ export default class Autoscaling {
110122
return await this.transport.request({ path, method, querystring, body }, options)
111123
}
112124

125+
/**
126+
* Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
127+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-put-autoscaling-policy.html Elasticsearch API docs}
128+
*/
113129
async putAutoscalingPolicy (this: That, params: T.AutoscalingPutAutoscalingPolicyRequest | TB.AutoscalingPutAutoscalingPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingPutAutoscalingPolicyResponse>
114130
async putAutoscalingPolicy (this: That, params: T.AutoscalingPutAutoscalingPolicyRequest | TB.AutoscalingPutAutoscalingPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingPutAutoscalingPolicyResponse, unknown>>
115131
async putAutoscalingPolicy (this: That, params: T.AutoscalingPutAutoscalingPolicyRequest | TB.AutoscalingPutAutoscalingPolicyRequest, options?: TransportRequestOptions): Promise<T.AutoscalingPutAutoscalingPolicyResponse>

src/api/api/bulk.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ import * as T from '../types'
3737
import * as TB from '../typesWithBodyKey'
3838
interface That { transport: Transport }
3939

40+
/**
41+
* Allows to perform multiple index/update/delete operations in a single request.
42+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/docs-bulk.html Elasticsearch API docs}
43+
*/
4044
export default async function BulkApi<TDocument = unknown, TPartialDocument = unknown> (this: That, params: T.BulkRequest<TDocument, TPartialDocument> | TB.BulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.BulkResponse>
4145
export default async function BulkApi<TDocument = unknown, TPartialDocument = unknown> (this: That, params: T.BulkRequest<TDocument, TPartialDocument> | TB.BulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.BulkResponse, unknown>>
4246
export default async function BulkApi<TDocument = unknown, TPartialDocument = unknown> (this: That, params: T.BulkRequest<TDocument, TPartialDocument> | TB.BulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptions): Promise<T.BulkResponse>

0 commit comments

Comments
 (0)