diff --git a/output/schema/schema.json b/output/schema/schema.json index 1a00d90ca3..9e0ed54fd7 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -20800,6 +20800,19 @@ } ], "query": [ + { + "description": "If `true`, the response will include the ingest pipelines that were executed for each index or create.", + "name": "list_executed_pipelines", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "ID of the pipeline to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.\nIf a final pipeline is configured it will always run, regardless of the value of this parameter.", "name": "pipeline", @@ -20911,9 +20924,22 @@ "namespace": "_builtins" } } + }, + { + "description": "If `true`, the request's actions must target a data stream (existing or to-be-created).", + "name": "require_data_stream", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "_global/bulk/BulkRequest.ts#L32-L105" + "specLocation": "_global/bulk/BulkRequest.ts#L32-L115" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 0cbd80c628..8b75092d64 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -57,14 +57,6 @@ ], "response": [] }, - "bulk": { - "request": [ - "Request: missing json spec query parameter 'type'", - "Request: missing json spec query parameter 'require_data_stream'", - "Request: missing json spec query parameter 'list_executed_pipelines'" - ], - "response": [] - }, "capabilities": { "request": [ "Missing request & response" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 3233a2526b..4494aad18e 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -47,6 +47,7 @@ export type BulkOperationType = 'index' | 'create' | 'update' | 'delete' export interface BulkRequest extends RequestBase { index?: IndexName + list_executed_pipelines?: boolean pipeline?: string refresh?: Refresh routing?: Routing @@ -56,6 +57,7 @@ export interface BulkRequest ex timeout?: Duration wait_for_active_shards?: WaitForActiveShards require_alias?: boolean + require_data_stream?: boolean body?: (BulkOperationContainer | BulkUpdateAction | TDocument)[] } diff --git a/specification/_global/bulk/BulkRequest.ts b/specification/_global/bulk/BulkRequest.ts index 048e77289f..b53adf3779 100644 --- a/specification/_global/bulk/BulkRequest.ts +++ b/specification/_global/bulk/BulkRequest.ts @@ -48,6 +48,11 @@ export interface Request extends RequestBase { index?: IndexName } query_parameters: { + /** + * If `true`, the response will include the ingest pipelines that were executed for each index or create. + * @server_default false + */ + list_executed_pipelines?: boolean /** * ID of the pipeline to use to preprocess incoming documents. * If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. @@ -92,6 +97,11 @@ export interface Request extends RequestBase { * @server_default false */ require_alias?: boolean + /** + * If `true`, the request's actions must target a data stream (existing or to-be-created). + * @server_default false + */ + require_data_stream?: boolean } /** * The request body contains a newline-delimited list of `create`, `delete`, `index`, and `update` actions and their associated source data. diff --git a/specification/_json_spec/bulk.json b/specification/_json_spec/bulk.json index 59e79d0684..3444e1c017 100644 --- a/specification/_json_spec/bulk.json +++ b/specification/_json_spec/bulk.json @@ -46,10 +46,6 @@ "type": "time", "description": "Explicit operation timeout" }, - "type": { - "type": "string", - "description": "Default document type for items which don't provide one" - }, "_source": { "type": "list", "description": "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request" @@ -68,11 +64,11 @@ }, "require_alias": { "type": "boolean", - "description": "Sets require_alias for all incoming documents. Defaults to unset (false)" + "description": "If true, the request’s actions must target an index alias. Defaults to false." }, "require_data_stream": { "type": "boolean", - "description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false" + "description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false" }, "list_executed_pipelines": { "type": "boolean",