Skip to content

Commit

Permalink
Update APIs to 8.4-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Aug 31, 2022
1 parent fb4a3c1 commit 32bee1e
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 180 deletions.
2 changes: 2 additions & 0 deletions docs/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3442,6 +3442,8 @@ client.security.samlServiceProviderMetadata(...)
[discrete]
==== update_api_key
Updates attributes of an existing API key.

https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-api-key.html[Endpoint documentation]
[source,ts]
----
client.security.updateApiKey(...)
Expand Down
143 changes: 0 additions & 143 deletions src/api/api/_internal.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/api/api/async_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class AsyncSearch {
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>
async submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['index']
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']
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']
const querystring: Record<string, any> = {}
// @ts-expect-error
const userBody: any = params?.body
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/fleet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class Fleet {
async search<TDocument = unknown> (this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptions): Promise<T.FleetSearchResponse<TDocument>>
async search<TDocument = unknown> (this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['index']
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']
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']
const querystring: Record<string, any> = {}
// @ts-expect-error
const userBody: any = params?.body
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default async function SearchApi<TDocument = unknown, TAggregations = Rec
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>>
export default async function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['index']
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']
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']
const querystring: Record<string, any> = {}
// @ts-expect-error
const userBody: any = params?.body
Expand Down
38 changes: 21 additions & 17 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ export interface MsearchMultisearchBody {
collapse?: SearchFieldCollapse
query?: QueryDslQueryContainer
explain?: boolean
ext?: Record<string, any>
stored_fields?: Fields
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
knn?: KnnQuery
Expand Down Expand Up @@ -987,6 +988,7 @@ export interface SearchRequest extends RequestBase {
aggs?: Record<string, AggregationsAggregationContainer>
collapse?: SearchFieldCollapse
explain?: boolean
ext?: Record<string, any>
from?: integer
highlight?: SearchHighlight
track_total_hits?: SearchTrackHits
Expand Down Expand Up @@ -1876,7 +1878,7 @@ export type EpochTime<Unit = unknown> = Unit

export interface ErrorCauseKeys {
type: string
reason: string
reason?: string
stack_trace?: string
caused_by?: ErrorCause
root_cause?: ErrorCause[]
Expand Down Expand Up @@ -2954,7 +2956,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 {
Expand Down Expand Up @@ -3953,17 +3955,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 {
Expand Down Expand Up @@ -4785,7 +4788,7 @@ export interface MappingRuntimeField {

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

export type MappingRuntimeFields = Record<Field, MappingRuntimeField | MappingRuntimeField[]>
export type MappingRuntimeFields = Record<Field, MappingRuntimeField>

export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
type: 'scaled_float'
Expand Down Expand Up @@ -5753,6 +5756,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
aggs?: Record<string, AggregationsAggregationContainer>
collapse?: SearchFieldCollapse
explain?: boolean
ext?: Record<string, any>
from?: integer
highlight?: SearchHighlight
track_total_hits?: SearchTrackHits
Expand Down Expand Up @@ -7879,7 +7883,7 @@ export interface ClusterComponentTemplateNode {
export interface ClusterComponentTemplateSummary {
_meta?: Metadata
version?: VersionNumber
settings: Record<IndexName, IndicesIndexSettings>
settings?: Record<IndexName, IndicesIndexSettings>
mappings?: MappingTypeMapping
aliases?: Record<string, IndicesAliasDefinition>
}
Expand Down Expand Up @@ -8812,6 +8816,7 @@ export interface FleetSearchRequest extends RequestBase {
aggs?: Record<string, AggregationsAggregationContainer>
collapse?: SearchFieldCollapse
explain?: boolean
ext?: Record<string, any>
from?: integer
highlight?: SearchHighlight
track_total_hits?: SearchTrackHits
Expand Down Expand Up @@ -9329,8 +9334,7 @@ export interface IndicesIndexTemplateSummary {
}

export interface IndicesIndexVersioning {
created: VersionString
created_string?: VersionString
created?: VersionString
}

export interface IndicesIndexingPressure {
Expand Down Expand Up @@ -15381,7 +15385,7 @@ export interface SecurityGetTokenResponse {
expires_in: long
scope?: string
type: string
refresh_token: string
refresh_token?: string
kerberos_authentication_response_token?: string
authentication: SecurityGetTokenAuthenticatedUser
}
Expand Down
Loading

0 comments on commit 32bee1e

Please sign in to comment.