@opensearch-project/opensearch 3.0.0-beta.9 → 3.1.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 +126 -3
- package/api/_core/search.d.ts +2 -1
- package/api/_core/updateByQueryRethrottle.d.ts +1 -0
- package/api/_types/_common.analysis.d.ts +1 -1
- package/api/_types/_common.d.ts +19 -14
- package/api/_types/_global.d.ts +2 -1
- package/api/_types/{cat._common.d.ts → cat.segment_replication.d.ts} +1 -18
- package/api/_types/cat.snapshots.d.ts +1 -1
- package/api/_types/cluster.stats.d.ts +0 -18
- package/api/_types/index.d.ts +233 -0
- package/api/_types/indices._common.d.ts +1 -13
- package/api/_types/indices.analyze.d.ts +2 -1
- package/api/_types/indices.shard_stores.d.ts +2 -2
- package/api/_types/indices.stats.d.ts +3 -1
- package/api/_types/ingest._common.d.ts +3 -40
- package/api/_types/ml._common.d.ts +367 -11
- package/api/_types/nodes._common.d.ts +0 -631
- package/api/_types/nodes.info.d.ts +30 -25
- package/api/_types/nodes.reload_secure_settings.d.ts +8 -4
- package/api/_types/nodes.stats.d.ts +634 -4
- package/api/_types/nodes.usage.d.ts +1 -7
- package/api/cat/aliases.js +1 -1
- package/api/cat/allPitSegments.d.ts +2 -2
- package/api/cat/allPitSegments.js +6 -6
- package/api/cat/clusterManager.js +1 -1
- package/api/cat/count.js +5 -5
- package/api/cat/fielddata.js +6 -6
- package/api/cat/health.js +5 -5
- package/api/cat/indices.js +14 -14
- package/api/cat/master.js +7 -7
- package/api/cat/nodeattrs.js +7 -7
- package/api/cat/nodes.d.ts +1 -1
- package/api/cat/nodes.js +11 -11
- package/api/cat/pendingTasks.js +9 -9
- package/api/cat/pitSegments.d.ts +2 -2
- package/api/cat/pitSegments.js +6 -6
- package/api/cat/plugins.js +8 -8
- package/api/cat/recovery.js +8 -8
- package/api/cat/repositories.js +8 -8
- package/api/cat/segmentReplication.d.ts +2 -2
- package/api/cat/segmentReplication.js +18 -17
- package/api/cat/segments.js +8 -8
- package/api/cat/shards.js +10 -10
- package/api/cat/snapshots.js +9 -9
- package/api/cat/tasks.js +8 -8
- package/api/cat/templates.js +8 -8
- package/api/cat/threadPool.js +8 -8
- package/api/cluster/getComponentTemplate.d.ts +1 -0
- package/api/cluster/getComponentTemplate.js +1 -0
- package/api/cluster/reroute.d.ts +1 -2
- package/api/cluster/state.d.ts +1 -1
- package/api/cluster/stats.d.ts +9 -1
- package/api/index.d.ts +58 -2
- package/api/indices/addBlock.d.ts +1 -2
- package/api/indices/clone.d.ts +2 -3
- package/api/indices/close.d.ts +1 -2
- package/api/indices/putTemplate.d.ts +1 -1
- package/api/indices/rollover.d.ts +2 -3
- package/api/indices/shardStores.d.ts +1 -1
- package/api/indices/shrink.d.ts +2 -3
- package/api/indices/split.d.ts +1 -2
- package/api/indices/stats.d.ts +1 -1
- package/api/indices/upgrade.d.ts +3 -2
- package/api/indices/upgrade.js +0 -1
- package/api/ml/_api.js +80 -0
- package/api/ml/chunkModel.d.ts +37 -0
- package/api/ml/chunkModel.js +53 -0
- package/api/ml/createConnector.d.ts +1 -1
- package/api/ml/createMemory.d.ts +36 -0
- package/api/ml/createMemory.js +47 -0
- package/api/ml/createMessage.d.ts +42 -0
- package/api/ml/createMessage.js +50 -0
- package/api/ml/createModelMeta.d.ts +46 -0
- package/api/ml/createModelMeta.js +47 -0
- package/api/ml/deleteMemory.d.ts +31 -0
- package/api/ml/deleteMemory.js +49 -0
- package/api/ml/getConnector.d.ts +30 -0
- package/api/ml/getConnector.js +49 -0
- package/api/ml/getMemory.d.ts +36 -0
- package/api/ml/getMemory.js +49 -0
- package/api/ml/getMessage.d.ts +31 -0
- package/api/ml/getMessage.js +55 -0
- package/api/ml/getMessageTraces.d.ts +30 -0
- package/api/ml/getMessageTraces.js +49 -0
- package/api/ml/getModel.d.ts +30 -0
- package/api/ml/getModel.js +49 -0
- package/api/ml/loadModel.d.ts +33 -0
- package/api/ml/loadModel.js +49 -0
- package/api/ml/predict.d.ts +40 -0
- package/api/ml/predict.js +53 -0
- package/api/ml/predictModel.d.ts +36 -0
- package/api/ml/predictModel.js +50 -0
- package/api/ml/registerModel.d.ts +4 -3
- package/api/ml/registerModelMeta.d.ts +46 -0
- package/api/ml/registerModelMeta.js +47 -0
- package/api/ml/searchConnectors.d.ts +36 -0
- package/api/ml/searchConnectors.js +47 -0
- package/api/ml/searchMemory.d.ts +36 -0
- package/api/ml/searchMemory.js +47 -0
- package/api/ml/searchMessage.d.ts +37 -0
- package/api/ml/searchMessage.js +50 -0
- package/api/ml/searchModelGroup.d.ts +36 -0
- package/api/ml/searchModelGroup.js +47 -0
- package/api/ml/searchModels.d.ts +3 -2
- package/api/ml/searchModels.js +1 -1
- package/api/ml/train.d.ts +37 -0
- package/api/ml/train.js +50 -0
- package/api/ml/trainPredict.d.ts +38 -0
- package/api/ml/trainPredict.js +50 -0
- package/api/ml/undeployModel.d.ts +8 -1
- package/api/ml/undeployModel.js +5 -5
- package/api/ml/unloadModel.d.ts +37 -0
- package/api/ml/unloadModel.js +49 -0
- package/api/ml/updateConnector.d.ts +45 -0
- package/api/ml/updateConnector.js +50 -0
- package/api/ml/updateMemory.d.ts +35 -0
- package/api/ml/updateMemory.js +50 -0
- package/api/ml/updateMessage.d.ts +40 -0
- package/api/ml/updateMessage.js +50 -0
- package/api/ml/updateModel.d.ts +43 -0
- package/api/ml/updateModel.js +50 -0
- package/api/ml/updateModelGroup.d.ts +40 -0
- package/api/ml/updateModelGroup.js +50 -0
- package/api/ml/uploadChunk.d.ts +37 -0
- package/api/ml/uploadChunk.js +53 -0
- package/api/ml/uploadModel.d.ts +41 -0
- package/api/ml/uploadModel.js +47 -0
- package/api/nodes/info.d.ts +5 -1
- package/api/nodes/reloadSecureSettings.d.ts +5 -1
- package/api/nodes/stats.d.ts +5 -1
- package/api/nodes/usage.d.ts +5 -1
- package/api/tasks/cancel.d.ts +1 -1
- package/api/tasks/list.d.ts +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
import * as Indices_Common from './indices._common'
|
|
19
|
-
import * as Nodes_Common from './nodes._common'
|
|
20
|
-
|
|
21
|
-
export type DeprecationIndexing = {
|
|
22
|
-
enabled: boolean | string;
|
|
23
|
-
}
|
|
24
19
|
|
|
25
20
|
export type Metric = '_all' | 'aggregations' | 'http' | 'indices' | 'ingest' | 'jvm' | 'os' | 'plugins' | 'process' | 'search_pipelines' | 'settings' | 'thread_pool' | 'transport'
|
|
26
21
|
|
|
@@ -45,8 +40,8 @@ export type NodeInfo = {
|
|
|
45
40
|
search_pipelines?: NodeInfoSearchPipelines;
|
|
46
41
|
settings?: NodeInfoSettings;
|
|
47
42
|
thread_pool?: Record<string, NodeThreadPoolInfo>;
|
|
48
|
-
total_indexing_buffer?:
|
|
49
|
-
total_indexing_buffer_in_bytes?: Common.
|
|
43
|
+
total_indexing_buffer?: Common.ByteCount;
|
|
44
|
+
total_indexing_buffer_in_bytes?: Common.HumanReadableByteCount;
|
|
50
45
|
transport?: NodeInfoTransport;
|
|
51
46
|
transport_address?: Common.TransportAddress;
|
|
52
47
|
version: Common.VersionString;
|
|
@@ -161,8 +156,8 @@ export type NodeInfoSearch = {
|
|
|
161
156
|
}
|
|
162
157
|
|
|
163
158
|
export type NodeInfoSearchPipelines = {
|
|
164
|
-
request_processors
|
|
165
|
-
response_processors
|
|
159
|
+
request_processors?: NodeInfoIngestProcessor[];
|
|
160
|
+
response_processors?: NodeInfoIngestProcessor[];
|
|
166
161
|
}
|
|
167
162
|
|
|
168
163
|
export type NodeInfoSearchRemote = {
|
|
@@ -189,10 +184,10 @@ export type NodeInfoSettings = {
|
|
|
189
184
|
}
|
|
190
185
|
|
|
191
186
|
export type NodeInfoSettingsCluster = {
|
|
192
|
-
deprecation_indexing?:
|
|
187
|
+
deprecation_indexing?: NodeInfoSettingsDeprecationIndexing;
|
|
193
188
|
election?: NodeInfoSettingsClusterElection;
|
|
194
|
-
initial_cluster_manager_nodes?:
|
|
195
|
-
initial_master_nodes?:
|
|
189
|
+
initial_cluster_manager_nodes?: Common.StringOrStringArray;
|
|
190
|
+
initial_master_nodes?: Common.StringOrStringArray;
|
|
196
191
|
name: Common.Name;
|
|
197
192
|
routing?: Indices_Common.IndexRouting;
|
|
198
193
|
}
|
|
@@ -201,13 +196,23 @@ export type NodeInfoSettingsClusterElection = {
|
|
|
201
196
|
strategy: Common.Name;
|
|
202
197
|
}
|
|
203
198
|
|
|
199
|
+
export type NodeInfoSettingsDeprecationIndexing = {
|
|
200
|
+
enabled: Common.StringifiedBoolean;
|
|
201
|
+
}
|
|
202
|
+
|
|
204
203
|
export type NodeInfoSettingsHttp = {
|
|
205
|
-
compression?:
|
|
206
|
-
port?:
|
|
207
|
-
type:
|
|
204
|
+
compression?: Common.StringifiedBoolean;
|
|
205
|
+
port?: Common.StringifiedInteger;
|
|
206
|
+
type: NodeInfoSettingsHttpType;
|
|
208
207
|
'type.default'?: string;
|
|
209
208
|
}
|
|
210
209
|
|
|
210
|
+
export type NodeInfoSettingsHttpType = string | NodeInfoSettingsHttpTypeConfig
|
|
211
|
+
|
|
212
|
+
export type NodeInfoSettingsHttpTypeConfig = {
|
|
213
|
+
default?: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
211
216
|
export type NodeInfoSettingsIndex = {
|
|
212
217
|
store?: NodeInfoSettingsIndexStore;
|
|
213
218
|
}
|
|
@@ -266,7 +271,7 @@ export type NodeInfoSettingsNetwork = {
|
|
|
266
271
|
}
|
|
267
272
|
|
|
268
273
|
export type NodeInfoSettingsNode = {
|
|
269
|
-
attr
|
|
274
|
+
attr?: Record<string, any>;
|
|
270
275
|
max_local_storage_nodes?: string;
|
|
271
276
|
name: Common.Name;
|
|
272
277
|
}
|
|
@@ -274,12 +279,14 @@ export type NodeInfoSettingsNode = {
|
|
|
274
279
|
export type NodeInfoSettingsPlugins = Record<string, any>
|
|
275
280
|
|
|
276
281
|
export type NodeInfoSettingsTransport = {
|
|
277
|
-
type:
|
|
282
|
+
type: NodeInfoSettingsTransportType;
|
|
278
283
|
'type.default'?: string;
|
|
279
284
|
}
|
|
280
285
|
|
|
281
|
-
export type
|
|
282
|
-
|
|
286
|
+
export type NodeInfoSettingsTransportType = string | NodeInfoSettingsTransportTypeConfig
|
|
287
|
+
|
|
288
|
+
export type NodeInfoSettingsTransportTypeConfig = {
|
|
289
|
+
default?: string;
|
|
283
290
|
}
|
|
284
291
|
|
|
285
292
|
export type NodeInfoTransport = {
|
|
@@ -295,9 +302,10 @@ export type NodeJvmInfo = {
|
|
|
295
302
|
mem: NodeInfoJvmMemory;
|
|
296
303
|
memory_pools?: string[];
|
|
297
304
|
pid: number;
|
|
305
|
+
start_time?: Common.DateTime;
|
|
298
306
|
start_time_in_millis: Common.EpochTimeUnitMillis;
|
|
299
307
|
using_bundled_jdk?: boolean | undefined;
|
|
300
|
-
using_compressed_ordinary_object_pointers?:
|
|
308
|
+
using_compressed_ordinary_object_pointers?: Common.StringifiedBoolean;
|
|
301
309
|
version?: Common.VersionString;
|
|
302
310
|
vm_name?: Common.Name;
|
|
303
311
|
vm_vendor?: string;
|
|
@@ -312,6 +320,7 @@ export type NodeOperatingSystemInfo = {
|
|
|
312
320
|
mem?: NodeInfoMemory;
|
|
313
321
|
name?: Common.Name;
|
|
314
322
|
pretty_name?: Common.Name;
|
|
323
|
+
refresh_interval?: Common.Duration;
|
|
315
324
|
refresh_interval_in_millis: Common.DurationValueUnitMillis;
|
|
316
325
|
swap?: NodeInfoMemory;
|
|
317
326
|
version?: Common.VersionString;
|
|
@@ -320,6 +329,7 @@ export type NodeOperatingSystemInfo = {
|
|
|
320
329
|
export type NodeProcessInfo = {
|
|
321
330
|
id: number;
|
|
322
331
|
mlockall: boolean;
|
|
332
|
+
refresh_interval?: Common.Duration;
|
|
323
333
|
refresh_interval_in_millis: Common.DurationValueUnitMillis;
|
|
324
334
|
}
|
|
325
335
|
|
|
@@ -332,8 +342,3 @@ export type NodeThreadPoolInfo = {
|
|
|
332
342
|
type: string;
|
|
333
343
|
}
|
|
334
344
|
|
|
335
|
-
export type ResponseBase = Nodes_Common.NodesResponseBase & {
|
|
336
|
-
cluster_name: Common.Name;
|
|
337
|
-
nodes: Record<string, NodeInfo>;
|
|
338
|
-
}
|
|
339
|
-
|
|
@@ -15,10 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
|
-
import * as Nodes_Common from './nodes._common'
|
|
19
18
|
|
|
20
|
-
export type
|
|
21
|
-
|
|
22
|
-
nodes: Record<string, Nodes_Common.NodeReloadResult>;
|
|
19
|
+
export type NodeReloadError = NodeReloadResponse & {
|
|
20
|
+
reload_exception?: Common.ErrorCause;
|
|
23
21
|
}
|
|
24
22
|
|
|
23
|
+
export type NodeReloadResponse = {
|
|
24
|
+
name: Common.Name;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type NodeReloadResult = NodeReloadResponse | NodeReloadError
|
|
28
|
+
|