Skip to content

Commit 32bee1e

Browse files
committed
Update APIs to 8.4-SNAPSHOT
1 parent fb4a3c1 commit 32bee1e

File tree

7 files changed

+47
-180
lines changed

7 files changed

+47
-180
lines changed

docs/reference.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3442,6 +3442,8 @@ client.security.samlServiceProviderMetadata(...)
34423442
[discrete]
34433443
==== update_api_key
34443444
Updates attributes of an existing API key.
3445+
3446+
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-api-key.html[Endpoint documentation]
34453447
[source,ts]
34463448
----
34473449
client.security.updateApiKey(...)

src/api/api/_internal.ts

Lines changed: 0 additions & 143 deletions
This file was deleted.

src/api/api/async_search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default class AsyncSearch {
114114
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>
115115
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<any> {
116116
const acceptedPath: string[] = ['index']
117-
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
117+
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
118118
const querystring: Record<string, any> = {}
119119
// @ts-expect-error
120120
const userBody: any = params?.body

src/api/api/fleet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default class Fleet {
104104
async search<TDocument = unknown> (this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptions): Promise<T.FleetSearchResponse<TDocument>>
105105
async search<TDocument = unknown> (this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptions): Promise<any> {
106106
const acceptedPath: string[] = ['index']
107-
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
107+
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
108108
const querystring: Record<string, any> = {}
109109
// @ts-expect-error
110110
const userBody: any = params?.body

src/api/api/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default async function SearchApi<TDocument = unknown, TAggregations = Rec
4242
export default async function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise<T.SearchResponse<TDocument, TAggregations>>
4343
export default async function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise<any> {
4444
const acceptedPath: string[] = ['index']
45-
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
45+
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
4646
const querystring: Record<string, any> = {}
4747
// @ts-expect-error
4848
const userBody: any = params?.body

src/api/types.ts

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ export interface MsearchMultisearchBody {
560560
collapse?: SearchFieldCollapse
561561
query?: QueryDslQueryContainer
562562
explain?: boolean
563+
ext?: Record<string, any>
563564
stored_fields?: Fields
564565
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
565566
knn?: KnnQuery
@@ -987,6 +988,7 @@ export interface SearchRequest extends RequestBase {
987988
aggs?: Record<string, AggregationsAggregationContainer>
988989
collapse?: SearchFieldCollapse
989990
explain?: boolean
991+
ext?: Record<string, any>
990992
from?: integer
991993
highlight?: SearchHighlight
992994
track_total_hits?: SearchTrackHits
@@ -1876,7 +1878,7 @@ export type EpochTime<Unit = unknown> = Unit
18761878

18771879
export interface ErrorCauseKeys {
18781880
type: string
1879-
reason: string
1881+
reason?: string
18801882
stack_trace?: string
18811883
caused_by?: ErrorCause
18821884
root_cause?: ErrorCause[]
@@ -2954,7 +2956,7 @@ export interface AggregationsFormattableMetricAggregation extends AggregationsMe
29542956
export type AggregationsGapPolicy = 'skip' | 'insert_zeros'
29552957

29562958
export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
2957-
bounds: GeoBounds
2959+
bounds?: GeoBounds
29582960
}
29592961

29602962
export interface AggregationsGeoBoundsAggregation extends AggregationsMetricAggregationBase {
@@ -3953,17 +3955,18 @@ export type AnalysisIcuCollationStrength = 'primary' | 'secondary' | 'tertiary'
39533955

39543956
export interface AnalysisIcuCollationTokenFilter extends AnalysisTokenFilterBase {
39553957
type: 'icu_collation'
3956-
alternate: AnalysisIcuCollationAlternate
3957-
caseFirst: AnalysisIcuCollationCaseFirst
3958-
caseLevel: boolean
3959-
country: string
3960-
decomposition: AnalysisIcuCollationDecomposition
3961-
hiraganaQuaternaryMode: boolean
3962-
language: string
3963-
numeric: boolean
3964-
strength: AnalysisIcuCollationStrength
3958+
alternate?: AnalysisIcuCollationAlternate
3959+
caseFirst?: AnalysisIcuCollationCaseFirst
3960+
caseLevel?: boolean
3961+
country?: string
3962+
decomposition?: AnalysisIcuCollationDecomposition
3963+
hiraganaQuaternaryMode?: boolean
3964+
language?: string
3965+
numeric?: boolean
3966+
rules?: string
3967+
strength?: AnalysisIcuCollationStrength
39653968
variableTop?: string
3966-
variant: string
3969+
variant?: string
39673970
}
39683971

39693972
export interface AnalysisIcuFoldingTokenFilter extends AnalysisTokenFilterBase {
@@ -4785,7 +4788,7 @@ export interface MappingRuntimeField {
47854788

47864789
export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long'
47874790

4788-
export type MappingRuntimeFields = Record<Field, MappingRuntimeField | MappingRuntimeField[]>
4791+
export type MappingRuntimeFields = Record<Field, MappingRuntimeField>
47894792

47904793
export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
47914794
type: 'scaled_float'
@@ -5753,6 +5756,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
57535756
aggs?: Record<string, AggregationsAggregationContainer>
57545757
collapse?: SearchFieldCollapse
57555758
explain?: boolean
5759+
ext?: Record<string, any>
57565760
from?: integer
57575761
highlight?: SearchHighlight
57585762
track_total_hits?: SearchTrackHits
@@ -7879,7 +7883,7 @@ export interface ClusterComponentTemplateNode {
78797883
export interface ClusterComponentTemplateSummary {
78807884
_meta?: Metadata
78817885
version?: VersionNumber
7882-
settings: Record<IndexName, IndicesIndexSettings>
7886+
settings?: Record<IndexName, IndicesIndexSettings>
78837887
mappings?: MappingTypeMapping
78847888
aliases?: Record<string, IndicesAliasDefinition>
78857889
}
@@ -8812,6 +8816,7 @@ export interface FleetSearchRequest extends RequestBase {
88128816
aggs?: Record<string, AggregationsAggregationContainer>
88138817
collapse?: SearchFieldCollapse
88148818
explain?: boolean
8819+
ext?: Record<string, any>
88158820
from?: integer
88168821
highlight?: SearchHighlight
88178822
track_total_hits?: SearchTrackHits
@@ -9329,8 +9334,7 @@ export interface IndicesIndexTemplateSummary {
93299334
}
93309335

93319336
export interface IndicesIndexVersioning {
9332-
created: VersionString
9333-
created_string?: VersionString
9337+
created?: VersionString
93349338
}
93359339

93369340
export interface IndicesIndexingPressure {
@@ -15381,7 +15385,7 @@ export interface SecurityGetTokenResponse {
1538115385
expires_in: long
1538215386
scope?: string
1538315387
type: string
15384-
refresh_token: string
15388+
refresh_token?: string
1538515389
kerberos_authentication_response_token?: string
1538615390
authentication: SecurityGetTokenAuthenticatedUser
1538715391
}

0 commit comments

Comments
 (0)