@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.
Files changed (82) hide show
  1. package/api/OpenSearchApi.d.ts +34 -0
  2. package/api/_core/search.d.ts +1 -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 +15 -5
  6. package/api/_types/_global.d.ts +2 -1
  7. package/api/_types/cluster.stats.d.ts +0 -18
  8. package/api/_types/indices._common.d.ts +1 -13
  9. package/api/_types/indices.analyze.d.ts +2 -1
  10. package/api/_types/indices.shard_stores.d.ts +2 -2
  11. package/api/_types/indices.stats.d.ts +3 -1
  12. package/api/_types/ml._common.d.ts +209 -8
  13. package/api/_types/nodes._common.d.ts +0 -631
  14. package/api/_types/nodes.info.d.ts +16 -23
  15. package/api/_types/nodes.reload_secure_settings.d.ts +8 -4
  16. package/api/_types/nodes.stats.d.ts +634 -4
  17. package/api/_types/nodes.usage.d.ts +1 -7
  18. package/api/cat/aliases.js +1 -1
  19. package/api/cat/allPitSegments.js +6 -6
  20. package/api/cat/clusterManager.js +1 -1
  21. package/api/cat/count.js +5 -5
  22. package/api/cat/fielddata.js +6 -6
  23. package/api/cat/health.js +5 -5
  24. package/api/cat/indices.js +14 -14
  25. package/api/cat/master.js +7 -7
  26. package/api/cat/nodeattrs.js +7 -7
  27. package/api/cat/nodes.js +11 -11
  28. package/api/cat/pendingTasks.js +9 -9
  29. package/api/cat/pitSegments.js +6 -6
  30. package/api/cat/plugins.js +8 -8
  31. package/api/cat/recovery.js +8 -8
  32. package/api/cat/repositories.js +8 -8
  33. package/api/cat/segmentReplication.js +18 -17
  34. package/api/cat/segments.js +8 -8
  35. package/api/cat/shards.js +10 -10
  36. package/api/cat/snapshots.js +9 -9
  37. package/api/cat/tasks.js +8 -8
  38. package/api/cat/templates.js +8 -8
  39. package/api/cat/threadPool.js +8 -8
  40. package/api/cluster/getComponentTemplate.d.ts +1 -0
  41. package/api/cluster/getComponentTemplate.js +1 -0
  42. package/api/cluster/reroute.d.ts +1 -2
  43. package/api/cluster/state.d.ts +1 -1
  44. package/api/cluster/stats.d.ts +9 -1
  45. package/api/index.d.ts +16 -0
  46. package/api/indices/addBlock.d.ts +1 -2
  47. package/api/indices/clone.d.ts +2 -3
  48. package/api/indices/close.d.ts +1 -2
  49. package/api/indices/putTemplate.d.ts +1 -1
  50. package/api/indices/rollover.d.ts +2 -3
  51. package/api/indices/shardStores.d.ts +1 -1
  52. package/api/indices/shrink.d.ts +2 -3
  53. package/api/indices/split.d.ts +1 -2
  54. package/api/indices/stats.d.ts +1 -1
  55. package/api/indices/upgrade.d.ts +3 -2
  56. package/api/indices/upgrade.js +0 -1
  57. package/api/ml/_api.js +20 -0
  58. package/api/ml/createConnector.d.ts +1 -1
  59. package/api/ml/getConnector.d.ts +30 -0
  60. package/api/ml/getConnector.js +49 -0
  61. package/api/ml/predict.d.ts +40 -0
  62. package/api/ml/predict.js +53 -0
  63. package/api/ml/searchConnectors.d.ts +36 -0
  64. package/api/ml/searchConnectors.js +47 -0
  65. package/api/ml/searchModelGroup.d.ts +36 -0
  66. package/api/ml/searchModelGroup.js +47 -0
  67. package/api/ml/searchModels.d.ts +3 -2
  68. package/api/ml/train.d.ts +37 -0
  69. package/api/ml/train.js +50 -0
  70. package/api/ml/trainPredict.d.ts +38 -0
  71. package/api/ml/trainPredict.js +50 -0
  72. package/api/ml/updateConnector.d.ts +45 -0
  73. package/api/ml/updateConnector.js +50 -0
  74. package/api/ml/updateModelGroup.d.ts +40 -0
  75. package/api/ml/updateModelGroup.js +50 -0
  76. package/api/nodes/info.d.ts +5 -1
  77. package/api/nodes/reloadSecureSettings.d.ts +5 -1
  78. package/api/nodes/stats.d.ts +5 -1
  79. package/api/nodes/usage.d.ts +5 -1
  80. package/api/tasks/cancel.d.ts +1 -1
  81. package/api/tasks/list.d.ts +1 -1
  82. package/package.json +1 -1
@@ -29,7 +29,7 @@ const { normalizeArguments } = require('../utils');
29
29
  * @param {string} [params.format] - A short version of the HTTP `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
33
  * @param {string} [params.master_timeout] DEPRECATED - A timeout for connection to the cluster manager node.
34
34
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
35
  * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
package/api/cat/count.js CHANGED
@@ -19,17 +19,17 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Provides quick access to the document count of the entire cluster, or individual indexes.
22
+ * Provides quick access to the document count of the entire cluster or of an individual index.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-count/ - cat.count}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
29
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
29
+ * @param {array} [params.h] - A comma-separated list of column names to display.
30
30
  * @param {boolean} [params.help=false] - Return help information.
31
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
32
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
31
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
32
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
33
33
  * @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,13 +25,13 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.bytes] - The unit used to display byte values.
29
- * @param {string} [params.fields] - Comma-separated list of fields used to limit returned information. To retrieve all fields, omit this parameter.
30
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
31
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.bytes] - The units used to display byte values.
29
+ * @param {string} [params.fields] - A comma-separated list of fields used to limit the amount of returned information. To retrieve all fields, omit this parameter.
30
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
+ * @param {array} [params.h] - A comma-separated list of column names to display.
32
32
  * @param {boolean} [params.help=false] - Return help information.
33
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
34
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
33
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
34
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
35
35
  *
36
36
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
37
37
  * @param {function} [callback] - Callback that handles errors and response
package/api/cat/health.js CHANGED
@@ -25,13 +25,13 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
29
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
29
+ * @param {array} [params.h] - A comma-separated list of column names to display.
30
30
  * @param {boolean} [params.help=false] - Return help information.
31
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
31
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
32
32
  * @param {string} [params.time] - The unit used to display time values.
33
- * @param {boolean} [params.ts=true] - If `true`, returns `HH:MM:SS` and Unix epoch timestamps.
34
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
33
+ * @param {boolean} [params.ts=true] - When `true`, returns `HH:MM:SS` and Unix epoch timestamps.
34
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
35
35
  *
36
36
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
37
37
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,27 +19,27 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about indexes: number of primaries and replicas, document counts, disk size, ...
22
+ * Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-indices/ - cat.indices}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.bytes] - The unit used to display byte values.
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.bytes] - The units used to display byte values.
29
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
30
30
  * @param {string} [params.expand_wildcards] - The type of index that wildcard patterns can match.
31
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
32
- * @param {array} [params.h] - Comma-separated list of column names to display.
33
- * @param {string} [params.health] - The health status used to limit returned indexes. By default, the response includes indexes of any health status.
31
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
32
+ * @param {array} [params.h] - A comma-separated list of column names to display.
33
+ * @param {string} [params.health] - Limits indexes based on their health status. Supported values are `green`, `yellow`, and `red`.
34
34
  * @param {boolean} [params.help=false] - Return help information.
35
- * @param {boolean} [params.include_unloaded_segments=false] - If `true`, the response includes information from segments that are not loaded into memory.
36
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
37
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
38
- * @param {boolean} [params.pri=false] - If `true`, the response only includes information from primary shards.
39
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
40
- * @param {string} [params.time] - The unit used to display time values.
41
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
42
- * @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
35
+ * @param {boolean} [params.include_unloaded_segments=false] - Whether to include information from segments not loaded into memory.
36
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
37
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
38
+ * @param {boolean} [params.pri=false] - When `true`, returns information only from the primary shards.
39
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
40
+ * @param {string} [params.time] - Specifies the time units.
41
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
42
+ * @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
43
43
  *
44
44
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
45
45
  * @param {function} [callback] - Callback that handles errors and response
package/api/cat/master.js CHANGED
@@ -25,14 +25,14 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
36
36
  *
37
37
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
38
38
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,14 +25,14 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
36
36
  *
37
37
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
38
38
  * @param {function} [callback] - Callback that handles errors and response
package/api/cat/nodes.js CHANGED
@@ -19,23 +19,23 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns basic statistics about performance of cluster nodes.
22
+ * Returns basic statistics about the performance of cluster nodes.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-nodes/ - cat.nodes}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.bytes] - The unit used to display byte values.
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
30
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
31
- * @param {string} [params.full_id=false] - If `true`, return the full node ID. If `false`, return the shortened node ID.
32
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.bytes] - The units used to display byte values.
29
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
30
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
+ * @param {string} [params.full_id=false] - When `true`, returns the full node ID. When `false`, returns the shortened node ID.
32
+ * @param {array} [params.h] - A comma-separated list of column names to display.
33
33
  * @param {boolean} [params.help=false] - Return help information.
34
- * @param {boolean} [params.local=false] DEPRECATED - Return local information, do not retrieve the state from cluster-manager node.
35
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
36
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
37
- * @param {string} [params.time] - The unit in which to display time values.
38
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
34
+ * @param {boolean} [params.local=false] DEPRECATED - Returns local information but does not retrieve the state from the cluster manager node.
35
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
36
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
37
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
38
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
39
39
  *
40
40
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
41
41
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,21 +19,21 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns a concise representation of the cluster pending tasks.
22
+ * Returns a concise representation of the cluster's pending tasks.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-pending-tasks/ - cat.pending_tasks}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {string} [params.time] - The unit in which to display time values.
36
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
36
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
37
37
  *
38
38
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
39
39
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,18 +19,18 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * List segments for one or several PITs.
22
+ * Lists one or several CAT point-in-time segments.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/search-plugins/point-in-time-api/ - cat.pit_segments}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.bytes] - The unit in which to display byte values.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.bytes] - The units used to display byte values.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
33
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
33
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
34
34
  * @param {object} [params.body]
35
35
  *
36
36
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,20 +19,20 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about installed plugins across nodes node.
22
+ * Returns information about the names, components, and versions of the installed plugins.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-plugins/ - cat.plugins}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
36
36
  *
37
37
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
38
38
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,22 +19,22 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about index shard recoveries, both on-going completed.
22
+ * Returns all completed and ongoing index and shard recoveries.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-plugins/ - cat.recovery}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
28
  * @param {boolean} [params.active_only=false] - If `true`, the response only includes ongoing shard recoveries.
29
- * @param {string} [params.bytes] - The unit used to display byte values.
30
- * @param {boolean} [params.detailed=false] - If `true`, the response includes detailed information about shard recoveries.
31
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
32
- * @param {array} [params.h] - Comma-separated list of column names to display.
29
+ * @param {string} [params.bytes] - The units used to display byte values.
30
+ * @param {boolean} [params.detailed=false] - When `true`, includes detailed information about shard recoveries.
31
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
32
+ * @param {array} [params.h] - A comma-separated list of column names to display.
33
33
  * @param {boolean} [params.help=false] - Return help information.
34
34
  * @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
35
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
36
- * @param {string} [params.time] - The unit in which to display time values.
37
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
35
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
36
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
37
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
38
38
  *
39
39
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
40
40
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,20 +19,20 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about snapshot repositories registered in the cluster.
22
+ * Returns information about all snapshot repositories for a cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-repositories/ - cat.repositories}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
36
36
  *
37
37
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
38
38
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,29 +19,30 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about both on-going and latest completed Segment Replication events.
22
+ * Returns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics.
23
+ These metrics provide information about how far behind the primary shard the replicas are lagging.
23
24
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-segment-replication/ - cat.segment_replication}
24
25
  *
25
26
  * @memberOf API-Cat
26
27
  *
27
28
  * @param {object} [params]
28
- * @param {boolean} [params.active_only=false] - If `true`, the response only includes ongoing segment replication events.
29
- * @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes `_all` string or when no indexes have been specified).
30
- * @param {string} [params.bytes] - The unit in which to display byte values.
31
- * @param {boolean} [params.completed_only=false] - If `true`, the response only includes latest completed segment replication events.
32
- * @param {boolean} [params.detailed=false] - If `true`, the response includes detailed information about segment replications.
33
- * @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indexes that are open, closed or both.
34
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
35
- * @param {array} [params.h] - Comma-separated list of column names to display.
29
+ * @param {boolean} [params.active_only=false] - When `true`, the response only includes ongoing segment replication events.
30
+ * @param {boolean} [params.allow_no_indices] - Whether to ignore the index if a wildcard index expression resolves to no concrete indexes. This includes the `_all` string or when no indexes have been specified.
31
+ * @param {string} [params.bytes] - The units used to display byte values.
32
+ * @param {boolean} [params.completed_only=false] - When `true`, the response only includes the last-completed segment replication events.
33
+ * @param {boolean} [params.detailed=false] - When `true`, the response includes additional metrics for each stage of a segment replication event.
34
+ * @param {string} [params.expand_wildcards] - Whether to expand the wildcard expression to include concrete indexes that are open, closed, or both.
35
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
36
+ * @param {array} [params.h] - A comma-separated list of column names to display.
36
37
  * @param {boolean} [params.help=false] - Return help information.
37
- * @param {boolean} [params.ignore_throttled] - Whether specified concrete, expanded or aliased indexes should be ignored when throttled.
38
- * @param {boolean} [params.ignore_unavailable] - Whether specified concrete indexes should be ignored when unavailable (missing or closed).
39
- * @param {array} [params.index] - Comma-separated list or wildcard expression of index names to limit the returned information.
40
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
41
- * @param {array} [params.shards] - Comma-separated list of shards to display.
42
- * @param {string} [params.time] - The unit in which to display time values.
43
- * @param {string} [params.timeout] - Operation timeout.
44
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
38
+ * @param {boolean} [params.ignore_throttled] - Whether specified concrete, expanded, or aliased indexes should be ignored when throttled.
39
+ * @param {boolean} [params.ignore_unavailable] - Whether the specified concrete indexes should be ignored when missing or closed.
40
+ * @param {array} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
41
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
42
+ * @param {array} [params.shards] - A comma-separated list of shards to display.
43
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
44
+ * @param {string} [params.timeout] - The operation timeout.
45
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
45
46
  *
46
47
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
47
48
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,14 +25,14 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.bytes] - The unit used to display byte values.
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
30
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
31
- * @param {array} [params.h] - Comma-separated list of column names to display.
32
- * @param {boolean} [params.help=false] - Return help information.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
28
+ * @param {string} [params.bytes] - The units used to display byte values.
29
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
30
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
+ * @param {array} [params.h] - A comma-separated list of column names to display.
32
+ * @param {boolean} [params.help=false] - Returns help information.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
36
36
  * @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
37
37
  *
38
38
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
package/api/cat/shards.js CHANGED
@@ -19,22 +19,22 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Provides a detailed view of shard allocation on nodes.
22
+ * Lists the states of all primary and replica shards and how they are distributed.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-shards/ - cat.shards}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.bytes] - The unit used to display byte values.
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
30
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
31
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.bytes] - The units used to display byte values.
29
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
30
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
+ * @param {array} [params.h] - A comma-separated list of column names to display.
32
32
  * @param {boolean} [params.help=false] - Return help information.
33
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
34
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
35
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
36
- * @param {string} [params.time] - The unit in which to display time values.
37
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
33
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
34
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
35
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
36
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
37
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
38
38
  * @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
39
39
  *
40
40
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,22 +19,22 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns all snapshots in a specific repository.
22
+ * Lists all of the snapshots stored in a specific repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-snapshots/ - cat.snapshots}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.ignore_unavailable=false] - If `true`, the response does not include information from unavailable snapshots.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
32
+ * @param {boolean} [params.ignore_unavailable=false] - When `true`, the response does not include information from unavailable snapshots.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
34
  * @param {string} [params.repository] - A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions. `_all` returns all repositories. If any repository fails during the request, OpenSearch returns an error.
35
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
36
- * @param {string} [params.time] - The unit in which to display time values.
37
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
35
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
36
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
37
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
38
38
  *
39
39
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
40
40
  * @param {function} [callback] - Callback that handles errors and response
package/api/cat/tasks.js CHANGED
@@ -19,22 +19,22 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about the tasks currently executing on one or more nodes in the cluster.
22
+ * Lists the progress of all tasks currently running on the cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-tasks/ - cat.tasks}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {array} [params.actions] - The task action names, which are used to limit the response.
28
+ * @param {array} [params.actions] - The task action names used to limit the response.
29
29
  * @param {boolean} [params.detailed=false] - If `true`, the response includes detailed information about shard recoveries.
30
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
31
- * @param {array} [params.h] - Comma-separated list of column names to display.
30
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
+ * @param {array} [params.h] - A comma-separated list of column names to display.
32
32
  * @param {boolean} [params.help=false] - Return help information.
33
- * @param {array} [params.nodes] - Comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes.
33
+ * @param {array} [params.nodes] - A comma-separated list of node IDs or names used to limit the returned information. Use `_local` to return information from the node to which you're connecting, specify a specific node from which to get information, or keep the parameter empty to get information from all nodes.
34
34
  * @param {string} [params.parent_task_id] - The parent task identifier, which is used to limit the response.
35
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
36
- * @param {string} [params.time] - The unit in which to display time values.
37
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
35
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
36
+ * @param {string} [params.time] - Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
37
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
38
38
  *
39
39
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
40
40
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,20 +19,20 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about existing templates.
22
+ * Lists the names, patterns, order numbers, and version numbers of index templates.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-templates/ - cat.templates}
24
24
  *
25
25
  * @memberOf API-Cat
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.format] - A short version of the Accept header (for example, `json`, `yaml`).
30
- * @param {array} [params.h] - Comma-separated list of column names to display.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
+ * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
+ * @param {array} [params.h] - A comma-separated list of column names to display.
31
31
  * @param {boolean} [params.help=false] - Return help information.
32
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Operation timeout for connection to cluster-manager node.
34
- * @param {array} [params.s] - Comma-separated list of column names or column aliases to sort by.
35
- * @param {boolean} [params.v=false] - Verbose mode. Display column headers.
32
+ * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
34
+ * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
35
+ * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
36
36
  * @param {string} [params.name] - The name of the template to return. Accepts wildcard expressions. If omitted, all templates are returned.
37
37
  *
38
38
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}