@opensearch-project/opensearch 3.0.0-beta.9 → 3.0.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 +34 -0
- package/api/_core/search.d.ts +1 -1
- package/api/_core/updateByQueryRethrottle.d.ts +1 -0
- package/api/_types/_common.analysis.d.ts +1 -1
- package/api/_types/_common.d.ts +15 -5
- package/api/_types/_global.d.ts +2 -1
- package/api/_types/cluster.stats.d.ts +0 -18
- 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/ml._common.d.ts +209 -8
- package/api/_types/nodes._common.d.ts +0 -631
- package/api/_types/nodes.info.d.ts +16 -23
- 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.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.js +11 -11
- package/api/cat/pendingTasks.js +9 -9
- 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.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 +16 -0
- 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 +20 -0
- package/api/ml/createConnector.d.ts +1 -1
- package/api/ml/getConnector.d.ts +30 -0
- package/api/ml/getConnector.js +49 -0
- package/api/ml/predict.d.ts +40 -0
- package/api/ml/predict.js +53 -0
- package/api/ml/searchConnectors.d.ts +36 -0
- package/api/ml/searchConnectors.js +47 -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/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/updateConnector.d.ts +45 -0
- package/api/ml/updateConnector.js +50 -0
- package/api/ml/updateModelGroup.d.ts +40 -0
- package/api/ml/updateModelGroup.js +50 -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/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;
|
|
@@ -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,9 +196,13 @@ 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?:
|
|
204
|
+
compression?: Common.StringifiedBoolean;
|
|
205
|
+
port?: Common.StringifiedInteger;
|
|
207
206
|
type: string;
|
|
208
207
|
'type.default'?: string;
|
|
209
208
|
}
|
|
@@ -266,7 +265,7 @@ export type NodeInfoSettingsNetwork = {
|
|
|
266
265
|
}
|
|
267
266
|
|
|
268
267
|
export type NodeInfoSettingsNode = {
|
|
269
|
-
attr:
|
|
268
|
+
attr: Record<string, any>;
|
|
270
269
|
max_local_storage_nodes?: string;
|
|
271
270
|
name: Common.Name;
|
|
272
271
|
}
|
|
@@ -278,10 +277,6 @@ export type NodeInfoSettingsTransport = {
|
|
|
278
277
|
'type.default'?: string;
|
|
279
278
|
}
|
|
280
279
|
|
|
281
|
-
export type NodeInfoShardIndexingPressureEnabled = {
|
|
282
|
-
shard_indexing_pressure_enabled: string;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
280
|
export type NodeInfoTransport = {
|
|
286
281
|
bound_address: string[];
|
|
287
282
|
profiles: Record<string, string>;
|
|
@@ -295,9 +290,10 @@ export type NodeJvmInfo = {
|
|
|
295
290
|
mem: NodeInfoJvmMemory;
|
|
296
291
|
memory_pools?: string[];
|
|
297
292
|
pid: number;
|
|
293
|
+
start_time?: Common.DateTime;
|
|
298
294
|
start_time_in_millis: Common.EpochTimeUnitMillis;
|
|
299
295
|
using_bundled_jdk?: boolean | undefined;
|
|
300
|
-
using_compressed_ordinary_object_pointers?:
|
|
296
|
+
using_compressed_ordinary_object_pointers?: Common.StringifiedBoolean;
|
|
301
297
|
version?: Common.VersionString;
|
|
302
298
|
vm_name?: Common.Name;
|
|
303
299
|
vm_vendor?: string;
|
|
@@ -312,6 +308,7 @@ export type NodeOperatingSystemInfo = {
|
|
|
312
308
|
mem?: NodeInfoMemory;
|
|
313
309
|
name?: Common.Name;
|
|
314
310
|
pretty_name?: Common.Name;
|
|
311
|
+
refresh_interval?: Common.Duration;
|
|
315
312
|
refresh_interval_in_millis: Common.DurationValueUnitMillis;
|
|
316
313
|
swap?: NodeInfoMemory;
|
|
317
314
|
version?: Common.VersionString;
|
|
@@ -320,6 +317,7 @@ export type NodeOperatingSystemInfo = {
|
|
|
320
317
|
export type NodeProcessInfo = {
|
|
321
318
|
id: number;
|
|
322
319
|
mlockall: boolean;
|
|
320
|
+
refresh_interval?: Common.Duration;
|
|
323
321
|
refresh_interval_in_millis: Common.DurationValueUnitMillis;
|
|
324
322
|
}
|
|
325
323
|
|
|
@@ -332,8 +330,3 @@ export type NodeThreadPoolInfo = {
|
|
|
332
330
|
type: string;
|
|
333
331
|
}
|
|
334
332
|
|
|
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
|
+
|