Skip to content

Commit 7685c9a

Browse files
Auto-generated API code
1 parent 1d3cdbb commit 7685c9a

File tree

4 files changed

+25
-27
lines changed

4 files changed

+25
-27
lines changed

docs/reference.asciidoc

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,6 @@ client.getSource({ id, index })
862862
** *`_source` (Optional, boolean | string | string[])*: Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.
863863
** *`_source_excludes` (Optional, string | string[])*: A list of source fields to exclude in the response.
864864
** *`_source_includes` (Optional, string | string[])*: A list of source fields to include in the response.
865-
** *`stored_fields` (Optional, string | string[])*: A list of stored fields to return as part of a hit.
866865
** *`version` (Optional, number)*: The version number for concurrency control. It must match the current version of the document for the request to succeed.
867866
** *`version_type` (Optional, Enum("internal" | "external" | "external_gte" | "force"))*: The version type.
868867

@@ -1048,6 +1047,7 @@ client.index({ index })
10481047
** *`version_type` (Optional, Enum("internal" | "external" | "external_gte" | "force"))*: The version type.
10491048
** *`wait_for_active_shards` (Optional, number | Enum("all" | "index-setting"))*: The number of shard copies that must be active before proceeding with the operation. You can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). The default value of `1` means it waits for each primary shard to be active.
10501049
** *`require_alias` (Optional, boolean)*: If `true`, the destination must be an index alias.
1050+
** *`require_data_stream` (Optional, boolean)*: If `true`, the request's actions must target a data stream (existing or to be created).
10511051

10521052
[discrete]
10531053
=== info
@@ -3845,6 +3845,7 @@ client.cluster.getComponentTemplate({ ... })
38453845
** *`name` (Optional, string)*: List of component template names used to limit the request.
38463846
Wildcard (`*`) expressions are supported.
38473847
** *`flat_settings` (Optional, boolean)*: If `true`, returns settings in flat format.
3848+
** *`settings_filter` (Optional, string | string[])*: Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
38483849
** *`include_defaults` (Optional, boolean)*: Return all default configurations for the component template (default: false)
38493850
** *`local` (Optional, boolean)*: If `true`, the request retrieves information from the local node only.
38503851
If `false`, information is retrieved from the master node.
@@ -4040,6 +4041,7 @@ To unset `_meta`, replace the template without specifying this information.
40404041
** *`deprecated` (Optional, boolean)*: Marks this index template as deprecated. When creating or updating a non-deprecated index template
40414042
that uses deprecated components, Elasticsearch will emit a deprecation warning.
40424043
** *`create` (Optional, boolean)*: If `true`, this request cannot replace or update existing component templates.
4044+
** *`cause` (Optional, string)*: User defined reason for create the component template.
40434045
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
40444046
If no response is received before the timeout expires, the request fails and returns an error.
40454047

@@ -8585,7 +8587,7 @@ The only valid task type for the model to perform is `text_embedding`.
85858587

85868588
[discrete]
85878589
==== rerank
8588-
Perform rereanking inference on the service
8590+
Perform reranking inference on the service
85898591

85908592
{ref}/post-inference-api.html[Endpoint documentation]
85918593
[source,ts]
@@ -8815,9 +8817,6 @@ client.ingest.getIpLocationDatabase({ ... })
88158817
** *`id` (Optional, string | string[])*: List of database configuration IDs to retrieve.
88168818
Wildcard (`*`) expressions are supported.
88178819
To get all database configurations, omit this parameter or use `*`.
8818-
** *`master_timeout` (Optional, string | -1 | 0)*: The period to wait for a connection to the master node.
8819-
If no response is received before the timeout expires, the request fails and returns an error.
8820-
A value of `-1` indicates that the request should never time out.
88218820

88228821
[discrete]
88238822
==== get_pipeline
@@ -9101,7 +9100,7 @@ client.license.postStartTrial({ ... })
91019100

91029101
* *Request (object):*
91039102
** *`acknowledge` (Optional, boolean)*: whether the user has acknowledged acknowledge messages (default: false)
9104-
** *`type_query_string` (Optional, string)*
9103+
** *`type` (Optional, string)*: The type of trial license to generate (default: "trial")
91059104
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
91069105

91079106
[discrete]
@@ -13120,16 +13119,9 @@ To check whether a user has a specific list of privileges, use the has privilege
1312013119
{ref}/security-api-get-user-privileges.html[Endpoint documentation]
1312113120
[source,ts]
1312213121
----
13123-
client.security.getUserPrivileges({ ... })
13122+
client.security.getUserPrivileges()
1312413123
----
1312513124

13126-
[discrete]
13127-
==== Arguments
13128-
13129-
* *Request (object):*
13130-
** *`application` (Optional, string)*: The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.
13131-
** *`priviledge` (Optional, string)*: The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.
13132-
** *`username` (Optional, string | null)*
1313313125

1313413126
[discrete]
1313513127
==== get_user_profile
@@ -13204,6 +13196,10 @@ It is not valid with other grant types.
1320413196
If you specify the `password` grant type, this parameter is required.
1320513197
It is not valid with other grant types.
1320613198
** *`run_as` (Optional, string)*: The name of the user to be impersonated.
13199+
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If 'true', Elasticsearch refreshes the affected shards to make this operation
13200+
visible to search.
13201+
If 'wait_for', it waits for a refresh to make this operation visible to search.
13202+
If 'false', nothing is done with refreshes.
1320713203

1320813204
[discrete]
1320913205
==== has_privileges
@@ -14552,6 +14548,8 @@ client.snapshot.delete({ repository, snapshot })
1455214548
** *`repository` (string)*: A repository name
1455314549
** *`snapshot` (string)*: A list of snapshot names
1455414550
** *`master_timeout` (Optional, string | -1 | 0)*: Explicit operation timeout for connection to master node
14551+
** *`wait_for_completion` (Optional, boolean)*: If `true`, the request returns a response when the matching snapshots are all deleted.
14552+
If `false`, the request returns a response as soon as the deletes are scheduled.
1455514553

1455614554
[discrete]
1455714555
==== delete_repository

src/api/api/inference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ export default class Inference {
10271027
}
10281028

10291029
/**
1030-
* Perform rereanking inference on the service
1030+
* Perform reranking inference on the service
10311031
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/post-inference-api.html | Elasticsearch API documentation}
10321032
*/
10331033
async rerank (this: That, params: T.InferenceRerankRequest | TB.InferenceRerankRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferenceRerankResponse>

src/api/types.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ export interface GetSourceRequest extends RequestBase {
458458
_source?: SearchSourceConfigParam
459459
_source_excludes?: Fields
460460
_source_includes?: Fields
461-
stored_fields?: Fields
462461
version?: VersionNumber
463462
version_type?: VersionType
464463
}
@@ -659,6 +658,7 @@ export interface IndexRequest<TDocument = unknown> extends RequestBase {
659658
version_type?: VersionType
660659
wait_for_active_shards?: WaitForActiveShards
661660
require_alias?: boolean
661+
require_data_stream?: boolean
662662
document?: TDocument
663663
}
664664

@@ -9360,6 +9360,7 @@ export type ClusterExistsComponentTemplateResponse = boolean
93609360
export interface ClusterGetComponentTemplateRequest extends RequestBase {
93619361
name?: Name
93629362
flat_settings?: boolean
9363+
settings_filter?: string | string[]
93639364
include_defaults?: boolean
93649365
local?: boolean
93659366
master_timeout?: Duration
@@ -9488,6 +9489,7 @@ export type ClusterPostVotingConfigExclusionsResponse = boolean
94889489
export interface ClusterPutComponentTemplateRequest extends RequestBase {
94899490
name: Name
94909491
create?: boolean
9492+
cause?: string
94919493
master_timeout?: Duration
94929494
template: IndicesIndexState
94939495
version?: VersionNumber
@@ -14508,7 +14510,6 @@ export interface IngestGetIpLocationDatabaseDatabaseConfigurationMetadata {
1450814510

1450914511
export interface IngestGetIpLocationDatabaseRequest extends RequestBase {
1451014512
id?: Ids
14511-
master_timeout?: Duration
1451214513
}
1451314514

1451414515
export interface IngestGetIpLocationDatabaseResponse {
@@ -14672,7 +14673,7 @@ export interface LicensePostStartBasicResponse {
1467214673

1467314674
export interface LicensePostStartTrialRequest extends RequestBase {
1467414675
acknowledge?: boolean
14675-
type_query_string?: string
14676+
type?: string
1467614677
master_timeout?: Duration
1467714678
}
1467814679

@@ -19482,9 +19483,6 @@ export interface SecurityGetUserRequest extends RequestBase {
1948219483
export type SecurityGetUserResponse = Record<string, SecurityUser>
1948319484

1948419485
export interface SecurityGetUserPrivilegesRequest extends RequestBase {
19485-
application?: Name
19486-
priviledge?: Name
19487-
username?: Name | null
1948819486
}
1948919487

1949019488
export interface SecurityGetUserPrivilegesResponse {
@@ -19522,6 +19520,7 @@ export interface SecurityGrantApiKeyGrantApiKey {
1952219520
}
1952319521

1952419522
export interface SecurityGrantApiKeyRequest extends RequestBase {
19523+
refresh?: Refresh
1952519524
api_key: SecurityGrantApiKeyGrantApiKey
1952619525
grant_type: SecurityGrantApiKeyApiKeyGrantType
1952719526
access_token?: string
@@ -20483,6 +20482,7 @@ export interface SnapshotDeleteRequest extends RequestBase {
2048320482
repository: Name
2048420483
snapshot: Name
2048520484
master_timeout?: Duration
20485+
wait_for_completion?: boolean
2048620486
}
2048720487

2048820488
export type SnapshotDeleteResponse = AcknowledgedResponseBase

src/api/typesWithBodyKey.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ export interface GetSourceRequest extends RequestBase {
479479
_source?: SearchSourceConfigParam
480480
_source_excludes?: Fields
481481
_source_includes?: Fields
482-
stored_fields?: Fields
483482
version?: VersionNumber
484483
version_type?: VersionType
485484
}
@@ -680,6 +679,7 @@ export interface IndexRequest<TDocument = unknown> extends RequestBase {
680679
version_type?: VersionType
681680
wait_for_active_shards?: WaitForActiveShards
682681
require_alias?: boolean
682+
require_data_stream?: boolean
683683
/** @deprecated The use of the 'body' key has been deprecated, use 'document' instead. */
684684
body?: TDocument
685685
}
@@ -9456,6 +9456,7 @@ export type ClusterExistsComponentTemplateResponse = boolean
94569456
export interface ClusterGetComponentTemplateRequest extends RequestBase {
94579457
name?: Name
94589458
flat_settings?: boolean
9459+
settings_filter?: string | string[]
94599460
include_defaults?: boolean
94609461
local?: boolean
94619462
master_timeout?: Duration
@@ -9584,6 +9585,7 @@ export type ClusterPostVotingConfigExclusionsResponse = boolean
95849585
export interface ClusterPutComponentTemplateRequest extends RequestBase {
95859586
name: Name
95869587
create?: boolean
9588+
cause?: string
95879589
master_timeout?: Duration
95889590
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
95899591
body?: {
@@ -14819,7 +14821,6 @@ export interface IngestGetIpLocationDatabaseDatabaseConfigurationMetadata {
1481914821

1482014822
export interface IngestGetIpLocationDatabaseRequest extends RequestBase {
1482114823
id?: Ids
14822-
master_timeout?: Duration
1482314824
}
1482414825

1482514826
export interface IngestGetIpLocationDatabaseResponse {
@@ -14996,7 +14997,7 @@ export interface LicensePostStartBasicResponse {
1499614997

1499714998
export interface LicensePostStartTrialRequest extends RequestBase {
1499814999
acknowledge?: boolean
14999-
type_query_string?: string
15000+
type?: string
1500015001
master_timeout?: Duration
1500115002
}
1500215003

@@ -19981,9 +19982,6 @@ export interface SecurityGetUserRequest extends RequestBase {
1998119982
export type SecurityGetUserResponse = Record<string, SecurityUser>
1998219983

1998319984
export interface SecurityGetUserPrivilegesRequest extends RequestBase {
19984-
application?: Name
19985-
priviledge?: Name
19986-
username?: Name | null
1998719985
}
1998819986

1998919987
export interface SecurityGetUserPrivilegesResponse {
@@ -20021,6 +20019,7 @@ export interface SecurityGrantApiKeyGrantApiKey {
2002120019
}
2002220020

2002320021
export interface SecurityGrantApiKeyRequest extends RequestBase {
20022+
refresh?: Refresh
2002420023
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
2002520024
body?: {
2002620025
api_key: SecurityGrantApiKeyGrantApiKey
@@ -21072,6 +21071,7 @@ export interface SnapshotDeleteRequest extends RequestBase {
2107221071
repository: Name
2107321072
snapshot: Name
2107421073
master_timeout?: Duration
21074+
wait_for_completion?: boolean
2107521075
}
2107621076

2107721077
export type SnapshotDeleteResponse = AcknowledgedResponseBase

0 commit comments

Comments
 (0)