@opensearch-project/opensearch 3.4.0 → 3.5.1

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 (87) hide show
  1. package/api/OpenSearchApi.d.ts +8 -0
  2. package/api/OpenSearchApi.js +2 -0
  3. package/api/_core/exists.d.ts +1 -1
  4. package/api/_core/existsSource.d.ts +1 -1
  5. package/api/_core/ping.d.ts +1 -1
  6. package/api/_types/_common.aggregations.d.ts +143 -71
  7. package/api/_types/_common.d.ts +2 -1
  8. package/api/_types/_common.mapping.d.ts +1 -0
  9. package/api/_types/_common.query_dsl.d.ts +11 -2
  10. package/api/_types/_core.explain.d.ts +2 -2
  11. package/api/_types/cluster.stats.d.ts +1 -0
  12. package/api/_types/flow_framework.common.d.ts +12 -16
  13. package/api/_types/index.d.ts +2 -0
  14. package/api/_types/indices._common.d.ts +1 -0
  15. package/api/_types/insights._common.d.ts +4 -0
  16. package/api/_types/knn._common.d.ts +8 -7
  17. package/api/_types/ltr._common.d.ts +55 -0
  18. package/api/_types/nodes.info.d.ts +2 -2
  19. package/api/_types/nodes.stats.d.ts +22 -13
  20. package/api/_types/security._common.d.ts +5 -0
  21. package/api/_types/snapshot._common.d.ts +38 -38
  22. package/api/cluster/allocationExplain.js +1 -1
  23. package/api/cluster/deleteComponentTemplate.js +3 -3
  24. package/api/cluster/existsComponentTemplate.d.ts +1 -1
  25. package/api/cluster/existsComponentTemplate.js +2 -2
  26. package/api/cluster/getComponentTemplate.js +3 -3
  27. package/api/cluster/getSettings.js +4 -4
  28. package/api/cluster/health.js +4 -4
  29. package/api/cluster/pendingTasks.js +2 -2
  30. package/api/cluster/postVotingConfigExclusions.js +2 -2
  31. package/api/cluster/putComponentTemplate.js +4 -4
  32. package/api/cluster/putDecommissionAwareness.js +1 -1
  33. package/api/cluster/putSettings.js +4 -4
  34. package/api/cluster/putWeightedRouting.js +1 -1
  35. package/api/cluster/reroute.js +4 -4
  36. package/api/cluster/state.js +4 -4
  37. package/api/cluster/stats.js +2 -2
  38. package/api/flowFramework/delete.d.ts +2 -1
  39. package/api/index.d.ts +2 -0
  40. package/api/indices/exists.d.ts +1 -1
  41. package/api/indices/existsAlias.d.ts +1 -1
  42. package/api/indices/existsIndexTemplate.d.ts +1 -1
  43. package/api/indices/existsTemplate.d.ts +1 -1
  44. package/api/ingest/deletePipeline.js +4 -4
  45. package/api/ingest/getPipeline.js +3 -3
  46. package/api/ingest/processorGrok.js +2 -2
  47. package/api/ingest/putPipeline.js +5 -5
  48. package/api/ingest/simulate.js +3 -3
  49. package/api/ism/existsPolicy.d.ts +1 -1
  50. package/api/knn/searchModels.d.ts +4 -4
  51. package/api/ltr/_api.js +26 -0
  52. package/api/ltr/stats.d.ts +33 -0
  53. package/api/ltr/stats.js +51 -0
  54. package/api/replication/autofollowStats.js +1 -1
  55. package/api/replication/createReplicationRule.js +1 -1
  56. package/api/replication/followerStats.js +1 -1
  57. package/api/replication/leaderStats.js +1 -1
  58. package/api/replication/pause.js +2 -2
  59. package/api/replication/resume.js +1 -1
  60. package/api/replication/start.js +2 -2
  61. package/api/replication/status.js +2 -2
  62. package/api/replication/stop.js +2 -2
  63. package/api/replication/updateSettings.js +2 -2
  64. package/api/sm/createPolicy.js +1 -1
  65. package/api/sm/deletePolicy.js +1 -1
  66. package/api/sm/explainPolicy.js +1 -1
  67. package/api/sm/getPolicies.js +5 -5
  68. package/api/sm/getPolicy.js +1 -1
  69. package/api/sm/startPolicy.js +1 -1
  70. package/api/sm/stopPolicy.js +1 -1
  71. package/api/sm/updatePolicy.js +1 -1
  72. package/api/snapshot/cleanupRepository.js +3 -3
  73. package/api/snapshot/clone.js +6 -6
  74. package/api/snapshot/create.js +6 -6
  75. package/api/snapshot/createRepository.js +6 -6
  76. package/api/snapshot/delete.js +3 -3
  77. package/api/snapshot/deleteRepository.js +4 -4
  78. package/api/snapshot/get.js +5 -5
  79. package/api/snapshot/getRepository.js +4 -4
  80. package/api/snapshot/restore.js +5 -5
  81. package/api/snapshot/status.js +4 -4
  82. package/api/snapshot/verifyRepository.js +3 -3
  83. package/api/tasks/cancel.js +5 -5
  84. package/api/tasks/get.js +3 -3
  85. package/api/tasks/list.js +7 -7
  86. package/lib/pool/BaseConnectionPool.js +6 -0
  87. package/package.json +1 -1
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Tasks
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.actions] - Comma-separated list or wildcard expression of actions used to limit the request.
29
- * @param {array} [params.nodes] - Comma-separated list of node IDs or names used to limit the request.
30
- * @param {string} [params.parent_task_id] - Parent task ID used to limit the tasks.
31
- * @param {boolean} [params.wait_for_completion=false] - Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false
32
- * @param {string} [params.task_id] - ID of the task.
28
+ * @param {string} [params.actions] - A comma-separated list of actions that should be returned. Keep empty to return all.
29
+ * @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 you're connecting to, specify the node name to get information from a specific node, or keep the parameter empty to get information from all nodes.
30
+ * @param {string} [params.parent_task_id] - Returns tasks with a specified parent task ID (`node_id:task_number`). Keep empty or set to -1 to return all.
31
+ * @param {boolean} [params.wait_for_completion=false] - Waits for the matching task to complete. When `true`, the request is blocked until the task has completed.
32
+ * @param {string} [params.task_id] - The task ID.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
package/api/tasks/get.js CHANGED
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Tasks
26
26
  *
27
27
  * @param {object} params
28
- * @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.
29
- * @param {boolean} [params.wait_for_completion=false] - If `true`, the request blocks until the task has completed.
30
- * @param {string} params.task_id - ID of the task.
28
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
29
+ * @param {boolean} [params.wait_for_completion=false] - Waits for the matching task to complete. When `true`, the request is blocked until the task has completed.
30
+ * @param {string} params.task_id - The task ID.
31
31
  *
32
32
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
33
33
  * @param {function} [callback] - Callback that handles errors and response
package/api/tasks/list.js CHANGED
@@ -25,13 +25,13 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Tasks
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.actions] - Comma-separated list or wildcard expression of actions used to limit the request.
29
- * @param {boolean} [params.detailed=false] - If `true`, the response includes detailed information about shard recoveries.
30
- * @param {string} [params.group_by] - Key used to group tasks in the response.
31
- * @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.
32
- * @param {string} [params.parent_task_id] - Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`.
33
- * @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.
34
- * @param {boolean} [params.wait_for_completion=false] - If `true`, the request blocks until the operation is complete.
28
+ * @param {string} [params.actions] - A comma-separated list of actions that should be returned. Keep empty to return all.
29
+ * @param {boolean} [params.detailed=false] - When `true`, the response includes detailed information about shard recoveries.
30
+ * @param {string} [params.group_by] - Groups tasks by parent/child relationships or nodes.
31
+ * @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 you're connecting to, specify the node name to get information from a specific node, or keep the parameter empty to get information from all nodes.
32
+ * @param {string} [params.parent_task_id] - Returns tasks with a specified parent task ID (`node_id:task_number`). Keep empty or set to -1 to return all.
33
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
34
+ * @param {boolean} [params.wait_for_completion=false] - Waits for the matching task to complete. When `true`, the request is blocked until the task has completed.
35
35
  *
36
36
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
37
37
  * @param {function} [callback] - Callback that handles errors and response
@@ -222,6 +222,12 @@ class BaseConnectionPool {
222
222
 
223
223
  for (let i = 0, len = ids.length; i < len; i++) {
224
224
  const node = nodes[ids[i]];
225
+
226
+ // New nodes do not have the http property populated yet. Skip this for now.
227
+ if (node.http === undefined) {
228
+ continue;
229
+ }
230
+
225
231
  // If there is no protocol in
226
232
  // the `publish_address` new URL will throw
227
233
  // the publish_address can have two forms:
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "LICENSE.txt"
37
37
  ],
38
38
  "homepage": "https://www.opensearch.org/",
39
- "version": "3.4.0",
39
+ "version": "3.5.1",
40
40
  "versionCanary": "7.10.0-canary.6",
41
41
  "keywords": [
42
42
  "opensearch",