@opensearch-project/opensearch 3.1.0 → 3.3.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 (120) hide show
  1. package/api/OpenSearchApi.d.ts +82 -8
  2. package/api/_core/count.js +1 -1
  3. package/api/_core/createPit.d.ts +1 -2
  4. package/api/_core/deleteAllPits.d.ts +2 -2
  5. package/api/_core/deleteByQuery.d.ts +2 -1
  6. package/api/_core/deleteByQuery.js +1 -1
  7. package/api/_core/deletePit.d.ts +2 -2
  8. package/api/_core/getAllPits.d.ts +2 -2
  9. package/api/_core/rankEval.d.ts +1 -1
  10. package/api/_core/reindex.d.ts +1 -0
  11. package/api/_core/reindex.js +1 -0
  12. package/api/_core/renderSearchTemplate.d.ts +1 -1
  13. package/api/_core/searchShards.d.ts +0 -11
  14. package/api/_core/searchShards.js +0 -1
  15. package/api/_core/updateByQuery.d.ts +2 -1
  16. package/api/_core/updateByQuery.js +1 -1
  17. package/api/_types/_common.aggregations.d.ts +37 -156
  18. package/api/_types/_common.d.ts +4 -11
  19. package/api/_types/_common.query_dsl.d.ts +64 -39
  20. package/api/_types/_core.field_caps.d.ts +1 -1
  21. package/api/_types/{_core._common.d.ts → _core.pit.d.ts} +0 -12
  22. package/api/_types/_core.rank_eval.d.ts +3 -3
  23. package/api/_types/_core.termvectors.d.ts +1 -1
  24. package/api/_types/index.d.ts +2 -2
  25. package/api/_types/ml._common.d.ts +193 -28
  26. package/api/asynchronousSearch/delete.js +1 -1
  27. package/api/asynchronousSearch/get.js +1 -1
  28. package/api/asynchronousSearch/search.js +4 -4
  29. package/api/asynchronousSearch/stats.js +1 -1
  30. package/api/cat/aliases.js +1 -1
  31. package/api/cat/allPitSegments.js +1 -1
  32. package/api/cat/clusterManager.js +1 -1
  33. package/api/cat/count.js +1 -1
  34. package/api/cat/fielddata.js +1 -1
  35. package/api/cat/health.js +1 -1
  36. package/api/cat/indices.js +2 -2
  37. package/api/cat/master.js +1 -1
  38. package/api/cat/nodeattrs.js +1 -1
  39. package/api/cat/nodes.js +1 -1
  40. package/api/cat/pendingTasks.js +1 -1
  41. package/api/cat/pitSegments.js +1 -1
  42. package/api/cat/plugins.js +1 -1
  43. package/api/cat/recovery.js +1 -1
  44. package/api/cat/repositories.js +1 -1
  45. package/api/cat/segmentReplication.js +2 -2
  46. package/api/cat/shards.js +1 -1
  47. package/api/cat/snapshots.js +1 -1
  48. package/api/cat/tasks.js +1 -1
  49. package/api/cat/templates.js +1 -1
  50. package/api/cat/threadPool.js +1 -1
  51. package/api/cluster/allocationExplain.js +4 -4
  52. package/api/cluster/deleteComponentTemplate.js +3 -3
  53. package/api/cluster/deleteDecommissionAwareness.js +1 -1
  54. package/api/cluster/deleteVotingConfigExclusions.js +2 -2
  55. package/api/cluster/existsComponentTemplate.js +4 -4
  56. package/api/cluster/getComponentTemplate.js +4 -4
  57. package/api/cluster/getDecommissionAwareness.js +2 -2
  58. package/api/cluster/getSettings.js +5 -5
  59. package/api/cluster/getWeightedRouting.js +1 -1
  60. package/api/cluster/health.js +14 -14
  61. package/api/cluster/pendingTasks.js +5 -5
  62. package/api/cluster/postVotingConfigExclusions.js +4 -4
  63. package/api/cluster/putComponentTemplate.js +6 -6
  64. package/api/cluster/putDecommissionAwareness.js +3 -3
  65. package/api/cluster/putSettings.js +5 -5
  66. package/api/cluster/putWeightedRouting.js +1 -1
  67. package/api/cluster/reroute.js +6 -6
  68. package/api/cluster/state.js +10 -10
  69. package/api/cluster/stats.js +5 -5
  70. package/api/index.d.ts +40 -6
  71. package/api/indices/simulateIndexTemplate.d.ts +5 -1
  72. package/api/ml/_api.js +51 -0
  73. package/api/ml/createController.d.ts +39 -0
  74. package/api/ml/createController.js +50 -0
  75. package/api/ml/createModelMeta.d.ts +1 -1
  76. package/api/ml/deleteController.d.ts +30 -0
  77. package/api/ml/deleteController.js +49 -0
  78. package/api/ml/executeAgent.d.ts +36 -0
  79. package/api/ml/executeAgent.js +50 -0
  80. package/api/ml/executeAlgorithm.d.ts +45 -0
  81. package/api/ml/executeAlgorithm.js +50 -0
  82. package/api/ml/getAgent.d.ts +30 -0
  83. package/api/ml/getAgent.js +49 -0
  84. package/api/ml/getAllMemories.d.ts +34 -0
  85. package/api/ml/getAllMemories.js +48 -0
  86. package/api/ml/getAllMessages.d.ts +35 -0
  87. package/api/ml/getAllMessages.js +51 -0
  88. package/api/ml/getAllTools.d.ts +28 -0
  89. package/api/ml/getAllTools.js +45 -0
  90. package/api/ml/getController.d.ts +34 -0
  91. package/api/ml/getController.js +49 -0
  92. package/api/ml/getMemory.d.ts +2 -8
  93. package/api/ml/getMemory.js +5 -5
  94. package/api/ml/getMessage.d.ts +2 -3
  95. package/api/ml/getMessage.js +6 -12
  96. package/api/ml/getMessageTraces.d.ts +6 -1
  97. package/api/ml/getMessageTraces.js +2 -0
  98. package/api/ml/getProfile.d.ts +30 -0
  99. package/api/ml/getProfile.js +47 -0
  100. package/api/ml/getProfileModels.d.ts +31 -0
  101. package/api/ml/getProfileModels.js +49 -0
  102. package/api/ml/getProfileTasks.d.ts +31 -0
  103. package/api/ml/getProfileTasks.js +49 -0
  104. package/api/ml/getStats.d.ts +31 -0
  105. package/api/ml/getStats.js +50 -0
  106. package/api/ml/getTool.d.ts +30 -0
  107. package/api/ml/getTool.js +49 -0
  108. package/api/ml/registerModel.d.ts +6 -2
  109. package/api/ml/registerModelMeta.d.ts +1 -1
  110. package/api/ml/searchAgents.d.ts +36 -0
  111. package/api/ml/searchAgents.js +47 -0
  112. package/api/ml/searchTasks.d.ts +36 -0
  113. package/api/ml/searchTasks.js +47 -0
  114. package/api/ml/undeployModel.d.ts +1 -1
  115. package/api/ml/unloadModel.d.ts +1 -1
  116. package/api/ml/updateController.d.ts +37 -0
  117. package/api/ml/updateController.js +50 -0
  118. package/api/ml/updateModel.d.ts +2 -1
  119. package/api/ml/uploadModel.d.ts +2 -1
  120. package/package.json +1 -1
package/api/cat/nodes.js CHANGED
@@ -30,7 +30,7 @@ const { normalizeArguments } = require('../utils');
30
30
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
31
  * @param {string} [params.full_id] - When `true`, returns the full node ID. When `false`, returns the shortened node ID.
32
32
  * @param {array} [params.h] - A comma-separated list of column names to display.
33
- * @param {boolean} [params.help=false] - Return help information.
33
+ * @param {boolean} [params.help=false] - Returns help information.
34
34
  * @param {boolean} [params.local=false] DEPRECATED - Returns local information but does not retrieve the state from the cluster manager node.
35
35
  * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
36
36
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
29
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
- * @param {boolean} [params.help=false] - Return help information.
31
+ * @param {boolean} [params.help=false] - Returns help information.
32
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 - The amount of time allowed to establish a 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.
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
28
28
  * @param {string} [params.bytes] - The units used to display byte values.
29
29
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
- * @param {boolean} [params.help=false] - Return help information.
31
+ * @param {boolean} [params.help=false] - Returns help information.
32
32
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
33
33
  * @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
34
34
  * @param {object} [params.body]
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
29
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
- * @param {boolean} [params.help=false] - Return help information.
31
+ * @param {boolean} [params.help=false] - Returns help information.
32
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 - The amount of time allowed to establish a 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.
@@ -30,7 +30,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
30
30
  * @param {boolean} [params.detailed=false] - When `true`, includes detailed information about shard recoveries.
31
31
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
32
32
  * @param {array} [params.h] - A comma-separated list of column names to display.
33
- * @param {boolean} [params.help=false] - Return help information.
33
+ * @param {boolean} [params.help=false] - Returns 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
35
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
36
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/).
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
29
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
- * @param {boolean} [params.help=false] - Return help information.
31
+ * @param {boolean} [params.help=false] - Returns help information.
32
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 - The amount of time allowed to establish a 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.
@@ -31,10 +31,10 @@ These metrics provide information about how far behind the primary shard the rep
31
31
  * @param {string} [params.bytes] - The units used to display byte values.
32
32
  * @param {boolean} [params.completed_only=false] - When `true`, the response only includes the last-completed segment replication events.
33
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.
34
+ * @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
35
35
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
36
36
  * @param {array} [params.h] - A comma-separated list of column names to display.
37
- * @param {boolean} [params.help=false] - Return help information.
37
+ * @param {boolean} [params.help=false] - Returns help information.
38
38
  * @param {boolean} [params.ignore_throttled] - Whether specified concrete, expanded, or aliased indexes should be ignored when throttled.
39
39
  * @param {boolean} [params.ignore_unavailable] - Whether the specified concrete indexes should be ignored when missing or closed.
40
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`.
package/api/cat/shards.js CHANGED
@@ -29,7 +29,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
29
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.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
31
  * @param {array} [params.h] - A comma-separated list of column names to display.
32
- * @param {boolean} [params.help=false] - Return help information.
32
+ * @param {boolean} [params.help=false] - Returns help information.
33
33
  * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
34
34
  * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
35
35
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
@@ -28,7 +28,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
29
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
- * @param {boolean} [params.help=false] - Return help information.
31
+ * @param {boolean} [params.help=false] - Returns help information.
32
32
  * @param {boolean} [params.ignore_unavailable=false] - When `true`, the response does not include information from unavailable snapshots.
33
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.
package/api/cat/tasks.js CHANGED
@@ -29,7 +29,7 @@ const { normalizeArguments } = require('../utils');
29
29
  * @param {boolean} [params.detailed=false] - If `true`, the response includes detailed information about shard recoveries.
30
30
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
31
  * @param {array} [params.h] - A comma-separated list of column names to display.
32
- * @param {boolean} [params.help=false] - Return help information.
32
+ * @param {boolean} [params.help=false] - Returns help information.
33
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
35
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
@@ -28,7 +28,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
29
29
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
30
30
  * @param {array} [params.h] - A comma-separated list of column names to display.
31
- * @param {boolean} [params.help=false] - Return help information.
31
+ * @param {boolean} [params.help=false] - Returns help information.
32
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 - The amount of time allowed to establish a 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.
@@ -29,7 +29,7 @@ By default the active, queued, and rejected statistics are returned for all thre
29
29
  * @param {string} [params.cluster_manager_timeout] - A timeout for connection to the cluster manager node.
30
30
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
31
31
  * @param {array} [params.h] - A comma-separated list of column names to display.
32
- * @param {boolean} [params.help=false] - Return help information.
32
+ * @param {boolean} [params.help=false] - Returns help information.
33
33
  * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
34
34
  * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
35
35
  * @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
@@ -19,15 +19,15 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Provides explanations for shard allocations in the cluster.
22
+ * Explains how shards are allocated in the current cluster and provides an explanation for why unassigned shards can't be allocated to a node.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-allocation/ - cluster.allocation_explain}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {boolean} [params.include_disk_info=false] - If `true`, returns information about disk usage and shard sizes.
29
- * @param {boolean} [params.include_yes_decisions=false] - If `true`, returns YES decisions in explanation.
30
- * @param {object} [params.body] - The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
28
+ * @param {boolean} [params.include_disk_info=false] - When `true`, returns information about disk usage and shard sizes.
29
+ * @param {boolean} [params.include_yes_decisions=false] - When `true`, returns any `YES` decisions in the allocation explanation.
30
+ * @param {object} [params.body] - The index, shard, and primary flag for which to generate an explanation. Leave this empty to generate an explanation for the first unassigned shard.
31
31
  *
32
32
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
33
33
  * @param {function} [callback] - Callback that handles errors and response
@@ -26,9 +26,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
26
26
  *
27
27
  * @param {object} params
28
28
  * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
30
- * @param {string} [params.timeout] - Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
31
- * @param {string} params.name - Name of the component template to delete. Wildcard (*) expressions are supported.
29
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
30
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} params.name - The name of the component template to delete. Supports wildcard (*) expressions.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Delete any existing decommission.
22
+ * Recommissions a decommissioned zone.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone - cluster.delete_decommission_awareness}
24
24
  *
25
25
  * @memberOf API-Cluster
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Clears cluster voting config exclusions.
22
+ * Clears any cluster voting configuration exclusions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - cluster.delete_voting_config_exclusions}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {boolean} [params.wait_for_removal=true] - Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list. Defaults to true, meaning that all excluded nodes must be removed from the cluster before this API takes any action. If set to `false` then the voting configuration exclusions list is cleared even if some excluded nodes are still in the cluster.
28
+ * @param {boolean} [params.wait_for_removal=true] - Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list. When `true`, all excluded nodes are removed from the cluster before this API takes any action. When `false`, the voting configuration exclusions list is cleared even if some excluded nodes are still in the cluster.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.local=false] - If `true`, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the cluster-manager node.
30
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
31
- * @param {string} params.name - Name of the component template to check existence of. Wildcard (*) expressions are supported.
28
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
+ * @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false, information is retrieved from the cluster manager node.
30
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} params.name - The name of the component template. Wildcard (*) expressions are supported.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
29
  * @param {boolean} [params.flat_settings=false] - If `true`, returns settings in flat format.
30
- * @param {boolean} [params.local=false] - If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the cluster-manager node.
31
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
32
- * @param {string} [params.name] - Name of the component template to retrieve. Wildcard (`*`) expressions are supported.
30
+ * @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
+ * @param {string} [params.name] - The name of the component template to retrieve. Wildcard (`*`) expressions are supported.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Get details and status of decommissioned attribute.
22
+ * Retrieves the decommission status for all zones.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-getting-zone-decommission-status - cluster.get_decommission_awareness}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.awareness_attribute_name - Awareness attribute name.
28
+ * @param {string} params.awareness_attribute_name - The name of the awareness attribute.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,11 +25,11 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.flat_settings=false] - If `true`, returns settings in flat format.
30
- * @param {boolean} [params.include_defaults=false] - If `true`, returns default cluster settings from the local node.
31
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
32
- * @param {string} [params.timeout] - Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
28
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
+ * @param {boolean} [params.flat_settings=false] - When `true`, returns cluster settings in a flat format.
30
+ * @param {boolean} [params.include_defaults=false] - When `true`, returns default cluster settings from the local node.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.attribute - Awareness attribute name.
28
+ * @param {string} params.attribute - The name of the awareness attribute.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,20 +25,20 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.awareness_attribute] - The awareness attribute for which the health is required.
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
30
- * @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indexes that are open, closed or both.
31
- * @param {string} [params.level] - Can be one of cluster, indexes or shards. Controls the details level of the health information returned.
32
- * @param {boolean} [params.local=false] - If `true`, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the cluster-manager node.
33
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
34
- * @param {string} [params.timeout] - Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
35
- * @param {string} [params.wait_for_active_shards] - A number controlling to how many active shards to wait for, all to wait for all shards in the cluster to be active, or 0 to not wait.
36
- * @param {string} [params.wait_for_events] - Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed.
37
- * @param {boolean} [params.wait_for_no_initializing_shards] - A Boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard initializations. Defaults to false, which means it will not wait for initializing shards.
38
- * @param {boolean} [params.wait_for_no_relocating_shards] - A Boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard relocations. Defaults to false, which means it will not wait for relocating shards.
39
- * @param {string} [params.wait_for_nodes] - The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and <N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation.
40
- * @param {string} [params.wait_for_status] - One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status.
41
- * @param {string} [params.index] - Comma-separated list of data streams, indexes, and index aliases used to limit the request. Wildcard expressions (*) are supported. To target all data streams and indexes in a cluster, omit this parameter or use `_all` or `*`.
28
+ * @param {string} [params.awareness_attribute] - The name of the awareness attribute for which to return the cluster health status (for example, `zone`). Applicable only if `level` is set to `awareness_attributes`.
29
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
30
+ * @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
31
+ * @param {string} [params.level]
32
+ * @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
33
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
34
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
35
+ * @param {string} [params.wait_for_active_shards] - Waits until the specified number of shards is active before returning a response. Use `all` for all shards.
36
+ * @param {string} [params.wait_for_events] - Waits until all currently queued events with the given priority are processed.
37
+ * @param {boolean} [params.wait_for_no_initializing_shards=false] - Whether to wait until there are no initializing shards in the cluster.
38
+ * @param {boolean} [params.wait_for_no_relocating_shards] - Whether to wait until there are no relocating shards in the cluster.
39
+ * @param {string} [params.wait_for_nodes] - Waits until the specified number of nodes (`N`) is available. Accepts `>=N`, `<=N`, `>N`, and `<N`. You can also use `ge(N)`, `le(N)`, `gt(N)`, and `lt(N)` notation.
40
+ * @param {string} [params.wait_for_status] - Waits until the cluster health reaches the specified status or better.
41
+ * @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`.
42
42
  *
43
43
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
44
44
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,16 +19,16 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns a list of any cluster-level changes (e.g. create index, update mapping,
23
- allocate or fail shard) which have not yet been executed.
22
+ * Returns a list of pending cluster-level tasks, such as index creation, mapping updates,
23
+ or new allocations.
24
24
  * <br/> See Also: {@link https://opensearch.org/docs/latest - cluster.pending_tasks}
25
25
  *
26
26
  * @memberOf API-Cluster
27
27
  *
28
28
  * @param {object} [params]
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
30
- * @param {boolean} [params.local=false] - If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the cluster-manager node.
31
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
29
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
30
+ * @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,15 +19,15 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates the cluster voting config exclusions by node ids or node names.
22
+ * Updates the cluster voting configuration by excluding certain node IDs or names.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - cluster.post_voting_config_exclusions}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.node_ids] - A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify `node_names`.
29
- * @param {string} [params.node_names] - A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify `node_ids`.
30
- * @param {string} [params.timeout] - When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.
28
+ * @param {string} [params.node_ids] - A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specify `node_names`.
29
+ * @param {string} [params.node_names] - A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specify `node_ids`.
30
+ * @param {string} [params.timeout] - When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning a response. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.
31
31
  *
32
32
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
33
33
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,12 +25,12 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.create=false] - If `true`, this request cannot replace or update existing component templates.
30
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
31
- * @param {string} [params.timeout] - Operation timeout.
32
- * @param {string} params.name - Name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings`; 'logs-settings`; `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`. OpenSearch Agent uses these templates to configure backing indexes for its data streams. If you use OpenSearch Agent and want to overwrite one of these templates, set the `version` for your replacement template higher than the current version. If you don't use OpenSearch Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API.
33
- * @param {object} params.body - The template definition
28
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
+ * @param {boolean} [params.create=false] - When `true`, this request cannot replace or update existing component templates.
30
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
+ * @param {string} params.name - The name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings`; 'logs-settings`; `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template `version` to a higher value than the current version. If you want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the Cluster Update Settings API.
33
+ * @param {object} params.body - The template definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,14 +19,14 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Decommissions an awareness attribute.
22
+ * Decommissions a cluster zone based on awareness. This can greatly benefit multi-zone deployments, where awareness attributes can aid in applying new upgrades to a cluster in a controlled fashion.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone - cluster.put_decommission_awareness}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.awareness_attribute_name - Awareness attribute name.
29
- * @param {string} params.awareness_attribute_value - Awareness attribute value.
28
+ * @param {string} params.awareness_attribute_name - The name of the awareness attribute.
29
+ * @param {string} params.awareness_attribute_value - The value of the awareness attribute.
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
32
32
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,11 +25,11 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.flat_settings=false] - Return settings in flat format.
30
- * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
31
- * @param {string} [params.timeout] - Explicit operation timeout
32
- * @param {object} params.body - The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).
28
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
+ * @param {boolean} [params.flat_settings=false] - Returns settings in a flat format.
30
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
+ * @param {object} params.body - The cluster settings to update.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.attribute - Awareness attribute name.
28
+ * @param {string} params.attribute - The name of the awareness attribute.
29
29
  * @param {string} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,13 +25,13 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.dry_run] - If `true`, then the request simulates the operation only and returns the resulting state.
30
- * @param {boolean} [params.explain] - If `true`, then the response contains an explanation of why the commands can or cannot be executed.
31
- * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
28
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
+ * @param {boolean} [params.dry_run] - When `true`, the request simulates the operation and returns the resulting state.
30
+ * @param {boolean} [params.explain] - When `true`, the response contains an explanation of why certain commands can or cannot be executed.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
32
  * @param {string} [params.metric] - Limits the information returned to the specified metrics.
33
- * @param {boolean} [params.retry_failed] - If `true`, then retries allocation of shards that are blocked due to too many subsequent allocation failures.
34
- * @param {string} [params.timeout] - Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
33
+ * @param {boolean} [params.retry_failed] - When `true`, retries shard allocation if it was blocked because of too many subsequent failures.
34
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
35
35
  * @param {object} [params.body] - The definition of `commands` to perform (`move`, `cancel`, `allocate`)
36
36
  *
37
37
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,23 +19,23 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns a comprehensive information about the state of the cluster.
22
+ * Returns comprehensive information about the state of the cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - cluster.state}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @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)
29
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
30
- * @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indexes that are open, closed or both.
31
- * @param {boolean} [params.flat_settings=false] - Return settings in flat format.
32
- * @param {boolean} [params.ignore_unavailable] - Whether specified concrete indexes should be ignored when unavailable (missing or closed)
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 - Specify timeout for connection to cluster manager.
28
+ * @param {boolean} [params.allow_no_indices] - Whether to ignore a wildcard index expression that resolves into no concrete indexes. This includes the `_all` string or when no indexes have been specified.
29
+ * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
30
+ * @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
31
+ * @param {boolean} [params.flat_settings=false] - Returns settings in a flat format.
32
+ * @param {boolean} [params.ignore_unavailable] - Whether the specified concrete indexes should be ignored when unavailable (missing or closed).
33
+ * @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
34
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
35
35
  * @param {number} [params.wait_for_metadata_version] - Wait for the metadata version to be equal or greater than the specified metadata version.
36
36
  * @param {string} [params.wait_for_timeout] - The maximum time to wait for `wait_for_metadata_version` before timing out.
37
- * @param {array} [params.metric] - Limit the information returned to the specified metrics
38
- * @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indexes
37
+ * @param {array} [params.metric] - Limits the information returned to only the specified metrics.
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}
41
41
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,17 +19,17 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns high-level overview of cluster statistics.
22
+ * Returns a high-level overview of cluster statistics.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/ - cluster.stats}
24
24
  *
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {boolean} [params.flat_settings=false] - If `true`, returns settings in flat format.
29
- * @param {string} [params.timeout] - Period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response's `_nodes.failed` property. Defaults to no timeout.
30
- * @param {array} [params.index_metric] - Limit the information returned for indexes metric to the specific index metrics. It can be used only if indexes (or all) metric is specified.
28
+ * @param {boolean} [params.flat_settings=false] - When `true`, returns settings in a flat format.
29
+ * @param {string} [params.timeout] - The amount of time to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response's `_nodes.failed` property. Defaults to no timeout.
30
+ * @param {array} [params.index_metric] - A comma-separated list of index metric groups, for example, `docs,store`.
31
31
  * @param {array} [params.metric] - Limit the information returned to the specified metrics.
32
- * @param {string} [params.node_id] - Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster.
32
+ * @param {string} [params.node_id] - A comma-separated list of node IDs used to filter results. Supports [node filters](https://opensearch.org/docs/latest/api-reference/nodes-apis/index/#node-filters).
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response