diff --git a/output/schema/schema.json b/output/schema/schema.json index c8ed769b83..8ef4086515 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -19376,7 +19376,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L208-L211" + "specLocation": "_global/msearch/types.ts#L213-L216" }, { "generics": [ @@ -19426,7 +19426,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L198-L201" + "specLocation": "_global/msearch/types.ts#L203-L206" }, { "kind": "interface", @@ -19496,6 +19496,25 @@ } } }, + { + "description": "Configuration of search extensions defined by Elasticsearch plugins.", + "name": "ext", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + }, { "description": "List of stored fields to return as part of a hit. If no fields are specified,\nno stored fields are included in the response. If this field is specified, the _source\nparameter defaults to false. You can pass _source: true to return both source fields\nand stored fields in the search response.", "name": "stored_fields", @@ -19859,7 +19878,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L70-L196" + "specLocation": "_global/msearch/types.ts#L71-L201" }, { "description": "Contains parameters used to limit or change the subsequent search body request.", @@ -19991,7 +20010,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L52-L67" + "specLocation": "_global/msearch/types.ts#L53-L68" }, { "attachedBehaviors": [ @@ -20202,7 +20221,7 @@ "name": "RequestItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L47-L50", + "specLocation": "_global/msearch/types.ts#L48-L51", "type": { "items": [ { @@ -20272,7 +20291,7 @@ "name": "ResponseItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L203-L206", + "specLocation": "_global/msearch/types.ts#L208-L211", "type": { "items": [ { @@ -23578,6 +23597,25 @@ } } }, + { + "description": "Configuration of search extensions defined by Elasticsearch plugins.", + "name": "ext", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + }, { "description": "Starting document offset. By default, you cannot page through more than 10,000\nhits using the from and size parameters. To page through more hits, use the\nsearch_after parameter.", "name": "from", @@ -24527,7 +24565,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L51-L240" + "specLocation": "_global/search/SearchRequest.ts#L52-L245" }, { "body": { @@ -33374,7 +33412,7 @@ { "description": "A human-readable explanation of the error, in english", "name": "reason", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -44042,7 +44080,7 @@ "properties": [ { "name": "bounds", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52352,7 +52390,7 @@ } } ], - "specLocation": "_types/analysis/icu-plugin.ts#L66-L70" + "specLocation": "_types/analysis/icu-plugin.ts#L67-L71" }, { "kind": "enum", @@ -52368,7 +52406,7 @@ "name": "IcuCollationAlternate", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L88-L91" + "specLocation": "_types/analysis/icu-plugin.ts#L89-L92" }, { "kind": "enum", @@ -52384,7 +52422,7 @@ "name": "IcuCollationCaseFirst", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L93-L96" + "specLocation": "_types/analysis/icu-plugin.ts#L94-L97" }, { "kind": "enum", @@ -52400,7 +52438,7 @@ "name": "IcuCollationDecomposition", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L98-L101" + "specLocation": "_types/analysis/icu-plugin.ts#L99-L102" }, { "kind": "enum", @@ -52425,7 +52463,7 @@ "name": "IcuCollationStrength", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L103-L109" + "specLocation": "_types/analysis/icu-plugin.ts#L104-L110" }, { "inherits": { @@ -52450,7 +52488,7 @@ }, { "name": "alternate", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52461,7 +52499,7 @@ }, { "name": "caseFirst", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52472,7 +52510,7 @@ }, { "name": "caseLevel", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52483,7 +52521,7 @@ }, { "name": "country", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52494,7 +52532,7 @@ }, { "name": "decomposition", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52505,7 +52543,7 @@ }, { "name": "hiraganaQuaternaryMode", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52516,7 +52554,7 @@ }, { "name": "language", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52527,7 +52565,7 @@ }, { "name": "numeric", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52536,9 +52574,20 @@ } } }, + { + "name": "rules", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "name": "strength", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52560,7 +52609,7 @@ }, { "name": "variant", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52570,7 +52619,7 @@ } } ], - "specLocation": "_types/analysis/icu-plugin.ts#L51-L64" + "specLocation": "_types/analysis/icu-plugin.ts#L51-L65" }, { "inherits": { @@ -52667,7 +52716,7 @@ "name": "IcuNormalizationMode", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L77-L80" + "specLocation": "_types/analysis/icu-plugin.ts#L78-L81" }, { "inherits": { @@ -52721,7 +52770,7 @@ "name": "IcuNormalizationType", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L82-L86" + "specLocation": "_types/analysis/icu-plugin.ts#L83-L87" }, { "inherits": { @@ -52772,7 +52821,7 @@ "name": "IcuTransformDirection", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L72-L75" + "specLocation": "_types/analysis/icu-plugin.ts#L73-L76" }, { "inherits": { @@ -60427,26 +60476,11 @@ "kind": "dictionary_of", "singleKey": false, "value": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "RuntimeField", - "namespace": "_types.mapping" - } - }, - { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "RuntimeField", - "namespace": "_types.mapping" - } - } - } - ], - "kind": "union_of" + "kind": "instance_of", + "type": { + "name": "RuntimeField", + "namespace": "_types.mapping" + } } } }, @@ -69587,6 +69621,25 @@ } } }, + { + "description": "Configuration of search extensions defined by Elasticsearch plugins.", + "name": "ext", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + }, { "description": "Starting document offset. By default, you cannot page through more than 10,000\nhits using the from and size parameters. To page through more hits, use the\nsearch_after parameter.", "name": "from", @@ -70570,7 +70623,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L54-L250" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L255" }, { "body": { @@ -86572,7 +86625,7 @@ }, { "name": "settings", - "required": true, + "required": false, "type": { "key": { "kind": "instance_of", @@ -95283,6 +95336,25 @@ } } }, + { + "description": "Configuration of search extensions defined by Elasticsearch plugins.", + "name": "ext", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + }, { "description": "Starting document offset. By default, you cannot page through more than 10,000\nhits using the from and size parameters. To page through more hits, use the\nsearch_after parameter.", "name": "from", @@ -96207,7 +96279,7 @@ } } ], - "specLocation": "fleet/search/SearchRequest.ts#L54-L255" + "specLocation": "fleet/search/SearchRequest.ts#L55-L260" }, { "body": { @@ -98830,7 +98902,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L398-L400" + "specLocation": "indices/_types/IndexSettings.ts#L397-L399" }, { "kind": "interface", @@ -100441,7 +100513,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L310-L316" + "specLocation": "indices/_types/IndexSettings.ts#L309-L315" }, { "kind": "interface", @@ -100525,7 +100597,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L267-L300" + "specLocation": "indices/_types/IndexSettings.ts#L266-L299" }, { "kind": "interface", @@ -100547,7 +100619,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L302-L308" + "specLocation": "indices/_types/IndexSettings.ts#L301-L307" }, { "kind": "interface", @@ -100579,7 +100651,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L318-L321" + "specLocation": "indices/_types/IndexSettings.ts#L317-L320" }, { "kind": "interface", @@ -100860,17 +100932,6 @@ "properties": [ { "name": "created", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionString", - "namespace": "_types" - } - } - }, - { - "name": "created_string", "required": false, "type": { "kind": "instance_of", @@ -100881,7 +100942,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L262-L265" + "specLocation": "indices/_types/IndexSettings.ts#L262-L264" }, { "kind": "interface", @@ -100902,7 +100963,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L536-L538" + "specLocation": "indices/_types/IndexSettings.ts#L535-L537" }, { "kind": "interface", @@ -100924,7 +100985,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L540-L547" + "specLocation": "indices/_types/IndexSettings.ts#L539-L546" }, { "description": "Mapping Limit Settings", @@ -101014,7 +101075,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L402-L414" + "specLocation": "indices/_types/IndexSettings.ts#L401-L413" }, { "kind": "interface", @@ -101037,7 +101098,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L426-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L432" }, { "kind": "interface", @@ -101059,7 +101120,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L469" + "specLocation": "indices/_types/IndexSettings.ts#L462-L468" }, { "kind": "interface", @@ -101081,7 +101142,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L453-L460" }, { "kind": "interface", @@ -101104,7 +101165,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L443" + "specLocation": "indices/_types/IndexSettings.ts#L434-L442" }, { "kind": "interface", @@ -101127,7 +101188,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L445-L452" + "specLocation": "indices/_types/IndexSettings.ts#L444-L451" }, { "kind": "interface", @@ -101150,7 +101211,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L416-L424" + "specLocation": "indices/_types/IndexSettings.ts#L415-L423" }, { "kind": "interface", @@ -101171,7 +101232,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L323-L325" + "specLocation": "indices/_types/IndexSettings.ts#L322-L324" }, { "kind": "interface", @@ -101203,7 +101264,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L330" + "specLocation": "indices/_types/IndexSettings.ts#L326-L329" }, { "kind": "interface", @@ -101261,7 +101322,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L394-L396" + "specLocation": "indices/_types/IndexSettings.ts#L393-L395" }, { "kind": "interface", @@ -101873,7 +101934,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L471-L476" + "specLocation": "indices/_types/IndexSettings.ts#L470-L475" }, { "kind": "interface", @@ -101927,7 +101988,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L489-L494" + "specLocation": "indices/_types/IndexSettings.ts#L488-L493" }, { "kind": "interface", @@ -101973,7 +102034,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L478-L487" + "specLocation": "indices/_types/IndexSettings.ts#L477-L486" }, { "kind": "interface", @@ -102041,7 +102102,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L496-L505" + "specLocation": "indices/_types/IndexSettings.ts#L495-L504" }, { "kind": "enum", @@ -102070,7 +102131,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L507-L534" + "specLocation": "indices/_types/IndexSettings.ts#L506-L533" }, { "kind": "interface", @@ -102227,7 +102288,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L332-L354" + "specLocation": "indices/_types/IndexSettings.ts#L331-L353" }, { "kind": "enum", @@ -102251,7 +102312,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L356-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L370" }, { "kind": "interface", @@ -102287,7 +102348,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L373-L392" + "specLocation": "indices/_types/IndexSettings.ts#L372-L391" }, { "kind": "enum", @@ -158328,7 +158389,7 @@ }, { "name": "refresh_token", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c85c30a037..9c91a8c6ba 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -567,6 +567,7 @@ export interface MsearchMultisearchBody { collapse?: SearchFieldCollapse query?: QueryDslQueryContainer explain?: boolean + ext?: Record stored_fields?: Fields docvalue_fields?: (QueryDslFieldAndFormat | Field)[] knn?: KnnQuery @@ -1026,6 +1027,7 @@ export interface SearchRequest extends RequestBase { aggs?: Record collapse?: SearchFieldCollapse explain?: boolean + ext?: Record from?: integer highlight?: SearchHighlight track_total_hits?: SearchTrackHits @@ -1941,7 +1943,7 @@ export type EpochTime = Unit export interface ErrorCauseKeys { type: string - reason: string + reason?: string stack_trace?: string caused_by?: ErrorCause root_cause?: ErrorCause[] @@ -3019,7 +3021,7 @@ export interface AggregationsFormattableMetricAggregation extends AggregationsMe export type AggregationsGapPolicy = 'skip' | 'insert_zeros' export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase { - bounds: GeoBounds + bounds?: GeoBounds } export interface AggregationsGeoBoundsAggregation extends AggregationsMetricAggregationBase { @@ -4019,17 +4021,18 @@ export type AnalysisIcuCollationStrength = 'primary' | 'secondary' | 'tertiary' export interface AnalysisIcuCollationTokenFilter extends AnalysisTokenFilterBase { type: 'icu_collation' - alternate: AnalysisIcuCollationAlternate - caseFirst: AnalysisIcuCollationCaseFirst - caseLevel: boolean - country: string - decomposition: AnalysisIcuCollationDecomposition - hiraganaQuaternaryMode: boolean - language: string - numeric: boolean - strength: AnalysisIcuCollationStrength + alternate?: AnalysisIcuCollationAlternate + caseFirst?: AnalysisIcuCollationCaseFirst + caseLevel?: boolean + country?: string + decomposition?: AnalysisIcuCollationDecomposition + hiraganaQuaternaryMode?: boolean + language?: string + numeric?: boolean + rules?: string + strength?: AnalysisIcuCollationStrength variableTop?: string - variant: string + variant?: string } export interface AnalysisIcuFoldingTokenFilter extends AnalysisTokenFilterBase { @@ -4851,7 +4854,7 @@ export interface MappingRuntimeField { export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' -export type MappingRuntimeFields = Record +export type MappingRuntimeFields = Record export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase { type: 'scaled_float' @@ -5836,6 +5839,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase { aggs?: Record collapse?: SearchFieldCollapse explain?: boolean + ext?: Record from?: integer highlight?: SearchHighlight track_total_hits?: SearchTrackHits @@ -7971,7 +7975,7 @@ export interface ClusterComponentTemplateNode { export interface ClusterComponentTemplateSummary { _meta?: Metadata version?: VersionNumber - settings: Record + settings?: Record mappings?: MappingTypeMapping aliases?: Record } @@ -8934,6 +8938,7 @@ export interface FleetSearchRequest extends RequestBase { aggs?: Record collapse?: SearchFieldCollapse explain?: boolean + ext?: Record from?: integer highlight?: SearchHighlight track_total_hits?: SearchTrackHits @@ -9460,8 +9465,7 @@ export interface IndicesIndexTemplateSummary { } export interface IndicesIndexVersioning { - created: VersionString - created_string?: VersionString + created?: VersionString } export interface IndicesIndexingPressure { @@ -15680,7 +15684,7 @@ export interface SecurityGetTokenResponse { expires_in: long scope?: string type: string - refresh_token: string + refresh_token?: string kerberos_authentication_response_token?: string authentication: SecurityGetTokenAuthenticatedUser } diff --git a/specification/_global/msearch/types.ts b/specification/_global/msearch/types.ts index a9bd2bce22..bbe65f6399 100644 --- a/specification/_global/msearch/types.ts +++ b/specification/_global/msearch/types.ts @@ -43,6 +43,7 @@ import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { ScriptField } from '@_types/Scripting' import { SlicedScroll } from '@_types/SlicedScroll' import { KnnQuery } from '@_types/Knn' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * @codegen_names header, body @@ -80,6 +81,10 @@ export class MultisearchBody { * @server_default false */ explain?: boolean + /** + * Configuration of search extensions defined by Elasticsearch plugins. + */ + ext?: Dictionary /** * List of stored fields to return as part of a hit. If no fields are specified, * no stored fields are included in the response. If this field is specified, the _source diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 63a4ffe84e..5ade04f949 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -47,6 +47,7 @@ import { TrackHits } from '@global/search/_types/hits' import { Operator } from '@_types/query_dsl/Operator' import { Sort, SortResults } from '@_types/sort' import { KnnQuery } from '@_types/Knn' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * @rest_spec_name search @@ -118,6 +119,10 @@ export interface Request extends RequestBase { * @server_default false */ explain?: boolean + /** + * Configuration of search extensions defined by Elasticsearch plugins. + */ + ext?: Dictionary /** * Starting document offset. By default, you cannot page through more than 10,000 * hits using the from and size parameters. To page through more hits, use the diff --git a/specification/_types/Errors.ts b/specification/_types/Errors.ts index 71a150d4ef..8075f8975f 100644 --- a/specification/_types/Errors.ts +++ b/specification/_types/Errors.ts @@ -36,7 +36,7 @@ export class ErrorCause /** * A human-readable explanation of the error, in english */ - reason: string + reason?: string /** * The server stack trace. Present only if the `error_trace=true` parameter was sent with the request. */ diff --git a/specification/_types/aggregations/Aggregate.ts b/specification/_types/aggregations/Aggregate.ts index 788fe200d9..a1a173631d 100644 --- a/specification/_types/aggregations/Aggregate.ts +++ b/specification/_types/aggregations/Aggregate.ts @@ -289,7 +289,7 @@ export class ExtendedStatsBucketAggregate extends ExtendedStatsAggregate {} /** @variant name=geo_bounds */ export class GeoBoundsAggregate extends AggregateBase { - bounds: GeoBounds + bounds?: GeoBounds } /** @variant name=geo_centroid */ diff --git a/specification/_types/analysis/icu-plugin.ts b/specification/_types/analysis/icu-plugin.ts index 4ec468cebe..676e651d7d 100644 --- a/specification/_types/analysis/icu-plugin.ts +++ b/specification/_types/analysis/icu-plugin.ts @@ -50,17 +50,18 @@ export class IcuFoldingTokenFilter extends TokenFilterBase { export class IcuCollationTokenFilter extends TokenFilterBase { type: 'icu_collation' - alternate: IcuCollationAlternate - caseFirst: IcuCollationCaseFirst - caseLevel: boolean - country: string - decomposition: IcuCollationDecomposition - hiraganaQuaternaryMode: boolean - language: string - numeric: boolean - strength: IcuCollationStrength + alternate?: IcuCollationAlternate + caseFirst?: IcuCollationCaseFirst + caseLevel?: boolean + country?: string + decomposition?: IcuCollationDecomposition + hiraganaQuaternaryMode?: boolean + language?: string + numeric?: boolean + rules?: string + strength?: IcuCollationStrength variableTop?: string - variant: string + variant?: string } export class IcuAnalyzer { diff --git a/specification/_types/mapping/RuntimeFields.ts b/specification/_types/mapping/RuntimeFields.ts index d5cfcc08e2..9b13923e0a 100644 --- a/specification/_types/mapping/RuntimeFields.ts +++ b/specification/_types/mapping/RuntimeFields.ts @@ -21,7 +21,7 @@ import { Dictionary } from '@spec_utils/Dictionary' import { Field } from '@_types/common' import { Script } from '@_types/Scripting' -export type RuntimeFields = Dictionary +export type RuntimeFields = Dictionary export class RuntimeField { format?: string diff --git a/specification/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index 01d7c23ebb..2e4f0eab13 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -50,6 +50,7 @@ import { Suggester } from '@global/search/_types/suggester' import { TrackHits } from '@global/search/_types/hits' import { Operator } from '@_types/query_dsl/Operator' import { KnnQuery } from '@_types/Knn' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * @rest_spec_name async_search.submit @@ -128,6 +129,10 @@ export interface Request extends RequestBase { * @server_default false */ explain?: boolean + /** + * Configuration of search extensions defined by Elasticsearch plugins. + */ + ext?: Dictionary /** * Starting document offset. By default, you cannot page through more than 10,000 * hits using the from and size parameters. To page through more hits, use the diff --git a/specification/cluster/_types/ComponentTemplate.ts b/specification/cluster/_types/ComponentTemplate.ts index 065758b9a2..5b643b2d7c 100644 --- a/specification/cluster/_types/ComponentTemplate.ts +++ b/specification/cluster/_types/ComponentTemplate.ts @@ -39,7 +39,7 @@ export class ComponentTemplateSummary { /** @doc_id mapping-meta-field */ _meta?: Metadata version?: VersionNumber - settings: Dictionary + settings?: Dictionary mappings?: TypeMapping aliases?: Dictionary } diff --git a/specification/fleet/search/SearchRequest.ts b/specification/fleet/search/SearchRequest.ts index ebf308b0ab..2e15f4a39b 100644 --- a/specification/fleet/search/SearchRequest.ts +++ b/specification/fleet/search/SearchRequest.ts @@ -50,6 +50,7 @@ import { SlicedScroll } from '@_types/SlicedScroll' import { Sort, SortResults } from '@_types/sort' import { Duration } from '@_types/Time' import { Checkpoint } from '../_types/Checkpoints' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * The purpose of the fleet search api is to provide a search api where the search will only be executed @@ -138,6 +139,10 @@ export interface Request extends RequestBase { * @server_default false */ explain?: boolean + /** + * Configuration of search extensions defined by Elasticsearch plugins. + */ + ext?: Dictionary /** * Starting document offset. By default, you cannot page through more than 10,000 * hits using the from and size parameters. To page through more hits, use the diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 613765bcf6..2ee6226d6d 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -260,8 +260,7 @@ export enum IndexCheckOnStartup { } export class IndexVersioning { - created: VersionString - created_string?: VersionString + created?: VersionString } export class IndexSettingsLifecycle { diff --git a/specification/security/get_token/GetUserAccessTokenResponse.ts b/specification/security/get_token/GetUserAccessTokenResponse.ts index f68eb3c8c8..3f848098e0 100644 --- a/specification/security/get_token/GetUserAccessTokenResponse.ts +++ b/specification/security/get_token/GetUserAccessTokenResponse.ts @@ -26,7 +26,7 @@ export class Response { expires_in: long scope?: string type: string - refresh_token: string + refresh_token?: string kerberos_authentication_response_token?: string authentication: AuthenticatedUser }