Skip to content

Commit a1b3412

Browse files
chore: Auto-generated code for main (#45)
Auto-generated API code Co-authored-by: Josh Mock <[email protected]>
1 parent ffec2b1 commit a1b3412

File tree

3 files changed

+201
-57
lines changed

3 files changed

+201
-57
lines changed

docs/reference.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ a new date field is added instead of string.
25402540
not used at all by Elasticsearch, but can be used to store
25412541
application-specific metadata.
25422542
** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields.
2543-
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
2543+
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
25442544

25452545
- Field name
25462546
- Field data type

src/api/types.ts

Lines changed: 99 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ export interface SearchInnerHits {
14371437
fields?: Fields
14381438
sort?: Sort
14391439
_source?: SearchSourceConfig
1440-
stored_field?: Fields
1440+
stored_fields?: Fields
14411441
track_scores?: boolean
14421442
version?: boolean
14431443
}
@@ -2251,7 +2251,7 @@ export interface InlineGetKeys<TDocument = unknown> {
22512251
_seq_no?: SequenceNumber
22522252
_primary_term?: long
22532253
_routing?: Routing
2254-
_source: TDocument
2254+
_source?: TDocument
22552255
}
22562256
export type InlineGet<TDocument = unknown> = InlineGetKeys<TDocument>
22572257
& { [property: string]: any }
@@ -4859,7 +4859,7 @@ export interface MappingDenseVectorIndexOptions {
48594859

48604860
export interface MappingDenseVectorProperty extends MappingPropertyBase {
48614861
type: 'dense_vector'
4862-
dims: integer
4862+
dims?: integer
48634863
similarity?: string
48644864
index?: boolean
48654865
index_options?: MappingDenseVectorIndexOptions
@@ -4960,6 +4960,9 @@ export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
49604960
ignore_malformed?: boolean
49614961
ignore_z_value?: boolean
49624962
null_value?: GeoLocation
4963+
index?: boolean
4964+
on_script_error?: MappingOnScriptError
4965+
script?: Script
49634966
type: 'geo_point'
49644967
}
49654968

@@ -5109,6 +5112,7 @@ export interface MappingRankFeatureProperty extends MappingPropertyBase {
51095112
}
51105113

51115114
export interface MappingRankFeaturesProperty extends MappingPropertyBase {
5115+
positive_score_impact?: boolean
51125116
type: 'rank_features'
51135117
}
51145118

@@ -8972,7 +8976,7 @@ export interface EnrichExecutePolicyRequest extends RequestBase {
89728976
}
89738977

89748978
export interface EnrichExecutePolicyResponse {
8975-
status: EnrichExecutePolicyExecuteEnrichPolicyStatus
8979+
status?: EnrichExecutePolicyExecuteEnrichPolicyStatus
89768980
task_id?: TaskId
89778981
}
89788982

@@ -10147,7 +10151,7 @@ export interface IndicesDataStreamsStatsDataStreamsStatsItem {
1014710151
data_stream: Name
1014810152
maximum_timestamp: EpochTime<UnitMillis>
1014910153
store_size?: ByteSize
10150-
store_size_bytes: integer
10154+
store_size_bytes: long
1015110155
}
1015210156

1015310157
export interface IndicesDataStreamsStatsRequest extends RequestBase {
@@ -10161,7 +10165,7 @@ export interface IndicesDataStreamsStatsResponse {
1016110165
data_stream_count: integer
1016210166
data_streams: IndicesDataStreamsStatsDataStreamsStatsItem[]
1016310167
total_store_sizes?: ByteSize
10164-
total_store_size_bytes: integer
10168+
total_store_size_bytes: long
1016510169
}
1016610170

1016710171
export interface IndicesDeleteRequest extends RequestBase {
@@ -15804,7 +15808,7 @@ export interface SecurityRoleDescriptor {
1580415808
applications?: SecurityApplicationPrivileges[]
1580515809
metadata?: Metadata
1580615810
run_as?: string[]
15807-
transient_metadata?: SecurityTransientMetadataConfig
15811+
transient_metadata?: Record<string, any>
1580815812
}
1580915813

1581015814
export interface SecurityRoleDescriptorRead {
@@ -15815,7 +15819,7 @@ export interface SecurityRoleDescriptorRead {
1581515819
applications?: SecurityApplicationPrivileges[]
1581615820
metadata?: Metadata
1581715821
run_as?: string[]
15818-
transient_metadata?: SecurityTransientMetadataConfig
15822+
transient_metadata?: Record<string, any>
1581915823
}
1582015824

1582115825
export interface SecurityRoleMapping {
@@ -15854,10 +15858,6 @@ export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | Secu
1585415858

1585515859
export type SecurityTemplateFormat = 'string' | 'json'
1585615860

15857-
export interface SecurityTransientMetadataConfig {
15858-
enabled: boolean
15859-
}
15860-
1586115861
export interface SecurityUser {
1586215862
email?: string | null
1586315863
full_name?: Name | null
@@ -16171,7 +16171,7 @@ export interface SecurityGetRoleRole {
1617116171
indices: SecurityIndicesPrivileges[]
1617216172
metadata: Metadata
1617316173
run_as: string[]
16174-
transient_metadata: SecurityTransientMetadataConfig
16174+
transient_metadata?: Record<string, any>
1617516175
applications: SecurityApplicationPrivileges[]
1617616176
role_templates?: SecurityRoleTemplate[]
1617716177
}
@@ -16420,7 +16420,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
1642016420
indices?: SecurityIndicesPrivileges[]
1642116421
metadata?: Metadata
1642216422
run_as?: string[]
16423-
transient_metadata?: SecurityTransientMetadataConfig
16423+
transient_metadata?: Record<string, any>
1642416424
}
1642516425

1642616426
export interface SecurityPutRoleResponse {
@@ -16777,11 +16777,37 @@ export interface SlmStopRequest extends RequestBase {
1677716777

1677816778
export type SlmStopResponse = AcknowledgedResponseBase
1677916779

16780+
export interface SnapshotAzureRepository extends SnapshotRepositoryBase {
16781+
type: 'azure'
16782+
settings: SnapshotAzureRepositorySettings
16783+
}
16784+
16785+
export interface SnapshotAzureRepositorySettings extends SnapshotRepositorySettingsBase {
16786+
client?: string
16787+
container?: string
16788+
base_path?: string
16789+
readonly?: boolean
16790+
location_mode?: string
16791+
}
16792+
1678016793
export interface SnapshotFileCountSnapshotStats {
1678116794
file_count: integer
1678216795
size_in_bytes: long
1678316796
}
1678416797

16798+
export interface SnapshotGcsRepository extends SnapshotRepositoryBase {
16799+
type: 'gcs'
16800+
settings: SnapshotGcsRepositorySettings
16801+
}
16802+
16803+
export interface SnapshotGcsRepositorySettings extends SnapshotRepositorySettingsBase {
16804+
bucket: string
16805+
client?: string
16806+
base_path?: string
16807+
readonly?: boolean
16808+
application_name?: string
16809+
}
16810+
1678516811
export interface SnapshotIndexDetails {
1678616812
shard_count: integer
1678716813
size?: ByteSize
@@ -16794,19 +16820,45 @@ export interface SnapshotInfoFeatureState {
1679416820
indices: Indices
1679516821
}
1679616822

16797-
export interface SnapshotRepository {
16798-
type: string
16823+
export interface SnapshotReadOnlyUrlRepository extends SnapshotRepositoryBase {
16824+
type: 'url'
16825+
settings: SnapshotReadOnlyUrlRepositorySettings
16826+
}
16827+
16828+
export interface SnapshotReadOnlyUrlRepositorySettings extends SnapshotRepositorySettingsBase {
16829+
http_max_retries?: integer
16830+
http_socket_timeout?: Duration
16831+
max_number_of_snapshots?: integer
16832+
url: string
16833+
}
16834+
16835+
export type SnapshotRepository = SnapshotAzureRepository | SnapshotGcsRepository | SnapshotS3Repository | SnapshotSharedFileSystemRepository | SnapshotReadOnlyUrlRepository | SnapshotSourceOnlyRepository
16836+
16837+
export interface SnapshotRepositoryBase {
1679916838
uuid?: Uuid
16800-
settings: SnapshotRepositorySettings
1680116839
}
1680216840

16803-
export interface SnapshotRepositorySettings {
16804-
chunk_size?: string
16805-
compress?: string | boolean
16806-
concurrent_streams?: string | integer
16807-
location: string
16808-
read_only?: string | boolean
16809-
readonly?: string | boolean
16841+
export interface SnapshotRepositorySettingsBase {
16842+
chunk_size?: ByteSize
16843+
compress?: boolean
16844+
max_restore_bytes_per_sec?: ByteSize
16845+
max_snapshot_bytes_per_sec?: ByteSize
16846+
}
16847+
16848+
export interface SnapshotS3Repository extends SnapshotRepositoryBase {
16849+
type: 's3'
16850+
settings: SnapshotS3RepositorySettings
16851+
}
16852+
16853+
export interface SnapshotS3RepositorySettings extends SnapshotRepositorySettingsBase {
16854+
bucket: string
16855+
client?: string
16856+
base_path?: string
16857+
readonly?: boolean
16858+
server_side_encryption?: boolean
16859+
buffer_size?: ByteSize
16860+
canned_acl?: string
16861+
storage_class?: string
1681016862
}
1681116863

1681216864
export interface SnapshotShardsStats {
@@ -16833,6 +16885,17 @@ export interface SnapshotShardsStatsSummaryItem {
1683316885
size_in_bytes: long
1683416886
}
1683516887

16888+
export interface SnapshotSharedFileSystemRepository extends SnapshotRepositoryBase {
16889+
type: 'fs'
16890+
settings: SnapshotSharedFileSystemRepositorySettings
16891+
}
16892+
16893+
export interface SnapshotSharedFileSystemRepositorySettings extends SnapshotRepositorySettingsBase {
16894+
location: string
16895+
max_number_of_snapshots?: integer
16896+
readonly?: boolean
16897+
}
16898+
1683616899
export interface SnapshotSnapshotIndexStats {
1683716900
shards: Record<string, SnapshotSnapshotShardsStatus>
1683816901
shards_stats: SnapshotShardsStats
@@ -16884,6 +16947,18 @@ export interface SnapshotSnapshotStats {
1688416947
total: SnapshotFileCountSnapshotStats
1688516948
}
1688616949

16950+
export interface SnapshotSourceOnlyRepository extends SnapshotRepositoryBase {
16951+
type: 'source'
16952+
settings: SnapshotSourceOnlyRepositorySettings
16953+
}
16954+
16955+
export interface SnapshotSourceOnlyRepositorySettings extends SnapshotRepositorySettingsBase {
16956+
delegate_type?: string
16957+
max_number_of_snapshots?: integer
16958+
read_only?: boolean
16959+
readonly?: boolean
16960+
}
16961+
1688716962
export interface SnapshotStatus {
1688816963
include_global_state: boolean
1688916964
indices: Record<string, SnapshotSnapshotIndexStats>
@@ -16944,8 +17019,6 @@ export interface SnapshotCreateRepositoryRequest extends RequestBase {
1694417019
timeout?: Duration
1694517020
verify?: boolean
1694617021
repository?: SnapshotRepository
16947-
type: string
16948-
settings: SnapshotRepositorySettings
1694917022
}
1695017023

1695117024
export type SnapshotCreateRepositoryResponse = AcknowledgedResponseBase

0 commit comments

Comments
 (0)