@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.
Files changed (135) hide show
  1. package/api/OpenSearchApi.d.ts +126 -3
  2. package/api/_core/search.d.ts +2 -1
  3. package/api/_core/updateByQueryRethrottle.d.ts +1 -0
  4. package/api/_types/_common.analysis.d.ts +1 -1
  5. package/api/_types/_common.d.ts +19 -14
  6. package/api/_types/_global.d.ts +2 -1
  7. package/api/_types/{cat._common.d.ts → cat.segment_replication.d.ts} +1 -18
  8. package/api/_types/cat.snapshots.d.ts +1 -1
  9. package/api/_types/cluster.stats.d.ts +0 -18
  10. package/api/_types/index.d.ts +233 -0
  11. package/api/_types/indices._common.d.ts +1 -13
  12. package/api/_types/indices.analyze.d.ts +2 -1
  13. package/api/_types/indices.shard_stores.d.ts +2 -2
  14. package/api/_types/indices.stats.d.ts +3 -1
  15. package/api/_types/ingest._common.d.ts +3 -40
  16. package/api/_types/ml._common.d.ts +367 -11
  17. package/api/_types/nodes._common.d.ts +0 -631
  18. package/api/_types/nodes.info.d.ts +30 -25
  19. package/api/_types/nodes.reload_secure_settings.d.ts +8 -4
  20. package/api/_types/nodes.stats.d.ts +634 -4
  21. package/api/_types/nodes.usage.d.ts +1 -7
  22. package/api/cat/aliases.js +1 -1
  23. package/api/cat/allPitSegments.d.ts +2 -2
  24. package/api/cat/allPitSegments.js +6 -6
  25. package/api/cat/clusterManager.js +1 -1
  26. package/api/cat/count.js +5 -5
  27. package/api/cat/fielddata.js +6 -6
  28. package/api/cat/health.js +5 -5
  29. package/api/cat/indices.js +14 -14
  30. package/api/cat/master.js +7 -7
  31. package/api/cat/nodeattrs.js +7 -7
  32. package/api/cat/nodes.d.ts +1 -1
  33. package/api/cat/nodes.js +11 -11
  34. package/api/cat/pendingTasks.js +9 -9
  35. package/api/cat/pitSegments.d.ts +2 -2
  36. package/api/cat/pitSegments.js +6 -6
  37. package/api/cat/plugins.js +8 -8
  38. package/api/cat/recovery.js +8 -8
  39. package/api/cat/repositories.js +8 -8
  40. package/api/cat/segmentReplication.d.ts +2 -2
  41. package/api/cat/segmentReplication.js +18 -17
  42. package/api/cat/segments.js +8 -8
  43. package/api/cat/shards.js +10 -10
  44. package/api/cat/snapshots.js +9 -9
  45. package/api/cat/tasks.js +8 -8
  46. package/api/cat/templates.js +8 -8
  47. package/api/cat/threadPool.js +8 -8
  48. package/api/cluster/getComponentTemplate.d.ts +1 -0
  49. package/api/cluster/getComponentTemplate.js +1 -0
  50. package/api/cluster/reroute.d.ts +1 -2
  51. package/api/cluster/state.d.ts +1 -1
  52. package/api/cluster/stats.d.ts +9 -1
  53. package/api/index.d.ts +58 -2
  54. package/api/indices/addBlock.d.ts +1 -2
  55. package/api/indices/clone.d.ts +2 -3
  56. package/api/indices/close.d.ts +1 -2
  57. package/api/indices/putTemplate.d.ts +1 -1
  58. package/api/indices/rollover.d.ts +2 -3
  59. package/api/indices/shardStores.d.ts +1 -1
  60. package/api/indices/shrink.d.ts +2 -3
  61. package/api/indices/split.d.ts +1 -2
  62. package/api/indices/stats.d.ts +1 -1
  63. package/api/indices/upgrade.d.ts +3 -2
  64. package/api/indices/upgrade.js +0 -1
  65. package/api/ml/_api.js +80 -0
  66. package/api/ml/chunkModel.d.ts +37 -0
  67. package/api/ml/chunkModel.js +53 -0
  68. package/api/ml/createConnector.d.ts +1 -1
  69. package/api/ml/createMemory.d.ts +36 -0
  70. package/api/ml/createMemory.js +47 -0
  71. package/api/ml/createMessage.d.ts +42 -0
  72. package/api/ml/createMessage.js +50 -0
  73. package/api/ml/createModelMeta.d.ts +46 -0
  74. package/api/ml/createModelMeta.js +47 -0
  75. package/api/ml/deleteMemory.d.ts +31 -0
  76. package/api/ml/deleteMemory.js +49 -0
  77. package/api/ml/getConnector.d.ts +30 -0
  78. package/api/ml/getConnector.js +49 -0
  79. package/api/ml/getMemory.d.ts +36 -0
  80. package/api/ml/getMemory.js +49 -0
  81. package/api/ml/getMessage.d.ts +31 -0
  82. package/api/ml/getMessage.js +55 -0
  83. package/api/ml/getMessageTraces.d.ts +30 -0
  84. package/api/ml/getMessageTraces.js +49 -0
  85. package/api/ml/getModel.d.ts +30 -0
  86. package/api/ml/getModel.js +49 -0
  87. package/api/ml/loadModel.d.ts +33 -0
  88. package/api/ml/loadModel.js +49 -0
  89. package/api/ml/predict.d.ts +40 -0
  90. package/api/ml/predict.js +53 -0
  91. package/api/ml/predictModel.d.ts +36 -0
  92. package/api/ml/predictModel.js +50 -0
  93. package/api/ml/registerModel.d.ts +4 -3
  94. package/api/ml/registerModelMeta.d.ts +46 -0
  95. package/api/ml/registerModelMeta.js +47 -0
  96. package/api/ml/searchConnectors.d.ts +36 -0
  97. package/api/ml/searchConnectors.js +47 -0
  98. package/api/ml/searchMemory.d.ts +36 -0
  99. package/api/ml/searchMemory.js +47 -0
  100. package/api/ml/searchMessage.d.ts +37 -0
  101. package/api/ml/searchMessage.js +50 -0
  102. package/api/ml/searchModelGroup.d.ts +36 -0
  103. package/api/ml/searchModelGroup.js +47 -0
  104. package/api/ml/searchModels.d.ts +3 -2
  105. package/api/ml/searchModels.js +1 -1
  106. package/api/ml/train.d.ts +37 -0
  107. package/api/ml/train.js +50 -0
  108. package/api/ml/trainPredict.d.ts +38 -0
  109. package/api/ml/trainPredict.js +50 -0
  110. package/api/ml/undeployModel.d.ts +8 -1
  111. package/api/ml/undeployModel.js +5 -5
  112. package/api/ml/unloadModel.d.ts +37 -0
  113. package/api/ml/unloadModel.js +49 -0
  114. package/api/ml/updateConnector.d.ts +45 -0
  115. package/api/ml/updateConnector.js +50 -0
  116. package/api/ml/updateMemory.d.ts +35 -0
  117. package/api/ml/updateMemory.js +50 -0
  118. package/api/ml/updateMessage.d.ts +40 -0
  119. package/api/ml/updateMessage.js +50 -0
  120. package/api/ml/updateModel.d.ts +43 -0
  121. package/api/ml/updateModel.js +50 -0
  122. package/api/ml/updateModelGroup.d.ts +40 -0
  123. package/api/ml/updateModelGroup.js +50 -0
  124. package/api/ml/uploadChunk.d.ts +37 -0
  125. package/api/ml/uploadChunk.js +53 -0
  126. package/api/ml/uploadModel.d.ts +41 -0
  127. package/api/ml/uploadModel.js +47 -0
  128. package/api/nodes/info.d.ts +5 -1
  129. package/api/nodes/reloadSecureSettings.d.ts +5 -1
  130. package/api/nodes/stats.d.ts +5 -1
  131. package/api/nodes/usage.d.ts +5 -1
  132. package/api/tasks/cancel.d.ts +1 -1
  133. package/api/tasks/list.d.ts +1 -1
  134. package/index.d.ts +2 -0
  135. 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?: number;
49
- total_indexing_buffer_in_bytes?: Common.ByteCount;
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: NodeInfoIngestProcessor[];
165
- response_processors: NodeInfoIngestProcessor[];
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?: DeprecationIndexing;
187
+ deprecation_indexing?: NodeInfoSettingsDeprecationIndexing;
193
188
  election?: NodeInfoSettingsClusterElection;
194
- initial_cluster_manager_nodes?: string;
195
- initial_master_nodes?: string;
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?: boolean | string;
206
- port?: number | string;
207
- type: string;
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: NodeInfoShardIndexingPressureEnabled;
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: string;
282
+ type: NodeInfoSettingsTransportType;
278
283
  'type.default'?: string;
279
284
  }
280
285
 
281
- export type NodeInfoShardIndexingPressureEnabled = {
282
- shard_indexing_pressure_enabled: string;
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?: boolean | string;
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 ResponseBase = Nodes_Common.NodesResponseBase & {
21
- cluster_name: Common.Name;
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
+