Auto-generated code for main (#2156)
This commit is contained in:
@ -1821,7 +1821,7 @@ export default class Ml {
|
||||
async putTrainedModel (this: That, params: T.MlPutTrainedModelRequest | TB.MlPutTrainedModelRequest, options?: TransportRequestOptions): Promise<T.MlPutTrainedModelResponse>
|
||||
async putTrainedModel (this: That, params: T.MlPutTrainedModelRequest | TB.MlPutTrainedModelRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['model_id']
|
||||
const acceptedBody: string[] = ['compressed_definition', 'definition', 'description', 'inference_config', 'input', 'metadata', 'model_type', 'model_size_bytes', 'platform_architecture', 'tags']
|
||||
const acceptedBody: string[] = ['compressed_definition', 'definition', 'description', 'inference_config', 'input', 'metadata', 'model_type', 'model_size_bytes', 'platform_architecture', 'tags', 'prefix_strings']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
|
||||
@ -1502,7 +1502,7 @@ export default class Security {
|
||||
async queryApiKeys (this: That, params?: T.SecurityQueryApiKeysRequest | TB.SecurityQueryApiKeysRequest, options?: TransportRequestOptions): Promise<T.SecurityQueryApiKeysResponse>
|
||||
async queryApiKeys (this: That, params?: T.SecurityQueryApiKeysRequest | TB.SecurityQueryApiKeysRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const acceptedBody: string[] = ['query', 'from', 'sort', 'size', 'search_after']
|
||||
const acceptedBody: string[] = ['aggregations', 'aggs', 'query', 'from', 'sort', 'size', 'search_after']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
|
||||
@ -5095,6 +5095,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
|
||||
|
||||
export interface MappingObjectProperty extends MappingCorePropertyBase {
|
||||
enabled?: boolean
|
||||
subobjects?: boolean
|
||||
type?: 'object'
|
||||
}
|
||||
|
||||
@ -5269,6 +5270,7 @@ export interface MappingTypeMapping {
|
||||
_source?: MappingSourceField
|
||||
runtime?: Record<string, MappingRuntimeField>
|
||||
enabled?: boolean
|
||||
subobjects?: boolean
|
||||
_data_stream_timestamp?: MappingDataStreamTimestamp
|
||||
}
|
||||
|
||||
@ -9747,7 +9749,7 @@ export interface IndicesIndexSettingsKeys {
|
||||
settings?: IndicesIndexSettings
|
||||
time_series?: IndicesIndexSettingsTimeSeries
|
||||
queries?: IndicesQueries
|
||||
similarity?: IndicesSettingsSimilarity
|
||||
similarity?: Record<string, IndicesSettingsSimilarity>
|
||||
mapping?: IndicesMappingLimitSettings
|
||||
'indexing.slowlog'?: IndicesIndexingSlowlogSettings
|
||||
indexing_pressure?: IndicesIndexingPressure
|
||||
@ -9925,55 +9927,52 @@ export interface IndicesSettingsSearch {
|
||||
slowlog?: IndicesSlowlogSettings
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarity {
|
||||
bm25?: IndicesSettingsSimilarityBm25
|
||||
dfi?: IndicesSettingsSimilarityDfi
|
||||
dfr?: IndicesSettingsSimilarityDfr
|
||||
ib?: IndicesSettingsSimilarityIb
|
||||
lmd?: IndicesSettingsSimilarityLmd
|
||||
lmj?: IndicesSettingsSimilarityLmj
|
||||
scripted_tfidf?: IndicesSettingsSimilarityScriptedTfidf
|
||||
}
|
||||
export type IndicesSettingsSimilarity = IndicesSettingsSimilarityBm25 | IndicesSettingsSimilarityBoolean | IndicesSettingsSimilarityDfi | IndicesSettingsSimilarityDfr | IndicesSettingsSimilarityIb | IndicesSettingsSimilarityLmd | IndicesSettingsSimilarityLmj | IndicesSettingsSimilarityScripted
|
||||
|
||||
export interface IndicesSettingsSimilarityBm25 {
|
||||
b: double
|
||||
discount_overlaps: boolean
|
||||
k1: double
|
||||
type: 'BM25'
|
||||
b?: double
|
||||
discount_overlaps?: boolean
|
||||
k1?: double
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityBoolean {
|
||||
type: 'boolean'
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityDfi {
|
||||
independence_measure: DFIIndependenceMeasure
|
||||
type: 'DFI'
|
||||
independence_measure: DFIIndependenceMeasure
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityDfr {
|
||||
type: 'DFR'
|
||||
after_effect: DFRAfterEffect
|
||||
basic_model: DFRBasicModel
|
||||
normalization: Normalization
|
||||
type: 'DFR'
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityIb {
|
||||
type: 'IB'
|
||||
distribution: IBDistribution
|
||||
lambda: IBLambda
|
||||
normalization: Normalization
|
||||
type: 'IB'
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityLmd {
|
||||
mu: integer
|
||||
type: 'LMDirichlet'
|
||||
mu?: double
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityLmj {
|
||||
lambda: double
|
||||
type: 'LMJelinekMercer'
|
||||
lambda?: double
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityScriptedTfidf {
|
||||
script: Script
|
||||
export interface IndicesSettingsSimilarityScripted {
|
||||
type: 'scripted'
|
||||
script: Script
|
||||
weight_script?: Script
|
||||
}
|
||||
|
||||
export interface IndicesSlowlogSettings {
|
||||
@ -13216,8 +13215,8 @@ export interface MlTrainedModelLocationIndex {
|
||||
}
|
||||
|
||||
export interface MlTrainedModelPrefixStrings {
|
||||
ingest: string
|
||||
search: string
|
||||
ingest?: string
|
||||
search?: string
|
||||
}
|
||||
|
||||
export interface MlTrainedModelSizeStats {
|
||||
@ -14154,6 +14153,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
|
||||
model_size_bytes?: long
|
||||
platform_architecture?: string
|
||||
tags?: string[]
|
||||
prefix_strings?: MlTrainedModelPrefixStrings
|
||||
}
|
||||
|
||||
export type MlPutTrainedModelResponse = MlTrainedModelConfig
|
||||
@ -16554,9 +16554,50 @@ export interface SecurityPutUserResponse {
|
||||
created: boolean
|
||||
}
|
||||
|
||||
export type SecurityQueryApiKeysAPIKeyAggregate = AggregationsCardinalityAggregate | AggregationsValueCountAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsFilterAggregate | AggregationsFiltersAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsCompositeAggregate
|
||||
|
||||
export interface SecurityQueryApiKeysAPIKeyAggregationContainer {
|
||||
aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
meta?: Metadata
|
||||
cardinality?: AggregationsCardinalityAggregation
|
||||
composite?: AggregationsCompositeAggregation
|
||||
date_range?: AggregationsDateRangeAggregation
|
||||
filter?: SecurityQueryApiKeysAPIKeyQueryContainer
|
||||
filters?: SecurityQueryApiKeysAPIKeyFiltersAggregation
|
||||
missing?: AggregationsMissingAggregation
|
||||
range?: AggregationsRangeAggregation
|
||||
terms?: AggregationsTermsAggregation
|
||||
value_count?: AggregationsValueCountAggregation
|
||||
}
|
||||
|
||||
export interface SecurityQueryApiKeysAPIKeyFiltersAggregation extends AggregationsBucketAggregationBase {
|
||||
filters?: AggregationsBuckets<SecurityQueryApiKeysAPIKeyQueryContainer>
|
||||
other_bucket?: boolean
|
||||
other_bucket_key?: string
|
||||
keyed?: boolean
|
||||
}
|
||||
|
||||
export interface SecurityQueryApiKeysAPIKeyQueryContainer {
|
||||
bool?: QueryDslBoolQuery
|
||||
exists?: QueryDslExistsQuery
|
||||
ids?: QueryDslIdsQuery
|
||||
match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>
|
||||
match_all?: QueryDslMatchAllQuery
|
||||
prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>
|
||||
range?: Partial<Record<Field, QueryDslRangeQuery>>
|
||||
simple_query_string?: QueryDslSimpleQueryStringQuery
|
||||
term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>
|
||||
terms?: QueryDslTermsQuery
|
||||
wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>
|
||||
}
|
||||
|
||||
export interface SecurityQueryApiKeysRequest extends RequestBase {
|
||||
with_limited_by?: boolean
|
||||
query?: QueryDslQueryContainer
|
||||
aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
query?: SecurityQueryApiKeysAPIKeyQueryContainer
|
||||
from?: integer
|
||||
sort?: Sort
|
||||
size?: integer
|
||||
@ -16567,6 +16608,7 @@ export interface SecurityQueryApiKeysResponse {
|
||||
total: integer
|
||||
count: integer
|
||||
api_keys: SecurityApiKey[]
|
||||
aggregations?: Record<AggregateName, SecurityQueryApiKeysAPIKeyAggregate>
|
||||
}
|
||||
|
||||
export interface SecuritySamlAuthenticateRequest extends RequestBase {
|
||||
|
||||
@ -5168,6 +5168,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
|
||||
|
||||
export interface MappingObjectProperty extends MappingCorePropertyBase {
|
||||
enabled?: boolean
|
||||
subobjects?: boolean
|
||||
type?: 'object'
|
||||
}
|
||||
|
||||
@ -5342,6 +5343,7 @@ export interface MappingTypeMapping {
|
||||
_source?: MappingSourceField
|
||||
runtime?: Record<string, MappingRuntimeField>
|
||||
enabled?: boolean
|
||||
subobjects?: boolean
|
||||
_data_stream_timestamp?: MappingDataStreamTimestamp
|
||||
}
|
||||
|
||||
@ -9873,7 +9875,7 @@ export interface IndicesIndexSettingsKeys {
|
||||
settings?: IndicesIndexSettings
|
||||
time_series?: IndicesIndexSettingsTimeSeries
|
||||
queries?: IndicesQueries
|
||||
similarity?: IndicesSettingsSimilarity
|
||||
similarity?: Record<string, IndicesSettingsSimilarity>
|
||||
mapping?: IndicesMappingLimitSettings
|
||||
'indexing.slowlog'?: IndicesIndexingSlowlogSettings
|
||||
indexing_pressure?: IndicesIndexingPressure
|
||||
@ -10051,55 +10053,52 @@ export interface IndicesSettingsSearch {
|
||||
slowlog?: IndicesSlowlogSettings
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarity {
|
||||
bm25?: IndicesSettingsSimilarityBm25
|
||||
dfi?: IndicesSettingsSimilarityDfi
|
||||
dfr?: IndicesSettingsSimilarityDfr
|
||||
ib?: IndicesSettingsSimilarityIb
|
||||
lmd?: IndicesSettingsSimilarityLmd
|
||||
lmj?: IndicesSettingsSimilarityLmj
|
||||
scripted_tfidf?: IndicesSettingsSimilarityScriptedTfidf
|
||||
}
|
||||
export type IndicesSettingsSimilarity = IndicesSettingsSimilarityBm25 | IndicesSettingsSimilarityBoolean | IndicesSettingsSimilarityDfi | IndicesSettingsSimilarityDfr | IndicesSettingsSimilarityIb | IndicesSettingsSimilarityLmd | IndicesSettingsSimilarityLmj | IndicesSettingsSimilarityScripted
|
||||
|
||||
export interface IndicesSettingsSimilarityBm25 {
|
||||
b: double
|
||||
discount_overlaps: boolean
|
||||
k1: double
|
||||
type: 'BM25'
|
||||
b?: double
|
||||
discount_overlaps?: boolean
|
||||
k1?: double
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityBoolean {
|
||||
type: 'boolean'
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityDfi {
|
||||
independence_measure: DFIIndependenceMeasure
|
||||
type: 'DFI'
|
||||
independence_measure: DFIIndependenceMeasure
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityDfr {
|
||||
type: 'DFR'
|
||||
after_effect: DFRAfterEffect
|
||||
basic_model: DFRBasicModel
|
||||
normalization: Normalization
|
||||
type: 'DFR'
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityIb {
|
||||
type: 'IB'
|
||||
distribution: IBDistribution
|
||||
lambda: IBLambda
|
||||
normalization: Normalization
|
||||
type: 'IB'
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityLmd {
|
||||
mu: integer
|
||||
type: 'LMDirichlet'
|
||||
mu?: double
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityLmj {
|
||||
lambda: double
|
||||
type: 'LMJelinekMercer'
|
||||
lambda?: double
|
||||
}
|
||||
|
||||
export interface IndicesSettingsSimilarityScriptedTfidf {
|
||||
script: Script
|
||||
export interface IndicesSettingsSimilarityScripted {
|
||||
type: 'scripted'
|
||||
script: Script
|
||||
weight_script?: Script
|
||||
}
|
||||
|
||||
export interface IndicesSlowlogSettings {
|
||||
@ -13404,8 +13403,8 @@ export interface MlTrainedModelLocationIndex {
|
||||
}
|
||||
|
||||
export interface MlTrainedModelPrefixStrings {
|
||||
ingest: string
|
||||
search: string
|
||||
ingest?: string
|
||||
search?: string
|
||||
}
|
||||
|
||||
export interface MlTrainedModelSizeStats {
|
||||
@ -14417,6 +14416,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
|
||||
model_size_bytes?: long
|
||||
platform_architecture?: string
|
||||
tags?: string[]
|
||||
prefix_strings?: MlTrainedModelPrefixStrings
|
||||
}
|
||||
}
|
||||
|
||||
@ -16910,11 +16910,52 @@ export interface SecurityPutUserResponse {
|
||||
created: boolean
|
||||
}
|
||||
|
||||
export type SecurityQueryApiKeysAPIKeyAggregate = AggregationsCardinalityAggregate | AggregationsValueCountAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsFilterAggregate | AggregationsFiltersAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsCompositeAggregate
|
||||
|
||||
export interface SecurityQueryApiKeysAPIKeyAggregationContainer {
|
||||
aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
meta?: Metadata
|
||||
cardinality?: AggregationsCardinalityAggregation
|
||||
composite?: AggregationsCompositeAggregation
|
||||
date_range?: AggregationsDateRangeAggregation
|
||||
filter?: SecurityQueryApiKeysAPIKeyQueryContainer
|
||||
filters?: SecurityQueryApiKeysAPIKeyFiltersAggregation
|
||||
missing?: AggregationsMissingAggregation
|
||||
range?: AggregationsRangeAggregation
|
||||
terms?: AggregationsTermsAggregation
|
||||
value_count?: AggregationsValueCountAggregation
|
||||
}
|
||||
|
||||
export interface SecurityQueryApiKeysAPIKeyFiltersAggregation extends AggregationsBucketAggregationBase {
|
||||
filters?: AggregationsBuckets<SecurityQueryApiKeysAPIKeyQueryContainer>
|
||||
other_bucket?: boolean
|
||||
other_bucket_key?: string
|
||||
keyed?: boolean
|
||||
}
|
||||
|
||||
export interface SecurityQueryApiKeysAPIKeyQueryContainer {
|
||||
bool?: QueryDslBoolQuery
|
||||
exists?: QueryDslExistsQuery
|
||||
ids?: QueryDslIdsQuery
|
||||
match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>
|
||||
match_all?: QueryDslMatchAllQuery
|
||||
prefix?: Partial<Record<Field, QueryDslPrefixQuery | string>>
|
||||
range?: Partial<Record<Field, QueryDslRangeQuery>>
|
||||
simple_query_string?: QueryDslSimpleQueryStringQuery
|
||||
term?: Partial<Record<Field, QueryDslTermQuery | FieldValue>>
|
||||
terms?: QueryDslTermsQuery
|
||||
wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>
|
||||
}
|
||||
|
||||
export interface SecurityQueryApiKeysRequest extends RequestBase {
|
||||
with_limited_by?: boolean
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
query?: QueryDslQueryContainer
|
||||
aggregations?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, SecurityQueryApiKeysAPIKeyAggregationContainer>
|
||||
query?: SecurityQueryApiKeysAPIKeyQueryContainer
|
||||
from?: integer
|
||||
sort?: Sort
|
||||
size?: integer
|
||||
@ -16926,6 +16967,7 @@ export interface SecurityQueryApiKeysResponse {
|
||||
total: integer
|
||||
count: integer
|
||||
api_keys: SecurityApiKey[]
|
||||
aggregations?: Record<AggregateName, SecurityQueryApiKeysAPIKeyAggregate>
|
||||
}
|
||||
|
||||
export interface SecuritySamlAuthenticateRequest extends RequestBase {
|
||||
|
||||
Reference in New Issue
Block a user