diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 72e724248d..8e89af1ab2 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -9121,7 +9121,7 @@ { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -51545,7 +51545,7 @@ { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -65389,8 +65389,7 @@ "enum": [ "internal", "external", - "external_gte", - "force" + "external_gte" ] }, "_types.analysis.StopWords": { @@ -138149,7 +138148,7 @@ "count-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -138545,7 +138544,7 @@ "explain-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -141471,7 +141470,7 @@ "indices.validate_query-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.", + "description": "The default operator for query string query: `and` or `or`.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -143911,7 +143910,7 @@ "search-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for the query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for the query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index d4a5eb055b..ba0d2ac66c 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -5042,7 +5042,7 @@ { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -29197,7 +29197,7 @@ { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -41576,8 +41576,7 @@ "enum": [ "internal", "external", - "external_gte", - "force" + "external_gte" ] }, "_types.analysis.StopWords": { @@ -84571,7 +84570,7 @@ "count-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -84967,7 +84966,7 @@ "explain-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -86243,7 +86242,7 @@ "indices.validate_query-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for query string query: `AND` or `OR`.", + "description": "The default operator for query string query: `and` or `or`.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" @@ -87700,7 +87699,7 @@ "search-default_operator": { "in": "query", "name": "default_operator", - "description": "The default operator for the query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for the query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.query_dsl.Operator" diff --git a/output/schema/schema.json b/output/schema/schema.json index 7b76d29f0a..8ba16e5998 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -26387,10 +26387,10 @@ } }, { - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, - "serverDefault": "OR", + "serverDefault": "or", "type": { "kind": "instance_of", "type": { @@ -27317,10 +27317,10 @@ } }, { - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, - "serverDefault": "OR", + "serverDefault": "or", "type": { "kind": "instance_of", "type": { @@ -28705,10 +28705,10 @@ } }, { - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, - "serverDefault": "OR", + "serverDefault": "or", "type": { "kind": "instance_of", "type": { @@ -38832,10 +38832,10 @@ } }, { - "description": "The default operator for the query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for the query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, - "serverDefault": "OR", + "serverDefault": "or", "type": { "kind": "instance_of", "type": { @@ -49462,10 +49462,10 @@ } }, { - "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", + "description": "The default operator for query string query: `and` or `or`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, - "serverDefault": "OR", + "serverDefault": "or", "type": { "kind": "instance_of", "type": { @@ -50439,7 +50439,7 @@ "name": "AggregateName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L144-L148", + "specLocation": "_types/common.ts#L140-L144", "type": { "kind": "instance_of", "type": { @@ -50690,7 +50690,7 @@ "name": "Bytes", "namespace": "_types" }, - "specLocation": "_types/common.ts#L168-L180" + "specLocation": "_types/common.ts#L164-L176" }, { "kind": "interface", @@ -50899,7 +50899,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L389-L395" + "specLocation": "_types/common.ts#L385-L391" }, { "kind": "type_alias", @@ -50907,7 +50907,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L397-L397", + "specLocation": "_types/common.ts#L393-L393", "type": { "kind": "union_of", "items": [ @@ -51126,7 +51126,7 @@ "name": "Conflicts", "namespace": "_types" }, - "specLocation": "_types/common.ts#L182-L191" + "specLocation": "_types/common.ts#L178-L187" }, { "kind": "interface", @@ -51735,7 +51735,7 @@ "namespace": "_types" }, "properties": [], - "specLocation": "_types/common.ts#L159-L160" + "specLocation": "_types/common.ts#L155-L156" }, { "kind": "type_alias", @@ -51944,7 +51944,7 @@ "name": "ExpandWildcard", "namespace": "_types" }, - "specLocation": "_types/common.ts#L200-L214" + "specLocation": "_types/common.ts#L196-L210" }, { "kind": "type_alias", @@ -51952,7 +51952,7 @@ "name": "ExpandWildcards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L216-L216", + "specLocation": "_types/common.ts#L212-L212", "type": { "kind": "union_of", "items": [ @@ -51983,7 +51983,7 @@ "name": "Field", "namespace": "_types" }, - "specLocation": "_types/common.ts#L137-L138", + "specLocation": "_types/common.ts#L133-L134", "type": { "kind": "instance_of", "type": { @@ -52304,7 +52304,7 @@ "name": "Fields", "namespace": "_types" }, - "specLocation": "_types/common.ts#L139-L139", + "specLocation": "_types/common.ts#L135-L135", "type": { "kind": "union_of", "items": [ @@ -52399,7 +52399,7 @@ "name": "Fuzziness", "namespace": "_types" }, - "specLocation": "_types/common.ts#L132-L133", + "specLocation": "_types/common.ts#L128-L129", "type": { "kind": "union_of", "items": [ @@ -53147,7 +53147,7 @@ "name": "HealthStatus", "namespace": "_types" }, - "specLocation": "_types/common.ts#L218-L240" + "specLocation": "_types/common.ts#L214-L236" }, { "kind": "type_alias", @@ -53170,7 +53170,7 @@ "name": "HttpHeaders", "namespace": "_types" }, - "specLocation": "_types/common.ts#L157-L157", + "specLocation": "_types/common.ts#L153-L153", "type": { "kind": "dictionary_of", "key": { @@ -53669,7 +53669,7 @@ } } ], - "specLocation": "_types/common.ts#L343-L370" + "specLocation": "_types/common.ts#L339-L366" }, { "kind": "interface", @@ -53812,7 +53812,7 @@ } } ], - "specLocation": "_types/common.ts#L328-L341" + "specLocation": "_types/common.ts#L324-L337" }, { "kind": "interface", @@ -54317,7 +54317,7 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L251-L255" + "specLocation": "_types/common.ts#L247-L251" }, { "kind": "enum", @@ -54705,7 +54705,7 @@ "name": "MinimumShouldMatch", "namespace": "_types" }, - "specLocation": "_types/common.ts#L162-L166", + "specLocation": "_types/common.ts#L158-L162", "type": { "kind": "union_of", "items": [ @@ -54734,7 +54734,7 @@ "name": "MultiTermQueryRewrite", "namespace": "_types" }, - "specLocation": "_types/common.ts#L134-L135", + "specLocation": "_types/common.ts#L130-L131", "type": { "kind": "instance_of", "type": { @@ -55304,7 +55304,7 @@ "name": "NodeStatsLevel", "namespace": "_types" }, - "specLocation": "_types/common.ts#L257-L261" + "specLocation": "_types/common.ts#L253-L257" }, { "kind": "enum", @@ -55347,7 +55347,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L263-L272" + "specLocation": "_types/common.ts#L259-L268" }, { "kind": "type_alias", @@ -55355,7 +55355,7 @@ "name": "Password", "namespace": "_types" }, - "specLocation": "_types/common.ts#L194-L194", + "specLocation": "_types/common.ts#L190-L190", "type": { "kind": "instance_of", "type": { @@ -55606,7 +55606,7 @@ "name": "PropertyName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L129-L129", + "specLocation": "_types/common.ts#L125-L125", "type": { "kind": "instance_of", "type": { @@ -55958,7 +55958,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L274-L281" + "specLocation": "_types/common.ts#L270-L277" }, { "kind": "interface", @@ -56060,7 +56060,7 @@ "name": "RelationName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L130-L130", + "specLocation": "_types/common.ts#L126-L126", "type": { "kind": "instance_of", "type": { @@ -57391,7 +57391,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L283-L288" + "specLocation": "_types/common.ts#L279-L284" }, { "kind": "interface", @@ -57696,7 +57696,7 @@ "name": "SequenceNumber", "namespace": "_types" }, - "specLocation": "_types/common.ts#L127-L127", + "specLocation": "_types/common.ts#L123-L123", "type": { "kind": "instance_of", "type": { @@ -57951,7 +57951,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L372-L377", + "specLocation": "_types/common.ts#L368-L373", "type": { "kind": "union_of", "items": [ @@ -57984,7 +57984,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L379-L387" + "specLocation": "_types/common.ts#L375-L383" }, { "kind": "type_alias", @@ -58479,7 +58479,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L290-L303" + "specLocation": "_types/common.ts#L286-L299" }, { "kind": "type_alias", @@ -58488,7 +58488,7 @@ "name": "SuggestionName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L150-L154", + "specLocation": "_types/common.ts#L146-L150", "type": { "kind": "instance_of", "type": { @@ -58557,7 +58557,7 @@ "name": "TaskId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L131-L131", + "specLocation": "_types/common.ts#L127-L127", "type": { "kind": "instance_of", "type": { @@ -58725,7 +58725,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L305-L311" + "specLocation": "_types/common.ts#L301-L307" }, { "kind": "type_alias", @@ -59130,7 +59130,7 @@ "name": "Username", "namespace": "_types" }, - "specLocation": "_types/common.ts#L193-L193", + "specLocation": "_types/common.ts#L189-L189", "type": { "kind": "instance_of", "type": { @@ -59145,7 +59145,7 @@ "name": "Uuid", "namespace": "_types" }, - "specLocation": "_types/common.ts#L124-L124", + "specLocation": "_types/common.ts#L120-L120", "type": { "kind": "instance_of", "type": { @@ -59198,17 +59198,13 @@ { "description": "Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document.\nNOTE: The `external_gte` version type is meant for special use cases and should be used with care.\nIf used incorrectly, it can result in loss of data.", "name": "external_gte" - }, - { - "description": "This option is deprecated because it can cause primary and replica shards to diverge.", - "name": "force" } ], "name": { "name": "VersionType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L102-L121" + "specLocation": "_types/common.ts#L102-L117" }, { "kind": "enum", @@ -59224,7 +59220,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L313-L317" + "specLocation": "_types/common.ts#L309-L313" }, { "kind": "type_alias", @@ -59236,7 +59232,7 @@ "name": "WaitForActiveShards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L141-L142", + "specLocation": "_types/common.ts#L137-L138", "type": { "kind": "union_of", "items": [ @@ -59283,7 +59279,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L319-L326" + "specLocation": "_types/common.ts#L315-L322" }, { "kind": "interface", @@ -170054,10 +170050,10 @@ } }, { - "description": "The default operator for query string query: `AND` or `OR`.", + "description": "The default operator for query string query: `and` or `or`.", "name": "default_operator", "required": false, - "serverDefault": "OR", + "serverDefault": "or", "type": { "kind": "instance_of", "type": { @@ -260217,7 +260213,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index dc7228bcb5..1f3cef2d8e 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3091,7 +3091,7 @@ export type VersionNumber = long export type VersionString = string -export type VersionType = 'internal' | 'external' | 'external_gte' | 'force' +export type VersionType = 'internal' | 'external' | 'external_gte' export type WaitForActiveShardOptions = 'all' | 'index-setting' @@ -22231,7 +22231,7 @@ export interface StreamsStatusLogsStatus { } export interface StreamsStatusRequest extends RequestBase { - master_timeout?: TimeUnit + master_timeout?: Duration } export interface StreamsStatusResponse { diff --git a/specification/_global/count/CountRequest.ts b/specification/_global/count/CountRequest.ts index cb3a72388d..76718b3284 100644 --- a/specification/_global/count/CountRequest.ts +++ b/specification/_global/count/CountRequest.ts @@ -86,9 +86,9 @@ export interface Request extends RequestBase { */ analyze_wildcard?: boolean /** - * The default operator for query string query: `AND` or `OR`. + * The default operator for query string query: `and` or `or`. * This parameter can be used only when the `q` query string parameter is specified. - * @server_default OR + * @server_default or */ default_operator?: Operator /** diff --git a/specification/_global/delete_by_query/DeleteByQueryRequest.ts b/specification/_global/delete_by_query/DeleteByQueryRequest.ts index 33787dd7b6..11b7d67f50 100644 --- a/specification/_global/delete_by_query/DeleteByQueryRequest.ts +++ b/specification/_global/delete_by_query/DeleteByQueryRequest.ts @@ -162,9 +162,9 @@ export interface Request extends RequestBase { */ conflicts?: Conflicts /** - * The default operator for query string query: `AND` or `OR`. + * The default operator for query string query: `and` or `or`. * This parameter can be used only when the `q` query string parameter is specified. - * @server_default OR + * @server_default or */ default_operator?: Operator /** diff --git a/specification/_global/explain/ExplainRequest.ts b/specification/_global/explain/ExplainRequest.ts index efa9fbe657..3e44fc21df 100644 --- a/specification/_global/explain/ExplainRequest.ts +++ b/specification/_global/explain/ExplainRequest.ts @@ -65,9 +65,9 @@ export interface Request extends RequestBase { */ analyze_wildcard?: boolean /** - * The default operator for query string query: `AND` or `OR`. + * The default operator for query string query: `and` or `or`. * This parameter can be used only when the `q` query string parameter is specified. - * @server_default OR + * @server_default or */ default_operator?: Operator /** diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 992e299858..8f528160ac 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -138,9 +138,9 @@ export interface Request extends RequestBase { */ ccs_minimize_roundtrips?: boolean /** - * The default operator for the query string query: `AND` or `OR`. + * The default operator for the query string query: `and` or `or`. * This parameter can be used only when the `q` query string parameter is specified. - * @server_default OR + * @server_default or */ default_operator?: Operator /** diff --git a/specification/_global/update_by_query/UpdateByQueryRequest.ts b/specification/_global/update_by_query/UpdateByQueryRequest.ts index 00ebff42df..e9713260ea 100644 --- a/specification/_global/update_by_query/UpdateByQueryRequest.ts +++ b/specification/_global/update_by_query/UpdateByQueryRequest.ts @@ -176,9 +176,9 @@ export interface Request extends RequestBase { */ conflicts?: Conflicts /** - * The default operator for query string query: `AND` or `OR`. + * The default operator for query string query: `and` or `or`. * This parameter can be used only when the `q` query string parameter is specified. - * @server_default OR + * @server_default or */ default_operator?: Operator /** diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 719cd005d9..91155570d1 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -113,11 +113,7 @@ export enum VersionType { * NOTE: The `external_gte` version type is meant for special use cases and should be used with care. * If used incorrectly, it can result in loss of data. */ - external_gte, - /** - * This option is deprecated because it can cause primary and replica shards to diverge. - */ - force + external_gte } // TODO: replace all uuid's with this type diff --git a/specification/indices/validate_query/IndicesValidateQueryRequest.ts b/specification/indices/validate_query/IndicesValidateQueryRequest.ts index be4308f114..b9cbfbba8b 100644 --- a/specification/indices/validate_query/IndicesValidateQueryRequest.ts +++ b/specification/indices/validate_query/IndicesValidateQueryRequest.ts @@ -72,8 +72,8 @@ export interface Request extends RequestBase { */ analyze_wildcard?: boolean /** - * The default operator for query string query: `AND` or `OR`. - * @server_default OR + * The default operator for query string query: `and` or `or`. + * @server_default or */ default_operator?: Operator /** diff --git a/specification/streams/status/StreamsStatusRequest.ts b/specification/streams/status/StreamsStatusRequest.ts index e3877e030c..76c748fa39 100644 --- a/specification/streams/status/StreamsStatusRequest.ts +++ b/specification/streams/status/StreamsStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Get the status of streams. @@ -42,6 +42,6 @@ export interface Request extends RequestBase { * * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration } }