Skip to content

Auto-generated code for 9.0 #2906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 9.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions docs/reference/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,6 @@ client.getSource({ id, index })
- **`_source` (Optional, boolean \| string \| string[])**: Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.
- **`_source_excludes` (Optional, string \| string[])**: A list of source fields to exclude in the response.
- **`_source_includes` (Optional, string \| string[])**: A list of source fields to include in the response.
- **`stored_fields` (Optional, string \| string[])**: A list of stored fields to return as part of a hit.
- **`version` (Optional, number)**: The version number for concurrency control. It must match the current version of the document for the request to succeed.
- **`version_type` (Optional, Enum("internal" \| "external" \| "external_gte" \| "force"))**: The version type.

Expand Down Expand Up @@ -1014,6 +1013,7 @@ client.index({ index })
- **`version_type` (Optional, Enum("internal" \| "external" \| "external_gte" \| "force"))**: The version type.
- **`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.
- **`require_alias` (Optional, boolean)**: If `true`, the destination must be an index alias.
- **`require_data_stream` (Optional, boolean)**: If `true`, the request's actions must target a data stream (existing or to be created).

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

Expand Down Expand Up @@ -7858,7 +7860,7 @@ The only valid task type for the model to perform is `text_embedding`.
- **`service_settings` ({ api_key, api_version, model_id, project_id, rate_limit, url })**: Settings used to install the inference model. These settings are specific to the `watsonxai` service.

## client.inference.rerank [_inference.rerank]
Perform rereanking inference on the service
Perform reranking inference on the service

[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference)

Expand Down Expand Up @@ -8066,9 +8068,6 @@ client.ingest.getIpLocationDatabase({ ... })
- **`id` (Optional, string \| string[])**: List of database configuration IDs to retrieve.
Wildcard (`*`) expressions are supported.
To get all database configurations, omit this parameter or use `*`.
- **`master_timeout` (Optional, string \| -1 \| 0)**: The period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
A value of `-1` indicates that the request should never time out.

## client.ingest.getPipeline [_ingest.get_pipeline]
Get pipelines.
Expand Down Expand Up @@ -8327,7 +8326,7 @@ client.license.postStartTrial({ ... })

#### Request (object) [_request_license.post_start_trial]
- **`acknowledge` (Optional, boolean)**: whether the user has acknowledged acknowledge messages (default: false)
- **`type_query_string` (Optional, string)**
- **`type` (Optional, string)**: The type of trial license to generate (default: "trial")
- **`master_timeout` (Optional, string \| -1 \| 0)**: Period to wait for a connection to the master node.

## client.logstash.deletePipeline [_logstash.delete_pipeline]
Expand Down Expand Up @@ -12007,15 +12006,9 @@ To check whether a user has a specific list of privileges, use the has privilege
[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-privileges)

```ts
client.security.getUserPrivileges({ ... })
client.security.getUserPrivileges()
```

### Arguments [_arguments_security.get_user_privileges]

#### Request (object) [_request_security.get_user_privileges]
- **`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.
- **`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.
- **`username` (Optional, string \| null)**

## client.security.getUserProfile [_security.get_user_profile]
Get a user profile.
Expand Down Expand Up @@ -12086,6 +12079,10 @@ It is not valid with other grant types.
If you specify the `password` grant type, this parameter is required.
It is not valid with other grant types.
- **`run_as` (Optional, string)**: The name of the user to be impersonated.
- **`refresh` (Optional, Enum(true \| false \| "wait_for"))**: If 'true', Elasticsearch refreshes the affected shards to make this operation
visible to search.
If 'wait_for', it waits for a refresh to make this operation visible to search.
If 'false', nothing is done with refreshes.

## client.security.hasPrivileges [_security.has_privileges]
Check user privileges.
Expand Down Expand Up @@ -13391,6 +13388,8 @@ It also accepts wildcards (`*`).
- **`master_timeout` (Optional, string \| -1 \| 0)**: The period to wait for the master node.
If the master node is not available before the timeout expires, the request fails and returns an error.
To indicate that the request should never timeout, set it to `-1`.
- **`wait_for_completion` (Optional, boolean)**: If `true`, the request returns a response when the matching snapshots are all deleted.
If `false`, the request returns a response as soon as the deletes are scheduled.

## client.snapshot.deleteRepository [_snapshot.delete_repository]
Delete snapshot repositories.
Expand Down
2 changes: 2 additions & 0 deletions src/api/api/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default class Cluster {
body: [],
query: [
'flat_settings',
'settings_filter',
'include_defaults',
'local',
'master_timeout'
Expand Down Expand Up @@ -155,6 +156,7 @@ export default class Cluster {
],
query: [
'create',
'cause',
'master_timeout'
]
},
Expand Down
1 change: 0 additions & 1 deletion src/api/api/get_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const acceptedParams: Record<string, { path: string[], body: string[], query: st
'_source',
'_source_excludes',
'_source_includes',
'stored_fields',
'version',
'version_type'
]
Expand Down
3 changes: 2 additions & 1 deletion src/api/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const acceptedParams: Record<string, { path: string[], body: string[], query: st
'version',
'version_type',
'wait_for_active_shards',
'require_alias'
'require_alias',
'require_data_stream'
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ export default class Inference {
}

/**
* Perform rereanking inference on the service
* Perform reranking inference on the service
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference | Elasticsearch API documentation}
*/
async rerank (this: That, params: T.InferenceRerankRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferenceRerankResponse>
Expand Down
4 changes: 1 addition & 3 deletions src/api/api/ingest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ export default class Ingest {
'id'
],
body: [],
query: [
'master_timeout'
]
query: []
},
'ingest.get_pipeline': {
path: [
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class License {
body: [],
query: [
'acknowledge',
'type_query_string',
'type',
'master_timeout'
]
}
Expand Down
1 change: 1 addition & 0 deletions src/api/api/reindex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const acceptedParams: Record<string, { path: string[], body: string[], query: st
'requests_per_second',
'scroll',
'slices',
'max_docs',
'timeout',
'wait_for_active_shards',
'wait_for_completion',
Expand Down
1 change: 1 addition & 0 deletions src/api/api/search_mvt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const acceptedParams: Record<string, { path: string[], body: string[], query: st
'grid_precision',
'grid_type',
'size',
'track_total_hits',
'with_labels'
]
}
Expand Down
10 changes: 4 additions & 6 deletions src/api/api/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,7 @@ export default class Security {
'security.get_user_privileges': {
path: [],
body: [],
query: [
'application',
'priviledge',
'username'
]
query: []
},
'security.get_user_profile': {
path: [
Expand All @@ -376,7 +372,9 @@ export default class Security {
'password',
'run_as'
],
query: []
query: [
'refresh'
]
},
'security.has_privileges': {
path: [
Expand Down
3 changes: 2 additions & 1 deletion src/api/api/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export default class Snapshot {
],
body: [],
query: [
'master_timeout'
'master_timeout',
'wait_for_completion'
]
},
'snapshot.delete_repository': {
Expand Down
Loading
Loading