@elastic/elasticsearch 8.11.0 → 8.12.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/.dockerignore +2 -0
- package/catalog-info.yaml +4 -4
- package/lib/api/api/async_search.d.ts +4 -4
- 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 +13 -13
- 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 +16 -16
- package/lib/api/api/count.d.ts +1 -1
- package/lib/api/api/create.d.ts +1 -1
- 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/esql.d.ts +18 -0
- package/lib/api/api/esql.js +64 -0
- package/lib/api/api/esql.js.map +1 -0
- 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 +19 -1
- package/lib/api/api/fleet.js +51 -0
- 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 +1 -1
- package/lib/api/api/indices.d.ts +58 -58
- package/lib/api/api/inference.d.ts +39 -0
- package/lib/api/api/inference.js +122 -0
- package/lib/api/api/inference.js.map +1 -0
- package/lib/api/api/info.d.ts +1 -1
- package/lib/api/api/ingest.d.ts +6 -6
- package/lib/api/api/knn_search.d.ts +1 -1
- package/lib/api/api/license.d.ts +7 -7
- package/lib/api/api/logstash.d.ts +6 -6
- package/lib/api/api/logstash.js +1 -0
- package/lib/api/api/logstash.js.map +1 -1
- 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 +73 -73
- 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/put_script.d.ts +1 -1
- package/lib/api/api/query_ruleset.d.ts +4 -4
- package/lib/api/api/rank_eval.d.ts +1 -1
- package/lib/api/api/reindex.d.ts +1 -1
- 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 +1 -1
- 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 +9 -9
- 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 +71 -57
- package/lib/api/api/security.js +35 -1
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/slm.d.ts +9 -9
- package/lib/api/api/snapshot.d.ts +12 -12
- 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/text_structure.d.ts +1 -1
- package/lib/api/api/transform.d.ts +11 -11
- 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 +13 -13
- package/lib/api/api/xpack.d.ts +2 -2
- package/lib/api/index.d.ts +8 -0
- package/lib/api/index.js +26 -2
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +84 -13
- package/lib/api/typesWithBodyKey.d.ts +91 -13
- package/package.json +4 -3
package/lib/api/types.d.ts
CHANGED
|
@@ -1788,6 +1788,7 @@ export interface ErrorResponseBase {
|
|
|
1788
1788
|
error: ErrorCause;
|
|
1789
1789
|
status: integer;
|
|
1790
1790
|
}
|
|
1791
|
+
export type EsqlColumns = ArrayBuffer;
|
|
1791
1792
|
export type ExpandWildcard = 'all' | 'open' | 'closed' | 'hidden' | 'none';
|
|
1792
1793
|
export type ExpandWildcards = ExpandWildcard | ExpandWildcard[];
|
|
1793
1794
|
export type Field = string;
|
|
@@ -2072,6 +2073,7 @@ export interface RrfRank {
|
|
|
2072
2073
|
rank_constant?: long;
|
|
2073
2074
|
window_size?: long;
|
|
2074
2075
|
}
|
|
2076
|
+
export type ScalarValue = long | double | string | boolean | null;
|
|
2075
2077
|
export interface ScoreSort {
|
|
2076
2078
|
order?: SortOrder;
|
|
2077
2079
|
}
|
|
@@ -3753,11 +3755,11 @@ export interface AnalysisNoriTokenizer extends AnalysisTokenizerBase {
|
|
|
3753
3755
|
export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNormalizer;
|
|
3754
3756
|
export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
|
|
3755
3757
|
type: 'path_hierarchy';
|
|
3756
|
-
buffer_size
|
|
3757
|
-
delimiter
|
|
3758
|
+
buffer_size?: SpecUtilsStringified<integer>;
|
|
3759
|
+
delimiter?: string;
|
|
3758
3760
|
replacement?: string;
|
|
3759
|
-
reverse
|
|
3760
|
-
skip
|
|
3761
|
+
reverse?: SpecUtilsStringified<boolean>;
|
|
3762
|
+
skip?: SpecUtilsStringified<integer>;
|
|
3761
3763
|
}
|
|
3762
3764
|
export interface AnalysisPatternAnalyzer {
|
|
3763
3765
|
type: 'pattern';
|
|
@@ -4528,9 +4530,10 @@ export interface QueryDslGeoDistanceQueryKeys extends QueryDslQueryBase {
|
|
|
4528
4530
|
distance: Distance;
|
|
4529
4531
|
distance_type?: GeoDistanceType;
|
|
4530
4532
|
validation_method?: QueryDslGeoValidationMethod;
|
|
4533
|
+
ignore_unmapped?: boolean;
|
|
4531
4534
|
}
|
|
4532
4535
|
export type QueryDslGeoDistanceQuery = QueryDslGeoDistanceQueryKeys & {
|
|
4533
|
-
[property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | float | string;
|
|
4536
|
+
[property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | boolean | float | string;
|
|
4534
4537
|
};
|
|
4535
4538
|
export type QueryDslGeoExecution = 'memory' | 'indexed';
|
|
4536
4539
|
export interface QueryDslGeoPolygonPoints {
|
|
@@ -7847,6 +7850,16 @@ export interface EqlSearchRequest extends RequestBase {
|
|
|
7847
7850
|
}
|
|
7848
7851
|
export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
|
|
7849
7852
|
export type EqlSearchResultPosition = 'tail' | 'head';
|
|
7853
|
+
export interface EsqlQueryRequest extends RequestBase {
|
|
7854
|
+
format?: string;
|
|
7855
|
+
delimiter?: string;
|
|
7856
|
+
columnar?: boolean;
|
|
7857
|
+
filter?: QueryDslQueryContainer;
|
|
7858
|
+
locale?: string;
|
|
7859
|
+
params?: ScalarValue[];
|
|
7860
|
+
query: string;
|
|
7861
|
+
}
|
|
7862
|
+
export type EsqlQueryResponse = EsqlColumns;
|
|
7850
7863
|
export interface FeaturesFeature {
|
|
7851
7864
|
name: string;
|
|
7852
7865
|
description: string;
|
|
@@ -8203,6 +8216,8 @@ export interface IndicesDataStream {
|
|
|
8203
8216
|
generation: integer;
|
|
8204
8217
|
hidden: boolean;
|
|
8205
8218
|
ilm_policy?: Name;
|
|
8219
|
+
next_generation_managed_by: IndicesManagedBy;
|
|
8220
|
+
prefer_ilm: boolean;
|
|
8206
8221
|
indices: IndicesDataStreamIndex[];
|
|
8207
8222
|
lifecycle?: IndicesDataStreamLifecycleWithRollover;
|
|
8208
8223
|
name: DataStreamName;
|
|
@@ -8215,6 +8230,9 @@ export interface IndicesDataStream {
|
|
|
8215
8230
|
export interface IndicesDataStreamIndex {
|
|
8216
8231
|
index_name: IndexName;
|
|
8217
8232
|
index_uuid: Uuid;
|
|
8233
|
+
ilm_policy?: Name;
|
|
8234
|
+
managed_by: IndicesManagedBy;
|
|
8235
|
+
prefer_ilm: boolean;
|
|
8218
8236
|
}
|
|
8219
8237
|
export interface IndicesDataStreamLifecycle {
|
|
8220
8238
|
data_retention?: Duration;
|
|
@@ -8348,7 +8366,6 @@ export interface IndicesIndexSettingsKeys {
|
|
|
8348
8366
|
analysis?: IndicesIndexSettingsAnalysis;
|
|
8349
8367
|
settings?: IndicesIndexSettings;
|
|
8350
8368
|
time_series?: IndicesIndexSettingsTimeSeries;
|
|
8351
|
-
shards?: integer;
|
|
8352
8369
|
queries?: IndicesQueries;
|
|
8353
8370
|
similarity?: IndicesSettingsSimilarity;
|
|
8354
8371
|
mapping?: IndicesMappingLimitSettings;
|
|
@@ -8428,6 +8445,7 @@ export interface IndicesIndexingSlowlogSettings {
|
|
|
8428
8445
|
export interface IndicesIndexingSlowlogTresholds {
|
|
8429
8446
|
index?: IndicesSlowlogTresholdLevels;
|
|
8430
8447
|
}
|
|
8448
|
+
export type IndicesManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged';
|
|
8431
8449
|
export interface IndicesMappingLimitSettings {
|
|
8432
8450
|
coerce?: boolean;
|
|
8433
8451
|
total_fields?: IndicesMappingLimitSettingsTotalFields;
|
|
@@ -9670,6 +9688,55 @@ export interface IndicesValidateQueryResponse {
|
|
|
9670
9688
|
valid: boolean;
|
|
9671
9689
|
error?: string;
|
|
9672
9690
|
}
|
|
9691
|
+
export type InferenceDenseVector = float[];
|
|
9692
|
+
export interface InferenceInferenceResult {
|
|
9693
|
+
text_embedding?: InferenceTextEmbeddingResult[];
|
|
9694
|
+
sparse_embedding?: InferenceSparseEmbeddingResult[];
|
|
9695
|
+
}
|
|
9696
|
+
export interface InferenceModelConfig {
|
|
9697
|
+
service: string;
|
|
9698
|
+
service_settings: InferenceServiceSettings;
|
|
9699
|
+
task_settings: InferenceTaskSettings;
|
|
9700
|
+
}
|
|
9701
|
+
export interface InferenceModelConfigContainer extends InferenceModelConfig {
|
|
9702
|
+
model_id: string;
|
|
9703
|
+
task_type: InferenceTaskType;
|
|
9704
|
+
}
|
|
9705
|
+
export type InferenceServiceSettings = any;
|
|
9706
|
+
export interface InferenceSparseEmbeddingResult {
|
|
9707
|
+
embedding: InferenceSparseVector;
|
|
9708
|
+
}
|
|
9709
|
+
export type InferenceSparseVector = Record<string, float>;
|
|
9710
|
+
export type InferenceTaskSettings = any;
|
|
9711
|
+
export type InferenceTaskType = 'sparse_embedding' | 'text_embedding';
|
|
9712
|
+
export interface InferenceTextEmbeddingResult {
|
|
9713
|
+
embedding: InferenceDenseVector;
|
|
9714
|
+
}
|
|
9715
|
+
export interface InferenceDeleteModelRequest extends RequestBase {
|
|
9716
|
+
task_type: InferenceTaskType;
|
|
9717
|
+
model_id: Id;
|
|
9718
|
+
}
|
|
9719
|
+
export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
|
|
9720
|
+
export interface InferenceGetModelRequest extends RequestBase {
|
|
9721
|
+
task_type: InferenceTaskType;
|
|
9722
|
+
model_id: Id;
|
|
9723
|
+
}
|
|
9724
|
+
export interface InferenceGetModelResponse {
|
|
9725
|
+
models: InferenceModelConfigContainer[];
|
|
9726
|
+
}
|
|
9727
|
+
export interface InferenceInferenceRequest extends RequestBase {
|
|
9728
|
+
task_type: InferenceTaskType;
|
|
9729
|
+
model_id: Id;
|
|
9730
|
+
input: string | string[];
|
|
9731
|
+
task_settings?: InferenceTaskSettings;
|
|
9732
|
+
}
|
|
9733
|
+
export type InferenceInferenceResponse = InferenceInferenceResult;
|
|
9734
|
+
export interface InferencePutModelRequest extends RequestBase {
|
|
9735
|
+
task_type: InferenceTaskType;
|
|
9736
|
+
model_id: Id;
|
|
9737
|
+
model_config?: InferenceModelConfig;
|
|
9738
|
+
}
|
|
9739
|
+
export type InferencePutModelResponse = InferenceModelConfigContainer;
|
|
9673
9740
|
export interface IngestAppendProcessor extends IngestProcessorBase {
|
|
9674
9741
|
field: Field;
|
|
9675
9742
|
value: any[];
|
|
@@ -9836,6 +9903,7 @@ export interface IngestPipeline {
|
|
|
9836
9903
|
on_failure?: IngestProcessorContainer[];
|
|
9837
9904
|
processors?: IngestProcessorContainer[];
|
|
9838
9905
|
version?: VersionNumber;
|
|
9906
|
+
_meta: Metadata;
|
|
9839
9907
|
}
|
|
9840
9908
|
export interface IngestPipelineConfig {
|
|
9841
9909
|
description?: string;
|
|
@@ -9874,6 +9942,7 @@ export interface IngestProcessorContainer {
|
|
|
9874
9942
|
lowercase?: IngestLowercaseProcessor;
|
|
9875
9943
|
remove?: IngestRemoveProcessor;
|
|
9876
9944
|
rename?: IngestRenameProcessor;
|
|
9945
|
+
reroute?: IngestRerouteProcessor;
|
|
9877
9946
|
script?: Script;
|
|
9878
9947
|
set?: IngestSetProcessor;
|
|
9879
9948
|
sort?: IngestSortProcessor;
|
|
@@ -9898,6 +9967,11 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
|
|
|
9898
9967
|
ignore_missing?: boolean;
|
|
9899
9968
|
target_field: Field;
|
|
9900
9969
|
}
|
|
9970
|
+
export interface IngestRerouteProcessor extends IngestProcessorBase {
|
|
9971
|
+
destination?: string;
|
|
9972
|
+
dataset?: string | string[];
|
|
9973
|
+
namespace?: string | string[];
|
|
9974
|
+
}
|
|
9901
9975
|
export interface IngestSetProcessor extends IngestProcessorBase {
|
|
9902
9976
|
copy_from?: Field;
|
|
9903
9977
|
field: Field;
|
|
@@ -10140,7 +10214,7 @@ export interface LogstashDeletePipelineRequest extends RequestBase {
|
|
|
10140
10214
|
}
|
|
10141
10215
|
export type LogstashDeletePipelineResponse = boolean;
|
|
10142
10216
|
export interface LogstashGetPipelineRequest extends RequestBase {
|
|
10143
|
-
id
|
|
10217
|
+
id?: Ids;
|
|
10144
10218
|
}
|
|
10145
10219
|
export type LogstashGetPipelineResponse = Record<Id, LogstashPipeline>;
|
|
10146
10220
|
export interface LogstashPutPipelineRequest extends RequestBase {
|
|
@@ -13429,11 +13503,9 @@ export interface SecurityCreatedStatus {
|
|
|
13429
13503
|
created: boolean;
|
|
13430
13504
|
}
|
|
13431
13505
|
export interface SecurityFieldRule {
|
|
13432
|
-
username?:
|
|
13506
|
+
username?: Names;
|
|
13433
13507
|
dn?: Names;
|
|
13434
13508
|
groups?: Names;
|
|
13435
|
-
metadata?: any;
|
|
13436
|
-
realm?: SecurityRealm;
|
|
13437
13509
|
}
|
|
13438
13510
|
export interface SecurityFieldSecurity {
|
|
13439
13511
|
except?: Fields;
|
|
@@ -13455,9 +13527,6 @@ export type SecurityIndicesPrivilegesQuery = string | QueryDslQueryContainer | S
|
|
|
13455
13527
|
export interface SecurityManageUserPrivileges {
|
|
13456
13528
|
applications: string[];
|
|
13457
13529
|
}
|
|
13458
|
-
export interface SecurityRealm {
|
|
13459
|
-
name: Name;
|
|
13460
|
-
}
|
|
13461
13530
|
export interface SecurityRealmInfo {
|
|
13462
13531
|
name: Name;
|
|
13463
13532
|
type: string;
|
|
@@ -13746,6 +13815,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
|
|
|
13746
13815
|
realm_name?: Name;
|
|
13747
13816
|
username?: Username;
|
|
13748
13817
|
with_limited_by?: boolean;
|
|
13818
|
+
active_only?: boolean;
|
|
13749
13819
|
}
|
|
13750
13820
|
export interface SecurityGetApiKeyResponse {
|
|
13751
13821
|
api_keys: SecurityApiKey[];
|
|
@@ -14097,6 +14167,7 @@ export interface SecurityUpdateApiKeyRequest extends RequestBase {
|
|
|
14097
14167
|
id: Id;
|
|
14098
14168
|
role_descriptors?: Record<string, SecurityRoleDescriptor>;
|
|
14099
14169
|
metadata?: Metadata;
|
|
14170
|
+
expiration?: Duration;
|
|
14100
14171
|
}
|
|
14101
14172
|
export interface SecurityUpdateApiKeyResponse {
|
|
14102
14173
|
updated: boolean;
|
|
@@ -1861,6 +1861,7 @@ export interface ErrorResponseBase {
|
|
|
1861
1861
|
error: ErrorCause;
|
|
1862
1862
|
status: integer;
|
|
1863
1863
|
}
|
|
1864
|
+
export type EsqlColumns = ArrayBuffer;
|
|
1864
1865
|
export type ExpandWildcard = 'all' | 'open' | 'closed' | 'hidden' | 'none';
|
|
1865
1866
|
export type ExpandWildcards = ExpandWildcard | ExpandWildcard[];
|
|
1866
1867
|
export type Field = string;
|
|
@@ -2145,6 +2146,7 @@ export interface RrfRank {
|
|
|
2145
2146
|
rank_constant?: long;
|
|
2146
2147
|
window_size?: long;
|
|
2147
2148
|
}
|
|
2149
|
+
export type ScalarValue = long | double | string | boolean | null;
|
|
2148
2150
|
export interface ScoreSort {
|
|
2149
2151
|
order?: SortOrder;
|
|
2150
2152
|
}
|
|
@@ -3826,11 +3828,11 @@ export interface AnalysisNoriTokenizer extends AnalysisTokenizerBase {
|
|
|
3826
3828
|
export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNormalizer;
|
|
3827
3829
|
export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
|
|
3828
3830
|
type: 'path_hierarchy';
|
|
3829
|
-
buffer_size
|
|
3830
|
-
delimiter
|
|
3831
|
+
buffer_size?: SpecUtilsStringified<integer>;
|
|
3832
|
+
delimiter?: string;
|
|
3831
3833
|
replacement?: string;
|
|
3832
|
-
reverse
|
|
3833
|
-
skip
|
|
3834
|
+
reverse?: SpecUtilsStringified<boolean>;
|
|
3835
|
+
skip?: SpecUtilsStringified<integer>;
|
|
3834
3836
|
}
|
|
3835
3837
|
export interface AnalysisPatternAnalyzer {
|
|
3836
3838
|
type: 'pattern';
|
|
@@ -4601,9 +4603,10 @@ export interface QueryDslGeoDistanceQueryKeys extends QueryDslQueryBase {
|
|
|
4601
4603
|
distance: Distance;
|
|
4602
4604
|
distance_type?: GeoDistanceType;
|
|
4603
4605
|
validation_method?: QueryDslGeoValidationMethod;
|
|
4606
|
+
ignore_unmapped?: boolean;
|
|
4604
4607
|
}
|
|
4605
4608
|
export type QueryDslGeoDistanceQuery = QueryDslGeoDistanceQueryKeys & {
|
|
4606
|
-
[property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | float | string;
|
|
4609
|
+
[property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | boolean | float | string;
|
|
4607
4610
|
};
|
|
4608
4611
|
export type QueryDslGeoExecution = 'memory' | 'indexed';
|
|
4609
4612
|
export interface QueryDslGeoPolygonPoints {
|
|
@@ -7954,6 +7957,19 @@ export interface EqlSearchRequest extends RequestBase {
|
|
|
7954
7957
|
}
|
|
7955
7958
|
export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEvent>;
|
|
7956
7959
|
export type EqlSearchResultPosition = 'tail' | 'head';
|
|
7960
|
+
export interface EsqlQueryRequest extends RequestBase {
|
|
7961
|
+
format?: string;
|
|
7962
|
+
delimiter?: string;
|
|
7963
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
7964
|
+
body?: {
|
|
7965
|
+
columnar?: boolean;
|
|
7966
|
+
filter?: QueryDslQueryContainer;
|
|
7967
|
+
locale?: string;
|
|
7968
|
+
params?: ScalarValue[];
|
|
7969
|
+
query: string;
|
|
7970
|
+
};
|
|
7971
|
+
}
|
|
7972
|
+
export type EsqlQueryResponse = EsqlColumns;
|
|
7957
7973
|
export interface FeaturesFeature {
|
|
7958
7974
|
name: string;
|
|
7959
7975
|
description: string;
|
|
@@ -8326,6 +8342,8 @@ export interface IndicesDataStream {
|
|
|
8326
8342
|
generation: integer;
|
|
8327
8343
|
hidden: boolean;
|
|
8328
8344
|
ilm_policy?: Name;
|
|
8345
|
+
next_generation_managed_by: IndicesManagedBy;
|
|
8346
|
+
prefer_ilm: boolean;
|
|
8329
8347
|
indices: IndicesDataStreamIndex[];
|
|
8330
8348
|
lifecycle?: IndicesDataStreamLifecycleWithRollover;
|
|
8331
8349
|
name: DataStreamName;
|
|
@@ -8338,6 +8356,9 @@ export interface IndicesDataStream {
|
|
|
8338
8356
|
export interface IndicesDataStreamIndex {
|
|
8339
8357
|
index_name: IndexName;
|
|
8340
8358
|
index_uuid: Uuid;
|
|
8359
|
+
ilm_policy?: Name;
|
|
8360
|
+
managed_by: IndicesManagedBy;
|
|
8361
|
+
prefer_ilm: boolean;
|
|
8341
8362
|
}
|
|
8342
8363
|
export interface IndicesDataStreamLifecycle {
|
|
8343
8364
|
data_retention?: Duration;
|
|
@@ -8471,7 +8492,6 @@ export interface IndicesIndexSettingsKeys {
|
|
|
8471
8492
|
analysis?: IndicesIndexSettingsAnalysis;
|
|
8472
8493
|
settings?: IndicesIndexSettings;
|
|
8473
8494
|
time_series?: IndicesIndexSettingsTimeSeries;
|
|
8474
|
-
shards?: integer;
|
|
8475
8495
|
queries?: IndicesQueries;
|
|
8476
8496
|
similarity?: IndicesSettingsSimilarity;
|
|
8477
8497
|
mapping?: IndicesMappingLimitSettings;
|
|
@@ -8551,6 +8571,7 @@ export interface IndicesIndexingSlowlogSettings {
|
|
|
8551
8571
|
export interface IndicesIndexingSlowlogTresholds {
|
|
8552
8572
|
index?: IndicesSlowlogTresholdLevels;
|
|
8553
8573
|
}
|
|
8574
|
+
export type IndicesManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged';
|
|
8554
8575
|
export interface IndicesMappingLimitSettings {
|
|
8555
8576
|
coerce?: boolean;
|
|
8556
8577
|
total_fields?: IndicesMappingLimitSettingsTotalFields;
|
|
@@ -9841,6 +9862,59 @@ export interface IndicesValidateQueryResponse {
|
|
|
9841
9862
|
valid: boolean;
|
|
9842
9863
|
error?: string;
|
|
9843
9864
|
}
|
|
9865
|
+
export type InferenceDenseVector = float[];
|
|
9866
|
+
export interface InferenceInferenceResult {
|
|
9867
|
+
text_embedding?: InferenceTextEmbeddingResult[];
|
|
9868
|
+
sparse_embedding?: InferenceSparseEmbeddingResult[];
|
|
9869
|
+
}
|
|
9870
|
+
export interface InferenceModelConfig {
|
|
9871
|
+
service: string;
|
|
9872
|
+
service_settings: InferenceServiceSettings;
|
|
9873
|
+
task_settings: InferenceTaskSettings;
|
|
9874
|
+
}
|
|
9875
|
+
export interface InferenceModelConfigContainer extends InferenceModelConfig {
|
|
9876
|
+
model_id: string;
|
|
9877
|
+
task_type: InferenceTaskType;
|
|
9878
|
+
}
|
|
9879
|
+
export type InferenceServiceSettings = any;
|
|
9880
|
+
export interface InferenceSparseEmbeddingResult {
|
|
9881
|
+
embedding: InferenceSparseVector;
|
|
9882
|
+
}
|
|
9883
|
+
export type InferenceSparseVector = Record<string, float>;
|
|
9884
|
+
export type InferenceTaskSettings = any;
|
|
9885
|
+
export type InferenceTaskType = 'sparse_embedding' | 'text_embedding';
|
|
9886
|
+
export interface InferenceTextEmbeddingResult {
|
|
9887
|
+
embedding: InferenceDenseVector;
|
|
9888
|
+
}
|
|
9889
|
+
export interface InferenceDeleteModelRequest extends RequestBase {
|
|
9890
|
+
task_type: InferenceTaskType;
|
|
9891
|
+
model_id: Id;
|
|
9892
|
+
}
|
|
9893
|
+
export type InferenceDeleteModelResponse = AcknowledgedResponseBase;
|
|
9894
|
+
export interface InferenceGetModelRequest extends RequestBase {
|
|
9895
|
+
task_type: InferenceTaskType;
|
|
9896
|
+
model_id: Id;
|
|
9897
|
+
}
|
|
9898
|
+
export interface InferenceGetModelResponse {
|
|
9899
|
+
models: InferenceModelConfigContainer[];
|
|
9900
|
+
}
|
|
9901
|
+
export interface InferenceInferenceRequest extends RequestBase {
|
|
9902
|
+
task_type: InferenceTaskType;
|
|
9903
|
+
model_id: Id;
|
|
9904
|
+
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
|
9905
|
+
body?: {
|
|
9906
|
+
input: string | string[];
|
|
9907
|
+
task_settings?: InferenceTaskSettings;
|
|
9908
|
+
};
|
|
9909
|
+
}
|
|
9910
|
+
export type InferenceInferenceResponse = InferenceInferenceResult;
|
|
9911
|
+
export interface InferencePutModelRequest extends RequestBase {
|
|
9912
|
+
task_type: InferenceTaskType;
|
|
9913
|
+
model_id: Id;
|
|
9914
|
+
/** @deprecated The use of the 'body' key has been deprecated, use 'model_config' instead. */
|
|
9915
|
+
body?: InferenceModelConfig;
|
|
9916
|
+
}
|
|
9917
|
+
export type InferencePutModelResponse = InferenceModelConfigContainer;
|
|
9844
9918
|
export interface IngestAppendProcessor extends IngestProcessorBase {
|
|
9845
9919
|
field: Field;
|
|
9846
9920
|
value: any[];
|
|
@@ -10007,6 +10081,7 @@ export interface IngestPipeline {
|
|
|
10007
10081
|
on_failure?: IngestProcessorContainer[];
|
|
10008
10082
|
processors?: IngestProcessorContainer[];
|
|
10009
10083
|
version?: VersionNumber;
|
|
10084
|
+
_meta: Metadata;
|
|
10010
10085
|
}
|
|
10011
10086
|
export interface IngestPipelineConfig {
|
|
10012
10087
|
description?: string;
|
|
@@ -10045,6 +10120,7 @@ export interface IngestProcessorContainer {
|
|
|
10045
10120
|
lowercase?: IngestLowercaseProcessor;
|
|
10046
10121
|
remove?: IngestRemoveProcessor;
|
|
10047
10122
|
rename?: IngestRenameProcessor;
|
|
10123
|
+
reroute?: IngestRerouteProcessor;
|
|
10048
10124
|
script?: Script;
|
|
10049
10125
|
set?: IngestSetProcessor;
|
|
10050
10126
|
sort?: IngestSortProcessor;
|
|
@@ -10069,6 +10145,11 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
|
|
|
10069
10145
|
ignore_missing?: boolean;
|
|
10070
10146
|
target_field: Field;
|
|
10071
10147
|
}
|
|
10148
|
+
export interface IngestRerouteProcessor extends IngestProcessorBase {
|
|
10149
|
+
destination?: string;
|
|
10150
|
+
dataset?: string | string[];
|
|
10151
|
+
namespace?: string | string[];
|
|
10152
|
+
}
|
|
10072
10153
|
export interface IngestSetProcessor extends IngestProcessorBase {
|
|
10073
10154
|
copy_from?: Field;
|
|
10074
10155
|
field: Field;
|
|
@@ -10320,7 +10401,7 @@ export interface LogstashDeletePipelineRequest extends RequestBase {
|
|
|
10320
10401
|
}
|
|
10321
10402
|
export type LogstashDeletePipelineResponse = boolean;
|
|
10322
10403
|
export interface LogstashGetPipelineRequest extends RequestBase {
|
|
10323
|
-
id
|
|
10404
|
+
id?: Ids;
|
|
10324
10405
|
}
|
|
10325
10406
|
export type LogstashGetPipelineResponse = Record<Id, LogstashPipeline>;
|
|
10326
10407
|
export interface LogstashPutPipelineRequest extends RequestBase {
|
|
@@ -13740,11 +13821,9 @@ export interface SecurityCreatedStatus {
|
|
|
13740
13821
|
created: boolean;
|
|
13741
13822
|
}
|
|
13742
13823
|
export interface SecurityFieldRule {
|
|
13743
|
-
username?:
|
|
13824
|
+
username?: Names;
|
|
13744
13825
|
dn?: Names;
|
|
13745
13826
|
groups?: Names;
|
|
13746
|
-
metadata?: any;
|
|
13747
|
-
realm?: SecurityRealm;
|
|
13748
13827
|
}
|
|
13749
13828
|
export interface SecurityFieldSecurity {
|
|
13750
13829
|
except?: Fields;
|
|
@@ -13766,9 +13845,6 @@ export type SecurityIndicesPrivilegesQuery = string | QueryDslQueryContainer | S
|
|
|
13766
13845
|
export interface SecurityManageUserPrivileges {
|
|
13767
13846
|
applications: string[];
|
|
13768
13847
|
}
|
|
13769
|
-
export interface SecurityRealm {
|
|
13770
|
-
name: Name;
|
|
13771
|
-
}
|
|
13772
13848
|
export interface SecurityRealmInfo {
|
|
13773
13849
|
name: Name;
|
|
13774
13850
|
type: string;
|
|
@@ -14066,6 +14142,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
|
|
|
14066
14142
|
realm_name?: Name;
|
|
14067
14143
|
username?: Username;
|
|
14068
14144
|
with_limited_by?: boolean;
|
|
14145
|
+
active_only?: boolean;
|
|
14069
14146
|
}
|
|
14070
14147
|
export interface SecurityGetApiKeyResponse {
|
|
14071
14148
|
api_keys: SecurityApiKey[];
|
|
@@ -14469,6 +14546,7 @@ export interface SecurityUpdateApiKeyRequest extends RequestBase {
|
|
|
14469
14546
|
body?: {
|
|
14470
14547
|
role_descriptors?: Record<string, SecurityRoleDescriptor>;
|
|
14471
14548
|
metadata?: Metadata;
|
|
14549
|
+
expiration?: Duration;
|
|
14472
14550
|
};
|
|
14473
14551
|
}
|
|
14474
14552
|
export interface SecurityUpdateApiKeyResponse {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/elasticsearch",
|
|
3
|
-
"version": "8.
|
|
4
|
-
"versionCanary": "8.
|
|
3
|
+
"version": "8.12.0",
|
|
4
|
+
"versionCanary": "8.12.0-canary.0",
|
|
5
5
|
"description": "The official Elasticsearch client for Node.js",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
|
+
"type": "commonjs",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"test": "npm run build && npm run lint && tap test/unit/{*,**/*}.test.ts",
|
|
10
11
|
"test:unit": "npm run build && tap test/unit/{*,**/*}.test.ts",
|
|
@@ -92,4 +93,4 @@
|
|
|
92
93
|
"coverage": false,
|
|
93
94
|
"check-coverage": false
|
|
94
95
|
}
|
|
95
|
-
}
|
|
96
|
+
}
|