@elastic/elasticsearch 8.17.1 → 8.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api/async_search.d.ts +5 -5
- package/lib/api/api/autoscaling.d.ts +4 -4
- package/lib/api/api/bulk.d.ts +1 -1
- package/lib/api/api/cat.d.ts +26 -26
- package/lib/api/api/ccr.d.ts +14 -14
- package/lib/api/api/ccr.js +1 -1
- package/lib/api/api/ccr.js.map +1 -1
- package/lib/api/api/clear_scroll.d.ts +1 -1
- package/lib/api/api/close_point_in_time.d.ts +1 -1
- package/lib/api/api/cluster.d.ts +17 -17
- package/lib/api/api/connector.d.ts +30 -30
- package/lib/api/api/count.d.ts +1 -1
- package/lib/api/api/create.d.ts +2 -2
- package/lib/api/api/dangling_indices.d.ts +3 -3
- package/lib/api/api/delete.d.ts +1 -1
- package/lib/api/api/delete_by_query.d.ts +1 -1
- package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/delete_script.d.ts +1 -1
- package/lib/api/api/enrich.d.ts +5 -5
- package/lib/api/api/eql.d.ts +4 -4
- package/lib/api/api/eql.js +1 -1
- package/lib/api/api/eql.js.map +1 -1
- package/lib/api/api/esql.d.ts +11 -4
- package/lib/api/api/esql.js +24 -1
- package/lib/api/api/esql.js.map +1 -1
- package/lib/api/api/exists.d.ts +1 -1
- package/lib/api/api/exists_source.d.ts +1 -1
- package/lib/api/api/explain.d.ts +1 -1
- package/lib/api/api/features.d.ts +2 -2
- package/lib/api/api/field_caps.d.ts +1 -1
- package/lib/api/api/fleet.d.ts +4 -2
- package/lib/api/api/fleet.js.map +1 -1
- package/lib/api/api/get.d.ts +1 -1
- package/lib/api/api/get_script.d.ts +1 -1
- package/lib/api/api/get_script_context.d.ts +1 -1
- package/lib/api/api/get_script_languages.d.ts +1 -1
- package/lib/api/api/get_source.d.ts +1 -1
- package/lib/api/api/graph.d.ts +1 -1
- package/lib/api/api/health_report.d.ts +1 -1
- package/lib/api/api/ilm.d.ts +11 -11
- package/lib/api/api/index.d.ts +2 -2
- package/lib/api/api/indices.d.ts +98 -70
- package/lib/api/api/indices.js +116 -3
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/inference.d.ts +157 -10
- package/lib/api/api/inference.js +802 -25
- package/lib/api/api/inference.js.map +1 -1
- package/lib/api/api/info.d.ts +1 -1
- package/lib/api/api/ingest.d.ts +12 -12
- package/lib/api/api/knn_search.d.ts +1 -1
- package/lib/api/api/license.d.ts +8 -8
- package/lib/api/api/logstash.d.ts +3 -3
- package/lib/api/api/mget.d.ts +1 -1
- package/lib/api/api/migration.d.ts +3 -3
- package/lib/api/api/ml.d.ts +78 -78
- package/lib/api/api/ml.js +17 -3
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +1 -1
- package/lib/api/api/msearch.d.ts +1 -1
- package/lib/api/api/msearch_template.d.ts +1 -1
- package/lib/api/api/mtermvectors.d.ts +1 -1
- package/lib/api/api/nodes.d.ts +7 -7
- package/lib/api/api/open_point_in_time.d.ts +1 -1
- package/lib/api/api/ping.d.ts +1 -1
- package/lib/api/api/profiling.d.ts +4 -4
- package/lib/api/api/put_script.d.ts +1 -1
- package/lib/api/api/query_rules.d.ts +8 -8
- package/lib/api/api/rank_eval.d.ts +1 -1
- package/lib/api/api/reindex.d.ts +2 -2
- package/lib/api/api/reindex_rethrottle.d.ts +1 -1
- package/lib/api/api/render_search_template.d.ts +1 -1
- package/lib/api/api/rollup.d.ts +8 -8
- package/lib/api/api/scripts_painless_execute.d.ts +2 -2
- package/lib/api/api/scroll.d.ts +1 -1
- package/lib/api/api/search.d.ts +1 -1
- package/lib/api/api/search_application.d.ts +10 -10
- package/lib/api/api/search_mvt.d.ts +1 -1
- package/lib/api/api/search_shards.d.ts +1 -1
- package/lib/api/api/search_template.d.ts +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +4 -4
- package/lib/api/api/security.d.ts +64 -64
- package/lib/api/api/security.js +1 -1
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/shutdown.d.ts +3 -3
- package/lib/api/api/simulate.d.ts +1 -1
- package/lib/api/api/simulate.js +1 -1
- package/lib/api/api/simulate.js.map +1 -1
- package/lib/api/api/slm.d.ts +9 -9
- package/lib/api/api/snapshot.d.ts +13 -13
- package/lib/api/api/sql.d.ts +6 -6
- package/lib/api/api/ssl.d.ts +1 -1
- package/lib/api/api/synonyms.d.ts +7 -7
- package/lib/api/api/tasks.d.ts +3 -3
- package/lib/api/api/terms_enum.d.ts +1 -1
- package/lib/api/api/termvectors.d.ts +1 -1
- package/lib/api/api/termvectors.js +1 -1
- package/lib/api/api/termvectors.js.map +1 -1
- package/lib/api/api/text_structure.d.ts +4 -4
- package/lib/api/api/transform.d.ts +18 -18
- package/lib/api/api/update.d.ts +1 -1
- package/lib/api/api/update_by_query.d.ts +1 -1
- package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/watcher.d.ts +14 -14
- package/lib/api/api/xpack.d.ts +2 -2
- package/lib/api/types.d.ts +777 -114
- package/lib/api/typesWithBodyKey.d.ts +846 -117
- package/lib/client.d.ts +0 -7
- package/lib/client.js +17 -1
- package/lib/client.js.map +1 -1
- package/package.json +6 -7
|
@@ -29,6 +29,7 @@ export interface BulkOperationContainer {
|
|
|
29
29
|
export type BulkOperationType = 'index' | 'create' | 'update' | 'delete';
|
|
30
30
|
export interface BulkRequest<TDocument = unknown, TPartialDocument = unknown> extends RequestBase {
|
|
31
31
|
index?: IndexName;
|
|
32
|
+
include_source_on_error?: boolean;
|
|
32
33
|
list_executed_pipelines?: boolean;
|
|
33
34
|
pipeline?: string;
|
|
34
35
|
refresh?: Refresh;
|
|
@@ -130,8 +131,14 @@ export interface CountResponse {
|
|
|
130
131
|
export interface CreateRequest<TDocument = unknown> extends RequestBase {
|
|
131
132
|
id: Id;
|
|
132
133
|
index: IndexName;
|
|
134
|
+
if_primary_term?: long;
|
|
135
|
+
if_seq_no?: SequenceNumber;
|
|
136
|
+
include_source_on_error?: boolean;
|
|
137
|
+
op_type?: OpType;
|
|
133
138
|
pipeline?: string;
|
|
134
139
|
refresh?: Refresh;
|
|
140
|
+
require_alias?: boolean;
|
|
141
|
+
require_data_stream?: boolean;
|
|
135
142
|
routing?: Routing;
|
|
136
143
|
timeout?: Duration;
|
|
137
144
|
version?: VersionNumber;
|
|
@@ -553,6 +560,7 @@ export interface IndexRequest<TDocument = unknown> extends RequestBase {
|
|
|
553
560
|
index: IndexName;
|
|
554
561
|
if_primary_term?: long;
|
|
555
562
|
if_seq_no?: SequenceNumber;
|
|
563
|
+
include_source_on_error?: boolean;
|
|
556
564
|
op_type?: OpType;
|
|
557
565
|
pipeline?: string;
|
|
558
566
|
refresh?: Refresh;
|
|
@@ -656,7 +664,7 @@ export interface MsearchMultisearchBody {
|
|
|
656
664
|
knn?: KnnSearch | KnnSearch[];
|
|
657
665
|
from?: integer;
|
|
658
666
|
highlight?: SearchHighlight;
|
|
659
|
-
indices_boost?: Record<IndexName, double
|
|
667
|
+
indices_boost?: Partial<Record<IndexName, double>>[];
|
|
660
668
|
min_score?: double;
|
|
661
669
|
post_filter?: QueryDslQueryContainer;
|
|
662
670
|
profile?: boolean;
|
|
@@ -785,6 +793,7 @@ export interface OpenPointInTimeRequest extends RequestBase {
|
|
|
785
793
|
routing?: Routing;
|
|
786
794
|
expand_wildcards?: ExpandWildcards;
|
|
787
795
|
allow_partial_search_results?: boolean;
|
|
796
|
+
max_concurrent_shard_requests?: integer;
|
|
788
797
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
789
798
|
body?: {
|
|
790
799
|
index_filter?: QueryDslQueryContainer;
|
|
@@ -998,6 +1007,7 @@ export interface RenderSearchTemplateRequest extends RequestBase {
|
|
|
998
1007
|
export interface RenderSearchTemplateResponse {
|
|
999
1008
|
template_output: Record<string, any>;
|
|
1000
1009
|
}
|
|
1010
|
+
export type ScriptsPainlessExecutePainlessContext = 'painless_test' | 'filter' | 'score' | 'boolean_field' | 'date_field' | 'double_field' | 'geo_point_field' | 'ip_field' | 'keyword_field' | 'long_field' | 'composite_field';
|
|
1001
1011
|
export interface ScriptsPainlessExecutePainlessContextSetup {
|
|
1002
1012
|
document: any;
|
|
1003
1013
|
index: IndexName;
|
|
@@ -1006,7 +1016,7 @@ export interface ScriptsPainlessExecutePainlessContextSetup {
|
|
|
1006
1016
|
export interface ScriptsPainlessExecuteRequest extends RequestBase {
|
|
1007
1017
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
1008
1018
|
body?: {
|
|
1009
|
-
context?:
|
|
1019
|
+
context?: ScriptsPainlessExecutePainlessContext;
|
|
1010
1020
|
context_setup?: ScriptsPainlessExecutePainlessContextSetup;
|
|
1011
1021
|
script?: Script | string;
|
|
1012
1022
|
};
|
|
@@ -1068,7 +1078,7 @@ export interface SearchRequest extends RequestBase {
|
|
|
1068
1078
|
from?: integer;
|
|
1069
1079
|
highlight?: SearchHighlight;
|
|
1070
1080
|
track_total_hits?: SearchTrackHits;
|
|
1071
|
-
indices_boost?: Record<IndexName, double
|
|
1081
|
+
indices_boost?: Partial<Record<IndexName, double>>[];
|
|
1072
1082
|
docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
|
|
1073
1083
|
knn?: KnnSearch | KnnSearch[];
|
|
1074
1084
|
rank?: RankContainer;
|
|
@@ -1641,6 +1651,7 @@ export interface SearchShardsRequest extends RequestBase {
|
|
|
1641
1651
|
expand_wildcards?: ExpandWildcards;
|
|
1642
1652
|
ignore_unavailable?: boolean;
|
|
1643
1653
|
local?: boolean;
|
|
1654
|
+
master_timeout?: Duration;
|
|
1644
1655
|
preference?: string;
|
|
1645
1656
|
routing?: Routing;
|
|
1646
1657
|
}
|
|
@@ -1737,22 +1748,22 @@ export interface TermvectorsFilter {
|
|
|
1737
1748
|
export interface TermvectorsRequest<TDocument = unknown> extends RequestBase {
|
|
1738
1749
|
index: IndexName;
|
|
1739
1750
|
id?: Id;
|
|
1740
|
-
fields?: Fields;
|
|
1741
|
-
field_statistics?: boolean;
|
|
1742
|
-
offsets?: boolean;
|
|
1743
|
-
payloads?: boolean;
|
|
1744
|
-
positions?: boolean;
|
|
1745
1751
|
preference?: string;
|
|
1746
1752
|
realtime?: boolean;
|
|
1747
|
-
routing?: Routing;
|
|
1748
|
-
term_statistics?: boolean;
|
|
1749
|
-
version?: VersionNumber;
|
|
1750
|
-
version_type?: VersionType;
|
|
1751
1753
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
1752
1754
|
body?: {
|
|
1753
1755
|
doc?: TDocument;
|
|
1754
1756
|
filter?: TermvectorsFilter;
|
|
1755
1757
|
per_field_analyzer?: Record<Field, string>;
|
|
1758
|
+
fields?: Fields;
|
|
1759
|
+
field_statistics?: boolean;
|
|
1760
|
+
offsets?: boolean;
|
|
1761
|
+
payloads?: boolean;
|
|
1762
|
+
positions?: boolean;
|
|
1763
|
+
term_statistics?: boolean;
|
|
1764
|
+
routing?: Routing;
|
|
1765
|
+
version?: VersionNumber;
|
|
1766
|
+
version_type?: VersionType;
|
|
1756
1767
|
};
|
|
1757
1768
|
}
|
|
1758
1769
|
export interface TermvectorsResponse {
|
|
@@ -1785,6 +1796,7 @@ export interface UpdateRequest<TDocument = unknown, TPartialDocument = unknown>
|
|
|
1785
1796
|
index: IndexName;
|
|
1786
1797
|
if_primary_term?: long;
|
|
1787
1798
|
if_seq_no?: SequenceNumber;
|
|
1799
|
+
include_source_on_error?: boolean;
|
|
1788
1800
|
lang?: string;
|
|
1789
1801
|
refresh?: Refresh;
|
|
1790
1802
|
require_alias?: boolean;
|
|
@@ -1898,7 +1910,6 @@ export interface BulkIndexByScrollFailure {
|
|
|
1898
1910
|
id: Id;
|
|
1899
1911
|
index: IndexName;
|
|
1900
1912
|
status: integer;
|
|
1901
|
-
type: string;
|
|
1902
1913
|
}
|
|
1903
1914
|
export interface BulkStats {
|
|
1904
1915
|
total_operations: long;
|
|
@@ -2135,6 +2146,7 @@ export interface KnnQuery extends QueryDslQueryBase {
|
|
|
2135
2146
|
k?: integer;
|
|
2136
2147
|
filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
|
|
2137
2148
|
similarity?: float;
|
|
2149
|
+
rescore_vector?: RescoreVector;
|
|
2138
2150
|
}
|
|
2139
2151
|
export interface KnnRetriever extends RetrieverBase {
|
|
2140
2152
|
field: string;
|
|
@@ -2143,6 +2155,7 @@ export interface KnnRetriever extends RetrieverBase {
|
|
|
2143
2155
|
k: integer;
|
|
2144
2156
|
num_candidates: integer;
|
|
2145
2157
|
similarity?: float;
|
|
2158
|
+
rescore_vector?: RescoreVector;
|
|
2146
2159
|
}
|
|
2147
2160
|
export interface KnnSearch {
|
|
2148
2161
|
field: Field;
|
|
@@ -2154,6 +2167,7 @@ export interface KnnSearch {
|
|
|
2154
2167
|
filter?: QueryDslQueryContainer | QueryDslQueryContainer[];
|
|
2155
2168
|
similarity?: float;
|
|
2156
2169
|
inner_hits?: SearchInnerHits;
|
|
2170
|
+
rescore_vector?: RescoreVector;
|
|
2157
2171
|
}
|
|
2158
2172
|
export interface LatLonGeoLocation {
|
|
2159
2173
|
lat: double;
|
|
@@ -2292,6 +2306,9 @@ export interface RequestCacheStats {
|
|
|
2292
2306
|
memory_size_in_bytes: long;
|
|
2293
2307
|
miss_count: long;
|
|
2294
2308
|
}
|
|
2309
|
+
export interface RescoreVector {
|
|
2310
|
+
oversample: float;
|
|
2311
|
+
}
|
|
2295
2312
|
export type Result = 'created' | 'updated' | 'deleted' | 'not_found' | 'noop';
|
|
2296
2313
|
export interface Retries {
|
|
2297
2314
|
bulk: long;
|
|
@@ -3738,7 +3755,7 @@ export interface AggregationsWeightedAverageValue {
|
|
|
3738
3755
|
}
|
|
3739
3756
|
export interface AggregationsWeightedAvgAggregate extends AggregationsSingleMetricAggregateBase {
|
|
3740
3757
|
}
|
|
3741
|
-
export type AnalysisAnalyzer = AnalysisCustomAnalyzer | AnalysisFingerprintAnalyzer | AnalysisKeywordAnalyzer |
|
|
3758
|
+
export type AnalysisAnalyzer = AnalysisCustomAnalyzer | AnalysisFingerprintAnalyzer | AnalysisKeywordAnalyzer | AnalysisNoriAnalyzer | AnalysisPatternAnalyzer | AnalysisSimpleAnalyzer | AnalysisStandardAnalyzer | AnalysisStopAnalyzer | AnalysisWhitespaceAnalyzer | AnalysisIcuAnalyzer | AnalysisKuromojiAnalyzer | AnalysisSnowballAnalyzer | AnalysisArabicAnalyzer | AnalysisArmenianAnalyzer | AnalysisBasqueAnalyzer | AnalysisBengaliAnalyzer | AnalysisBrazilianAnalyzer | AnalysisBulgarianAnalyzer | AnalysisCatalanAnalyzer | AnalysisChineseAnalyzer | AnalysisCjkAnalyzer | AnalysisCzechAnalyzer | AnalysisDanishAnalyzer | AnalysisDutchAnalyzer | AnalysisEnglishAnalyzer | AnalysisEstonianAnalyzer | AnalysisFinnishAnalyzer | AnalysisFrenchAnalyzer | AnalysisGalicianAnalyzer | AnalysisGermanAnalyzer | AnalysisGreekAnalyzer | AnalysisHindiAnalyzer | AnalysisHungarianAnalyzer | AnalysisIndonesianAnalyzer | AnalysisIrishAnalyzer | AnalysisItalianAnalyzer | AnalysisLatvianAnalyzer | AnalysisLithuanianAnalyzer | AnalysisNorwegianAnalyzer | AnalysisPersianAnalyzer | AnalysisPortugueseAnalyzer | AnalysisRomanianAnalyzer | AnalysisRussianAnalyzer | AnalysisSerbianAnalyzer | AnalysisSoraniAnalyzer | AnalysisSpanishAnalyzer | AnalysisSwedishAnalyzer | AnalysisTurkishAnalyzer | AnalysisThaiAnalyzer;
|
|
3742
3759
|
export interface AnalysisArabicAnalyzer {
|
|
3743
3760
|
type: 'arabic';
|
|
3744
3761
|
stopwords?: AnalysisStopWords;
|
|
@@ -4099,15 +4116,6 @@ export interface AnalysisKuromojiTokenizer extends AnalysisTokenizerBase {
|
|
|
4099
4116
|
user_dictionary_rules?: string[];
|
|
4100
4117
|
discard_compound_token?: boolean;
|
|
4101
4118
|
}
|
|
4102
|
-
export type AnalysisLanguage = 'Arabic' | 'Armenian' | 'Basque' | 'Brazilian' | 'Bulgarian' | 'Catalan' | 'Chinese' | 'Cjk' | 'Czech' | 'Danish' | 'Dutch' | 'English' | 'Estonian' | 'Finnish' | 'French' | 'Galician' | 'German' | 'Greek' | 'Hindi' | 'Hungarian' | 'Indonesian' | 'Irish' | 'Italian' | 'Latvian' | 'Norwegian' | 'Persian' | 'Portuguese' | 'Romanian' | 'Russian' | 'Sorani' | 'Spanish' | 'Swedish' | 'Turkish' | 'Thai';
|
|
4103
|
-
export interface AnalysisLanguageAnalyzer {
|
|
4104
|
-
type: 'language';
|
|
4105
|
-
version?: VersionString;
|
|
4106
|
-
language: AnalysisLanguage;
|
|
4107
|
-
stem_exclusion: string[];
|
|
4108
|
-
stopwords?: AnalysisStopWords;
|
|
4109
|
-
stopwords_path?: string;
|
|
4110
|
-
}
|
|
4111
4119
|
export interface AnalysisLatvianAnalyzer {
|
|
4112
4120
|
type: 'latvian';
|
|
4113
4121
|
stopwords?: AnalysisStopWords;
|
|
@@ -4504,6 +4512,10 @@ export interface MappingBooleanProperty extends MappingDocValuesPropertyBase {
|
|
|
4504
4512
|
fielddata?: IndicesNumericFielddata;
|
|
4505
4513
|
index?: boolean;
|
|
4506
4514
|
null_value?: boolean;
|
|
4515
|
+
ignore_malformed?: boolean;
|
|
4516
|
+
script?: Script | string;
|
|
4517
|
+
on_script_error?: MappingOnScriptError;
|
|
4518
|
+
time_series_dimension?: boolean;
|
|
4507
4519
|
type: 'boolean';
|
|
4508
4520
|
}
|
|
4509
4521
|
export interface MappingByteNumberProperty extends MappingNumberPropertyBase {
|
|
@@ -4530,6 +4542,10 @@ export interface MappingCorePropertyBase extends MappingPropertyBase {
|
|
|
4530
4542
|
copy_to?: Fields;
|
|
4531
4543
|
store?: boolean;
|
|
4532
4544
|
}
|
|
4545
|
+
export interface MappingCountedKeywordProperty extends MappingPropertyBase {
|
|
4546
|
+
type: 'counted_keyword';
|
|
4547
|
+
index?: boolean;
|
|
4548
|
+
}
|
|
4533
4549
|
export interface MappingDataStreamTimestamp {
|
|
4534
4550
|
enabled: boolean;
|
|
4535
4551
|
}
|
|
@@ -4538,6 +4554,8 @@ export interface MappingDateNanosProperty extends MappingDocValuesPropertyBase {
|
|
|
4538
4554
|
format?: string;
|
|
4539
4555
|
ignore_malformed?: boolean;
|
|
4540
4556
|
index?: boolean;
|
|
4557
|
+
script?: Script | string;
|
|
4558
|
+
on_script_error?: MappingOnScriptError;
|
|
4541
4559
|
null_value?: DateTime;
|
|
4542
4560
|
precision_step?: integer;
|
|
4543
4561
|
type: 'date_nanos';
|
|
@@ -4548,6 +4566,8 @@ export interface MappingDateProperty extends MappingDocValuesPropertyBase {
|
|
|
4548
4566
|
format?: string;
|
|
4549
4567
|
ignore_malformed?: boolean;
|
|
4550
4568
|
index?: boolean;
|
|
4569
|
+
script?: Script | string;
|
|
4570
|
+
on_script_error?: MappingOnScriptError;
|
|
4551
4571
|
null_value?: DateTime;
|
|
4552
4572
|
precision_step?: integer;
|
|
4553
4573
|
locale?: string;
|
|
@@ -4557,20 +4577,23 @@ export interface MappingDateRangeProperty extends MappingRangePropertyBase {
|
|
|
4557
4577
|
format?: string;
|
|
4558
4578
|
type: 'date_range';
|
|
4559
4579
|
}
|
|
4580
|
+
export type MappingDenseVectorElementType = 'bit' | 'byte' | 'float';
|
|
4560
4581
|
export interface MappingDenseVectorIndexOptions {
|
|
4561
|
-
type: string;
|
|
4562
|
-
m?: integer;
|
|
4563
|
-
ef_construction?: integer;
|
|
4564
4582
|
confidence_interval?: float;
|
|
4583
|
+
ef_construction?: integer;
|
|
4584
|
+
m?: integer;
|
|
4585
|
+
type: MappingDenseVectorIndexOptionsType;
|
|
4565
4586
|
}
|
|
4587
|
+
export type MappingDenseVectorIndexOptionsType = 'bbq_flat' | 'bbq_hnsw' | 'flat' | 'hnsw' | 'int4_flat' | 'int4_hnsw' | 'int8_flat' | 'int8_hnsw';
|
|
4566
4588
|
export interface MappingDenseVectorProperty extends MappingPropertyBase {
|
|
4567
4589
|
type: 'dense_vector';
|
|
4568
|
-
element_type?: string;
|
|
4569
4590
|
dims?: integer;
|
|
4570
|
-
|
|
4591
|
+
element_type?: MappingDenseVectorElementType;
|
|
4571
4592
|
index?: boolean;
|
|
4572
4593
|
index_options?: MappingDenseVectorIndexOptions;
|
|
4594
|
+
similarity?: MappingDenseVectorSimilarity;
|
|
4573
4595
|
}
|
|
4596
|
+
export type MappingDenseVectorSimilarity = 'cosine' | 'dot_product' | 'l2_norm' | 'max_inner_product';
|
|
4574
4597
|
export interface MappingDocValuesPropertyBase extends MappingCorePropertyBase {
|
|
4575
4598
|
doc_values?: boolean;
|
|
4576
4599
|
}
|
|
@@ -4609,7 +4632,7 @@ export interface MappingDynamicProperty extends MappingDocValuesPropertyBase {
|
|
|
4609
4632
|
}
|
|
4610
4633
|
export interface MappingDynamicTemplate {
|
|
4611
4634
|
mapping?: MappingProperty;
|
|
4612
|
-
runtime?:
|
|
4635
|
+
runtime?: MappingRuntimeField;
|
|
4613
4636
|
match?: string | string[];
|
|
4614
4637
|
path_match?: string | string[];
|
|
4615
4638
|
unmatch?: string | string[];
|
|
@@ -4629,7 +4652,7 @@ export interface MappingFieldMapping {
|
|
|
4629
4652
|
export interface MappingFieldNamesField {
|
|
4630
4653
|
enabled: boolean;
|
|
4631
4654
|
}
|
|
4632
|
-
export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'version' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'semantic_text' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword';
|
|
4655
|
+
export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'passthrough' | 'version' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'counted_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'semantic_text' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword';
|
|
4633
4656
|
export interface MappingFlattenedProperty extends MappingPropertyBase {
|
|
4634
4657
|
boost?: double;
|
|
4635
4658
|
depth_limit?: integer;
|
|
@@ -4663,6 +4686,7 @@ export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
|
|
|
4663
4686
|
coerce?: boolean;
|
|
4664
4687
|
ignore_malformed?: boolean;
|
|
4665
4688
|
ignore_z_value?: boolean;
|
|
4689
|
+
index?: boolean;
|
|
4666
4690
|
orientation?: MappingGeoOrientation;
|
|
4667
4691
|
strategy?: MappingGeoStrategy;
|
|
4668
4692
|
type: 'geo_shape';
|
|
@@ -4774,10 +4798,16 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
|
|
|
4774
4798
|
}
|
|
4775
4799
|
export interface MappingObjectProperty extends MappingCorePropertyBase {
|
|
4776
4800
|
enabled?: boolean;
|
|
4777
|
-
subobjects?:
|
|
4801
|
+
subobjects?: MappingSubobjects;
|
|
4778
4802
|
type?: 'object';
|
|
4779
4803
|
}
|
|
4780
4804
|
export type MappingOnScriptError = 'fail' | 'continue';
|
|
4805
|
+
export interface MappingPassthroughObjectProperty extends MappingCorePropertyBase {
|
|
4806
|
+
type?: 'passthrough';
|
|
4807
|
+
enabled?: boolean;
|
|
4808
|
+
priority?: integer;
|
|
4809
|
+
time_series_dimension?: boolean;
|
|
4810
|
+
}
|
|
4781
4811
|
export interface MappingPercolatorProperty extends MappingPropertyBase {
|
|
4782
4812
|
type: 'percolator';
|
|
4783
4813
|
}
|
|
@@ -4787,7 +4817,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
|
|
|
4787
4817
|
null_value?: string;
|
|
4788
4818
|
type: 'point';
|
|
4789
4819
|
}
|
|
4790
|
-
export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingSemanticTextProperty | MappingSparseVectorProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty | MappingIcuCollationProperty;
|
|
4820
|
+
export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingPassthroughObjectProperty | MappingSemanticTextProperty | MappingSparseVectorProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingCountedKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty | MappingIcuCollationProperty;
|
|
4791
4821
|
export interface MappingPropertyBase {
|
|
4792
4822
|
meta?: Record<string, string>;
|
|
4793
4823
|
properties?: Record<PropertyName, MappingProperty>;
|
|
@@ -4826,7 +4856,7 @@ export interface MappingRuntimeFieldFetchFields {
|
|
|
4826
4856
|
field: Field;
|
|
4827
4857
|
format?: string;
|
|
4828
4858
|
}
|
|
4829
|
-
export type MappingRuntimeFieldType = 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup';
|
|
4859
|
+
export type MappingRuntimeFieldType = 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'geo_shape' | 'ip' | 'keyword' | 'long' | 'lookup';
|
|
4830
4860
|
export type MappingRuntimeFields = Record<Field, MappingRuntimeField>;
|
|
4831
4861
|
export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
|
|
4832
4862
|
type: 'scaled_float';
|
|
@@ -4848,7 +4878,8 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase
|
|
|
4848
4878
|
export interface MappingSemanticTextProperty {
|
|
4849
4879
|
type: 'semantic_text';
|
|
4850
4880
|
meta?: Record<string, string>;
|
|
4851
|
-
inference_id
|
|
4881
|
+
inference_id?: Id;
|
|
4882
|
+
search_inference_id?: Id;
|
|
4852
4883
|
}
|
|
4853
4884
|
export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
|
|
4854
4885
|
coerce?: boolean;
|
|
@@ -4876,6 +4907,7 @@ export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic';
|
|
|
4876
4907
|
export interface MappingSparseVectorProperty extends MappingPropertyBase {
|
|
4877
4908
|
type: 'sparse_vector';
|
|
4878
4909
|
}
|
|
4910
|
+
export type MappingSubobjects = boolean | 'true' | 'false' | 'auto';
|
|
4879
4911
|
export interface MappingSuggestContext {
|
|
4880
4912
|
name: Name;
|
|
4881
4913
|
path?: Field;
|
|
@@ -4920,7 +4952,7 @@ export interface MappingTypeMapping {
|
|
|
4920
4952
|
date_detection?: boolean;
|
|
4921
4953
|
dynamic?: MappingDynamicMapping;
|
|
4922
4954
|
dynamic_date_formats?: string[];
|
|
4923
|
-
dynamic_templates?: Record<string, MappingDynamicTemplate
|
|
4955
|
+
dynamic_templates?: Partial<Record<string, MappingDynamicTemplate>>[];
|
|
4924
4956
|
_field_names?: MappingFieldNamesField;
|
|
4925
4957
|
index_field?: MappingIndexField;
|
|
4926
4958
|
_meta?: Metadata;
|
|
@@ -4931,7 +4963,7 @@ export interface MappingTypeMapping {
|
|
|
4931
4963
|
_source?: MappingSourceField;
|
|
4932
4964
|
runtime?: Record<string, MappingRuntimeField>;
|
|
4933
4965
|
enabled?: boolean;
|
|
4934
|
-
subobjects?:
|
|
4966
|
+
subobjects?: MappingSubobjects;
|
|
4935
4967
|
_data_stream_timestamp?: MappingDataStreamTimestamp;
|
|
4936
4968
|
}
|
|
4937
4969
|
export interface MappingUnsignedLongNumberProperty extends MappingNumberPropertyBase {
|
|
@@ -5084,6 +5116,11 @@ export type QueryDslGeoDistanceQuery = QueryDslGeoDistanceQueryKeys & {
|
|
|
5084
5116
|
[property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | boolean | float | string;
|
|
5085
5117
|
};
|
|
5086
5118
|
export type QueryDslGeoExecution = 'memory' | 'indexed';
|
|
5119
|
+
export interface QueryDslGeoGridQuery extends QueryDslQueryBase {
|
|
5120
|
+
geogrid?: GeoTile;
|
|
5121
|
+
geohash?: GeoHash;
|
|
5122
|
+
geohex?: GeoHexCell;
|
|
5123
|
+
}
|
|
5087
5124
|
export interface QueryDslGeoPolygonPoints {
|
|
5088
5125
|
points: GeoLocation[];
|
|
5089
5126
|
}
|
|
@@ -5344,6 +5381,7 @@ export interface QueryDslQueryContainer {
|
|
|
5344
5381
|
fuzzy?: Partial<Record<Field, QueryDslFuzzyQuery | string | double | boolean>>;
|
|
5345
5382
|
geo_bounding_box?: QueryDslGeoBoundingBoxQuery;
|
|
5346
5383
|
geo_distance?: QueryDslGeoDistanceQuery;
|
|
5384
|
+
geo_grid?: Partial<Record<Field, QueryDslGeoGridQuery>>;
|
|
5347
5385
|
geo_polygon?: QueryDslGeoPolygonQuery;
|
|
5348
5386
|
geo_shape?: QueryDslGeoShapeQuery;
|
|
5349
5387
|
has_child?: QueryDslHasChildQuery;
|
|
@@ -5726,7 +5764,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
|
|
5726
5764
|
from?: integer;
|
|
5727
5765
|
highlight?: SearchHighlight;
|
|
5728
5766
|
track_total_hits?: SearchTrackHits;
|
|
5729
|
-
indices_boost?: Record<IndexName, double
|
|
5767
|
+
indices_boost?: Partial<Record<IndexName, double>>[];
|
|
5730
5768
|
docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
|
|
5731
5769
|
knn?: KnnSearch | KnnSearch[];
|
|
5732
5770
|
min_score?: double;
|
|
@@ -5838,6 +5876,8 @@ export interface CatAliasesAliasesRecord {
|
|
|
5838
5876
|
}
|
|
5839
5877
|
export interface CatAliasesRequest extends CatCatRequestBase {
|
|
5840
5878
|
name?: Names;
|
|
5879
|
+
h?: Names;
|
|
5880
|
+
s?: Names;
|
|
5841
5881
|
expand_wildcards?: ExpandWildcards;
|
|
5842
5882
|
local?: boolean;
|
|
5843
5883
|
master_timeout?: Duration;
|
|
@@ -5881,6 +5921,8 @@ export interface CatAllocationAllocationRecord {
|
|
|
5881
5921
|
export interface CatAllocationRequest extends CatCatRequestBase {
|
|
5882
5922
|
node_id?: NodeIds;
|
|
5883
5923
|
bytes?: Bytes;
|
|
5924
|
+
h?: Names;
|
|
5925
|
+
s?: Names;
|
|
5884
5926
|
local?: boolean;
|
|
5885
5927
|
master_timeout?: Duration;
|
|
5886
5928
|
}
|
|
@@ -5896,6 +5938,8 @@ export interface CatComponentTemplatesComponentTemplate {
|
|
|
5896
5938
|
}
|
|
5897
5939
|
export interface CatComponentTemplatesRequest extends CatCatRequestBase {
|
|
5898
5940
|
name?: string;
|
|
5941
|
+
h?: Names;
|
|
5942
|
+
s?: Names;
|
|
5899
5943
|
local?: boolean;
|
|
5900
5944
|
master_timeout?: Duration;
|
|
5901
5945
|
}
|
|
@@ -5915,6 +5959,8 @@ export interface CatCountCountRecord {
|
|
|
5915
5959
|
}
|
|
5916
5960
|
export interface CatCountRequest extends CatCatRequestBase {
|
|
5917
5961
|
index?: Indices;
|
|
5962
|
+
h?: Names;
|
|
5963
|
+
s?: Names;
|
|
5918
5964
|
}
|
|
5919
5965
|
export type CatCountResponse = CatCountCountRecord[];
|
|
5920
5966
|
export interface CatFielddataFielddataRecord {
|
|
@@ -5931,6 +5977,8 @@ export interface CatFielddataFielddataRecord {
|
|
|
5931
5977
|
export interface CatFielddataRequest extends CatCatRequestBase {
|
|
5932
5978
|
fields?: Fields;
|
|
5933
5979
|
bytes?: Bytes;
|
|
5980
|
+
h?: Names;
|
|
5981
|
+
s?: Names;
|
|
5934
5982
|
}
|
|
5935
5983
|
export type CatFielddataResponse = CatFielddataFielddataRecord[];
|
|
5936
5984
|
export interface CatHealthHealthRecord {
|
|
@@ -5988,6 +6036,8 @@ export interface CatHealthHealthRecord {
|
|
|
5988
6036
|
export interface CatHealthRequest extends CatCatRequestBase {
|
|
5989
6037
|
time?: TimeUnit;
|
|
5990
6038
|
ts?: boolean;
|
|
6039
|
+
h?: Names;
|
|
6040
|
+
s?: Names;
|
|
5991
6041
|
}
|
|
5992
6042
|
export type CatHealthResponse = CatHealthHealthRecord[];
|
|
5993
6043
|
export interface CatHelpRequest {
|
|
@@ -6293,6 +6343,8 @@ export interface CatIndicesRequest extends CatCatRequestBase {
|
|
|
6293
6343
|
pri?: boolean;
|
|
6294
6344
|
time?: TimeUnit;
|
|
6295
6345
|
master_timeout?: Duration;
|
|
6346
|
+
h?: Names;
|
|
6347
|
+
s?: Names;
|
|
6296
6348
|
}
|
|
6297
6349
|
export type CatIndicesResponse = CatIndicesIndicesRecord[];
|
|
6298
6350
|
export interface CatMasterMasterRecord {
|
|
@@ -6304,6 +6356,8 @@ export interface CatMasterMasterRecord {
|
|
|
6304
6356
|
n?: string;
|
|
6305
6357
|
}
|
|
6306
6358
|
export interface CatMasterRequest extends CatCatRequestBase {
|
|
6359
|
+
h?: Names;
|
|
6360
|
+
s?: Names;
|
|
6307
6361
|
local?: boolean;
|
|
6308
6362
|
master_timeout?: Duration;
|
|
6309
6363
|
}
|
|
@@ -6659,6 +6713,8 @@ export interface CatNodeattrsNodeAttributesRecord {
|
|
|
6659
6713
|
value?: string;
|
|
6660
6714
|
}
|
|
6661
6715
|
export interface CatNodeattrsRequest extends CatCatRequestBase {
|
|
6716
|
+
h?: Names;
|
|
6717
|
+
s?: Names;
|
|
6662
6718
|
local?: boolean;
|
|
6663
6719
|
master_timeout?: Duration;
|
|
6664
6720
|
}
|
|
@@ -6936,6 +6992,8 @@ export interface CatNodesRequest extends CatCatRequestBase {
|
|
|
6936
6992
|
bytes?: Bytes;
|
|
6937
6993
|
full_id?: boolean | string;
|
|
6938
6994
|
include_unloaded_segments?: boolean;
|
|
6995
|
+
h?: Names;
|
|
6996
|
+
s?: Names;
|
|
6939
6997
|
master_timeout?: Duration;
|
|
6940
6998
|
time?: TimeUnit;
|
|
6941
6999
|
}
|
|
@@ -6951,6 +7009,8 @@ export interface CatPendingTasksPendingTasksRecord {
|
|
|
6951
7009
|
s?: string;
|
|
6952
7010
|
}
|
|
6953
7011
|
export interface CatPendingTasksRequest extends CatCatRequestBase {
|
|
7012
|
+
h?: Names;
|
|
7013
|
+
s?: Names;
|
|
6954
7014
|
local?: boolean;
|
|
6955
7015
|
master_timeout?: Duration;
|
|
6956
7016
|
time?: TimeUnit;
|
|
@@ -6970,6 +7030,8 @@ export interface CatPluginsPluginsRecord {
|
|
|
6970
7030
|
t?: string;
|
|
6971
7031
|
}
|
|
6972
7032
|
export interface CatPluginsRequest extends CatCatRequestBase {
|
|
7033
|
+
h?: Names;
|
|
7034
|
+
s?: Names;
|
|
6973
7035
|
include_bootstrap?: boolean;
|
|
6974
7036
|
local?: boolean;
|
|
6975
7037
|
master_timeout?: Duration;
|
|
@@ -7037,6 +7099,8 @@ export interface CatRecoveryRequest extends CatCatRequestBase {
|
|
|
7037
7099
|
active_only?: boolean;
|
|
7038
7100
|
bytes?: Bytes;
|
|
7039
7101
|
detailed?: boolean;
|
|
7102
|
+
h?: Names;
|
|
7103
|
+
s?: Names;
|
|
7040
7104
|
time?: TimeUnit;
|
|
7041
7105
|
}
|
|
7042
7106
|
export type CatRecoveryResponse = CatRecoveryRecoveryRecord[];
|
|
@@ -7047,6 +7111,8 @@ export interface CatRepositoriesRepositoriesRecord {
|
|
|
7047
7111
|
t?: string;
|
|
7048
7112
|
}
|
|
7049
7113
|
export interface CatRepositoriesRequest extends CatCatRequestBase {
|
|
7114
|
+
h?: Names;
|
|
7115
|
+
s?: Names;
|
|
7050
7116
|
local?: boolean;
|
|
7051
7117
|
master_timeout?: Duration;
|
|
7052
7118
|
}
|
|
@@ -7054,6 +7120,8 @@ export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[];
|
|
|
7054
7120
|
export interface CatSegmentsRequest extends CatCatRequestBase {
|
|
7055
7121
|
index?: Indices;
|
|
7056
7122
|
bytes?: Bytes;
|
|
7123
|
+
h?: Names;
|
|
7124
|
+
s?: Names;
|
|
7057
7125
|
local?: boolean;
|
|
7058
7126
|
master_timeout?: Duration;
|
|
7059
7127
|
}
|
|
@@ -7102,6 +7170,8 @@ export interface CatSegmentsSegmentsRecord {
|
|
|
7102
7170
|
export interface CatShardsRequest extends CatCatRequestBase {
|
|
7103
7171
|
index?: Indices;
|
|
7104
7172
|
bytes?: Bytes;
|
|
7173
|
+
h?: Names;
|
|
7174
|
+
s?: Names;
|
|
7105
7175
|
master_timeout?: Duration;
|
|
7106
7176
|
time?: TimeUnit;
|
|
7107
7177
|
}
|
|
@@ -7323,6 +7393,8 @@ export interface CatShardsShardsRecord {
|
|
|
7323
7393
|
export interface CatSnapshotsRequest extends CatCatRequestBase {
|
|
7324
7394
|
repository?: Names;
|
|
7325
7395
|
ignore_unavailable?: boolean;
|
|
7396
|
+
h?: Names;
|
|
7397
|
+
s?: Names;
|
|
7326
7398
|
master_timeout?: Duration;
|
|
7327
7399
|
time?: TimeUnit;
|
|
7328
7400
|
}
|
|
@@ -7365,6 +7437,8 @@ export interface CatTasksRequest extends CatCatRequestBase {
|
|
|
7365
7437
|
detailed?: boolean;
|
|
7366
7438
|
nodes?: string[];
|
|
7367
7439
|
parent_task_id?: string;
|
|
7440
|
+
h?: Names;
|
|
7441
|
+
s?: Names;
|
|
7368
7442
|
time?: TimeUnit;
|
|
7369
7443
|
timeout?: Duration;
|
|
7370
7444
|
wait_for_completion?: boolean;
|
|
@@ -7406,6 +7480,8 @@ export interface CatTasksTasksRecord {
|
|
|
7406
7480
|
}
|
|
7407
7481
|
export interface CatTemplatesRequest extends CatCatRequestBase {
|
|
7408
7482
|
name?: Name;
|
|
7483
|
+
h?: Names;
|
|
7484
|
+
s?: Names;
|
|
7409
7485
|
local?: boolean;
|
|
7410
7486
|
master_timeout?: Duration;
|
|
7411
7487
|
}
|
|
@@ -7425,6 +7501,8 @@ export interface CatTemplatesTemplatesRecord {
|
|
|
7425
7501
|
}
|
|
7426
7502
|
export interface CatThreadPoolRequest extends CatCatRequestBase {
|
|
7427
7503
|
thread_pool_patterns?: Names;
|
|
7504
|
+
h?: Names;
|
|
7505
|
+
s?: Names;
|
|
7428
7506
|
time?: TimeUnit;
|
|
7429
7507
|
local?: boolean;
|
|
7430
7508
|
master_timeout?: Duration;
|
|
@@ -7602,25 +7680,29 @@ export interface CcrShardStats {
|
|
|
7602
7680
|
}
|
|
7603
7681
|
export interface CcrDeleteAutoFollowPatternRequest extends RequestBase {
|
|
7604
7682
|
name: Name;
|
|
7683
|
+
master_timeout?: Duration;
|
|
7605
7684
|
}
|
|
7606
7685
|
export type CcrDeleteAutoFollowPatternResponse = AcknowledgedResponseBase;
|
|
7607
7686
|
export interface CcrFollowRequest extends RequestBase {
|
|
7608
7687
|
index: IndexName;
|
|
7688
|
+
master_timeout?: Duration;
|
|
7609
7689
|
wait_for_active_shards?: WaitForActiveShards;
|
|
7610
7690
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
7611
7691
|
body?: {
|
|
7612
|
-
|
|
7692
|
+
data_stream_name?: string;
|
|
7693
|
+
leader_index: IndexName;
|
|
7613
7694
|
max_outstanding_read_requests?: long;
|
|
7614
|
-
max_outstanding_write_requests?:
|
|
7615
|
-
max_read_request_operation_count?:
|
|
7616
|
-
max_read_request_size?:
|
|
7695
|
+
max_outstanding_write_requests?: integer;
|
|
7696
|
+
max_read_request_operation_count?: integer;
|
|
7697
|
+
max_read_request_size?: ByteSize;
|
|
7617
7698
|
max_retry_delay?: Duration;
|
|
7618
|
-
max_write_buffer_count?:
|
|
7619
|
-
max_write_buffer_size?:
|
|
7620
|
-
max_write_request_operation_count?:
|
|
7621
|
-
max_write_request_size?:
|
|
7699
|
+
max_write_buffer_count?: integer;
|
|
7700
|
+
max_write_buffer_size?: ByteSize;
|
|
7701
|
+
max_write_request_operation_count?: integer;
|
|
7702
|
+
max_write_request_size?: ByteSize;
|
|
7622
7703
|
read_poll_timeout?: Duration;
|
|
7623
|
-
remote_cluster
|
|
7704
|
+
remote_cluster: string;
|
|
7705
|
+
settings?: IndicesIndexSettings;
|
|
7624
7706
|
};
|
|
7625
7707
|
}
|
|
7626
7708
|
export interface CcrFollowResponse {
|
|
@@ -7636,32 +7718,35 @@ export interface CcrFollowInfoFollowerIndex {
|
|
|
7636
7718
|
status: CcrFollowInfoFollowerIndexStatus;
|
|
7637
7719
|
}
|
|
7638
7720
|
export interface CcrFollowInfoFollowerIndexParameters {
|
|
7639
|
-
max_outstanding_read_requests
|
|
7640
|
-
max_outstanding_write_requests
|
|
7641
|
-
max_read_request_operation_count
|
|
7642
|
-
max_read_request_size
|
|
7643
|
-
max_retry_delay
|
|
7644
|
-
max_write_buffer_count
|
|
7645
|
-
max_write_buffer_size
|
|
7646
|
-
max_write_request_operation_count
|
|
7647
|
-
max_write_request_size
|
|
7648
|
-
read_poll_timeout
|
|
7721
|
+
max_outstanding_read_requests?: long;
|
|
7722
|
+
max_outstanding_write_requests?: integer;
|
|
7723
|
+
max_read_request_operation_count?: integer;
|
|
7724
|
+
max_read_request_size?: ByteSize;
|
|
7725
|
+
max_retry_delay?: Duration;
|
|
7726
|
+
max_write_buffer_count?: integer;
|
|
7727
|
+
max_write_buffer_size?: ByteSize;
|
|
7728
|
+
max_write_request_operation_count?: integer;
|
|
7729
|
+
max_write_request_size?: ByteSize;
|
|
7730
|
+
read_poll_timeout?: Duration;
|
|
7649
7731
|
}
|
|
7650
7732
|
export type CcrFollowInfoFollowerIndexStatus = 'active' | 'paused';
|
|
7651
7733
|
export interface CcrFollowInfoRequest extends RequestBase {
|
|
7652
7734
|
index: Indices;
|
|
7735
|
+
master_timeout?: Duration;
|
|
7653
7736
|
}
|
|
7654
7737
|
export interface CcrFollowInfoResponse {
|
|
7655
7738
|
follower_indices: CcrFollowInfoFollowerIndex[];
|
|
7656
7739
|
}
|
|
7657
7740
|
export interface CcrFollowStatsRequest extends RequestBase {
|
|
7658
7741
|
index: Indices;
|
|
7742
|
+
timeout?: Duration;
|
|
7659
7743
|
}
|
|
7660
7744
|
export interface CcrFollowStatsResponse {
|
|
7661
7745
|
indices: CcrFollowIndexStats[];
|
|
7662
7746
|
}
|
|
7663
7747
|
export interface CcrForgetFollowerRequest extends RequestBase {
|
|
7664
7748
|
index: IndexName;
|
|
7749
|
+
timeout?: Duration;
|
|
7665
7750
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
7666
7751
|
body?: {
|
|
7667
7752
|
follower_cluster?: string;
|
|
@@ -7687,20 +7772,24 @@ export interface CcrGetAutoFollowPatternAutoFollowPatternSummary {
|
|
|
7687
7772
|
}
|
|
7688
7773
|
export interface CcrGetAutoFollowPatternRequest extends RequestBase {
|
|
7689
7774
|
name?: Name;
|
|
7775
|
+
master_timeout?: Duration;
|
|
7690
7776
|
}
|
|
7691
7777
|
export interface CcrGetAutoFollowPatternResponse {
|
|
7692
7778
|
patterns: CcrGetAutoFollowPatternAutoFollowPattern[];
|
|
7693
7779
|
}
|
|
7694
7780
|
export interface CcrPauseAutoFollowPatternRequest extends RequestBase {
|
|
7695
7781
|
name: Name;
|
|
7782
|
+
master_timeout?: Duration;
|
|
7696
7783
|
}
|
|
7697
7784
|
export type CcrPauseAutoFollowPatternResponse = AcknowledgedResponseBase;
|
|
7698
7785
|
export interface CcrPauseFollowRequest extends RequestBase {
|
|
7699
7786
|
index: IndexName;
|
|
7787
|
+
master_timeout?: Duration;
|
|
7700
7788
|
}
|
|
7701
7789
|
export type CcrPauseFollowResponse = AcknowledgedResponseBase;
|
|
7702
7790
|
export interface CcrPutAutoFollowPatternRequest extends RequestBase {
|
|
7703
7791
|
name: Name;
|
|
7792
|
+
master_timeout?: Duration;
|
|
7704
7793
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
7705
7794
|
body?: {
|
|
7706
7795
|
remote_cluster: string;
|
|
@@ -7723,10 +7812,12 @@ export interface CcrPutAutoFollowPatternRequest extends RequestBase {
|
|
|
7723
7812
|
export type CcrPutAutoFollowPatternResponse = AcknowledgedResponseBase;
|
|
7724
7813
|
export interface CcrResumeAutoFollowPatternRequest extends RequestBase {
|
|
7725
7814
|
name: Name;
|
|
7815
|
+
master_timeout?: Duration;
|
|
7726
7816
|
}
|
|
7727
7817
|
export type CcrResumeAutoFollowPatternResponse = AcknowledgedResponseBase;
|
|
7728
7818
|
export interface CcrResumeFollowRequest extends RequestBase {
|
|
7729
7819
|
index: IndexName;
|
|
7820
|
+
master_timeout?: Duration;
|
|
7730
7821
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
7731
7822
|
body?: {
|
|
7732
7823
|
max_outstanding_read_requests?: long;
|
|
@@ -7758,6 +7849,8 @@ export interface CcrStatsFollowStats {
|
|
|
7758
7849
|
indices: CcrFollowIndexStats[];
|
|
7759
7850
|
}
|
|
7760
7851
|
export interface CcrStatsRequest extends RequestBase {
|
|
7852
|
+
master_timeout?: Duration;
|
|
7853
|
+
timeout?: Duration;
|
|
7761
7854
|
}
|
|
7762
7855
|
export interface CcrStatsResponse {
|
|
7763
7856
|
auto_follow_stats: CcrStatsAutoFollowStats;
|
|
@@ -7765,6 +7858,7 @@ export interface CcrStatsResponse {
|
|
|
7765
7858
|
}
|
|
7766
7859
|
export interface CcrUnfollowRequest extends RequestBase {
|
|
7767
7860
|
index: IndexName;
|
|
7861
|
+
master_timeout?: Duration;
|
|
7768
7862
|
}
|
|
7769
7863
|
export type CcrUnfollowResponse = AcknowledgedResponseBase;
|
|
7770
7864
|
export interface ClusterComponentTemplate {
|
|
@@ -7842,6 +7936,7 @@ export interface ClusterAllocationExplainNodeDiskUsage {
|
|
|
7842
7936
|
export interface ClusterAllocationExplainRequest extends RequestBase {
|
|
7843
7937
|
include_disk_info?: boolean;
|
|
7844
7938
|
include_yes_decisions?: boolean;
|
|
7939
|
+
master_timeout?: Duration;
|
|
7845
7940
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
7846
7941
|
body?: {
|
|
7847
7942
|
current_node?: string;
|
|
@@ -7900,6 +7995,7 @@ export interface ClusterDeleteComponentTemplateRequest extends RequestBase {
|
|
|
7900
7995
|
}
|
|
7901
7996
|
export type ClusterDeleteComponentTemplateResponse = AcknowledgedResponseBase;
|
|
7902
7997
|
export interface ClusterDeleteVotingConfigExclusionsRequest extends RequestBase {
|
|
7998
|
+
master_timeout?: Duration;
|
|
7903
7999
|
wait_for_removal?: boolean;
|
|
7904
8000
|
}
|
|
7905
8001
|
export type ClusterDeleteVotingConfigExclusionsResponse = boolean;
|
|
@@ -7933,7 +8029,8 @@ export interface ClusterGetSettingsResponse {
|
|
|
7933
8029
|
export interface ClusterHealthHealthResponseBody {
|
|
7934
8030
|
active_primary_shards: integer;
|
|
7935
8031
|
active_shards: integer;
|
|
7936
|
-
|
|
8032
|
+
active_shards_percent?: string;
|
|
8033
|
+
active_shards_percent_as_number: double;
|
|
7937
8034
|
cluster_name: Name;
|
|
7938
8035
|
delayed_unassigned_shards: integer;
|
|
7939
8036
|
indices?: Record<IndexName, ClusterHealthIndexHealthStats>;
|
|
@@ -7971,7 +8068,7 @@ export interface ClusterHealthRequest extends RequestBase {
|
|
|
7971
8068
|
timeout?: Duration;
|
|
7972
8069
|
wait_for_active_shards?: WaitForActiveShards;
|
|
7973
8070
|
wait_for_events?: WaitForEvents;
|
|
7974
|
-
wait_for_nodes?:
|
|
8071
|
+
wait_for_nodes?: ClusterHealthWaitForNodes;
|
|
7975
8072
|
wait_for_no_initializing_shards?: boolean;
|
|
7976
8073
|
wait_for_no_relocating_shards?: boolean;
|
|
7977
8074
|
wait_for_status?: HealthStatus;
|
|
@@ -7986,6 +8083,7 @@ export interface ClusterHealthShardHealthStats {
|
|
|
7986
8083
|
unassigned_shards: integer;
|
|
7987
8084
|
unassigned_primary_shards: integer;
|
|
7988
8085
|
}
|
|
8086
|
+
export type ClusterHealthWaitForNodes = string | integer;
|
|
7989
8087
|
export interface ClusterInfoRequest extends RequestBase {
|
|
7990
8088
|
target: ClusterInfoTargets;
|
|
7991
8089
|
}
|
|
@@ -8014,6 +8112,7 @@ export interface ClusterPendingTasksResponse {
|
|
|
8014
8112
|
export interface ClusterPostVotingConfigExclusionsRequest extends RequestBase {
|
|
8015
8113
|
node_names?: Names;
|
|
8016
8114
|
node_ids?: Ids;
|
|
8115
|
+
master_timeout?: Duration;
|
|
8017
8116
|
timeout?: Duration;
|
|
8018
8117
|
}
|
|
8019
8118
|
export type ClusterPostVotingConfigExclusionsResponse = boolean;
|
|
@@ -8055,6 +8154,7 @@ export interface ClusterRemoteInfoClusterRemoteProxyInfo {
|
|
|
8055
8154
|
server_name: string;
|
|
8056
8155
|
num_proxy_sockets_connected: integer;
|
|
8057
8156
|
max_proxy_socket_connections: integer;
|
|
8157
|
+
cluster_credentials?: string;
|
|
8058
8158
|
}
|
|
8059
8159
|
export interface ClusterRemoteInfoClusterRemoteSniffInfo {
|
|
8060
8160
|
mode: 'sniff';
|
|
@@ -8897,28 +8997,33 @@ export interface EnrichSummary {
|
|
|
8897
8997
|
}
|
|
8898
8998
|
export interface EnrichDeletePolicyRequest extends RequestBase {
|
|
8899
8999
|
name: Name;
|
|
9000
|
+
master_timeout?: Duration;
|
|
8900
9001
|
}
|
|
8901
9002
|
export type EnrichDeletePolicyResponse = AcknowledgedResponseBase;
|
|
8902
|
-
export type EnrichExecutePolicyEnrichPolicyPhase = 'SCHEDULED' | 'RUNNING' | 'COMPLETE' | 'FAILED';
|
|
9003
|
+
export type EnrichExecutePolicyEnrichPolicyPhase = 'SCHEDULED' | 'RUNNING' | 'COMPLETE' | 'FAILED' | 'CANCELLED';
|
|
8903
9004
|
export interface EnrichExecutePolicyExecuteEnrichPolicyStatus {
|
|
8904
9005
|
phase: EnrichExecutePolicyEnrichPolicyPhase;
|
|
9006
|
+
step?: string;
|
|
8905
9007
|
}
|
|
8906
9008
|
export interface EnrichExecutePolicyRequest extends RequestBase {
|
|
8907
9009
|
name: Name;
|
|
9010
|
+
master_timeout?: Duration;
|
|
8908
9011
|
wait_for_completion?: boolean;
|
|
8909
9012
|
}
|
|
8910
9013
|
export interface EnrichExecutePolicyResponse {
|
|
8911
9014
|
status?: EnrichExecutePolicyExecuteEnrichPolicyStatus;
|
|
8912
|
-
|
|
9015
|
+
task?: TaskId;
|
|
8913
9016
|
}
|
|
8914
9017
|
export interface EnrichGetPolicyRequest extends RequestBase {
|
|
8915
9018
|
name?: Names;
|
|
9019
|
+
master_timeout?: Duration;
|
|
8916
9020
|
}
|
|
8917
9021
|
export interface EnrichGetPolicyResponse {
|
|
8918
9022
|
policies: EnrichSummary[];
|
|
8919
9023
|
}
|
|
8920
9024
|
export interface EnrichPutPolicyRequest extends RequestBase {
|
|
8921
9025
|
name: Name;
|
|
9026
|
+
master_timeout?: Duration;
|
|
8922
9027
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
8923
9028
|
body?: {
|
|
8924
9029
|
geo_match?: EnrichPolicy;
|
|
@@ -8949,6 +9054,7 @@ export interface EnrichStatsExecutingPolicy {
|
|
|
8949
9054
|
task: TasksTaskInfo;
|
|
8950
9055
|
}
|
|
8951
9056
|
export interface EnrichStatsRequest extends RequestBase {
|
|
9057
|
+
master_timeout?: Duration;
|
|
8952
9058
|
}
|
|
8953
9059
|
export interface EnrichStatsResponse {
|
|
8954
9060
|
coordinator_stats: EnrichStatsCoordinatorStats[];
|
|
@@ -8967,6 +9073,7 @@ export interface EqlEqlSearchResponseBase<TEvent = unknown> {
|
|
|
8967
9073
|
took?: DurationValue<UnitMillis>;
|
|
8968
9074
|
timed_out?: boolean;
|
|
8969
9075
|
hits: EqlEqlHits<TEvent>;
|
|
9076
|
+
shard_failures?: ShardFailure[];
|
|
8970
9077
|
}
|
|
8971
9078
|
export interface EqlHitsEvent<TEvent = unknown> {
|
|
8972
9079
|
_index: IndexName;
|
|
@@ -9017,10 +9124,13 @@ export interface EqlSearchRequest extends RequestBase {
|
|
|
9017
9124
|
keep_alive?: Duration;
|
|
9018
9125
|
keep_on_completion?: boolean;
|
|
9019
9126
|
wait_for_completion_timeout?: Duration;
|
|
9127
|
+
allow_partial_search_results?: boolean;
|
|
9128
|
+
allow_partial_sequence_results?: boolean;
|
|
9020
9129
|
size?: uint;
|
|
9021
9130
|
fields?: QueryDslFieldAndFormat | Field | (QueryDslFieldAndFormat | Field)[];
|
|
9022
9131
|
result_position?: EqlSearchResultPosition;
|
|
9023
9132
|
runtime_mappings?: MappingRuntimeFields;
|
|
9133
|
+
max_samples_per_key?: integer;
|
|
9024
9134
|
};
|
|
9025
9135
|
}
|
|
9026
9136
|
export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
|
|
@@ -9041,7 +9151,6 @@ export interface EsqlAsyncQueryRequest extends RequestBase {
|
|
|
9041
9151
|
format?: EsqlQueryEsqlFormat;
|
|
9042
9152
|
keep_alive?: Duration;
|
|
9043
9153
|
keep_on_completion?: boolean;
|
|
9044
|
-
wait_for_completion_timeout?: Duration;
|
|
9045
9154
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
9046
9155
|
body?: {
|
|
9047
9156
|
columnar?: boolean;
|
|
@@ -9052,6 +9161,7 @@ export interface EsqlAsyncQueryRequest extends RequestBase {
|
|
|
9052
9161
|
query: string;
|
|
9053
9162
|
tables?: Record<string, Record<string, EsqlTableValuesContainer>>;
|
|
9054
9163
|
include_ccs_metadata?: boolean;
|
|
9164
|
+
wait_for_completion_timeout?: Duration;
|
|
9055
9165
|
};
|
|
9056
9166
|
}
|
|
9057
9167
|
export type EsqlAsyncQueryResponse = EsqlResult;
|
|
@@ -9066,6 +9176,11 @@ export interface EsqlAsyncQueryGetRequest extends RequestBase {
|
|
|
9066
9176
|
wait_for_completion_timeout?: Duration;
|
|
9067
9177
|
}
|
|
9068
9178
|
export type EsqlAsyncQueryGetResponse = EsqlResult;
|
|
9179
|
+
export interface EsqlAsyncQueryStopRequest extends RequestBase {
|
|
9180
|
+
id: Id;
|
|
9181
|
+
drop_null_columns?: boolean;
|
|
9182
|
+
}
|
|
9183
|
+
export type EsqlAsyncQueryStopResponse = EsqlResult;
|
|
9069
9184
|
export type EsqlQueryEsqlFormat = 'csv' | 'json' | 'tsv' | 'txt' | 'yaml' | 'cbor' | 'smile' | 'arrow';
|
|
9070
9185
|
export interface EsqlQueryRequest extends RequestBase {
|
|
9071
9186
|
format?: EsqlQueryEsqlFormat;
|
|
@@ -9089,11 +9204,13 @@ export interface FeaturesFeature {
|
|
|
9089
9204
|
description: string;
|
|
9090
9205
|
}
|
|
9091
9206
|
export interface FeaturesGetFeaturesRequest extends RequestBase {
|
|
9207
|
+
master_timeout?: Duration;
|
|
9092
9208
|
}
|
|
9093
9209
|
export interface FeaturesGetFeaturesResponse {
|
|
9094
9210
|
features: FeaturesFeature[];
|
|
9095
9211
|
}
|
|
9096
9212
|
export interface FeaturesResetFeaturesRequest extends RequestBase {
|
|
9213
|
+
master_timeout?: Duration;
|
|
9097
9214
|
}
|
|
9098
9215
|
export interface FeaturesResetFeaturesResponse {
|
|
9099
9216
|
features: FeaturesFeature[];
|
|
@@ -9174,7 +9291,7 @@ export interface FleetSearchRequest extends RequestBase {
|
|
|
9174
9291
|
from?: integer;
|
|
9175
9292
|
highlight?: SearchHighlight;
|
|
9176
9293
|
track_total_hits?: SearchTrackHits;
|
|
9177
|
-
indices_boost?: Record<IndexName, double
|
|
9294
|
+
indices_boost?: Partial<Record<IndexName, double>>[];
|
|
9178
9295
|
docvalue_fields?: (QueryDslFieldAndFormat | Field)[];
|
|
9179
9296
|
min_score?: double;
|
|
9180
9297
|
post_filter?: QueryDslQueryContainer;
|
|
@@ -9403,7 +9520,6 @@ export interface IlmExplainLifecycleRequest extends RequestBase {
|
|
|
9403
9520
|
only_errors?: boolean;
|
|
9404
9521
|
only_managed?: boolean;
|
|
9405
9522
|
master_timeout?: Duration;
|
|
9406
|
-
timeout?: Duration;
|
|
9407
9523
|
}
|
|
9408
9524
|
export interface IlmExplainLifecycleResponse {
|
|
9409
9525
|
indices: Record<IndexName, IlmExplainLifecycleLifecycleExplain>;
|
|
@@ -9534,6 +9650,7 @@ export interface IndicesDataStreamIndex {
|
|
|
9534
9650
|
export interface IndicesDataStreamLifecycle {
|
|
9535
9651
|
data_retention?: Duration;
|
|
9536
9652
|
downsampling?: IndicesDataStreamLifecycleDownsampling;
|
|
9653
|
+
enabled?: boolean;
|
|
9537
9654
|
}
|
|
9538
9655
|
export interface IndicesDataStreamLifecycleDownsampling {
|
|
9539
9656
|
rounds: IndicesDownsamplingRound[];
|
|
@@ -9550,9 +9667,7 @@ export interface IndicesDataStreamLifecycleRolloverConditions {
|
|
|
9550
9667
|
min_primary_shard_docs?: long;
|
|
9551
9668
|
max_primary_shard_docs?: long;
|
|
9552
9669
|
}
|
|
9553
|
-
export interface IndicesDataStreamLifecycleWithRollover {
|
|
9554
|
-
data_retention?: Duration;
|
|
9555
|
-
downsampling?: IndicesDataStreamLifecycleDownsampling;
|
|
9670
|
+
export interface IndicesDataStreamLifecycleWithRollover extends IndicesDataStreamLifecycle {
|
|
9556
9671
|
rollover?: IndicesDataStreamLifecycleRolloverConditions;
|
|
9557
9672
|
}
|
|
9558
9673
|
export interface IndicesDataStreamTimestampField {
|
|
@@ -9632,7 +9747,7 @@ export interface IndicesIndexSettingsKeys {
|
|
|
9632
9747
|
routing_partition_size?: SpecUtilsStringified<integer>;
|
|
9633
9748
|
load_fixed_bitset_filters_eagerly?: boolean;
|
|
9634
9749
|
hidden?: boolean | string;
|
|
9635
|
-
auto_expand_replicas?: string
|
|
9750
|
+
auto_expand_replicas?: SpecUtilsWithNullValue<string>;
|
|
9636
9751
|
merge?: IndicesMerge;
|
|
9637
9752
|
search?: IndicesSettingsSearch;
|
|
9638
9753
|
refresh_interval?: Duration;
|
|
@@ -9880,7 +9995,7 @@ export interface IndicesSoftDeletes {
|
|
|
9880
9995
|
enabled?: boolean;
|
|
9881
9996
|
retention_lease?: IndicesRetentionLease;
|
|
9882
9997
|
}
|
|
9883
|
-
export type IndicesSourceMode = '
|
|
9998
|
+
export type IndicesSourceMode = 'disabled' | 'stored' | 'synthetic';
|
|
9884
9999
|
export interface IndicesStorage {
|
|
9885
10000
|
type: IndicesStorageType;
|
|
9886
10001
|
allow_mmap?: boolean;
|
|
@@ -9985,6 +10100,10 @@ export interface IndicesAnalyzeTokenDetail {
|
|
|
9985
10100
|
name: string;
|
|
9986
10101
|
tokens: IndicesAnalyzeExplainAnalyzeToken[];
|
|
9987
10102
|
}
|
|
10103
|
+
export interface IndicesCancelMigrateReindexRequest extends RequestBase {
|
|
10104
|
+
index: Indices;
|
|
10105
|
+
}
|
|
10106
|
+
export type IndicesCancelMigrateReindexResponse = AcknowledgedResponseBase;
|
|
9988
10107
|
export interface IndicesClearCacheRequest extends RequestBase {
|
|
9989
10108
|
index?: Indices;
|
|
9990
10109
|
allow_no_indices?: boolean;
|
|
@@ -10057,6 +10176,22 @@ export interface IndicesCreateDataStreamRequest extends RequestBase {
|
|
|
10057
10176
|
timeout?: Duration;
|
|
10058
10177
|
}
|
|
10059
10178
|
export type IndicesCreateDataStreamResponse = AcknowledgedResponseBase;
|
|
10179
|
+
export interface IndicesCreateFromCreateFrom {
|
|
10180
|
+
mappings_override?: MappingTypeMapping;
|
|
10181
|
+
settings_override?: IndicesIndexSettings;
|
|
10182
|
+
remove_index_blocks?: boolean;
|
|
10183
|
+
}
|
|
10184
|
+
export interface IndicesCreateFromRequest extends RequestBase {
|
|
10185
|
+
source: IndexName;
|
|
10186
|
+
dest: IndexName;
|
|
10187
|
+
/** @deprecated The use of the 'body' key has been deprecated, use 'create_from' instead. */
|
|
10188
|
+
body?: IndicesCreateFromCreateFrom;
|
|
10189
|
+
}
|
|
10190
|
+
export interface IndicesCreateFromResponse {
|
|
10191
|
+
acknowledged: boolean;
|
|
10192
|
+
index: IndexName;
|
|
10193
|
+
shards_acknowledged: boolean;
|
|
10194
|
+
}
|
|
10060
10195
|
export interface IndicesDataStreamsStatsDataStreamsStatsItem {
|
|
10061
10196
|
backing_indices: integer;
|
|
10062
10197
|
data_stream: Name;
|
|
@@ -10154,6 +10289,8 @@ export interface IndicesExistsAliasRequest extends RequestBase {
|
|
|
10154
10289
|
export type IndicesExistsAliasResponse = boolean;
|
|
10155
10290
|
export interface IndicesExistsIndexTemplateRequest extends RequestBase {
|
|
10156
10291
|
name: Name;
|
|
10292
|
+
local?: boolean;
|
|
10293
|
+
flat_settings?: boolean;
|
|
10157
10294
|
master_timeout?: Duration;
|
|
10158
10295
|
}
|
|
10159
10296
|
export type IndicesExistsIndexTemplateResponse = boolean;
|
|
@@ -10214,9 +10351,6 @@ export interface IndicesFieldUsageStatsRequest extends RequestBase {
|
|
|
10214
10351
|
expand_wildcards?: ExpandWildcards;
|
|
10215
10352
|
ignore_unavailable?: boolean;
|
|
10216
10353
|
fields?: Fields;
|
|
10217
|
-
master_timeout?: Duration;
|
|
10218
|
-
timeout?: Duration;
|
|
10219
|
-
wait_for_active_shards?: WaitForActiveShards;
|
|
10220
10354
|
}
|
|
10221
10355
|
export type IndicesFieldUsageStatsResponse = IndicesFieldUsageStatsFieldsUsageBody;
|
|
10222
10356
|
export interface IndicesFieldUsageStatsShardsStats {
|
|
@@ -10283,7 +10417,7 @@ export interface IndicesGetAliasRequest extends RequestBase {
|
|
|
10283
10417
|
export type IndicesGetAliasResponse = Record<IndexName, IndicesGetAliasIndexAliases>;
|
|
10284
10418
|
export interface IndicesGetDataLifecycleDataStreamWithLifecycle {
|
|
10285
10419
|
name: DataStreamName;
|
|
10286
|
-
lifecycle?:
|
|
10420
|
+
lifecycle?: IndicesDataStreamLifecycleWithRollover;
|
|
10287
10421
|
}
|
|
10288
10422
|
export interface IndicesGetDataLifecycleRequest extends RequestBase {
|
|
10289
10423
|
name: DataStreamNames;
|
|
@@ -10357,6 +10491,30 @@ export interface IndicesGetMappingRequest extends RequestBase {
|
|
|
10357
10491
|
master_timeout?: Duration;
|
|
10358
10492
|
}
|
|
10359
10493
|
export type IndicesGetMappingResponse = Record<IndexName, IndicesGetMappingIndexMappingRecord>;
|
|
10494
|
+
export interface IndicesGetMigrateReindexStatusRequest extends RequestBase {
|
|
10495
|
+
index: Indices;
|
|
10496
|
+
}
|
|
10497
|
+
export interface IndicesGetMigrateReindexStatusResponse {
|
|
10498
|
+
start_time?: DateTime;
|
|
10499
|
+
start_time_millis: EpochTime<UnitMillis>;
|
|
10500
|
+
complete: boolean;
|
|
10501
|
+
total_indices_in_data_stream: integer;
|
|
10502
|
+
total_indices_requiring_upgrade: integer;
|
|
10503
|
+
successes: integer;
|
|
10504
|
+
in_progress: IndicesGetMigrateReindexStatusStatusInProgress[];
|
|
10505
|
+
pending: integer;
|
|
10506
|
+
errors: IndicesGetMigrateReindexStatusStatusError[];
|
|
10507
|
+
exception?: string;
|
|
10508
|
+
}
|
|
10509
|
+
export interface IndicesGetMigrateReindexStatusStatusError {
|
|
10510
|
+
index: string;
|
|
10511
|
+
message: string;
|
|
10512
|
+
}
|
|
10513
|
+
export interface IndicesGetMigrateReindexStatusStatusInProgress {
|
|
10514
|
+
index: string;
|
|
10515
|
+
total_doc_count: long;
|
|
10516
|
+
reindexed_doc_count: long;
|
|
10517
|
+
}
|
|
10360
10518
|
export interface IndicesGetSettingsRequest extends RequestBase {
|
|
10361
10519
|
index?: Indices;
|
|
10362
10520
|
name?: Names;
|
|
@@ -10376,6 +10534,19 @@ export interface IndicesGetTemplateRequest extends RequestBase {
|
|
|
10376
10534
|
master_timeout?: Duration;
|
|
10377
10535
|
}
|
|
10378
10536
|
export type IndicesGetTemplateResponse = Record<string, IndicesTemplateMapping>;
|
|
10537
|
+
export interface IndicesMigrateReindexMigrateReindex {
|
|
10538
|
+
mode: IndicesMigrateReindexModeEnum;
|
|
10539
|
+
source: IndicesMigrateReindexSourceIndex;
|
|
10540
|
+
}
|
|
10541
|
+
export type IndicesMigrateReindexModeEnum = 'upgrade';
|
|
10542
|
+
export interface IndicesMigrateReindexRequest extends RequestBase {
|
|
10543
|
+
/** @deprecated The use of the 'body' key has been deprecated, use 'reindex' instead. */
|
|
10544
|
+
body?: IndicesMigrateReindexMigrateReindex;
|
|
10545
|
+
}
|
|
10546
|
+
export type IndicesMigrateReindexResponse = AcknowledgedResponseBase;
|
|
10547
|
+
export interface IndicesMigrateReindexSourceIndex {
|
|
10548
|
+
index: IndexName;
|
|
10549
|
+
}
|
|
10379
10550
|
export interface IndicesMigrateToDataStreamRequest extends RequestBase {
|
|
10380
10551
|
name: IndexName;
|
|
10381
10552
|
master_timeout?: Duration;
|
|
@@ -10439,6 +10610,7 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
|
|
|
10439
10610
|
body?: {
|
|
10440
10611
|
data_retention?: Duration;
|
|
10441
10612
|
downsampling?: IndicesDataStreamLifecycleDownsampling;
|
|
10613
|
+
enabled?: boolean;
|
|
10442
10614
|
};
|
|
10443
10615
|
}
|
|
10444
10616
|
export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase;
|
|
@@ -10481,7 +10653,7 @@ export interface IndicesPutMappingRequest extends RequestBase {
|
|
|
10481
10653
|
date_detection?: boolean;
|
|
10482
10654
|
dynamic?: MappingDynamicMapping;
|
|
10483
10655
|
dynamic_date_formats?: string[];
|
|
10484
|
-
dynamic_templates?:
|
|
10656
|
+
dynamic_templates?: Partial<Record<string, MappingDynamicTemplate>>[];
|
|
10485
10657
|
_field_names?: MappingFieldNamesField;
|
|
10486
10658
|
_meta?: Metadata;
|
|
10487
10659
|
numeric_detection?: boolean;
|
|
@@ -10500,6 +10672,7 @@ export interface IndicesPutSettingsRequest extends RequestBase {
|
|
|
10500
10672
|
ignore_unavailable?: boolean;
|
|
10501
10673
|
master_timeout?: Duration;
|
|
10502
10674
|
preserve_existing?: boolean;
|
|
10675
|
+
reopen?: boolean;
|
|
10503
10676
|
timeout?: Duration;
|
|
10504
10677
|
/** @deprecated The use of the 'body' key has been deprecated, use 'settings' instead. */
|
|
10505
10678
|
body?: IndicesIndexSettings;
|
|
@@ -10637,14 +10810,16 @@ export interface IndicesReloadSearchAnalyzersRequest extends RequestBase {
|
|
|
10637
10810
|
allow_no_indices?: boolean;
|
|
10638
10811
|
expand_wildcards?: ExpandWildcards;
|
|
10639
10812
|
ignore_unavailable?: boolean;
|
|
10813
|
+
resource?: string;
|
|
10640
10814
|
}
|
|
10641
10815
|
export type IndicesReloadSearchAnalyzersResponse = IndicesReloadSearchAnalyzersReloadResult;
|
|
10642
10816
|
export interface IndicesResolveClusterRequest extends RequestBase {
|
|
10643
|
-
name
|
|
10817
|
+
name?: Names;
|
|
10644
10818
|
allow_no_indices?: boolean;
|
|
10645
10819
|
expand_wildcards?: ExpandWildcards;
|
|
10646
10820
|
ignore_throttled?: boolean;
|
|
10647
10821
|
ignore_unavailable?: boolean;
|
|
10822
|
+
timeout?: Duration;
|
|
10648
10823
|
}
|
|
10649
10824
|
export interface IndicesResolveClusterResolveClusterInfo {
|
|
10650
10825
|
connected: boolean;
|
|
@@ -10687,6 +10862,7 @@ export interface IndicesRolloverRequest extends RequestBase {
|
|
|
10687
10862
|
master_timeout?: Duration;
|
|
10688
10863
|
timeout?: Duration;
|
|
10689
10864
|
wait_for_active_shards?: WaitForActiveShards;
|
|
10865
|
+
lazy?: boolean;
|
|
10690
10866
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
10691
10867
|
body?: {
|
|
10692
10868
|
aliases?: Record<IndexName, IndicesAlias>;
|
|
@@ -10814,6 +10990,8 @@ export interface IndicesShrinkResponse {
|
|
|
10814
10990
|
}
|
|
10815
10991
|
export interface IndicesSimulateIndexTemplateRequest extends RequestBase {
|
|
10816
10992
|
name: Name;
|
|
10993
|
+
create?: boolean;
|
|
10994
|
+
cause?: string;
|
|
10817
10995
|
master_timeout?: Duration;
|
|
10818
10996
|
include_defaults?: boolean;
|
|
10819
10997
|
}
|
|
@@ -10828,6 +11006,7 @@ export interface IndicesSimulateTemplateOverlapping {
|
|
|
10828
11006
|
export interface IndicesSimulateTemplateRequest extends RequestBase {
|
|
10829
11007
|
name?: Name;
|
|
10830
11008
|
create?: boolean;
|
|
11009
|
+
cause?: string;
|
|
10831
11010
|
master_timeout?: Duration;
|
|
10832
11011
|
include_defaults?: boolean;
|
|
10833
11012
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
@@ -11088,15 +11267,181 @@ export interface IndicesValidateQueryResponse {
|
|
|
11088
11267
|
valid: boolean;
|
|
11089
11268
|
error?: string;
|
|
11090
11269
|
}
|
|
11270
|
+
export interface InferenceAdaptiveAllocations {
|
|
11271
|
+
enabled?: boolean;
|
|
11272
|
+
max_number_of_allocations?: integer;
|
|
11273
|
+
min_number_of_allocations?: integer;
|
|
11274
|
+
}
|
|
11275
|
+
export interface InferenceAlibabaCloudServiceSettings {
|
|
11276
|
+
api_key: string;
|
|
11277
|
+
host: string;
|
|
11278
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11279
|
+
service_id: string;
|
|
11280
|
+
workspace: string;
|
|
11281
|
+
}
|
|
11282
|
+
export type InferenceAlibabaCloudServiceType = 'alibabacloud-ai-search';
|
|
11283
|
+
export interface InferenceAlibabaCloudTaskSettings {
|
|
11284
|
+
input_type?: string;
|
|
11285
|
+
return_token?: boolean;
|
|
11286
|
+
}
|
|
11287
|
+
export type InferenceAlibabaCloudTaskType = 'completion' | 'rerank' | 'space_embedding' | 'text_embedding';
|
|
11288
|
+
export interface InferenceAmazonBedrockServiceSettings {
|
|
11289
|
+
access_key: string;
|
|
11290
|
+
model: string;
|
|
11291
|
+
provider?: string;
|
|
11292
|
+
region: string;
|
|
11293
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11294
|
+
secret_key: string;
|
|
11295
|
+
}
|
|
11296
|
+
export type InferenceAmazonBedrockServiceType = 'amazonbedrock';
|
|
11297
|
+
export interface InferenceAmazonBedrockTaskSettings {
|
|
11298
|
+
max_new_tokens?: integer;
|
|
11299
|
+
temperature?: float;
|
|
11300
|
+
top_k?: float;
|
|
11301
|
+
top_p?: float;
|
|
11302
|
+
}
|
|
11303
|
+
export type InferenceAmazonBedrockTaskType = 'completion' | 'text_embedding';
|
|
11304
|
+
export interface InferenceAnthropicServiceSettings {
|
|
11305
|
+
api_key: string;
|
|
11306
|
+
model_id: string;
|
|
11307
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11308
|
+
}
|
|
11309
|
+
export type InferenceAnthropicServiceType = 'anthropic';
|
|
11310
|
+
export interface InferenceAnthropicTaskSettings {
|
|
11311
|
+
max_tokens: integer;
|
|
11312
|
+
temperature?: float;
|
|
11313
|
+
top_k?: integer;
|
|
11314
|
+
top_p?: float;
|
|
11315
|
+
}
|
|
11316
|
+
export type InferenceAnthropicTaskType = 'completion';
|
|
11317
|
+
export interface InferenceAzureAiStudioServiceSettings {
|
|
11318
|
+
api_key: string;
|
|
11319
|
+
endpoint_type: string;
|
|
11320
|
+
target: string;
|
|
11321
|
+
provider: string;
|
|
11322
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11323
|
+
}
|
|
11324
|
+
export type InferenceAzureAiStudioServiceType = 'azureaistudio';
|
|
11325
|
+
export interface InferenceAzureAiStudioTaskSettings {
|
|
11326
|
+
do_sample?: float;
|
|
11327
|
+
max_new_tokens?: integer;
|
|
11328
|
+
temperature?: float;
|
|
11329
|
+
top_p?: float;
|
|
11330
|
+
user?: string;
|
|
11331
|
+
}
|
|
11332
|
+
export type InferenceAzureAiStudioTaskType = 'completion' | 'text_embedding';
|
|
11333
|
+
export interface InferenceAzureOpenAIServiceSettings {
|
|
11334
|
+
api_key?: string;
|
|
11335
|
+
api_version: string;
|
|
11336
|
+
deployment_id: string;
|
|
11337
|
+
entra_id?: string;
|
|
11338
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11339
|
+
resource_name: string;
|
|
11340
|
+
}
|
|
11341
|
+
export type InferenceAzureOpenAIServiceType = 'azureopenai';
|
|
11342
|
+
export interface InferenceAzureOpenAITaskSettings {
|
|
11343
|
+
user?: string;
|
|
11344
|
+
}
|
|
11345
|
+
export type InferenceAzureOpenAITaskType = 'completion' | 'text_embedding';
|
|
11346
|
+
export type InferenceCohereEmbeddingType = 'byte' | 'float' | 'int8';
|
|
11347
|
+
export type InferenceCohereInputType = 'classification' | 'clustering' | 'ingest' | 'search';
|
|
11348
|
+
export interface InferenceCohereServiceSettings {
|
|
11349
|
+
api_key: string;
|
|
11350
|
+
embedding_type?: InferenceCohereEmbeddingType;
|
|
11351
|
+
model_id?: string;
|
|
11352
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11353
|
+
similarity?: InferenceCohereSimilarityType;
|
|
11354
|
+
}
|
|
11355
|
+
export type InferenceCohereServiceType = 'cohere';
|
|
11356
|
+
export type InferenceCohereSimilarityType = 'cosine' | 'dot_product' | 'l2_norm';
|
|
11357
|
+
export interface InferenceCohereTaskSettings {
|
|
11358
|
+
input_type?: InferenceCohereInputType;
|
|
11359
|
+
return_documents?: boolean;
|
|
11360
|
+
top_n?: integer;
|
|
11361
|
+
truncate?: InferenceCohereTruncateType;
|
|
11362
|
+
}
|
|
11363
|
+
export type InferenceCohereTaskType = 'completion' | 'rerank' | 'text_embedding';
|
|
11364
|
+
export type InferenceCohereTruncateType = 'END' | 'NONE' | 'START';
|
|
11365
|
+
export interface InferenceCompletionInferenceResult {
|
|
11366
|
+
completion: InferenceCompletionResult[];
|
|
11367
|
+
}
|
|
11091
11368
|
export interface InferenceCompletionResult {
|
|
11092
11369
|
result: string;
|
|
11093
11370
|
}
|
|
11371
|
+
export interface InferenceCompletionTool {
|
|
11372
|
+
type: string;
|
|
11373
|
+
function: InferenceCompletionToolFunction;
|
|
11374
|
+
}
|
|
11375
|
+
export interface InferenceCompletionToolChoice {
|
|
11376
|
+
type: string;
|
|
11377
|
+
function: InferenceCompletionToolChoiceFunction;
|
|
11378
|
+
}
|
|
11379
|
+
export interface InferenceCompletionToolChoiceFunction {
|
|
11380
|
+
name: string;
|
|
11381
|
+
}
|
|
11382
|
+
export interface InferenceCompletionToolFunction {
|
|
11383
|
+
description?: string;
|
|
11384
|
+
name: string;
|
|
11385
|
+
parameters?: any;
|
|
11386
|
+
strict?: boolean;
|
|
11387
|
+
}
|
|
11388
|
+
export type InferenceCompletionToolType = string | InferenceCompletionToolChoice;
|
|
11389
|
+
export interface InferenceContentObject {
|
|
11390
|
+
text: string;
|
|
11391
|
+
type: string;
|
|
11392
|
+
}
|
|
11094
11393
|
export interface InferenceDeleteInferenceEndpointResult extends AcknowledgedResponseBase {
|
|
11095
11394
|
pipelines: string[];
|
|
11096
11395
|
}
|
|
11097
11396
|
export type InferenceDenseByteVector = byte[];
|
|
11098
11397
|
export type InferenceDenseVector = float[];
|
|
11099
|
-
export interface
|
|
11398
|
+
export interface InferenceElasticsearchServiceSettings {
|
|
11399
|
+
adaptive_allocations?: InferenceAdaptiveAllocations;
|
|
11400
|
+
deployment_id?: string;
|
|
11401
|
+
model_id: string;
|
|
11402
|
+
num_allocations?: integer;
|
|
11403
|
+
num_threads: integer;
|
|
11404
|
+
}
|
|
11405
|
+
export type InferenceElasticsearchServiceType = 'elasticsearch';
|
|
11406
|
+
export interface InferenceElasticsearchTaskSettings {
|
|
11407
|
+
return_documents?: boolean;
|
|
11408
|
+
}
|
|
11409
|
+
export type InferenceElasticsearchTaskType = 'rerank' | 'sparse_embedding' | 'text_embedding';
|
|
11410
|
+
export interface InferenceElserServiceSettings {
|
|
11411
|
+
adaptive_allocations?: InferenceAdaptiveAllocations;
|
|
11412
|
+
num_allocations: integer;
|
|
11413
|
+
num_threads: integer;
|
|
11414
|
+
}
|
|
11415
|
+
export type InferenceElserServiceType = 'elser';
|
|
11416
|
+
export type InferenceElserTaskType = 'sparse_embedding';
|
|
11417
|
+
export type InferenceGoogleAiServiceType = 'googleaistudio';
|
|
11418
|
+
export interface InferenceGoogleAiStudioServiceSettings {
|
|
11419
|
+
api_key: string;
|
|
11420
|
+
model_id: string;
|
|
11421
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11422
|
+
}
|
|
11423
|
+
export type InferenceGoogleAiStudioTaskType = 'completion' | 'text_embedding';
|
|
11424
|
+
export interface InferenceGoogleVertexAIServiceSettings {
|
|
11425
|
+
location: string;
|
|
11426
|
+
model_id: string;
|
|
11427
|
+
project_id: string;
|
|
11428
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11429
|
+
service_account_json: string;
|
|
11430
|
+
}
|
|
11431
|
+
export type InferenceGoogleVertexAIServiceType = 'googlevertexai';
|
|
11432
|
+
export interface InferenceGoogleVertexAITaskSettings {
|
|
11433
|
+
auto_truncate?: boolean;
|
|
11434
|
+
top_n?: integer;
|
|
11435
|
+
}
|
|
11436
|
+
export type InferenceGoogleVertexAITaskType = 'rerank' | 'text_embedding';
|
|
11437
|
+
export interface InferenceHuggingFaceServiceSettings {
|
|
11438
|
+
api_key: string;
|
|
11439
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11440
|
+
url: string;
|
|
11441
|
+
}
|
|
11442
|
+
export type InferenceHuggingFaceServiceType = 'hugging_face';
|
|
11443
|
+
export type InferenceHuggingFaceTaskType = 'text_embedding';
|
|
11444
|
+
export interface InferenceInferenceChunkingSettings {
|
|
11100
11445
|
max_chunk_size?: integer;
|
|
11101
11446
|
overlap?: integer;
|
|
11102
11447
|
sentence_overlap?: integer;
|
|
@@ -11114,29 +11459,146 @@ export interface InferenceInferenceEndpointInfo extends InferenceInferenceEndpoi
|
|
|
11114
11459
|
}
|
|
11115
11460
|
export interface InferenceInferenceResult {
|
|
11116
11461
|
text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
|
|
11462
|
+
text_embedding_bits?: InferenceTextEmbeddingByteResult[];
|
|
11117
11463
|
text_embedding?: InferenceTextEmbeddingResult[];
|
|
11118
11464
|
sparse_embedding?: InferenceSparseEmbeddingResult[];
|
|
11119
11465
|
completion?: InferenceCompletionResult[];
|
|
11120
11466
|
rerank?: InferenceRankedDocument[];
|
|
11121
11467
|
}
|
|
11468
|
+
export interface InferenceJinaAIServiceSettings {
|
|
11469
|
+
api_key: string;
|
|
11470
|
+
model_id?: string;
|
|
11471
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11472
|
+
similarity?: InferenceJinaAISimilarityType;
|
|
11473
|
+
}
|
|
11474
|
+
export type InferenceJinaAIServiceType = 'jinaai';
|
|
11475
|
+
export type InferenceJinaAISimilarityType = 'cosine' | 'dot_product' | 'l2_norm';
|
|
11476
|
+
export interface InferenceJinaAITaskSettings {
|
|
11477
|
+
return_documents?: boolean;
|
|
11478
|
+
task?: InferenceJinaAITextEmbeddingTask;
|
|
11479
|
+
top_n?: integer;
|
|
11480
|
+
}
|
|
11481
|
+
export type InferenceJinaAITaskType = 'rerank' | 'text_embedding';
|
|
11482
|
+
export type InferenceJinaAITextEmbeddingTask = 'classification' | 'clustering' | 'ingest' | 'search';
|
|
11483
|
+
export interface InferenceMessage {
|
|
11484
|
+
content?: InferenceMessageContent;
|
|
11485
|
+
role: string;
|
|
11486
|
+
tool_call_id?: Id;
|
|
11487
|
+
tool_calls?: InferenceToolCall[];
|
|
11488
|
+
}
|
|
11489
|
+
export type InferenceMessageContent = string | InferenceContentObject[];
|
|
11490
|
+
export interface InferenceMistralServiceSettings {
|
|
11491
|
+
api_key: string;
|
|
11492
|
+
max_input_tokens?: integer;
|
|
11493
|
+
model: string;
|
|
11494
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11495
|
+
}
|
|
11496
|
+
export type InferenceMistralServiceType = 'mistral';
|
|
11497
|
+
export type InferenceMistralTaskType = 'text_embedding';
|
|
11498
|
+
export interface InferenceOpenAIServiceSettings {
|
|
11499
|
+
api_key: string;
|
|
11500
|
+
dimensions?: integer;
|
|
11501
|
+
model_id: string;
|
|
11502
|
+
organization_id?: string;
|
|
11503
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11504
|
+
url?: string;
|
|
11505
|
+
}
|
|
11506
|
+
export type InferenceOpenAIServiceType = 'openai';
|
|
11507
|
+
export interface InferenceOpenAITaskSettings {
|
|
11508
|
+
user?: string;
|
|
11509
|
+
}
|
|
11510
|
+
export type InferenceOpenAITaskType = 'chat_completion' | 'completion' | 'text_embedding';
|
|
11122
11511
|
export interface InferenceRankedDocument {
|
|
11123
11512
|
index: integer;
|
|
11124
11513
|
relevance_score: float;
|
|
11125
11514
|
text?: string;
|
|
11126
11515
|
}
|
|
11516
|
+
export interface InferenceRateLimitSetting {
|
|
11517
|
+
requests_per_minute?: integer;
|
|
11518
|
+
}
|
|
11519
|
+
export interface InferenceRequestChatCompletion {
|
|
11520
|
+
messages: InferenceMessage[];
|
|
11521
|
+
model?: string;
|
|
11522
|
+
max_completion_tokens?: long;
|
|
11523
|
+
stop?: string[];
|
|
11524
|
+
temperature?: float;
|
|
11525
|
+
tool_choice?: InferenceCompletionToolType;
|
|
11526
|
+
tools?: InferenceCompletionTool[];
|
|
11527
|
+
top_p?: float;
|
|
11528
|
+
}
|
|
11529
|
+
export interface InferenceRerankedInferenceResult {
|
|
11530
|
+
rerank: InferenceRankedDocument[];
|
|
11531
|
+
}
|
|
11127
11532
|
export type InferenceServiceSettings = any;
|
|
11533
|
+
export interface InferenceSparseEmbeddingInferenceResult {
|
|
11534
|
+
sparse_embedding: InferenceSparseEmbeddingResult[];
|
|
11535
|
+
}
|
|
11128
11536
|
export interface InferenceSparseEmbeddingResult {
|
|
11129
11537
|
embedding: InferenceSparseVector;
|
|
11130
11538
|
}
|
|
11131
11539
|
export type InferenceSparseVector = Record<string, float>;
|
|
11132
11540
|
export type InferenceTaskSettings = any;
|
|
11133
|
-
export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' | 'completion';
|
|
11541
|
+
export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' | 'completion' | 'chat_completion';
|
|
11134
11542
|
export interface InferenceTextEmbeddingByteResult {
|
|
11135
11543
|
embedding: InferenceDenseByteVector;
|
|
11136
11544
|
}
|
|
11545
|
+
export interface InferenceTextEmbeddingInferenceResult {
|
|
11546
|
+
text_embedding_bytes?: InferenceTextEmbeddingByteResult[];
|
|
11547
|
+
text_embedding?: InferenceTextEmbeddingResult[];
|
|
11548
|
+
}
|
|
11137
11549
|
export interface InferenceTextEmbeddingResult {
|
|
11138
11550
|
embedding: InferenceDenseVector;
|
|
11139
11551
|
}
|
|
11552
|
+
export interface InferenceToolCall {
|
|
11553
|
+
id: Id;
|
|
11554
|
+
function: InferenceToolCallFunction;
|
|
11555
|
+
type: string;
|
|
11556
|
+
}
|
|
11557
|
+
export interface InferenceToolCallFunction {
|
|
11558
|
+
arguments: string;
|
|
11559
|
+
name: string;
|
|
11560
|
+
}
|
|
11561
|
+
export interface InferenceVoyageAIServiceSettings {
|
|
11562
|
+
dimensions?: integer;
|
|
11563
|
+
model_id: string;
|
|
11564
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11565
|
+
embedding_type?: float;
|
|
11566
|
+
}
|
|
11567
|
+
export type InferenceVoyageAIServiceType = 'voyageai';
|
|
11568
|
+
export interface InferenceVoyageAITaskSettings {
|
|
11569
|
+
input_type?: string;
|
|
11570
|
+
return_documents?: boolean;
|
|
11571
|
+
top_k?: integer;
|
|
11572
|
+
truncation?: boolean;
|
|
11573
|
+
}
|
|
11574
|
+
export type InferenceVoyageAITaskType = 'text_embedding' | 'rerank';
|
|
11575
|
+
export interface InferenceWatsonxServiceSettings {
|
|
11576
|
+
api_key: string;
|
|
11577
|
+
api_version: string;
|
|
11578
|
+
model_id: string;
|
|
11579
|
+
project_id: string;
|
|
11580
|
+
rate_limit?: InferenceRateLimitSetting;
|
|
11581
|
+
url: string;
|
|
11582
|
+
}
|
|
11583
|
+
export type InferenceWatsonxServiceType = 'watsonxai';
|
|
11584
|
+
export type InferenceWatsonxTaskType = 'text_embedding';
|
|
11585
|
+
export interface InferenceChatCompletionUnifiedRequest extends RequestBase {
|
|
11586
|
+
inference_id: Id;
|
|
11587
|
+
timeout?: Duration;
|
|
11588
|
+
/** @deprecated The use of the 'body' key has been deprecated, use 'chat_completion_request' instead. */
|
|
11589
|
+
body?: InferenceRequestChatCompletion;
|
|
11590
|
+
}
|
|
11591
|
+
export type InferenceChatCompletionUnifiedResponse = StreamResult;
|
|
11592
|
+
export interface InferenceCompletionRequest extends RequestBase {
|
|
11593
|
+
inference_id: Id;
|
|
11594
|
+
timeout?: Duration;
|
|
11595
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11596
|
+
body?: {
|
|
11597
|
+
input: string | string[];
|
|
11598
|
+
task_settings?: InferenceTaskSettings;
|
|
11599
|
+
};
|
|
11600
|
+
}
|
|
11601
|
+
export type InferenceCompletionResponse = InferenceCompletionInferenceResult;
|
|
11140
11602
|
export interface InferenceDeleteRequest extends RequestBase {
|
|
11141
11603
|
task_type?: InferenceTaskType;
|
|
11142
11604
|
inference_id: Id;
|
|
@@ -11170,15 +11632,232 @@ export interface InferencePutRequest extends RequestBase {
|
|
|
11170
11632
|
body?: InferenceInferenceEndpoint;
|
|
11171
11633
|
}
|
|
11172
11634
|
export type InferencePutResponse = InferenceInferenceEndpointInfo;
|
|
11173
|
-
export interface
|
|
11635
|
+
export interface InferencePutAlibabacloudRequest extends RequestBase {
|
|
11636
|
+
task_type: InferenceAlibabaCloudTaskType;
|
|
11637
|
+
alibabacloud_inference_id: Id;
|
|
11638
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11639
|
+
body?: {
|
|
11640
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11641
|
+
service: InferenceAlibabaCloudServiceType;
|
|
11642
|
+
service_settings: InferenceAlibabaCloudServiceSettings;
|
|
11643
|
+
task_settings?: InferenceAlibabaCloudTaskSettings;
|
|
11644
|
+
};
|
|
11645
|
+
}
|
|
11646
|
+
export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfo;
|
|
11647
|
+
export interface InferencePutAmazonbedrockRequest extends RequestBase {
|
|
11648
|
+
task_type: InferenceAmazonBedrockTaskType;
|
|
11649
|
+
amazonbedrock_inference_id: Id;
|
|
11650
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11651
|
+
body?: {
|
|
11652
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11653
|
+
service: InferenceAmazonBedrockServiceType;
|
|
11654
|
+
service_settings: InferenceAmazonBedrockServiceSettings;
|
|
11655
|
+
task_settings?: InferenceAmazonBedrockTaskSettings;
|
|
11656
|
+
};
|
|
11657
|
+
}
|
|
11658
|
+
export type InferencePutAmazonbedrockResponse = InferenceInferenceEndpointInfo;
|
|
11659
|
+
export interface InferencePutAnthropicRequest extends RequestBase {
|
|
11660
|
+
task_type: InferenceAnthropicTaskType;
|
|
11661
|
+
anthropic_inference_id: Id;
|
|
11662
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11663
|
+
body?: {
|
|
11664
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11665
|
+
service: InferenceAnthropicServiceType;
|
|
11666
|
+
service_settings: InferenceAnthropicServiceSettings;
|
|
11667
|
+
task_settings?: InferenceAnthropicTaskSettings;
|
|
11668
|
+
};
|
|
11669
|
+
}
|
|
11670
|
+
export type InferencePutAnthropicResponse = InferenceInferenceEndpointInfo;
|
|
11671
|
+
export interface InferencePutAzureaistudioRequest extends RequestBase {
|
|
11672
|
+
task_type: InferenceAzureAiStudioTaskType;
|
|
11673
|
+
azureaistudio_inference_id: Id;
|
|
11674
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11675
|
+
body?: {
|
|
11676
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11677
|
+
service: InferenceAzureAiStudioServiceType;
|
|
11678
|
+
service_settings: InferenceAzureAiStudioServiceSettings;
|
|
11679
|
+
task_settings?: InferenceAzureAiStudioTaskSettings;
|
|
11680
|
+
};
|
|
11681
|
+
}
|
|
11682
|
+
export type InferencePutAzureaistudioResponse = InferenceInferenceEndpointInfo;
|
|
11683
|
+
export interface InferencePutAzureopenaiRequest extends RequestBase {
|
|
11684
|
+
task_type: InferenceAzureOpenAITaskType;
|
|
11685
|
+
azureopenai_inference_id: Id;
|
|
11686
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11687
|
+
body?: {
|
|
11688
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11689
|
+
service: InferenceAzureOpenAIServiceType;
|
|
11690
|
+
service_settings: InferenceAzureOpenAIServiceSettings;
|
|
11691
|
+
task_settings?: InferenceAzureOpenAITaskSettings;
|
|
11692
|
+
};
|
|
11693
|
+
}
|
|
11694
|
+
export type InferencePutAzureopenaiResponse = InferenceInferenceEndpointInfo;
|
|
11695
|
+
export interface InferencePutCohereRequest extends RequestBase {
|
|
11696
|
+
task_type: InferenceCohereTaskType;
|
|
11697
|
+
cohere_inference_id: Id;
|
|
11698
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11699
|
+
body?: {
|
|
11700
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11701
|
+
service: InferenceCohereServiceType;
|
|
11702
|
+
service_settings: InferenceCohereServiceSettings;
|
|
11703
|
+
task_settings?: InferenceCohereTaskSettings;
|
|
11704
|
+
};
|
|
11705
|
+
}
|
|
11706
|
+
export type InferencePutCohereResponse = InferenceInferenceEndpointInfo;
|
|
11707
|
+
export interface InferencePutElasticsearchRequest extends RequestBase {
|
|
11708
|
+
task_type: InferenceElasticsearchTaskType;
|
|
11709
|
+
elasticsearch_inference_id: Id;
|
|
11710
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11711
|
+
body?: {
|
|
11712
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11713
|
+
service: InferenceElasticsearchServiceType;
|
|
11714
|
+
service_settings: InferenceElasticsearchServiceSettings;
|
|
11715
|
+
task_settings?: InferenceElasticsearchTaskSettings;
|
|
11716
|
+
};
|
|
11717
|
+
}
|
|
11718
|
+
export type InferencePutElasticsearchResponse = InferenceInferenceEndpointInfo;
|
|
11719
|
+
export interface InferencePutElserRequest extends RequestBase {
|
|
11720
|
+
task_type: InferenceElserTaskType;
|
|
11721
|
+
elser_inference_id: Id;
|
|
11722
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11723
|
+
body?: {
|
|
11724
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11725
|
+
service: InferenceElserServiceType;
|
|
11726
|
+
service_settings: InferenceElserServiceSettings;
|
|
11727
|
+
};
|
|
11728
|
+
}
|
|
11729
|
+
export type InferencePutElserResponse = InferenceInferenceEndpointInfo;
|
|
11730
|
+
export interface InferencePutGoogleaistudioRequest extends RequestBase {
|
|
11731
|
+
task_type: InferenceGoogleAiStudioTaskType;
|
|
11732
|
+
googleaistudio_inference_id: Id;
|
|
11733
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11734
|
+
body?: {
|
|
11735
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11736
|
+
service: InferenceGoogleAiServiceType;
|
|
11737
|
+
service_settings: InferenceGoogleAiStudioServiceSettings;
|
|
11738
|
+
};
|
|
11739
|
+
}
|
|
11740
|
+
export type InferencePutGoogleaistudioResponse = InferenceInferenceEndpointInfo;
|
|
11741
|
+
export interface InferencePutGooglevertexaiRequest extends RequestBase {
|
|
11742
|
+
task_type: InferenceGoogleVertexAITaskType;
|
|
11743
|
+
googlevertexai_inference_id: Id;
|
|
11744
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11745
|
+
body?: {
|
|
11746
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11747
|
+
service: InferenceGoogleVertexAIServiceType;
|
|
11748
|
+
service_settings: InferenceGoogleVertexAIServiceSettings;
|
|
11749
|
+
task_settings?: InferenceGoogleVertexAITaskSettings;
|
|
11750
|
+
};
|
|
11751
|
+
}
|
|
11752
|
+
export type InferencePutGooglevertexaiResponse = InferenceInferenceEndpointInfo;
|
|
11753
|
+
export interface InferencePutHuggingFaceRequest extends RequestBase {
|
|
11754
|
+
task_type: InferenceHuggingFaceTaskType;
|
|
11755
|
+
huggingface_inference_id: Id;
|
|
11756
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11757
|
+
body?: {
|
|
11758
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11759
|
+
service: InferenceHuggingFaceServiceType;
|
|
11760
|
+
service_settings: InferenceHuggingFaceServiceSettings;
|
|
11761
|
+
};
|
|
11762
|
+
}
|
|
11763
|
+
export type InferencePutHuggingFaceResponse = InferenceInferenceEndpointInfo;
|
|
11764
|
+
export interface InferencePutJinaaiRequest extends RequestBase {
|
|
11765
|
+
task_type: InferenceJinaAITaskType;
|
|
11766
|
+
jinaai_inference_id: Id;
|
|
11767
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11768
|
+
body?: {
|
|
11769
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11770
|
+
service: InferenceJinaAIServiceType;
|
|
11771
|
+
service_settings: InferenceJinaAIServiceSettings;
|
|
11772
|
+
task_settings?: InferenceJinaAITaskSettings;
|
|
11773
|
+
};
|
|
11774
|
+
}
|
|
11775
|
+
export type InferencePutJinaaiResponse = InferenceInferenceEndpointInfo;
|
|
11776
|
+
export interface InferencePutMistralRequest extends RequestBase {
|
|
11777
|
+
task_type: InferenceMistralTaskType;
|
|
11778
|
+
mistral_inference_id: Id;
|
|
11779
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11780
|
+
body?: {
|
|
11781
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11782
|
+
service: InferenceMistralServiceType;
|
|
11783
|
+
service_settings: InferenceMistralServiceSettings;
|
|
11784
|
+
};
|
|
11785
|
+
}
|
|
11786
|
+
export type InferencePutMistralResponse = InferenceInferenceEndpointInfo;
|
|
11787
|
+
export interface InferencePutOpenaiRequest extends RequestBase {
|
|
11788
|
+
task_type: InferenceOpenAITaskType;
|
|
11789
|
+
openai_inference_id: Id;
|
|
11790
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11791
|
+
body?: {
|
|
11792
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11793
|
+
service: InferenceOpenAIServiceType;
|
|
11794
|
+
service_settings: InferenceOpenAIServiceSettings;
|
|
11795
|
+
task_settings?: InferenceOpenAITaskSettings;
|
|
11796
|
+
};
|
|
11797
|
+
}
|
|
11798
|
+
export type InferencePutOpenaiResponse = InferenceInferenceEndpointInfo;
|
|
11799
|
+
export interface InferencePutVoyageaiRequest extends RequestBase {
|
|
11800
|
+
task_type: InferenceVoyageAITaskType;
|
|
11801
|
+
voyageai_inference_id: Id;
|
|
11802
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11803
|
+
body?: {
|
|
11804
|
+
chunking_settings?: InferenceInferenceChunkingSettings;
|
|
11805
|
+
service: InferenceVoyageAIServiceType;
|
|
11806
|
+
service_settings: InferenceVoyageAIServiceSettings;
|
|
11807
|
+
task_settings?: InferenceVoyageAITaskSettings;
|
|
11808
|
+
};
|
|
11809
|
+
}
|
|
11810
|
+
export type InferencePutVoyageaiResponse = InferenceInferenceEndpointInfo;
|
|
11811
|
+
export interface InferencePutWatsonxRequest extends RequestBase {
|
|
11812
|
+
task_type: InferenceWatsonxTaskType;
|
|
11813
|
+
watsonx_inference_id: Id;
|
|
11814
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11815
|
+
body?: {
|
|
11816
|
+
service: InferenceWatsonxServiceType;
|
|
11817
|
+
service_settings: InferenceWatsonxServiceSettings;
|
|
11818
|
+
};
|
|
11819
|
+
}
|
|
11820
|
+
export type InferencePutWatsonxResponse = InferenceInferenceEndpointInfo;
|
|
11821
|
+
export interface InferenceRerankRequest extends RequestBase {
|
|
11174
11822
|
inference_id: Id;
|
|
11175
|
-
|
|
11823
|
+
timeout?: Duration;
|
|
11824
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11825
|
+
body?: {
|
|
11826
|
+
query: string;
|
|
11827
|
+
input: string | string[];
|
|
11828
|
+
task_settings?: InferenceTaskSettings;
|
|
11829
|
+
};
|
|
11830
|
+
}
|
|
11831
|
+
export type InferenceRerankResponse = InferenceRerankedInferenceResult;
|
|
11832
|
+
export interface InferenceSparseEmbeddingRequest extends RequestBase {
|
|
11833
|
+
inference_id: Id;
|
|
11834
|
+
timeout?: Duration;
|
|
11176
11835
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11177
11836
|
body?: {
|
|
11178
11837
|
input: string | string[];
|
|
11838
|
+
task_settings?: InferenceTaskSettings;
|
|
11179
11839
|
};
|
|
11180
11840
|
}
|
|
11181
|
-
export type
|
|
11841
|
+
export type InferenceSparseEmbeddingResponse = InferenceSparseEmbeddingInferenceResult;
|
|
11842
|
+
export interface InferenceStreamCompletionRequest extends RequestBase {
|
|
11843
|
+
inference_id: Id;
|
|
11844
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11845
|
+
body?: {
|
|
11846
|
+
input: string | string[];
|
|
11847
|
+
task_settings?: InferenceTaskSettings;
|
|
11848
|
+
};
|
|
11849
|
+
}
|
|
11850
|
+
export type InferenceStreamCompletionResponse = StreamResult;
|
|
11851
|
+
export interface InferenceTextEmbeddingRequest extends RequestBase {
|
|
11852
|
+
inference_id: Id;
|
|
11853
|
+
timeout?: Duration;
|
|
11854
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11855
|
+
body?: {
|
|
11856
|
+
input: string | string[];
|
|
11857
|
+
task_settings?: InferenceTaskSettings;
|
|
11858
|
+
};
|
|
11859
|
+
}
|
|
11860
|
+
export type InferenceTextEmbeddingResponse = InferenceTextEmbeddingInferenceResult;
|
|
11182
11861
|
export interface InferenceUpdateRequest extends RequestBase {
|
|
11183
11862
|
inference_id: Id;
|
|
11184
11863
|
task_type?: InferenceTaskType;
|
|
@@ -11388,12 +12067,18 @@ export interface IngestInferenceProcessor extends IngestProcessorBase {
|
|
|
11388
12067
|
target_field?: Field;
|
|
11389
12068
|
field_map?: Record<Field, any>;
|
|
11390
12069
|
inference_config?: IngestInferenceConfig;
|
|
12070
|
+
input_output?: IngestInputConfig | IngestInputConfig[];
|
|
12071
|
+
ignore_missing?: boolean;
|
|
11391
12072
|
}
|
|
11392
12073
|
export interface IngestIngest {
|
|
11393
12074
|
_redact?: IngestRedact;
|
|
11394
12075
|
timestamp: DateTime;
|
|
11395
12076
|
pipeline?: Name;
|
|
11396
12077
|
}
|
|
12078
|
+
export interface IngestInputConfig {
|
|
12079
|
+
input_field: string;
|
|
12080
|
+
output_field: string;
|
|
12081
|
+
}
|
|
11397
12082
|
export interface IngestIpLocationProcessor extends IngestProcessorBase {
|
|
11398
12083
|
database_file?: string;
|
|
11399
12084
|
field: Field;
|
|
@@ -11681,7 +12366,6 @@ export interface IngestGetGeoipDatabaseDatabaseConfigurationMetadata {
|
|
|
11681
12366
|
}
|
|
11682
12367
|
export interface IngestGetGeoipDatabaseRequest extends RequestBase {
|
|
11683
12368
|
id?: Ids;
|
|
11684
|
-
master_timeout?: Duration;
|
|
11685
12369
|
}
|
|
11686
12370
|
export interface IngestGetGeoipDatabaseResponse {
|
|
11687
12371
|
databases: IngestGetGeoipDatabaseDatabaseConfigurationMetadata[];
|
|
@@ -11773,6 +12457,8 @@ export interface LicenseLicense {
|
|
|
11773
12457
|
export type LicenseLicenseStatus = 'active' | 'valid' | 'invalid' | 'expired';
|
|
11774
12458
|
export type LicenseLicenseType = 'missing' | 'trial' | 'basic' | 'standard' | 'dev' | 'silver' | 'gold' | 'platinum' | 'enterprise';
|
|
11775
12459
|
export interface LicenseDeleteRequest extends RequestBase {
|
|
12460
|
+
master_timeout?: Duration;
|
|
12461
|
+
timeout?: Duration;
|
|
11776
12462
|
}
|
|
11777
12463
|
export type LicenseDeleteResponse = AcknowledgedResponseBase;
|
|
11778
12464
|
export interface LicenseGetLicenseInformation {
|
|
@@ -11812,6 +12498,8 @@ export interface LicensePostAcknowledgement {
|
|
|
11812
12498
|
}
|
|
11813
12499
|
export interface LicensePostRequest extends RequestBase {
|
|
11814
12500
|
acknowledge?: boolean;
|
|
12501
|
+
master_timeout?: Duration;
|
|
12502
|
+
timeout?: Duration;
|
|
11815
12503
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
11816
12504
|
body?: {
|
|
11817
12505
|
license?: LicenseLicense;
|
|
@@ -11825,6 +12513,8 @@ export interface LicensePostResponse {
|
|
|
11825
12513
|
}
|
|
11826
12514
|
export interface LicensePostStartBasicRequest extends RequestBase {
|
|
11827
12515
|
acknowledge?: boolean;
|
|
12516
|
+
master_timeout?: Duration;
|
|
12517
|
+
timeout?: Duration;
|
|
11828
12518
|
}
|
|
11829
12519
|
export interface LicensePostStartBasicResponse {
|
|
11830
12520
|
acknowledged: boolean;
|
|
@@ -11836,6 +12526,7 @@ export interface LicensePostStartBasicResponse {
|
|
|
11836
12526
|
export interface LicensePostStartTrialRequest extends RequestBase {
|
|
11837
12527
|
acknowledge?: boolean;
|
|
11838
12528
|
type_query_string?: string;
|
|
12529
|
+
master_timeout?: Duration;
|
|
11839
12530
|
}
|
|
11840
12531
|
export interface LicensePostStartTrialResponse {
|
|
11841
12532
|
acknowledged: boolean;
|
|
@@ -11896,6 +12587,8 @@ export interface MigrationDeprecationsResponse {
|
|
|
11896
12587
|
data_streams: Record<string, MigrationDeprecationsDeprecation[]>;
|
|
11897
12588
|
node_settings: MigrationDeprecationsDeprecation[];
|
|
11898
12589
|
ml_settings: MigrationDeprecationsDeprecation[];
|
|
12590
|
+
templates: Record<string, MigrationDeprecationsDeprecation[]>;
|
|
12591
|
+
ilm_policies: Record<string, MigrationDeprecationsDeprecation[]>;
|
|
11899
12592
|
}
|
|
11900
12593
|
export interface MigrationGetFeatureUpgradeStatusMigrationFeature {
|
|
11901
12594
|
feature_name: string;
|
|
@@ -12469,6 +13162,7 @@ export interface MlExponentialAverageCalculationContext {
|
|
|
12469
13162
|
latest_timestamp?: EpochTime<UnitMillis>;
|
|
12470
13163
|
previous_exponential_average_ms?: DurationValue<UnitFloatMillis>;
|
|
12471
13164
|
}
|
|
13165
|
+
export type MlFeatureExtractor = MlQueryFeatureExtractor;
|
|
12472
13166
|
export interface MlFillMaskInferenceOptions {
|
|
12473
13167
|
mask_token?: string;
|
|
12474
13168
|
num_top_classes?: integer;
|
|
@@ -12525,6 +13219,7 @@ export interface MlInferenceConfigCreateContainer {
|
|
|
12525
13219
|
text_classification?: MlTextClassificationInferenceOptions;
|
|
12526
13220
|
zero_shot_classification?: MlZeroShotClassificationInferenceOptions;
|
|
12527
13221
|
fill_mask?: MlFillMaskInferenceOptions;
|
|
13222
|
+
learning_to_rank?: MlLearningToRankConfig;
|
|
12528
13223
|
ner?: MlNerInferenceOptions;
|
|
12529
13224
|
pass_through?: MlPassThroughInferenceOptions;
|
|
12530
13225
|
text_embedding?: MlTextEmbeddingInferenceOptions;
|
|
@@ -12657,6 +13352,11 @@ export interface MlJobTimingStats {
|
|
|
12657
13352
|
maximum_bucket_processing_time_ms?: DurationValue<UnitFloatMillis>;
|
|
12658
13353
|
minimum_bucket_processing_time_ms?: DurationValue<UnitFloatMillis>;
|
|
12659
13354
|
}
|
|
13355
|
+
export interface MlLearningToRankConfig {
|
|
13356
|
+
default_params?: Record<string, any>;
|
|
13357
|
+
feature_extractors?: Record<string, MlFeatureExtractor>[];
|
|
13358
|
+
num_top_feature_importance_values: integer;
|
|
13359
|
+
}
|
|
12660
13360
|
export type MlMemoryStatus = 'ok' | 'soft_limit' | 'hard_limit';
|
|
12661
13361
|
export interface MlModelPackageConfig {
|
|
12662
13362
|
create_time?: EpochTime<UnitMillis>;
|
|
@@ -12780,6 +13480,11 @@ export interface MlPerPartitionCategorization {
|
|
|
12780
13480
|
stop_on_warn?: boolean;
|
|
12781
13481
|
}
|
|
12782
13482
|
export type MlPredictedValue = ScalarValue | ScalarValue[];
|
|
13483
|
+
export interface MlQueryFeatureExtractor {
|
|
13484
|
+
default_score?: float;
|
|
13485
|
+
feature_name: string;
|
|
13486
|
+
query: QueryDslQueryContainer;
|
|
13487
|
+
}
|
|
12783
13488
|
export interface MlQuestionAnsweringInferenceOptions {
|
|
12784
13489
|
num_top_classes?: integer;
|
|
12785
13490
|
tokenization?: MlTokenizationConfigContainer;
|
|
@@ -12816,6 +13521,7 @@ export interface MlTextClassificationInferenceOptions {
|
|
|
12816
13521
|
tokenization?: MlTokenizationConfigContainer;
|
|
12817
13522
|
results_field?: string;
|
|
12818
13523
|
classification_labels?: string[];
|
|
13524
|
+
vocabulary?: MlVocabulary;
|
|
12819
13525
|
}
|
|
12820
13526
|
export interface MlTextClassificationInferenceUpdateOptions {
|
|
12821
13527
|
num_top_classes?: integer;
|
|
@@ -12851,6 +13557,7 @@ export interface MlTokenizationConfigContainer {
|
|
|
12851
13557
|
bert_ja?: MlNlpBertTokenizationConfig;
|
|
12852
13558
|
mpnet?: MlNlpBertTokenizationConfig;
|
|
12853
13559
|
roberta?: MlNlpRobertaTokenizationConfig;
|
|
13560
|
+
xlm_roberta?: MlXlmRobertaTokenizationConfig;
|
|
12854
13561
|
}
|
|
12855
13562
|
export type MlTokenizationTruncate = 'first' | 'second' | 'none';
|
|
12856
13563
|
export interface MlTopClassEntry {
|
|
@@ -12881,6 +13588,10 @@ export interface MlTrainedModelAssignment {
|
|
|
12881
13588
|
start_time: DateTime;
|
|
12882
13589
|
task_parameters: MlTrainedModelAssignmentTaskParameters;
|
|
12883
13590
|
}
|
|
13591
|
+
export interface MlTrainedModelAssignmentRoutingStateAndReason {
|
|
13592
|
+
reason?: string;
|
|
13593
|
+
routing_state: MlRoutingState;
|
|
13594
|
+
}
|
|
12884
13595
|
export interface MlTrainedModelAssignmentRoutingTable {
|
|
12885
13596
|
reason?: string;
|
|
12886
13597
|
routing_state: MlRoutingState;
|
|
@@ -12919,6 +13630,7 @@ export interface MlTrainedModelConfig {
|
|
|
12919
13630
|
model_size_bytes?: ByteSize;
|
|
12920
13631
|
model_package?: MlModelPackageConfig;
|
|
12921
13632
|
location?: MlTrainedModelLocation;
|
|
13633
|
+
platform_architecture?: string;
|
|
12922
13634
|
prefix_strings?: MlTrainedModelPrefixStrings;
|
|
12923
13635
|
}
|
|
12924
13636
|
export interface MlTrainedModelConfigInput {
|
|
@@ -12948,8 +13660,8 @@ export interface MlTrainedModelDeploymentNodesStats {
|
|
|
12948
13660
|
number_of_allocations?: integer;
|
|
12949
13661
|
number_of_pending_requests?: integer;
|
|
12950
13662
|
peak_throughput_per_minute: long;
|
|
12951
|
-
|
|
12952
|
-
routing_state:
|
|
13663
|
+
rejected_execution_count?: integer;
|
|
13664
|
+
routing_state: MlTrainedModelAssignmentRoutingStateAndReason;
|
|
12953
13665
|
start_time?: EpochTime<UnitMillis>;
|
|
12954
13666
|
threads_per_allocation?: integer;
|
|
12955
13667
|
throughput_last_minute: integer;
|
|
@@ -13034,6 +13746,8 @@ export interface MlValidationLoss {
|
|
|
13034
13746
|
export interface MlVocabulary {
|
|
13035
13747
|
index: IndexName;
|
|
13036
13748
|
}
|
|
13749
|
+
export interface MlXlmRobertaTokenizationConfig extends MlCommonTokenizationConfig {
|
|
13750
|
+
}
|
|
13037
13751
|
export interface MlZeroShotClassificationInferenceOptions {
|
|
13038
13752
|
tokenization?: MlTokenizationConfigContainer;
|
|
13039
13753
|
hypothesis_template?: string;
|
|
@@ -13132,6 +13846,7 @@ export type MlDeleteModelSnapshotResponse = AcknowledgedResponseBase;
|
|
|
13132
13846
|
export interface MlDeleteTrainedModelRequest extends RequestBase {
|
|
13133
13847
|
model_id: Id;
|
|
13134
13848
|
force?: boolean;
|
|
13849
|
+
timeout?: Duration;
|
|
13135
13850
|
}
|
|
13136
13851
|
export type MlDeleteTrainedModelResponse = AcknowledgedResponseBase;
|
|
13137
13852
|
export interface MlDeleteTrainedModelAliasRequest extends RequestBase {
|
|
@@ -13462,7 +14177,6 @@ export interface MlGetMemoryStatsMemory {
|
|
|
13462
14177
|
}
|
|
13463
14178
|
export interface MlGetMemoryStatsRequest extends RequestBase {
|
|
13464
14179
|
node_id?: Id;
|
|
13465
|
-
human?: boolean;
|
|
13466
14180
|
master_timeout?: Duration;
|
|
13467
14181
|
timeout?: Duration;
|
|
13468
14182
|
}
|
|
@@ -14005,6 +14719,10 @@ export interface MlStartTrainedModelDeploymentRequest extends RequestBase {
|
|
|
14005
14719
|
threads_per_allocation?: integer;
|
|
14006
14720
|
timeout?: Duration;
|
|
14007
14721
|
wait_for?: MlDeploymentAllocationState;
|
|
14722
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
14723
|
+
body?: {
|
|
14724
|
+
adaptive_allocations?: MlAdaptiveAllocationsSettings;
|
|
14725
|
+
};
|
|
14008
14726
|
}
|
|
14009
14727
|
export interface MlStartTrainedModelDeploymentResponse {
|
|
14010
14728
|
assignment: MlTrainedModelAssignment;
|
|
@@ -14180,6 +14898,7 @@ export interface MlUpdateTrainedModelDeploymentRequest extends RequestBase {
|
|
|
14180
14898
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
14181
14899
|
body?: {
|
|
14182
14900
|
number_of_allocations?: integer;
|
|
14901
|
+
adaptive_allocations?: MlAdaptiveAllocationsSettings;
|
|
14183
14902
|
};
|
|
14184
14903
|
}
|
|
14185
14904
|
export interface MlUpdateTrainedModelDeploymentResponse {
|
|
@@ -14488,11 +15207,10 @@ export interface NodesNodeBufferPool {
|
|
|
14488
15207
|
used?: string;
|
|
14489
15208
|
used_in_bytes?: long;
|
|
14490
15209
|
}
|
|
14491
|
-
export interface
|
|
15210
|
+
export interface NodesNodeReloadResult {
|
|
14492
15211
|
name: Name;
|
|
14493
15212
|
reload_exception?: ErrorCause;
|
|
14494
15213
|
}
|
|
14495
|
-
export type NodesNodeReloadResult = NodesStats | NodesNodeReloadError;
|
|
14496
15214
|
export interface NodesNodesResponseBase {
|
|
14497
15215
|
_nodes?: NodeStatistics;
|
|
14498
15216
|
}
|
|
@@ -14682,7 +15400,6 @@ export interface NodesHotThreadsRequest extends RequestBase {
|
|
|
14682
15400
|
ignore_idle_threads?: boolean;
|
|
14683
15401
|
interval?: Duration;
|
|
14684
15402
|
snapshots?: long;
|
|
14685
|
-
master_timeout?: Duration;
|
|
14686
15403
|
threads?: long;
|
|
14687
15404
|
timeout?: Duration;
|
|
14688
15405
|
type?: ThreadType;
|
|
@@ -14994,7 +15711,6 @@ export interface NodesInfoRequest extends RequestBase {
|
|
|
14994
15711
|
node_id?: NodeIds;
|
|
14995
15712
|
metric?: Metrics;
|
|
14996
15713
|
flat_settings?: boolean;
|
|
14997
|
-
master_timeout?: Duration;
|
|
14998
15714
|
timeout?: Duration;
|
|
14999
15715
|
}
|
|
15000
15716
|
export type NodesInfoResponse = NodesInfoResponseBase;
|
|
@@ -15025,7 +15741,6 @@ export interface NodesStatsRequest extends RequestBase {
|
|
|
15025
15741
|
groups?: boolean;
|
|
15026
15742
|
include_segment_file_sizes?: boolean;
|
|
15027
15743
|
level?: Level;
|
|
15028
|
-
master_timeout?: Duration;
|
|
15029
15744
|
timeout?: Duration;
|
|
15030
15745
|
types?: string[];
|
|
15031
15746
|
include_unloaded_segments?: boolean;
|
|
@@ -15311,10 +16026,12 @@ export interface SearchApplicationEventDataStream {
|
|
|
15311
16026
|
name: IndexName;
|
|
15312
16027
|
}
|
|
15313
16028
|
export type SearchApplicationEventType = 'page_view' | 'search' | 'search_click';
|
|
15314
|
-
export interface SearchApplicationSearchApplication {
|
|
16029
|
+
export interface SearchApplicationSearchApplication extends SearchApplicationSearchApplicationParameters {
|
|
15315
16030
|
name: Name;
|
|
15316
|
-
indices: IndexName[];
|
|
15317
16031
|
updated_at_millis: EpochTime<UnitMillis>;
|
|
16032
|
+
}
|
|
16033
|
+
export interface SearchApplicationSearchApplicationParameters {
|
|
16034
|
+
indices: IndexName[];
|
|
15318
16035
|
analytics_collection_name?: Name;
|
|
15319
16036
|
template?: SearchApplicationSearchApplicationTemplate;
|
|
15320
16037
|
}
|
|
@@ -15344,13 +16061,7 @@ export interface SearchApplicationListRequest extends RequestBase {
|
|
|
15344
16061
|
}
|
|
15345
16062
|
export interface SearchApplicationListResponse {
|
|
15346
16063
|
count: long;
|
|
15347
|
-
results:
|
|
15348
|
-
}
|
|
15349
|
-
export interface SearchApplicationListSearchApplicationListItem {
|
|
15350
|
-
name: Name;
|
|
15351
|
-
indices: IndexName[];
|
|
15352
|
-
updated_at_millis: EpochTime<UnitMillis>;
|
|
15353
|
-
analytics_collection_name?: Name;
|
|
16064
|
+
results: SearchApplicationSearchApplication[];
|
|
15354
16065
|
}
|
|
15355
16066
|
export interface SearchApplicationPostBehavioralAnalyticsEventRequest extends RequestBase {
|
|
15356
16067
|
collection_name: Name;
|
|
@@ -15367,7 +16078,7 @@ export interface SearchApplicationPutRequest extends RequestBase {
|
|
|
15367
16078
|
name: Name;
|
|
15368
16079
|
create?: boolean;
|
|
15369
16080
|
/** @deprecated The use of the 'body' key has been deprecated, use 'search_application' instead. */
|
|
15370
|
-
body?:
|
|
16081
|
+
body?: SearchApplicationSearchApplicationParameters;
|
|
15371
16082
|
}
|
|
15372
16083
|
export interface SearchApplicationPutResponse {
|
|
15373
16084
|
result: Result;
|
|
@@ -15423,8 +16134,6 @@ export interface SearchableSnapshotsClearCacheRequest extends RequestBase {
|
|
|
15423
16134
|
expand_wildcards?: ExpandWildcards;
|
|
15424
16135
|
allow_no_indices?: boolean;
|
|
15425
16136
|
ignore_unavailable?: boolean;
|
|
15426
|
-
pretty?: boolean;
|
|
15427
|
-
human?: boolean;
|
|
15428
16137
|
}
|
|
15429
16138
|
export type SearchableSnapshotsClearCacheResponse = any;
|
|
15430
16139
|
export interface SearchableSnapshotsMountMountedSnapshot {
|
|
@@ -15515,7 +16224,7 @@ export type SecurityGrantType = 'password' | 'access_token';
|
|
|
15515
16224
|
export type SecurityIndexPrivilege = 'all' | 'auto_configure' | 'create' | 'create_doc' | 'create_index' | 'cross_cluster_replication' | 'cross_cluster_replication_internal' | 'delete' | 'delete_index' | 'index' | 'maintenance' | 'manage' | 'manage_data_stream_lifecycle' | 'manage_follow_index' | 'manage_ilm' | 'manage_leader_index' | 'monitor' | 'none' | 'read' | 'read_cross_cluster' | 'view_index_metadata' | 'write' | string;
|
|
15516
16225
|
export interface SecurityIndicesPrivileges {
|
|
15517
16226
|
field_security?: SecurityFieldSecurity;
|
|
15518
|
-
names: IndexName
|
|
16227
|
+
names: IndexName[];
|
|
15519
16228
|
privileges: SecurityIndexPrivilege[];
|
|
15520
16229
|
query?: SecurityIndicesPrivilegesQuery;
|
|
15521
16230
|
allow_restricted_indices?: boolean;
|
|
@@ -15536,11 +16245,19 @@ export interface SecurityRemoteClusterPrivileges {
|
|
|
15536
16245
|
export interface SecurityRemoteIndicesPrivileges {
|
|
15537
16246
|
clusters: Names;
|
|
15538
16247
|
field_security?: SecurityFieldSecurity;
|
|
15539
|
-
names: IndexName
|
|
16248
|
+
names: IndexName[];
|
|
15540
16249
|
privileges: SecurityIndexPrivilege[];
|
|
15541
16250
|
query?: SecurityIndicesPrivilegesQuery;
|
|
15542
16251
|
allow_restricted_indices?: boolean;
|
|
15543
16252
|
}
|
|
16253
|
+
export interface SecurityRemoteUserIndicesPrivileges {
|
|
16254
|
+
field_security?: SecurityFieldSecurity[];
|
|
16255
|
+
names: IndexName | IndexName[];
|
|
16256
|
+
privileges: SecurityIndexPrivilege[];
|
|
16257
|
+
query?: SecurityIndicesPrivilegesQuery[];
|
|
16258
|
+
allow_restricted_indices: boolean;
|
|
16259
|
+
clusters: string[];
|
|
16260
|
+
}
|
|
15544
16261
|
export interface SecurityReplicationAccess {
|
|
15545
16262
|
names: IndexName | IndexName[];
|
|
15546
16263
|
allow_restricted_indices?: boolean;
|
|
@@ -15626,7 +16343,7 @@ export interface SecurityUser {
|
|
|
15626
16343
|
}
|
|
15627
16344
|
export interface SecurityUserIndicesPrivileges {
|
|
15628
16345
|
field_security?: SecurityFieldSecurity[];
|
|
15629
|
-
names: IndexName
|
|
16346
|
+
names: IndexName[];
|
|
15630
16347
|
privileges: SecurityIndexPrivilege[];
|
|
15631
16348
|
query?: SecurityIndicesPrivilegesQuery[];
|
|
15632
16349
|
allow_restricted_indices: boolean;
|
|
@@ -15956,7 +16673,7 @@ export interface SecurityGetBuiltinPrivilegesRequest extends RequestBase {
|
|
|
15956
16673
|
}
|
|
15957
16674
|
export interface SecurityGetBuiltinPrivilegesResponse {
|
|
15958
16675
|
cluster: SecurityClusterPrivilege[];
|
|
15959
|
-
index:
|
|
16676
|
+
index: IndexName[];
|
|
15960
16677
|
remote_cluster: SecurityRemoteClusterPrivilege[];
|
|
15961
16678
|
}
|
|
15962
16679
|
export interface SecurityGetPrivilegesRequest extends RequestBase {
|
|
@@ -15974,7 +16691,8 @@ export interface SecurityGetRoleRole {
|
|
|
15974
16691
|
remote_indices?: SecurityRemoteIndicesPrivileges[];
|
|
15975
16692
|
remote_cluster?: SecurityRemoteClusterPrivileges[];
|
|
15976
16693
|
metadata: Metadata;
|
|
15977
|
-
|
|
16694
|
+
description?: string;
|
|
16695
|
+
run_as?: string[];
|
|
15978
16696
|
transient_metadata?: Record<string, any>;
|
|
15979
16697
|
applications: SecurityApplicationPrivileges[];
|
|
15980
16698
|
role_templates?: SecurityRoleTemplate[];
|
|
@@ -16065,8 +16783,10 @@ export interface SecurityGetUserPrivilegesRequest extends RequestBase {
|
|
|
16065
16783
|
export interface SecurityGetUserPrivilegesResponse {
|
|
16066
16784
|
applications: SecurityApplicationPrivileges[];
|
|
16067
16785
|
cluster: string[];
|
|
16786
|
+
remote_cluster?: SecurityRemoteClusterPrivileges[];
|
|
16068
16787
|
global: SecurityGlobalPrivilege[];
|
|
16069
16788
|
indices: SecurityUserIndicesPrivileges[];
|
|
16789
|
+
remote_indices?: SecurityRemoteUserIndicesPrivileges[];
|
|
16070
16790
|
run_as: string[];
|
|
16071
16791
|
}
|
|
16072
16792
|
export interface SecurityGetUserProfileGetUserProfileErrors {
|
|
@@ -16205,7 +16925,7 @@ export interface SecurityOidcAuthenticateResponse {
|
|
|
16205
16925
|
export interface SecurityOidcLogoutRequest extends RequestBase {
|
|
16206
16926
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
16207
16927
|
body?: {
|
|
16208
|
-
|
|
16928
|
+
token: string;
|
|
16209
16929
|
refresh_token?: string;
|
|
16210
16930
|
};
|
|
16211
16931
|
}
|
|
@@ -16579,7 +17299,6 @@ export interface ShutdownGetNodePluginsStatus {
|
|
|
16579
17299
|
export interface ShutdownGetNodeRequest extends RequestBase {
|
|
16580
17300
|
node_id?: NodeIds;
|
|
16581
17301
|
master_timeout?: TimeUnit;
|
|
16582
|
-
timeout?: TimeUnit;
|
|
16583
17302
|
}
|
|
16584
17303
|
export interface ShutdownGetNodeResponse {
|
|
16585
17304
|
nodes: ShutdownGetNodeNodeShutdownStatus[];
|
|
@@ -16621,7 +17340,7 @@ export interface SimulateIngestRequest extends RequestBase {
|
|
|
16621
17340
|
body?: {
|
|
16622
17341
|
docs: IngestDocument[];
|
|
16623
17342
|
component_template_substitutions?: Record<string, ClusterComponentTemplateNode>;
|
|
16624
|
-
|
|
17343
|
+
index_template_substitutions?: Record<string, IndicesIndexTemplate>;
|
|
16625
17344
|
mapping_addition?: MappingTypeMapping;
|
|
16626
17345
|
pipeline_substitutions?: Record<string, IngestPipeline>;
|
|
16627
17346
|
};
|
|
@@ -16946,7 +17665,6 @@ export interface SnapshotCloneRequest extends RequestBase {
|
|
|
16946
17665
|
snapshot: Name;
|
|
16947
17666
|
target_snapshot: Name;
|
|
16948
17667
|
master_timeout?: Duration;
|
|
16949
|
-
timeout?: Duration;
|
|
16950
17668
|
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
16951
17669
|
body?: {
|
|
16952
17670
|
indices: string;
|
|
@@ -17419,7 +18137,6 @@ export interface TasksListRequest extends RequestBase {
|
|
|
17419
18137
|
group_by?: TasksGroupBy;
|
|
17420
18138
|
nodes?: NodeIds;
|
|
17421
18139
|
parent_task_id?: Id;
|
|
17422
|
-
master_timeout?: Duration;
|
|
17423
18140
|
timeout?: Duration;
|
|
17424
18141
|
wait_for_completion?: boolean;
|
|
17425
18142
|
}
|
|
@@ -17638,6 +18355,7 @@ export interface TransformGetTransformResponse {
|
|
|
17638
18355
|
export interface TransformGetTransformTransformSummary {
|
|
17639
18356
|
authorization?: MlTransformAuthorization;
|
|
17640
18357
|
create_time?: EpochTime<UnitMillis>;
|
|
18358
|
+
create_time_string?: DateTime;
|
|
17641
18359
|
description?: string;
|
|
17642
18360
|
dest: ReindexDestination;
|
|
17643
18361
|
frequency?: Duration;
|
|
@@ -17661,11 +18379,12 @@ export interface TransformGetTransformStatsCheckpointStats {
|
|
|
17661
18379
|
}
|
|
17662
18380
|
export interface TransformGetTransformStatsCheckpointing {
|
|
17663
18381
|
changes_last_detected_at?: long;
|
|
17664
|
-
|
|
18382
|
+
changes_last_detected_at_string?: DateTime;
|
|
17665
18383
|
last: TransformGetTransformStatsCheckpointStats;
|
|
17666
18384
|
next?: TransformGetTransformStatsCheckpointStats;
|
|
17667
18385
|
operations_behind?: long;
|
|
17668
18386
|
last_search_time?: long;
|
|
18387
|
+
last_search_time_string?: DateTime;
|
|
17669
18388
|
}
|
|
17670
18389
|
export interface TransformGetTransformStatsRequest extends RequestBase {
|
|
17671
18390
|
transform_id: Names;
|
|
@@ -17678,6 +18397,14 @@ export interface TransformGetTransformStatsResponse {
|
|
|
17678
18397
|
count: long;
|
|
17679
18398
|
transforms: TransformGetTransformStatsTransformStats[];
|
|
17680
18399
|
}
|
|
18400
|
+
export interface TransformGetTransformStatsTransformHealthIssue {
|
|
18401
|
+
type: string;
|
|
18402
|
+
issue: string;
|
|
18403
|
+
details?: string;
|
|
18404
|
+
count: integer;
|
|
18405
|
+
first_occurrence?: EpochTime<UnitMillis>;
|
|
18406
|
+
first_occurence_string?: DateTime;
|
|
18407
|
+
}
|
|
17681
18408
|
export interface TransformGetTransformStatsTransformIndexerStats {
|
|
17682
18409
|
delete_time_in_ms?: EpochTime<UnitMillis>;
|
|
17683
18410
|
documents_indexed: long;
|
|
@@ -17715,6 +18442,7 @@ export interface TransformGetTransformStatsTransformStats {
|
|
|
17715
18442
|
}
|
|
17716
18443
|
export interface TransformGetTransformStatsTransformStatsHealth {
|
|
17717
18444
|
status: HealthStatus;
|
|
18445
|
+
issues?: TransformGetTransformStatsTransformHealthIssue[];
|
|
17718
18446
|
}
|
|
17719
18447
|
export interface TransformPreviewTransformRequest extends RequestBase {
|
|
17720
18448
|
transform_id?: Id;
|
|
@@ -17758,6 +18486,7 @@ export type TransformPutTransformResponse = AcknowledgedResponseBase;
|
|
|
17758
18486
|
export interface TransformResetTransformRequest extends RequestBase {
|
|
17759
18487
|
transform_id: Id;
|
|
17760
18488
|
force?: boolean;
|
|
18489
|
+
timeout?: Duration;
|
|
17761
18490
|
}
|
|
17762
18491
|
export type TransformResetTransformResponse = AcknowledgedResponseBase;
|
|
17763
18492
|
export interface TransformScheduleNowTransformRequest extends RequestBase {
|
|
@@ -17897,15 +18626,15 @@ export interface WatcherDataEmailAttachment {
|
|
|
17897
18626
|
export type WatcherDay = 'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday';
|
|
17898
18627
|
export interface WatcherEmail {
|
|
17899
18628
|
id?: Id;
|
|
17900
|
-
bcc?: string[];
|
|
18629
|
+
bcc?: string | string[];
|
|
17901
18630
|
body?: WatcherEmailBody;
|
|
17902
|
-
cc?: string[];
|
|
18631
|
+
cc?: string | string[];
|
|
17903
18632
|
from?: string;
|
|
17904
18633
|
priority?: WatcherEmailPriority;
|
|
17905
|
-
reply_to?: string[];
|
|
18634
|
+
reply_to?: string | string[];
|
|
17906
18635
|
sent_date?: DateTime;
|
|
17907
18636
|
subject: string;
|
|
17908
|
-
to: string[];
|
|
18637
|
+
to: string | string[];
|
|
17909
18638
|
attachments?: Record<string, WatcherEmailAttachmentContainer>;
|
|
17910
18639
|
}
|
|
17911
18640
|
export interface WatcherEmailAction extends WatcherEmail {
|
|
@@ -18101,6 +18830,7 @@ export interface WatcherReportingEmailAttachment {
|
|
|
18101
18830
|
}
|
|
18102
18831
|
export type WatcherResponseContentType = 'json' | 'yaml' | 'text';
|
|
18103
18832
|
export interface WatcherScheduleContainer {
|
|
18833
|
+
timezone?: string;
|
|
18104
18834
|
cron?: WatcherCronExpression;
|
|
18105
18835
|
daily?: WatcherDailySchedule;
|
|
18106
18836
|
hourly?: WatcherHourlySchedule;
|
|
@@ -18359,6 +19089,7 @@ export interface WatcherQueryWatchesResponse {
|
|
|
18359
19089
|
watches: WatcherQueryWatch[];
|
|
18360
19090
|
}
|
|
18361
19091
|
export interface WatcherStartRequest extends RequestBase {
|
|
19092
|
+
master_timeout?: Duration;
|
|
18362
19093
|
}
|
|
18363
19094
|
export type WatcherStartResponse = AcknowledgedResponseBase;
|
|
18364
19095
|
export interface WatcherStatsRequest extends RequestBase {
|
|
@@ -18862,9 +19593,7 @@ export interface SpecUtilsCommonQueryParameters {
|
|
|
18862
19593
|
}
|
|
18863
19594
|
export interface SpecUtilsCommonCatQueryParameters {
|
|
18864
19595
|
format?: string;
|
|
18865
|
-
h?: Names;
|
|
18866
19596
|
help?: boolean;
|
|
18867
|
-
s?: Names;
|
|
18868
19597
|
v?: boolean;
|
|
18869
19598
|
}
|
|
18870
19599
|
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
|