@opensearch-project/opensearch 3.5.0 → 3.6.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/api/OpenSearchApi.d.ts +78 -0
- package/api/OpenSearchApi.js +4 -0
- package/api/_core/bulk.d.ts +1 -1
- package/api/_core/exists.d.ts +4 -2
- package/api/_core/existsSource.d.ts +4 -2
- package/api/_core/explain.d.ts +1 -1
- package/api/_core/ping.d.ts +4 -2
- package/api/_core/search.d.ts +1 -0
- package/api/_core/search.js +1 -0
- package/api/_core/searchShards.d.ts +5 -0
- package/api/_core/searchShards.js +1 -0
- package/api/_types/_common.aggregations.d.ts +111 -266
- package/api/_types/_common.analysis.d.ts +2 -2
- package/api/_types/_common.d.ts +13 -7
- package/api/_types/_common.mapping.d.ts +1 -1
- package/api/_types/_common.query_dsl.d.ts +10 -6
- package/api/_types/_core.bulk.d.ts +16 -8
- package/api/_types/_core.explain.d.ts +1 -7
- package/api/_types/_core.search.d.ts +23 -7
- package/api/_types/cluster._common.d.ts +2 -0
- package/api/_types/cluster.stats.d.ts +3 -3
- package/api/_types/geospatial._common.d.ts +147 -0
- package/api/_types/index.d.ts +4 -0
- package/api/_types/indices._common.d.ts +6 -3
- package/api/_types/ltr._common.d.ts +54 -0
- package/api/_types/ml._common.d.ts +9 -0
- package/api/_types/neural._common.d.ts +94 -0
- package/api/_types/nodes._common.d.ts +1 -1
- package/api/_types/nodes.stats.d.ts +1 -0
- package/api/_types/search_pipeline._common.d.ts +19 -1
- package/api/_types/security._common.d.ts +6 -6
- package/api/cluster/existsComponentTemplate.d.ts +4 -2
- package/api/cluster/existsComponentTemplate.js +1 -1
- package/api/cluster/health.d.ts +2 -1
- package/api/flowFramework/create.js +6 -6
- package/api/flowFramework/delete.js +3 -3
- package/api/flowFramework/deprovision.js +3 -3
- package/api/flowFramework/get.js +2 -2
- package/api/flowFramework/getStatus.js +3 -3
- package/api/flowFramework/getSteps.js +2 -2
- package/api/flowFramework/provision.js +2 -2
- package/api/flowFramework/update.js +7 -7
- package/api/geospatial/_api.js +46 -0
- package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
- package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
- package/api/geospatial/geojsonUploadPost.d.ts +30 -0
- package/api/geospatial/geojsonUploadPost.js +49 -0
- package/api/geospatial/geojsonUploadPut.d.ts +30 -0
- package/api/geospatial/geojsonUploadPut.js +49 -0
- package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
- package/api/geospatial/getIp2GeoDatasource.js +48 -0
- package/api/geospatial/getUploadStats.d.ts +28 -0
- package/api/geospatial/getUploadStats.js +45 -0
- package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasource.js +53 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
- package/api/index.d.ts +36 -4
- package/api/indices/exists.d.ts +4 -2
- package/api/indices/existsAlias.d.ts +4 -2
- package/api/indices/existsIndexTemplate.d.ts +4 -2
- package/api/indices/existsTemplate.d.ts +4 -2
- package/api/indices/putSettings.js +1 -1
- package/api/indices/simulateTemplate.js +1 -1
- package/api/ism/addPolicy.js +1 -1
- package/api/ism/changePolicy.js +1 -1
- package/api/ism/existsPolicy.d.ts +4 -2
- package/api/ism/existsPolicy.js +1 -1
- package/api/ism/explainPolicy.js +2 -2
- package/api/ism/getPolicies.js +1 -1
- package/api/ism/getPolicy.js +1 -1
- package/api/ism/putPolicies.js +1 -1
- package/api/ism/refreshSearchAnalyzers.js +2 -2
- package/api/ism/removePolicy.js +1 -1
- package/api/ism/retryIndex.js +2 -2
- package/api/ltr/_api.js +24 -0
- package/api/ltr/cacheStats.d.ts +28 -0
- package/api/ltr/cacheStats.js +45 -0
- package/api/ltr/clearCache.d.ts +30 -0
- package/api/ltr/clearCache.js +48 -0
- package/api/ltr/createDefaultStore.d.ts +28 -0
- package/api/ltr/createDefaultStore.js +45 -0
- package/api/ltr/createStore.d.ts +30 -0
- package/api/ltr/createStore.js +49 -0
- package/api/ltr/deleteDefaultStore.d.ts +28 -0
- package/api/ltr/deleteDefaultStore.js +45 -0
- package/api/ltr/deleteStore.d.ts +30 -0
- package/api/ltr/deleteStore.js +49 -0
- package/api/ltr/getStore.d.ts +30 -0
- package/api/ltr/getStore.js +49 -0
- package/api/ltr/listStores.d.ts +28 -0
- package/api/ltr/listStores.js +45 -0
- package/api/ml/getTool.d.ts +1 -1
- package/api/neural/_api.js +26 -0
- package/api/neural/stats.d.ts +33 -0
- package/api/neural/stats.js +52 -0
- package/api/nodes/hotThreads.js +6 -6
- package/api/nodes/info.js +3 -3
- package/api/nodes/reloadSecureSettings.js +1 -1
- package/api/nodes/stats.js +9 -9
- package/api/observability/createObject.js +1 -1
- package/api/observability/deleteObject.js +1 -1
- package/api/observability/deleteObjects.js +2 -2
- package/api/observability/getObject.js +1 -1
- package/api/observability/updateObject.js +2 -2
- package/api/ppl/explain.js +4 -4
- package/api/ppl/getStats.js +3 -3
- package/api/ppl/postStats.js +4 -4
- package/api/ppl/query.js +4 -4
- package/api/query/datasourceDelete.js +2 -2
- package/api/query/datasourceRetrieve.js +2 -2
- package/api/query/datasourcesCreate.js +2 -2
- package/api/query/datasourcesList.js +1 -1
- package/api/query/datasourcesUpdate.js +2 -2
- package/api/rollups/delete.js +2 -2
- package/api/rollups/explain.js +2 -2
- package/api/rollups/get.js +2 -2
- package/api/rollups/put.js +5 -5
- package/api/rollups/start.js +2 -2
- package/api/rollups/stop.js +2 -2
- package/api/sql/close.js +4 -4
- package/api/sql/explain.js +4 -4
- package/api/sql/getStats.js +3 -3
- package/api/sql/postStats.js +4 -4
- package/api/sql/query.js +4 -4
- package/api/sql/settings.js +3 -3
- package/lib/Connection.js +2 -0
- package/lib/aws/shared.js +3 -2
- package/package.json +2 -2
|
@@ -480,8 +480,8 @@ export type ReverseTokenFilter = TokenFilterBase & {
|
|
|
480
480
|
|
|
481
481
|
export type ShingleTokenFilter = TokenFilterBase & {
|
|
482
482
|
filler_token?: string;
|
|
483
|
-
max_shingle_size?:
|
|
484
|
-
min_shingle_size?:
|
|
483
|
+
max_shingle_size?: Common.StringifiedInteger;
|
|
484
|
+
min_shingle_size?: Common.StringifiedInteger;
|
|
485
485
|
output_unigrams?: boolean;
|
|
486
486
|
output_unigrams_if_no_shingles?: boolean;
|
|
487
487
|
token_separator?: string;
|
package/api/_types/_common.d.ts
CHANGED
|
@@ -234,8 +234,10 @@ export type GeoDistanceSort = {
|
|
|
234
234
|
distance_type?: GeoDistanceType;
|
|
235
235
|
ignore_unmapped?: boolean;
|
|
236
236
|
mode?: SortMode;
|
|
237
|
+
nested?: NestedSortValue;
|
|
237
238
|
order?: SortOrder;
|
|
238
239
|
unit?: DistanceUnit;
|
|
240
|
+
validation_method?: Common_QueryDsl.GeoValidationMethod;
|
|
239
241
|
[key: string]: any | GeoLocation[];
|
|
240
242
|
}
|
|
241
243
|
|
|
@@ -249,11 +251,6 @@ export type GeoHashLocation = {
|
|
|
249
251
|
|
|
250
252
|
export type GeoHashPrecision = number | string
|
|
251
253
|
|
|
252
|
-
export type GeoLine = {
|
|
253
|
-
coordinates: number[][];
|
|
254
|
-
type: string;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
254
|
export type GeoLocation = LatLonGeoLocation | GeoHashLocation | number[] | string
|
|
258
255
|
|
|
259
256
|
export type GeoShapeRelation = 'contains' | 'disjoint' | 'intersects' | 'within'
|
|
@@ -336,6 +333,7 @@ export type InlineGetDictUserDefined = {
|
|
|
336
333
|
_source?: Record<string, any>;
|
|
337
334
|
fields?: Record<string, Record<string, any>>;
|
|
338
335
|
found: boolean;
|
|
336
|
+
[key: string]: any | Record<string, any>;
|
|
339
337
|
}
|
|
340
338
|
|
|
341
339
|
export type InlineScript = string | (ScriptBase & {
|
|
@@ -417,6 +415,7 @@ export type NodeShard = {
|
|
|
417
415
|
primary: boolean;
|
|
418
416
|
recovery_source?: Record<string, Id>;
|
|
419
417
|
relocating_node?: NodeId | undefined;
|
|
418
|
+
searchOnly?: boolean;
|
|
420
419
|
shard: number;
|
|
421
420
|
state: Indices_Stats.ShardRoutingState;
|
|
422
421
|
unassigned_info?: Cluster_AllocationExplain.UnassignedInformation;
|
|
@@ -746,6 +745,13 @@ export type ShardFailure = {
|
|
|
746
745
|
status?: string;
|
|
747
746
|
}
|
|
748
747
|
|
|
748
|
+
export type ShardInfo = {
|
|
749
|
+
failed: uint;
|
|
750
|
+
failures?: ShardFailure[];
|
|
751
|
+
successful: uint;
|
|
752
|
+
total: uint;
|
|
753
|
+
}
|
|
754
|
+
|
|
749
755
|
export type ShardsOperationResponseBase = {
|
|
750
756
|
_shards: ShardStatistics;
|
|
751
757
|
}
|
|
@@ -891,9 +897,9 @@ export type VersionType = 'external' | 'external_gte' | 'force' | 'internal'
|
|
|
891
897
|
|
|
892
898
|
export type Void = Record<string, any>
|
|
893
899
|
|
|
894
|
-
export type WaitForActiveShardOptions = 'all' |
|
|
900
|
+
export type WaitForActiveShardOptions = 'all' | undefined
|
|
895
901
|
|
|
896
|
-
export type WaitForActiveShards =
|
|
902
|
+
export type WaitForActiveShards = StringifiedInteger | WaitForActiveShardOptions
|
|
897
903
|
|
|
898
904
|
export type WaitForEvents = 'immediate' | 'urgent' | 'high' | 'normal' | 'low' | 'languid'
|
|
899
905
|
|
|
@@ -119,7 +119,7 @@ export type DoubleRangeProperty = RangePropertyBase & {
|
|
|
119
119
|
type: 'double_range';
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export type DynamicMapping = 'false' | 'strict' | 'strict_allow_templates' | 'true'
|
|
122
|
+
export type DynamicMapping = 'false' | 'strict' | 'strict_allow_templates' | 'true' | boolean
|
|
123
123
|
|
|
124
124
|
export type DynamicTemplate = {
|
|
125
125
|
mapping?: Property;
|
|
@@ -92,11 +92,11 @@ export type DisMaxQuery = QueryBase & {
|
|
|
92
92
|
tie_breaker?: number;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export type DistanceFeatureQuery = QueryBase &
|
|
95
|
+
export type DistanceFeatureQuery = (QueryBase & {
|
|
96
96
|
field: Common.Field;
|
|
97
97
|
origin: Common.GeoLocation;
|
|
98
98
|
pivot: Common.Distance;
|
|
99
|
-
} | {
|
|
99
|
+
}) | (QueryBase & {
|
|
100
100
|
field: Common.Field;
|
|
101
101
|
origin: Common.DateMath;
|
|
102
102
|
pivot: Common.Duration;
|
|
@@ -599,7 +599,7 @@ export type RandomScoreFunction = {
|
|
|
599
599
|
seed?: number | string;
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
export type RangeQuery = RangeQueryBase &
|
|
602
|
+
export type RangeQuery = (RangeQueryBase & NumberRangeQueryParameters) | (RangeQueryBase & DateRangeQueryParameters)
|
|
603
603
|
|
|
604
604
|
export type RangeQueryBase = QueryBase & {
|
|
605
605
|
relation?: RangeRelation;
|
|
@@ -745,20 +745,24 @@ export type TermQuery = Common.FieldValue | (QueryBase & {
|
|
|
745
745
|
})
|
|
746
746
|
|
|
747
747
|
export type TermsLookup = {
|
|
748
|
-
id
|
|
749
|
-
index
|
|
750
|
-
path
|
|
748
|
+
id: Common.Id;
|
|
749
|
+
index: Common.IndexName;
|
|
750
|
+
path: Common.Field;
|
|
751
751
|
routing?: Common.Routing;
|
|
752
|
+
store?: boolean;
|
|
752
753
|
}
|
|
753
754
|
|
|
754
755
|
export type TermsQuery = QueryBase & {
|
|
755
756
|
_name?: any;
|
|
756
757
|
boost?: any;
|
|
758
|
+
value_type?: TermsQueryValueType;
|
|
757
759
|
[key: string]: any | TermsQueryField;
|
|
758
760
|
}
|
|
759
761
|
|
|
760
762
|
export type TermsQueryField = Common.FieldValue[] | TermsLookup
|
|
761
763
|
|
|
764
|
+
export type TermsQueryValueType = 'bitmap' | 'default'
|
|
765
|
+
|
|
762
766
|
export type TermsSetQuery = QueryBase & {
|
|
763
767
|
minimum_should_match_field?: Common.Field;
|
|
764
768
|
minimum_should_match_script?: Common.Script;
|
|
@@ -19,18 +19,25 @@ import * as Core_Search from './_core.search'
|
|
|
19
19
|
|
|
20
20
|
export type CreateOperation = WriteOperation
|
|
21
21
|
|
|
22
|
-
export type DeleteOperation = OperationBase
|
|
22
|
+
export type DeleteOperation = OperationBase & {
|
|
23
|
+
if_primary_term?: number;
|
|
24
|
+
if_seq_no?: Common.SequenceNumber;
|
|
25
|
+
version?: Common.VersionNumber;
|
|
26
|
+
version_type?: Common.VersionType;
|
|
27
|
+
}
|
|
23
28
|
|
|
24
|
-
export type IndexOperation = WriteOperation
|
|
29
|
+
export type IndexOperation = WriteOperation & {
|
|
30
|
+
if_primary_term?: number;
|
|
31
|
+
if_seq_no?: Common.SequenceNumber;
|
|
32
|
+
op_type?: Common.OpType;
|
|
33
|
+
version?: Common.VersionNumber;
|
|
34
|
+
version_type?: Common.VersionType;
|
|
35
|
+
}
|
|
25
36
|
|
|
26
37
|
export type OperationBase = {
|
|
27
38
|
_id?: Common.Id;
|
|
28
39
|
_index?: Common.IndexName;
|
|
29
|
-
if_primary_term?: number;
|
|
30
|
-
if_seq_no?: Common.SequenceNumber;
|
|
31
40
|
routing?: Common.Routing;
|
|
32
|
-
version?: Common.VersionNumber;
|
|
33
|
-
version_type?: Common.VersionType;
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
export type OperationContainer = {
|
|
@@ -45,7 +52,7 @@ export type ResponseItem = {
|
|
|
45
52
|
_index: string;
|
|
46
53
|
_primary_term?: number;
|
|
47
54
|
_seq_no?: Common.SequenceNumber;
|
|
48
|
-
_shards?: Common.
|
|
55
|
+
_shards?: Common.ShardInfo;
|
|
49
56
|
_type?: string;
|
|
50
57
|
_version?: Common.VersionNumber;
|
|
51
58
|
error?: Common.ErrorCause;
|
|
@@ -66,12 +73,13 @@ export type UpdateAction = {
|
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
export type UpdateOperation = OperationBase & {
|
|
76
|
+
if_primary_term?: number;
|
|
77
|
+
if_seq_no?: Common.SequenceNumber;
|
|
69
78
|
require_alias?: boolean;
|
|
70
79
|
retry_on_conflict?: number;
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
export type WriteOperation = OperationBase & {
|
|
74
|
-
dynamic_templates?: Record<string, string>;
|
|
75
83
|
pipeline?: string;
|
|
76
84
|
require_alias?: boolean;
|
|
77
85
|
}
|
|
@@ -17,13 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
export type Explanation = {
|
|
19
19
|
description: string;
|
|
20
|
-
details:
|
|
21
|
-
value: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type ExplanationDetail = {
|
|
25
|
-
description: string;
|
|
26
|
-
details?: ExplanationDetail[];
|
|
20
|
+
details: Explanation[];
|
|
27
21
|
value: number;
|
|
28
22
|
}
|
|
29
23
|
|
|
@@ -231,17 +231,17 @@ export type HighlightField = HighlightBase & {
|
|
|
231
231
|
|
|
232
232
|
export type Hit = {
|
|
233
233
|
_explanation?: Core_Explain.Explanation;
|
|
234
|
-
_id
|
|
234
|
+
_id?: Common.Id;
|
|
235
235
|
_ignored?: string[];
|
|
236
|
-
_index
|
|
236
|
+
_index?: Common.IndexName;
|
|
237
237
|
_nested?: NestedIdentity;
|
|
238
238
|
_node?: string;
|
|
239
239
|
_primary_term?: number;
|
|
240
240
|
_routing?: string;
|
|
241
|
-
_score?: undefined | number
|
|
241
|
+
_score?: undefined | number;
|
|
242
242
|
_seq_no?: Common.SequenceNumber;
|
|
243
243
|
_shard?: string;
|
|
244
|
-
_source?:
|
|
244
|
+
_source?: TDocument;
|
|
245
245
|
_type?: Common.Type;
|
|
246
246
|
_version?: Common.VersionNumber;
|
|
247
247
|
fields?: Record<string, any>;
|
|
@@ -253,8 +253,10 @@ export type Hit = {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
export type HitsMetadata = {
|
|
256
|
-
hits: Hit
|
|
257
|
-
|
|
256
|
+
hits: Hit & {
|
|
257
|
+
_source?: T;
|
|
258
|
+
}[];
|
|
259
|
+
max_score?: undefined | number;
|
|
258
260
|
total?: TotalHits | number;
|
|
259
261
|
}
|
|
260
262
|
|
|
@@ -345,6 +347,16 @@ export type PointInTimeReference = {
|
|
|
345
347
|
keep_alive?: Common.Duration;
|
|
346
348
|
}
|
|
347
349
|
|
|
350
|
+
export type ProcessorExecutionDetail = {
|
|
351
|
+
duration_millis?: number;
|
|
352
|
+
error?: string;
|
|
353
|
+
input_data?: Record<string, any> | Record<string, any>[];
|
|
354
|
+
output_data?: Record<string, any> | Record<string, any>[];
|
|
355
|
+
processor_name?: string;
|
|
356
|
+
status?: string;
|
|
357
|
+
tag?: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
348
360
|
export type Profile = {
|
|
349
361
|
shards: ShardProfile[];
|
|
350
362
|
}
|
|
@@ -397,10 +409,10 @@ export type ResponseBody = {
|
|
|
397
409
|
aggregations?: Record<string, Common_Aggregations.Aggregate>;
|
|
398
410
|
fields?: Record<string, Record<string, any>>;
|
|
399
411
|
hits: HitsMetadata;
|
|
400
|
-
max_score?: number;
|
|
401
412
|
num_reduce_phases?: number;
|
|
402
413
|
phase_took?: Common.PhaseTook;
|
|
403
414
|
pit_id?: Common.Id;
|
|
415
|
+
processor_results?: ProcessorExecutionDetail[];
|
|
404
416
|
profile?: Profile;
|
|
405
417
|
suggest?: Record<string, Suggest[]>;
|
|
406
418
|
terminated_early?: boolean;
|
|
@@ -473,6 +485,10 @@ export type SuggestFuzziness = {
|
|
|
473
485
|
|
|
474
486
|
export type SuggestSort = 'frequency' | 'score'
|
|
475
487
|
|
|
488
|
+
export type T = Record<string, any>
|
|
489
|
+
|
|
490
|
+
export type TDocument = Record<string, any>
|
|
491
|
+
|
|
476
492
|
export type TermSuggest = SuggestBase & {
|
|
477
493
|
options: TermSuggestOption | TermSuggestOption[];
|
|
478
494
|
}
|
|
@@ -75,7 +75,7 @@ export type ClusterJvm = {
|
|
|
75
75
|
max_uptime_in_millis: Common.DurationValueUnitMillis;
|
|
76
76
|
mem: ClusterJvmMemory;
|
|
77
77
|
threads: number;
|
|
78
|
-
versions
|
|
78
|
+
versions?: ClusterJvmVersion[];
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export type ClusterJvmMemory = {
|
|
@@ -151,12 +151,12 @@ export type ClusterOperatingSystemArchitecture = {
|
|
|
151
151
|
|
|
152
152
|
export type ClusterOperatingSystemName = {
|
|
153
153
|
count: number;
|
|
154
|
-
name
|
|
154
|
+
name?: Common.Name;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export type ClusterOperatingSystemPrettyName = {
|
|
158
158
|
count: number;
|
|
159
|
-
pretty_name
|
|
159
|
+
pretty_name?: Common.Name;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
export type ClusterProcess = {
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import * as Common from './_common'
|
|
18
|
+
|
|
19
|
+
export type Database = {
|
|
20
|
+
fields?: string[];
|
|
21
|
+
provider?: string;
|
|
22
|
+
sha256_hash?: string;
|
|
23
|
+
updated_at_in_epoch_millis?: Common.EpochTimeUnitMillis;
|
|
24
|
+
valid_for_in_days?: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type DataSource = {
|
|
28
|
+
database: Database;
|
|
29
|
+
endpoint: string;
|
|
30
|
+
name: Common.Name;
|
|
31
|
+
next_update_at_in_epoch_millis: Common.EpochTimeUnitMillis;
|
|
32
|
+
state: 'AVAILABLE' | 'CREATE_FAILED' | 'CREATING' | 'DELETING';
|
|
33
|
+
update_interval_in_days: number;
|
|
34
|
+
update_stats: UpdateStats;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Envelope = PointCoordinates[]
|
|
38
|
+
|
|
39
|
+
export type GeoJSONData = {
|
|
40
|
+
geometry: Geometry;
|
|
41
|
+
properties?: Record<string, any>;
|
|
42
|
+
type: 'Feature' | 'FeatureCollection';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GeoJSONRequest = {
|
|
46
|
+
data: GeoJSONData[];
|
|
47
|
+
field?: string;
|
|
48
|
+
index: Common.IndexName;
|
|
49
|
+
type: 'geo_point' | 'geo_shape';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type Geometry = GeoShapes | GeometryCollection
|
|
53
|
+
|
|
54
|
+
export type GeometryCollection = {
|
|
55
|
+
geometries: Geometry[];
|
|
56
|
+
type: 'GeometryCollection';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GeoShapes = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | Envelope
|
|
60
|
+
|
|
61
|
+
export type GeoSpatialGeojsonUploadResponse = {
|
|
62
|
+
errors: boolean;
|
|
63
|
+
failure: number;
|
|
64
|
+
success: number;
|
|
65
|
+
took: Common.DurationValueUnitMillis;
|
|
66
|
+
total: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type GeoSpatialUploadStats = {
|
|
70
|
+
metrics: UploadStatsMetric[];
|
|
71
|
+
total: UploadStatsTotal;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetDataSourceResponse = {
|
|
75
|
+
datasources: DataSource[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type LineString = {
|
|
79
|
+
coordinates: LineStringCoordinates;
|
|
80
|
+
type: 'LineString';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type LineStringCoordinates = PointCoordinates[]
|
|
84
|
+
|
|
85
|
+
export type MultiLineString = {
|
|
86
|
+
coordinates: MultiLineStringCoordinates;
|
|
87
|
+
type: 'MultiLineString';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type MultiLineStringCoordinates = LineStringCoordinates[]
|
|
91
|
+
|
|
92
|
+
export type MultiPoint = {
|
|
93
|
+
coordinates: MultiPointCoordinates;
|
|
94
|
+
type: 'MultiPoint';
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type MultiPointCoordinates = PointCoordinates[]
|
|
98
|
+
|
|
99
|
+
export type MultiPolygon = {
|
|
100
|
+
coordinates: MultiPolygonCoordinates;
|
|
101
|
+
type: 'MultiPolygon';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type MultiPolygonCoordinates = PolygonCoordinates[]
|
|
105
|
+
|
|
106
|
+
export type Point = {
|
|
107
|
+
coordinates: PointCoordinates;
|
|
108
|
+
type: 'Point';
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type PointCoordinates = number[]
|
|
112
|
+
|
|
113
|
+
export type Polygon = {
|
|
114
|
+
coordinates: PolygonCoordinates;
|
|
115
|
+
type: 'Polygon';
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type PolygonCoordinates = PointCoordinates[][]
|
|
119
|
+
|
|
120
|
+
export type PutIP2GeoDataSourceRequest = {
|
|
121
|
+
endpoint?: string;
|
|
122
|
+
update_interval_in_days?: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type UpdateStats = {
|
|
126
|
+
last_processing_time_in_millis?: Common.EpochTimeUnitMillis;
|
|
127
|
+
last_succeeded_at_in_epoch_millis?: Common.EpochTimeUnitMillis;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type UploadStatsMetric = {
|
|
131
|
+
duration: Common.DurationValueUnitMillis;
|
|
132
|
+
failed: number;
|
|
133
|
+
id: Common.Id;
|
|
134
|
+
node_id: Common.NodeId;
|
|
135
|
+
success: number;
|
|
136
|
+
type: string;
|
|
137
|
+
upload: number;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type UploadStatsTotal = {
|
|
141
|
+
duration: Common.DurationValueUnitMillis;
|
|
142
|
+
failed: number;
|
|
143
|
+
request_count: number;
|
|
144
|
+
success: number;
|
|
145
|
+
upload: number;
|
|
146
|
+
}
|
|
147
|
+
|
package/api/_types/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ import * as Cluster_WeightedRouting from './cluster.weighted_routing'
|
|
|
74
74
|
import * as DanglingIndices_ListDanglingIndices from './dangling_indices.list_dangling_indices'
|
|
75
75
|
import * as FlowFramework_Common from './flow_framework.common'
|
|
76
76
|
import * as FlowFramework_Errors from './flow_framework.errors'
|
|
77
|
+
import * as Geospatial_Common from './geospatial._common'
|
|
77
78
|
import * as Indices_Common from './indices._common'
|
|
78
79
|
import * as Indices_AddBlock from './indices.add_block'
|
|
79
80
|
import * as Indices_Analyze from './indices.analyze'
|
|
@@ -99,6 +100,7 @@ import * as Ism_Common from './ism._common'
|
|
|
99
100
|
import * as Knn_Common from './knn._common'
|
|
100
101
|
import * as Ltr_Common from './ltr._common'
|
|
101
102
|
import * as Ml_Common from './ml._common'
|
|
103
|
+
import * as Neural_Common from './neural._common'
|
|
102
104
|
import * as Nodes_Common from './nodes._common'
|
|
103
105
|
import * as Nodes_Info from './nodes.info'
|
|
104
106
|
import * as Nodes_ReloadSecureSettings from './nodes.reload_secure_settings'
|
|
@@ -184,6 +186,7 @@ export {
|
|
|
184
186
|
DanglingIndices_ListDanglingIndices,
|
|
185
187
|
FlowFramework_Common,
|
|
186
188
|
FlowFramework_Errors,
|
|
189
|
+
Geospatial_Common,
|
|
187
190
|
Indices_Common,
|
|
188
191
|
Indices_AddBlock,
|
|
189
192
|
Indices_Analyze,
|
|
@@ -209,6 +212,7 @@ export {
|
|
|
209
212
|
Knn_Common,
|
|
210
213
|
Ltr_Common,
|
|
211
214
|
Ml_Common,
|
|
215
|
+
Neural_Common,
|
|
212
216
|
Nodes_Common,
|
|
213
217
|
Nodes_Info,
|
|
214
218
|
Nodes_ReloadSecureSettings,
|
|
@@ -37,6 +37,8 @@ export type AliasDefinition = {
|
|
|
37
37
|
search_routing?: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export type BuiltinStorageType = 'fs' | 'hybridfs' | 'mmapfs' | 'niofs'
|
|
41
|
+
|
|
40
42
|
export type DataStream = {
|
|
41
43
|
_meta?: Common.Metadata;
|
|
42
44
|
allow_custom_routing?: boolean;
|
|
@@ -171,6 +173,7 @@ export type IndexSettingBlocks = {
|
|
|
171
173
|
read?: Common.StringifiedBoolean;
|
|
172
174
|
read_only?: Common.StringifiedBoolean;
|
|
173
175
|
read_only_allow_delete?: Common.StringifiedBoolean;
|
|
176
|
+
search_only?: Common.StringifiedBoolean;
|
|
174
177
|
write?: Common.StringifiedBoolean;
|
|
175
178
|
}
|
|
176
179
|
|
|
@@ -192,7 +195,7 @@ export type IndexSettings = {
|
|
|
192
195
|
creation_date_string?: Common.DateTime;
|
|
193
196
|
default_pipeline?: Common.PipelineName;
|
|
194
197
|
final_pipeline?: Common.PipelineName;
|
|
195
|
-
format?:
|
|
198
|
+
format?: Common.StringifiedInteger;
|
|
196
199
|
gc_deletes?: Common.Duration;
|
|
197
200
|
hidden?: Common.StringifiedBoolean;
|
|
198
201
|
highlight?: IndexSettingsHighlight;
|
|
@@ -223,7 +226,7 @@ export type IndexSettings = {
|
|
|
223
226
|
number_of_replicas?: Common.StringifiedInteger;
|
|
224
227
|
number_of_routing_shards?: Common.StringifiedInteger;
|
|
225
228
|
number_of_shards?: Common.StringifiedInteger;
|
|
226
|
-
priority?:
|
|
229
|
+
priority?: Common.StringifiedInteger;
|
|
227
230
|
provided_name?: Common.Name;
|
|
228
231
|
queries?: IndexSettingsQueries;
|
|
229
232
|
query_string?: IndexSettingsQueryString;
|
|
@@ -578,7 +581,7 @@ export type SoftDeletesRetention = {
|
|
|
578
581
|
operations?: Common.StringifiedLong;
|
|
579
582
|
}
|
|
580
583
|
|
|
581
|
-
export type StorageType =
|
|
584
|
+
export type StorageType = BuiltinStorageType | string
|
|
582
585
|
|
|
583
586
|
export type TemplateMapping = {
|
|
584
587
|
aliases: Record<string, Alias>;
|
|
@@ -16,6 +16,24 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
|
+
export type AcknowledgedResponse = {
|
|
20
|
+
acknowledged?: boolean;
|
|
21
|
+
index?: string;
|
|
22
|
+
shards_acknowledged?: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type CacheAllStats = {
|
|
26
|
+
features?: CacheItemStats;
|
|
27
|
+
featuresets?: CacheItemStats;
|
|
28
|
+
models?: CacheItemStats;
|
|
29
|
+
total?: CacheItemStats;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type CacheItemStats = {
|
|
33
|
+
count?: number;
|
|
34
|
+
ram?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
19
37
|
export type CacheStat = {
|
|
20
38
|
entry_count?: number;
|
|
21
39
|
eviction_count?: number;
|
|
@@ -30,12 +48,37 @@ export type CacheStats = {
|
|
|
30
48
|
model?: CacheStat;
|
|
31
49
|
}
|
|
32
50
|
|
|
51
|
+
export type CacheStatsResponse = {
|
|
52
|
+
_nodes?: Common.NodeStatistics;
|
|
53
|
+
all?: CacheAllStats;
|
|
54
|
+
cluster_name?: Common.Name;
|
|
55
|
+
nodes?: Record<string, NodeDetails>;
|
|
56
|
+
stores?: Record<string, any>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type ListStoresResponse = {
|
|
60
|
+
stores: Record<string, StoreDetails>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type NodeDetails = {
|
|
64
|
+
hostname?: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
stats?: NodeStatsDetails;
|
|
67
|
+
}
|
|
68
|
+
|
|
33
69
|
export type NodeStats = {
|
|
34
70
|
cache?: CacheStats;
|
|
35
71
|
request_error_count?: number;
|
|
36
72
|
request_total_count?: number;
|
|
37
73
|
}
|
|
38
74
|
|
|
75
|
+
export type NodeStatsDetails = {
|
|
76
|
+
features?: CacheItemStats;
|
|
77
|
+
featuresets?: CacheItemStats;
|
|
78
|
+
models?: CacheItemStats;
|
|
79
|
+
total?: CacheItemStats;
|
|
80
|
+
}
|
|
81
|
+
|
|
39
82
|
export type Stats = {
|
|
40
83
|
_nodes?: Common.NodeStatistics;
|
|
41
84
|
cluster_name?: Common.Name;
|
|
@@ -44,6 +87,17 @@ export type Stats = {
|
|
|
44
87
|
stores?: StoreStats;
|
|
45
88
|
}
|
|
46
89
|
|
|
90
|
+
export type StoreDetails = {
|
|
91
|
+
counts?: Record<string, any>;
|
|
92
|
+
index?: string;
|
|
93
|
+
store?: string;
|
|
94
|
+
version?: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type StoreExistsResponse = {
|
|
98
|
+
exists?: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
47
101
|
export type StoreStat = {
|
|
48
102
|
feature_count?: number;
|
|
49
103
|
featureset_count?: number;
|
|
@@ -629,13 +629,22 @@ export type Term = {
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
export type Tool = {
|
|
632
|
+
attributes?: ToolAttributes;
|
|
632
633
|
description?: string;
|
|
633
634
|
name?: Common.Name;
|
|
634
635
|
type?: string;
|
|
635
636
|
version?: Common.VersionString;
|
|
636
637
|
}
|
|
637
638
|
|
|
639
|
+
export type ToolAttributes = {
|
|
640
|
+
input_schema?: string;
|
|
641
|
+
strict?: boolean;
|
|
642
|
+
[key: string]: any | Record<string, any>;
|
|
643
|
+
}
|
|
644
|
+
|
|
638
645
|
export type ToolItems = {
|
|
646
|
+
attributes?: ToolAttributes;
|
|
647
|
+
description?: string;
|
|
639
648
|
include_output_in_agent_response?: boolean;
|
|
640
649
|
name?: string;
|
|
641
650
|
parameters?: Parameters;
|