From 218817e4a4fd0489bb59caabfc0592e9392b9c7a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 10 Oct 2025 17:07:54 +0400 Subject: [PATCH 1/4] Remove VersionType.force It got removed in 2019 in Elasticsearch 7.5. --- specification/_types/common.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 719cd005d9..571441fd2b 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -114,10 +114,6 @@ export enum VersionType { * 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 } // TODO: replace all uuid's with this type From 79d6d1aa8a151ed49dd7491db5e528b82cb5d962 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 10 Oct 2025 17:08:49 +0400 Subject: [PATCH 2/4] Switch to lowercase default_operator They are the default values used in the Operator enum. --- specification/_global/count/CountRequest.ts | 4 ++-- specification/_global/delete_by_query/DeleteByQueryRequest.ts | 4 ++-- specification/_global/explain/ExplainRequest.ts | 4 ++-- specification/_global/search/SearchRequest.ts | 4 ++-- specification/_global/update_by_query/UpdateByQueryRequest.ts | 4 ++-- .../indices/validate_query/IndicesValidateQueryRequest.ts | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/_global/count/CountRequest.ts b/specification/_global/count/CountRequest.ts index 894e9912f3..5fcca4e557 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 9333092ae2..01e5f1da4a 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 1e5563994f..a9942d3de2 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 8bfa106785..8acb376547 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/indices/validate_query/IndicesValidateQueryRequest.ts b/specification/indices/validate_query/IndicesValidateQueryRequest.ts index 2dfcec193c..ff297c40e2 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 /** From 537722660199f09f5870cbdb309ca7a31b31f060 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 10 Oct 2025 17:10:01 +0400 Subject: [PATCH 3/4] Fix streams.status master_timeout --- specification/streams/status/StreamsStatusRequest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } From b002da905a43ab1811690db21335fe9a8be762d2 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Sat, 11 Oct 2025 06:15:24 +0400 Subject: [PATCH 4/4] Run make contrib --- output/openapi/elasticsearch-openapi.json | 15 ++- .../elasticsearch-serverless-openapi.json | 15 ++- output/schema/schema.json | 106 +++++++++--------- output/typescript/types.ts | 4 +- specification/_types/common.ts | 2 +- 5 files changed, 68 insertions(+), 74 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 838ba8e3eb..c50ad0be91 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -9122,7 +9122,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" @@ -51523,7 +51523,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" @@ -65368,8 +65368,7 @@ "enum": [ "internal", "external", - "external_gte", - "force" + "external_gte" ] }, "_types.analysis.StopWords": { @@ -138146,7 +138145,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" @@ -138542,7 +138541,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" @@ -141468,7 +141467,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" @@ -143908,7 +143907,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 3010385b22..48aba0570a 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" @@ -29201,7 +29201,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" @@ -41581,8 +41581,7 @@ "enum": [ "internal", "external", - "external_gte", - "force" + "external_gte" ] }, "_types.analysis.StopWords": { @@ -84592,7 +84591,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" @@ -84988,7 +84987,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" @@ -86264,7 +86263,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" @@ -87721,7 +87720,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 5a7eb9c865..9c940c9a95 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -26433,10 +26433,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": { @@ -27363,10 +27363,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": { @@ -28751,10 +28751,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": { @@ -38896,10 +38896,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": { @@ -49526,10 +49526,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": { @@ -50503,7 +50503,7 @@ "name": "AggregateName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L144-L148", + "specLocation": "_types/common.ts#L140-L144", "type": { "kind": "instance_of", "type": { @@ -50754,7 +50754,7 @@ "name": "Bytes", "namespace": "_types" }, - "specLocation": "_types/common.ts#L168-L180" + "specLocation": "_types/common.ts#L164-L176" }, { "kind": "interface", @@ -50963,7 +50963,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L389-L395" + "specLocation": "_types/common.ts#L385-L391" }, { "kind": "type_alias", @@ -50971,7 +50971,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L397-L397", + "specLocation": "_types/common.ts#L393-L393", "type": { "kind": "union_of", "items": [ @@ -51190,7 +51190,7 @@ "name": "Conflicts", "namespace": "_types" }, - "specLocation": "_types/common.ts#L182-L191" + "specLocation": "_types/common.ts#L178-L187" }, { "kind": "interface", @@ -51799,7 +51799,7 @@ "namespace": "_types" }, "properties": [], - "specLocation": "_types/common.ts#L159-L160" + "specLocation": "_types/common.ts#L155-L156" }, { "kind": "type_alias", @@ -52008,7 +52008,7 @@ "name": "ExpandWildcard", "namespace": "_types" }, - "specLocation": "_types/common.ts#L200-L214" + "specLocation": "_types/common.ts#L196-L210" }, { "kind": "type_alias", @@ -52016,7 +52016,7 @@ "name": "ExpandWildcards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L216-L216", + "specLocation": "_types/common.ts#L212-L212", "type": { "kind": "union_of", "items": [ @@ -52047,7 +52047,7 @@ "name": "Field", "namespace": "_types" }, - "specLocation": "_types/common.ts#L137-L138", + "specLocation": "_types/common.ts#L133-L134", "type": { "kind": "instance_of", "type": { @@ -52368,7 +52368,7 @@ "name": "Fields", "namespace": "_types" }, - "specLocation": "_types/common.ts#L139-L139", + "specLocation": "_types/common.ts#L135-L135", "type": { "kind": "union_of", "items": [ @@ -52463,7 +52463,7 @@ "name": "Fuzziness", "namespace": "_types" }, - "specLocation": "_types/common.ts#L132-L133", + "specLocation": "_types/common.ts#L128-L129", "type": { "kind": "union_of", "items": [ @@ -53211,7 +53211,7 @@ "name": "HealthStatus", "namespace": "_types" }, - "specLocation": "_types/common.ts#L218-L240" + "specLocation": "_types/common.ts#L214-L236" }, { "kind": "type_alias", @@ -53234,7 +53234,7 @@ "name": "HttpHeaders", "namespace": "_types" }, - "specLocation": "_types/common.ts#L157-L157", + "specLocation": "_types/common.ts#L153-L153", "type": { "kind": "dictionary_of", "key": { @@ -53733,7 +53733,7 @@ } } ], - "specLocation": "_types/common.ts#L343-L370" + "specLocation": "_types/common.ts#L339-L366" }, { "kind": "interface", @@ -53876,7 +53876,7 @@ } } ], - "specLocation": "_types/common.ts#L328-L341" + "specLocation": "_types/common.ts#L324-L337" }, { "kind": "interface", @@ -54381,7 +54381,7 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L251-L255" + "specLocation": "_types/common.ts#L247-L251" }, { "kind": "enum", @@ -54769,7 +54769,7 @@ "name": "MinimumShouldMatch", "namespace": "_types" }, - "specLocation": "_types/common.ts#L162-L166", + "specLocation": "_types/common.ts#L158-L162", "type": { "kind": "union_of", "items": [ @@ -54798,7 +54798,7 @@ "name": "MultiTermQueryRewrite", "namespace": "_types" }, - "specLocation": "_types/common.ts#L134-L135", + "specLocation": "_types/common.ts#L130-L131", "type": { "kind": "instance_of", "type": { @@ -55368,7 +55368,7 @@ "name": "NodeStatsLevel", "namespace": "_types" }, - "specLocation": "_types/common.ts#L257-L261" + "specLocation": "_types/common.ts#L253-L257" }, { "kind": "enum", @@ -55411,7 +55411,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L263-L272" + "specLocation": "_types/common.ts#L259-L268" }, { "kind": "type_alias", @@ -55419,7 +55419,7 @@ "name": "Password", "namespace": "_types" }, - "specLocation": "_types/common.ts#L194-L194", + "specLocation": "_types/common.ts#L190-L190", "type": { "kind": "instance_of", "type": { @@ -55670,7 +55670,7 @@ "name": "PropertyName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L129-L129", + "specLocation": "_types/common.ts#L125-L125", "type": { "kind": "instance_of", "type": { @@ -56022,7 +56022,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L274-L281" + "specLocation": "_types/common.ts#L270-L277" }, { "kind": "interface", @@ -56124,7 +56124,7 @@ "name": "RelationName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L130-L130", + "specLocation": "_types/common.ts#L126-L126", "type": { "kind": "instance_of", "type": { @@ -57455,7 +57455,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L283-L288" + "specLocation": "_types/common.ts#L279-L284" }, { "kind": "interface", @@ -57760,7 +57760,7 @@ "name": "SequenceNumber", "namespace": "_types" }, - "specLocation": "_types/common.ts#L127-L127", + "specLocation": "_types/common.ts#L123-L123", "type": { "kind": "instance_of", "type": { @@ -58015,7 +58015,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L372-L377", + "specLocation": "_types/common.ts#L368-L373", "type": { "kind": "union_of", "items": [ @@ -58048,7 +58048,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L379-L387" + "specLocation": "_types/common.ts#L375-L383" }, { "kind": "type_alias", @@ -58543,7 +58543,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L290-L303" + "specLocation": "_types/common.ts#L286-L299" }, { "kind": "type_alias", @@ -58552,7 +58552,7 @@ "name": "SuggestionName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L150-L154", + "specLocation": "_types/common.ts#L146-L150", "type": { "kind": "instance_of", "type": { @@ -58621,7 +58621,7 @@ "name": "TaskId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L131-L131", + "specLocation": "_types/common.ts#L127-L127", "type": { "kind": "instance_of", "type": { @@ -58789,7 +58789,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L305-L311" + "specLocation": "_types/common.ts#L301-L307" }, { "kind": "type_alias", @@ -59194,7 +59194,7 @@ "name": "Username", "namespace": "_types" }, - "specLocation": "_types/common.ts#L193-L193", + "specLocation": "_types/common.ts#L189-L189", "type": { "kind": "instance_of", "type": { @@ -59209,7 +59209,7 @@ "name": "Uuid", "namespace": "_types" }, - "specLocation": "_types/common.ts#L124-L124", + "specLocation": "_types/common.ts#L120-L120", "type": { "kind": "instance_of", "type": { @@ -59262,17 +59262,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", @@ -59288,7 +59284,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L313-L317" + "specLocation": "_types/common.ts#L309-L313" }, { "kind": "type_alias", @@ -59300,7 +59296,7 @@ "name": "WaitForActiveShards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L141-L142", + "specLocation": "_types/common.ts#L137-L138", "type": { "kind": "union_of", "items": [ @@ -59347,7 +59343,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L319-L326" + "specLocation": "_types/common.ts#L315-L322" }, { "kind": "interface", @@ -170227,10 +170223,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": { @@ -260431,7 +260427,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 4e2dee6d52..5726faaa73 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3092,7 +3092,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' @@ -22249,7 +22249,7 @@ export interface StreamsStatusLogsStatus { } export interface StreamsStatusRequest extends RequestBase { - master_timeout?: TimeUnit + master_timeout?: Duration } export interface StreamsStatusResponse { diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 571441fd2b..91155570d1 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -113,7 +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, + external_gte } // TODO: replace all uuid's with this type