diff --git a/output/schema/schema.json b/output/schema/schema.json index 31d131c9ac..570deb4a80 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -18694,7 +18694,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L202-L205" + "specLocation": "_global/msearch/types.ts#L207-L210" }, { "generics": [ @@ -18744,7 +18744,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L192-L195" + "specLocation": "_global/msearch/types.ts#L197-L200" }, { "kind": "interface", @@ -18814,6 +18814,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", @@ -19163,7 +19182,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L69-L190" + "specLocation": "_global/msearch/types.ts#L70-L195" }, { "description": "Contains parameters used to limit or change the subsequent search body request.", @@ -19295,7 +19314,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L51-L66" + "specLocation": "_global/msearch/types.ts#L52-L67" }, { "attachedBehaviors": [ @@ -19517,7 +19536,7 @@ "name": "RequestItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L46-L49", + "specLocation": "_global/msearch/types.ts#L47-L50", "type": { "items": [ { @@ -19587,7 +19606,7 @@ "name": "ResponseItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L197-L200", + "specLocation": "_global/msearch/types.ts#L202-L205", "type": { "items": [ { @@ -22828,6 +22847,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", @@ -23775,7 +23813,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L51-L236" + "specLocation": "_global/search/SearchRequest.ts#L51-L240" }, { "body": { @@ -32401,7 +32439,7 @@ { "description": "A human-readable explanation of the error, in english", "name": "reason", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -42174,7 +42212,7 @@ "properties": [ { "name": "bounds", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50381,7 +50419,7 @@ } } ], - "specLocation": "_types/analysis/icu-plugin.ts#L66-L70" + "specLocation": "_types/analysis/icu-plugin.ts#L67-L71" }, { "kind": "enum", @@ -50397,7 +50435,7 @@ "name": "IcuCollationAlternate", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L88-L91" + "specLocation": "_types/analysis/icu-plugin.ts#L89-L92" }, { "kind": "enum", @@ -50413,7 +50451,7 @@ "name": "IcuCollationCaseFirst", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L93-L96" + "specLocation": "_types/analysis/icu-plugin.ts#L94-L97" }, { "kind": "enum", @@ -50429,7 +50467,7 @@ "name": "IcuCollationDecomposition", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L98-L101" + "specLocation": "_types/analysis/icu-plugin.ts#L99-L102" }, { "kind": "enum", @@ -50454,7 +50492,7 @@ "name": "IcuCollationStrength", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L103-L109" + "specLocation": "_types/analysis/icu-plugin.ts#L104-L110" }, { "inherits": { @@ -50479,7 +50517,7 @@ }, { "name": "alternate", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50490,7 +50528,7 @@ }, { "name": "caseFirst", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50501,7 +50539,7 @@ }, { "name": "caseLevel", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50512,7 +50550,7 @@ }, { "name": "country", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50523,7 +50561,7 @@ }, { "name": "decomposition", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50534,7 +50572,7 @@ }, { "name": "hiraganaQuaternaryMode", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50545,7 +50583,7 @@ }, { "name": "language", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50556,7 +50594,7 @@ }, { "name": "numeric", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50565,9 +50603,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": { @@ -50589,7 +50638,7 @@ }, { "name": "variant", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -50599,7 +50648,7 @@ } } ], - "specLocation": "_types/analysis/icu-plugin.ts#L51-L64" + "specLocation": "_types/analysis/icu-plugin.ts#L51-L65" }, { "inherits": { @@ -50696,7 +50745,7 @@ "name": "IcuNormalizationMode", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L77-L80" + "specLocation": "_types/analysis/icu-plugin.ts#L78-L81" }, { "inherits": { @@ -50750,7 +50799,7 @@ "name": "IcuNormalizationType", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L82-L86" + "specLocation": "_types/analysis/icu-plugin.ts#L83-L87" }, { "inherits": { @@ -50801,7 +50850,7 @@ "name": "IcuTransformDirection", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/icu-plugin.ts#L72-L75" + "specLocation": "_types/analysis/icu-plugin.ts#L73-L76" }, { "inherits": { @@ -67542,6 +67591,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", @@ -68511,7 +68579,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L53-L243" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L53-L247" }, { "body": { @@ -84307,7 +84375,7 @@ }, { "name": "settings", - "required": true, + "required": false, "type": { "key": { "kind": "instance_of", @@ -96204,7 +96272,7 @@ "properties": [ { "name": "created", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -147579,7 +147647,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 14f4be9953..5fa6a04c86 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -551,6 +551,7 @@ export interface MsearchMultisearchBody { collapse?: SearchFieldCollapse query?: QueryDslQueryContainer explain?: boolean + ext?: Record stored_fields?: Fields docvalue_fields?: (QueryDslFieldAndFormat | Field)[] from?: integer @@ -1012,6 +1013,7 @@ export interface SearchRequest extends RequestBase { aggs?: Record collapse?: SearchFieldCollapse explain?: boolean + ext?: Record from?: integer highlight?: SearchHighlight track_total_hits?: SearchTrackHits @@ -1925,7 +1927,7 @@ export type EpochMillis = string | long export interface ErrorCauseKeys { type: string - reason: string + reason?: string stack_trace?: string caused_by?: ErrorCause root_cause?: ErrorCause[] @@ -2926,7 +2928,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 { @@ -3920,17 +3922,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 { @@ -5734,6 +5737,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase { aggs?: Record collapse?: SearchFieldCollapse explain?: boolean + ext?: Record from?: integer highlight?: SearchHighlight track_total_hits?: SearchTrackHits @@ -7867,7 +7871,7 @@ export interface ClusterComponentTemplateNode { export interface ClusterComponentTemplateSummary { _meta?: Metadata version?: VersionNumber - settings: Record + settings?: Record mappings?: MappingTypeMapping aliases?: Record } @@ -9149,7 +9153,7 @@ export interface IndicesIndexState { } export interface IndicesIndexVersioning { - created: VersionString + created?: VersionString } export interface IndicesIndexingPressure { @@ -14805,7 +14809,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 d525038252..fe3bce08cf 100644 --- a/specification/_global/msearch/types.ts +++ b/specification/_global/msearch/types.ts @@ -42,6 +42,7 @@ import { SourceConfig } from '@global/search/_types/SourceFilter' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { ScriptField } from '@_types/Scripting' import { SlicedScroll } from '@_types/SlicedScroll' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * @codegen_names header, body @@ -79,6 +80,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 263932721c..428d92bdba 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -47,7 +47,7 @@ import { Suggester } from './_types/suggester' import { TrackHits } from '@global/search/_types/hits' import { Operator } from '@_types/query_dsl/Operator' import { Sort, SortResults } from '@_types/sort' - +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * @rest_spec_name search * @since 0.0.0 @@ -119,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 c49da4b169..d37e60c291 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 42616d0e33..1920c91c76 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/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index 2191c83d01..00dff80436 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -49,7 +49,7 @@ import { import { Suggester } from '@global/search/_types/suggester' import { TrackHits } from '@global/search/_types/hits' import { Operator } from '@_types/query_dsl/Operator' - +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** * @rest_spec_name async_search.submit * @since 7.7.0 @@ -126,6 +126,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 fad73a93f9..5cf9196ba8 100644 --- a/specification/cluster/_types/ComponentTemplate.ts +++ b/specification/cluster/_types/ComponentTemplate.ts @@ -39,7 +39,7 @@ export class ComponentTemplateSummary { /** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */ _meta?: Metadata version?: VersionNumber - settings: Dictionary + settings?: Dictionary mappings?: TypeMapping aliases?: Dictionary } diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index d4205b2054..e568bd05e2 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -331,7 +331,7 @@ export enum IndexCheckOnStartup { } export class IndexVersioning { - created: 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 }