Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export interface Request extends RequestBase {
*/
version_type?: VersionType
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* An array of existing or artificial documents.
*/
Expand Down
2 changes: 1 addition & 1 deletion specification/_global/search_mvt/SearchMvtRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export interface Request extends RequestBase {
*/
with_labels?: boolean
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Sub-aggregations for the geotile_grid.
*
Expand Down
2 changes: 1 addition & 1 deletion specification/_global/termvectors/TermVectorsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export interface Request<TDocument> extends RequestBase {
*/
version_type?: VersionType
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* An artificial document (a document not present in the index) for which you want to retrieve term vectors.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export interface Request extends RequestBase {
from?: integer
sort?: string | string[]
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/** @aliases aggs */
aggregations?: Dictionary<string, AggregationContainer>
collapse?: FieldCollapse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface Request extends RequestBase {
*/
master_timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max_outstanding_read_requests?: long
max_outstanding_write_requests?: long
max_read_request_operation_count?: long
Expand Down
2 changes: 1 addition & 1 deletion specification/ilm/migrate_to_data_tiers/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface Request extends RequestBase {
*/
master_timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legacy_template_to_delete?: string
node_attribute?: string
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface Request extends RequestBase {
dest: IndexName
}
/** @codegen_name create_from */
body: CreateFrom
body?: CreateFrom
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

export class CreateFrom {
Expand Down
2 changes: 1 addition & 1 deletion specification/indices/put_alias/IndicesPutAliasRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface Request extends RequestBase {
*/
timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Query used to limit documents the alias can access.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { RequestBase } from '@_types/Base'
import { Name } from '@_types/common'
import { Duration } from '@_types/Time'
import { IndexTemplate } from '@indices/_types/IndexTemplate'

/**
* Simulate an index.
Expand Down Expand Up @@ -64,4 +65,6 @@ export interface Request extends RequestBase {
*/
include_defaults?: boolean
}
/** @codegen_name index_template */
body?: IndexTemplate
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface Request extends RequestBase {
*/
include_defaults?: boolean
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* This setting overrides the value of the `action.auto_create_index` cluster setting.
* If set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.
Expand Down
2 changes: 1 addition & 1 deletion specification/ml/close_job/MlCloseJobRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface Request extends RequestBase {
* @server_default 30m */
timeout?: Duration
}
body: {
body?: {
Comment on lines 68 to +69
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Refer to the description for the `allow_no_match` query parameter.
* @server_default true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface Request extends RequestBase {
*/
id?: Id
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The configuration of how to source the analysis data. It requires an
* index. Optionally, query and _source may be specified.
Expand Down
2 changes: 1 addition & 1 deletion specification/ml/forecast/MlForecastJobRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface Request extends RequestBase {
*/
max_model_memory?: string
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Refer to the description for the `duration` query parameter.
* @server_default 1d
Expand Down
2 changes: 1 addition & 1 deletion specification/ml/open_job/MlOpenJobRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface Request extends RequestBase {
*/
timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Refer to the description for the `timeout` query parameter.
* @server_default 30m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface Request extends RequestBase {
*/
id?: Id
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* A data frame analytics config as described in create data frame analytics
* jobs. Note that `id` and `dest` don’t need to be provided in the context of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface Request extends RequestBase {
start?: DateTime
end?: DateTime
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The datafeed definition to preview.
*/
Expand Down
2 changes: 1 addition & 1 deletion specification/ml/put_calendar/MlPutCalendarRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface Request extends RequestBase {
/** A string that uniquely identifies a calendar. */
calendar_id: Id
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* An array of anomaly detection job identifiers.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface Request extends RequestBase {
*/
wait_for?: DeploymentAllocationState
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Adaptive allocations configuration. When enabled, the number of allocations
* is set based on the current load.
Expand Down
2 changes: 1 addition & 1 deletion specification/ml/stop_datafeed/MlStopDatafeedRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface Request extends RequestBase {
* @server_default 20s */
timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Refer to the description for the `allow_no_match` query parameter.
* @server_default true */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface Request extends RequestBase {
*/
number_of_allocations?: integer
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The number of model allocations on each node where the model is deployed.
* All allocations on a node share the same copy of the model in memory but use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface Request extends RequestBase {
*/
timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The password for the Elasticsearch keystore.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface Request extends RequestBase {
/**
* Contains parameters for a search application.
*/
body: {
body?: {
Copy link
Member Author

params?: Dictionary<string, UserDefinedValue>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface Request extends RequestBase {
*/
typed_keys?: boolean
}
body: {
body?: {
Copy link
Member Author

/**
* Query parameters specific to this request, which will override any defaults specified in the template.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface Request extends RequestBase {
*/
typed_keys?: boolean
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Any aggregations to run over the corpus of returned API keys.
* Aggregations and queries work together. Aggregations are computed only on the API keys that match the query.
Expand Down
2 changes: 1 addition & 1 deletion specification/security/query_role/QueryRolesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface Request extends RequestBase {
methods: ['GET', 'POST']
}
]
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* A query to filter which roles to return.
* If the query parameter is missing, it is equivalent to a `match_all` query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface Request extends RequestBase {
methods: ['GET', 'POST']
}
]
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* A query to filter which users to return.
* If the query parameter is missing, it is equivalent to a `match_all` query.
Expand Down
2 changes: 1 addition & 1 deletion specification/security/suggest_user_profiles/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface Request extends RequestBase {
*/
data?: string | string[]
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* A query string used to match name-related fields in user profile documents.
* Name-related fields are the user's `username`, `full_name`, and `email`.
Expand Down
2 changes: 1 addition & 1 deletion specification/security/update_api_key/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface Request extends RequestBase {
*/
id: Id
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The role descriptors to assign to this API key.
* The API key's effective permissions are an intersection of its assigned privileges and the point in time snapshot of permissions of the owner user.
Expand Down
2 changes: 1 addition & 1 deletion specification/snapshot/create/SnapshotCreateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface Request extends RequestBase {
*/
wait_for_completion?: boolean
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Determines how wildcard patterns in the `indices` parameter match data streams and indices.
* It supports comma-separated values such as `open,hidden`.
Expand Down
2 changes: 1 addition & 1 deletion specification/snapshot/restore/SnapshotRestoreRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface Request extends RequestBase {
*/
wait_for_completion?: boolean
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The feature states to restore.
* If `include_global_state` is `true`, the request restores all feature states in the snapshot by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface Request extends RequestBase {
*/
timeout?: Duration
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The destination for the transform.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface Request extends RequestBase {
*/
debug?: boolean
}
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Determines how to handle the watch actions as part of the watch execution.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface Request extends RequestBase {
methods: ['GET', 'POST']
}
]
body: {
body?: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* The offset from the first result to fetch.
* It must be non-negative.
Expand Down