@opensearch-project/opensearch 3.3.0 → 3.5.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 (151) 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 -3
  4. package/api/_core/existsSource.d.ts +1 -3
  5. package/api/_core/ping.d.ts +1 -3
  6. package/api/_types/_common.aggregations.d.ts +143 -71
  7. package/api/_types/_common.analysis.d.ts +11 -1
  8. package/api/_types/_common.d.ts +2 -1
  9. package/api/_types/_common.mapping.d.ts +1 -0
  10. package/api/_types/_common.query_dsl.d.ts +11 -2
  11. package/api/_types/_core.explain.d.ts +2 -2
  12. package/api/_types/_core.search.d.ts +134 -7
  13. package/api/_types/cluster.stats.d.ts +1 -0
  14. package/api/_types/flow_framework.common.d.ts +12 -16
  15. package/api/_types/index.d.ts +2 -0
  16. package/api/_types/indices._common.d.ts +1 -0
  17. package/api/_types/insights._common.d.ts +4 -0
  18. package/api/_types/knn._common.d.ts +8 -7
  19. package/api/_types/ltr._common.d.ts +55 -0
  20. package/api/_types/nodes.info.d.ts +2 -2
  21. package/api/_types/nodes.stats.d.ts +22 -13
  22. package/api/_types/search_pipeline._common.d.ts +2 -60
  23. package/api/_types/security._common.d.ts +5 -0
  24. package/api/_types/snapshot._common.d.ts +38 -38
  25. package/api/cluster/allocationExplain.js +1 -1
  26. package/api/cluster/deleteComponentTemplate.js +3 -3
  27. package/api/cluster/existsComponentTemplate.d.ts +1 -3
  28. package/api/cluster/existsComponentTemplate.js +2 -2
  29. package/api/cluster/getComponentTemplate.js +3 -3
  30. package/api/cluster/getSettings.js +4 -4
  31. package/api/cluster/health.js +5 -5
  32. package/api/cluster/pendingTasks.js +2 -2
  33. package/api/cluster/postVotingConfigExclusions.js +2 -2
  34. package/api/cluster/putComponentTemplate.js +4 -4
  35. package/api/cluster/putDecommissionAwareness.js +1 -1
  36. package/api/cluster/putSettings.js +4 -4
  37. package/api/cluster/putWeightedRouting.js +1 -1
  38. package/api/cluster/reroute.js +4 -4
  39. package/api/cluster/state.js +4 -4
  40. package/api/cluster/stats.js +2 -2
  41. package/api/flowFramework/delete.d.ts +2 -1
  42. package/api/index.d.ts +2 -0
  43. package/api/indices/exists.d.ts +1 -3
  44. package/api/indices/existsAlias.d.ts +1 -3
  45. package/api/indices/existsIndexTemplate.d.ts +1 -3
  46. package/api/indices/existsTemplate.d.ts +1 -3
  47. package/api/ingest/deletePipeline.js +4 -4
  48. package/api/ingest/getPipeline.js +3 -3
  49. package/api/ingest/processorGrok.js +2 -2
  50. package/api/ingest/putPipeline.js +5 -5
  51. package/api/ingest/simulate.js +3 -3
  52. package/api/ism/existsPolicy.d.ts +1 -3
  53. package/api/knn/searchModels.d.ts +4 -4
  54. package/api/ltr/_api.js +26 -0
  55. package/api/ltr/stats.d.ts +33 -0
  56. package/api/ltr/stats.js +51 -0
  57. package/api/replication/autofollowStats.js +1 -1
  58. package/api/replication/createReplicationRule.js +1 -1
  59. package/api/replication/followerStats.js +1 -1
  60. package/api/replication/leaderStats.js +1 -1
  61. package/api/replication/pause.js +2 -2
  62. package/api/replication/resume.js +1 -1
  63. package/api/replication/start.js +2 -2
  64. package/api/replication/status.js +2 -2
  65. package/api/replication/stop.js +2 -2
  66. package/api/replication/updateSettings.js +2 -2
  67. package/api/security/authinfo.js +3 -3
  68. package/api/security/authtoken.js +1 -1
  69. package/api/security/configUpgradeCheck.js +1 -1
  70. package/api/security/configUpgradePerform.js +1 -1
  71. package/api/security/createAllowlist.js +1 -1
  72. package/api/security/createRole.js +1 -1
  73. package/api/security/createRoleMapping.js +1 -1
  74. package/api/security/createTenant.js +1 -1
  75. package/api/security/createUpdateTenancyConfig.js +1 -1
  76. package/api/security/createUser.js +1 -1
  77. package/api/security/createUserLegacy.js +1 -1
  78. package/api/security/deleteActionGroup.js +1 -1
  79. package/api/security/deleteDistinguishedName.js +2 -2
  80. package/api/security/deleteRole.js +1 -1
  81. package/api/security/deleteRoleMapping.js +1 -1
  82. package/api/security/deleteTenant.js +1 -1
  83. package/api/security/deleteUser.js +1 -1
  84. package/api/security/flushCache.js +1 -1
  85. package/api/security/generateOboToken.js +1 -1
  86. package/api/security/generateUserToken.js +2 -2
  87. package/api/security/generateUserTokenLegacy.js +1 -1
  88. package/api/security/getAccountDetails.js +1 -1
  89. package/api/security/getAllCertificates.js +2 -2
  90. package/api/security/getAllowlist.js +1 -1
  91. package/api/security/getConfiguration.js +1 -1
  92. package/api/security/getDashboardsInfo.js +1 -1
  93. package/api/security/getDistinguishedName.js +3 -3
  94. package/api/security/getDistinguishedNames.js +2 -2
  95. package/api/security/getNodeCertificates.js +4 -4
  96. package/api/security/getPermissionsInfo.js +1 -1
  97. package/api/security/getRole.js +1 -1
  98. package/api/security/getRoleMapping.js +2 -2
  99. package/api/security/getSslinfo.js +2 -2
  100. package/api/security/getTenancyConfig.js +1 -1
  101. package/api/security/getTenant.js +1 -1
  102. package/api/security/getUser.js +1 -1
  103. package/api/security/health.js +2 -2
  104. package/api/security/migrate.js +1 -1
  105. package/api/security/patchActionGroup.js +1 -1
  106. package/api/security/patchActionGroups.js +1 -1
  107. package/api/security/patchAllowlist.js +1 -1
  108. package/api/security/patchAuditConfiguration.js +1 -1
  109. package/api/security/patchConfiguration.js +1 -1
  110. package/api/security/patchDistinguishedName.js +2 -2
  111. package/api/security/patchDistinguishedNames.js +1 -1
  112. package/api/security/patchRole.js +1 -1
  113. package/api/security/patchRoleMapping.js +2 -2
  114. package/api/security/patchRoleMappings.js +1 -1
  115. package/api/security/patchTenant.js +1 -1
  116. package/api/security/patchTenants.js +1 -1
  117. package/api/security/patchUser.js +1 -1
  118. package/api/security/patchUsers.js +1 -1
  119. package/api/security/postDashboardsInfo.js +1 -1
  120. package/api/security/reloadHttpCertificates.js +1 -1
  121. package/api/security/reloadTransportCertificates.js +1 -1
  122. package/api/security/tenantInfo.js +1 -1
  123. package/api/security/updateConfiguration.js +1 -1
  124. package/api/security/updateDistinguishedName.js +2 -2
  125. package/api/security/validate.js +1 -1
  126. package/api/security/whoAmI.js +1 -1
  127. package/api/security/whoAmIProtected.js +1 -1
  128. package/api/sm/createPolicy.js +1 -1
  129. package/api/sm/deletePolicy.js +1 -1
  130. package/api/sm/explainPolicy.js +1 -1
  131. package/api/sm/getPolicies.js +5 -5
  132. package/api/sm/getPolicy.js +1 -1
  133. package/api/sm/startPolicy.js +1 -1
  134. package/api/sm/stopPolicy.js +1 -1
  135. package/api/sm/updatePolicy.js +1 -1
  136. package/api/snapshot/cleanupRepository.js +3 -3
  137. package/api/snapshot/clone.js +6 -6
  138. package/api/snapshot/create.js +6 -6
  139. package/api/snapshot/createRepository.js +6 -6
  140. package/api/snapshot/delete.js +3 -3
  141. package/api/snapshot/deleteRepository.js +4 -4
  142. package/api/snapshot/get.js +5 -5
  143. package/api/snapshot/getRepository.js +4 -4
  144. package/api/snapshot/restore.js +5 -5
  145. package/api/snapshot/status.js +4 -4
  146. package/api/snapshot/verifyRepository.js +3 -3
  147. package/api/tasks/cancel.js +5 -5
  148. package/api/tasks/get.js +3 -3
  149. package/api/tasks/list.js +7 -7
  150. package/lib/pool/BaseConnectionPool.js +6 -0
  151. package/package.json +1 -1
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Adds or updates the specified distinguished names in the cluster or node allow list. Only accessible to super-admins and with rest-api permissions when enabled.
22
+ * Adds or updates the specified distinguished names in the cluster or node allowlist. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#update-distinguished-names - security.update_distinguished_name}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.cluster_name - The cluster-name to create/update `nodesDn` value for.
28
+ * @param {string} params.cluster_name - The name of the cluster containing the `nodesDn` value to create or update.
29
29
  * @param {object} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,7 +25,7 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {boolean} [params.accept_invalid] - A Boolean flag to indicate whether invalid v6 configuration should be allowed.
28
+ * @param {boolean} [params.accept_invalid] - Whether an invalid v6 configuration should be allowed.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets the user identity related information for currently logged in user.
22
+ * Gets the identity information for the user currently logged in.
23
23
  * <br/> See Also: {@link undefined - security.who_am_i}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets the user identity related information for currently logged in user. User needs to have access to this endpoint when authorization at REST layer is enabled.
22
+ * Gets the identity information for the user currently logged in. To use this operation, you must have access to this endpoint when authorization at REST layer is enabled.
23
23
  * <br/> See Also: {@link undefined - security.who_am_i_protected}
24
24
  *
25
25
  * @memberOf API-Security
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to create.
29
29
  * @param {object} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to delete.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to explain.
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-Sm
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {number} [params.from] - The starting index (default: 0)
29
- * @param {string} [params.queryString] - A query string to filter policies.
30
- * @param {number} [params.size] - The number of policies to return.
31
- * @param {string} [params.sortField] - The field to sort on.
32
- * @param {string} [params.sortOrder=asc] - The order of sorting.
28
+ * @param {number} [params.from=0] - The starting index from which to retrieve snapshot management policies.
29
+ * @param {string} [params.queryString] - The query string to filter the returned snapshot management policies.
30
+ * @param {number} [params.size] - The number of snapshot management policies to return.
31
+ * @param {string} [params.sortField] - The name of the field to sort the snapshot management policies by.
32
+ * @param {string} [params.sortOrder=asc] - The order to sort the snapshot management policies.
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-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to retrieve.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to start.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to stop.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -27,7 +27,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
27
27
  * @param {object} params
28
28
  * @param {number} params.if_primary_term - The primary term of the policy to update.
29
29
  * @param {number} params.if_seq_no - The sequence number of the policy to update.
30
- * @param {string} params.policy_name - The name of the snapshot management policy.
30
+ * @param {string} params.policy_name - The name of the snapshot management policy to update.
31
31
  * @param {object} [params.body]
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,15 +19,15 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Removes stale data from repository.
22
+ * Removes any stale data from a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - snapshot.cleanup_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node.
30
- * @param {string} [params.timeout] - Period to wait for a response.
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
31
  * @param {string} params.repository - Snapshot repository to clean up.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,18 +19,18 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Clones indexes from one snapshot into another snapshot in the same repository.
22
+ * Creates a clone of all or part of a snapshot in the same repository as the original snapshot.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - snapshot.clone}
24
24
  *
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} params.repository - A repository name
31
- * @param {string} params.snapshot - The name of the snapshot to clone from
32
- * @param {string} params.target_snapshot - The name of the cloned snapshot to create
33
- * @param {object} params.body - The snapshot clone definition
30
+ * @param {string} params.repository - The name of repository which will contain the snapshots clone.
31
+ * @param {string} params.snapshot - The name of the original snapshot.
32
+ * @param {string} params.target_snapshot - The name of the cloned snapshot.
33
+ * @param {object} params.body - The snapshot clone 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,18 +19,18 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates a snapshot in a repository.
22
+ * Creates a snapshot within an existing repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/create-snapshot/ - snapshot.create}
24
24
  *
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
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 {boolean} [params.wait_for_completion=false] - If `true`, the request returns a response when the snapshot is complete. If `false`, the request returns a response when the snapshot initializes.
31
- * @param {string} params.repository - Repository for the snapshot.
32
- * @param {string} params.snapshot - Name of the snapshot. Must be unique in the repository.
33
- * @param {object} [params.body] - The snapshot definition
30
+ * @param {boolean} [params.wait_for_completion=false] - When `true`, the request returns a response when the snapshot is complete. When `false`, the request returns a response when the snapshot initializes.
31
+ * @param {string} params.repository - The name of the repository where the snapshot will be stored.
32
+ * @param {string} params.snapshot - The name of the snapshot. Must be unique in the repository.
33
+ * @param {object} [params.body] - The snapshot 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,18 +19,18 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates a repository.
22
+ * Creates a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/create-repository/ - snapshot.create_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} [params.timeout] - Explicit operation timeout
31
- * @param {boolean} [params.verify] - Whether to verify the repository after creation
32
- * @param {string} params.repository - A repository name
33
- * @param {object} params.body - The repository definition
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
+ * @param {boolean} [params.verify] - When `true`, verifies the creation of the snapshot repository.
32
+ * @param {string} params.repository - The name for the newly registered repository.
33
+ * @param {object} params.body - The repository definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} params.repository - A repository name
31
- * @param {string} params.snapshot - A comma-separated list of snapshot names
30
+ * @param {string} params.repository - The name of the snapshot repository to delete.
31
+ * @param {string} params.snapshot - A comma-separated list of snapshot names to delete from the repository.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,16 +19,16 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Deletes a repository.
22
+ * Deletes a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/delete-snapshot-repository/ - snapshot.delete_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} [params.timeout] - Explicit operation timeout
31
- * @param {string} params.repository - Name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported.
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
+ * @param {string} params.repository - The name of the snapshot repository to unregister. Wildcard (`*`) patterns 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,12 +25,12 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
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.ignore_unavailable=false] - If `false`, the request returns an error for any snapshots that are unavailable.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
+ * @param {boolean} [params.ignore_unavailable=false] - When `false`, the request returns an error for any snapshots that are unavailable.
30
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 {boolean} [params.verbose] - If `true`, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
32
- * @param {string} params.repository - Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.
33
- * @param {string} params.snapshot - Comma-separated list of snapshot names to retrieve. Also accepts wildcards (`*`). - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`. - To get information about any snapshots that are currently running, use `_current`.
31
+ * @param {boolean} [params.verbose] - When `true`, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards contained in the snapshot.
32
+ * @param {string} params.repository - A comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.
33
+ * @param {string} params.snapshot - A comma-separated list of snapshot names to retrieve. Also accepts wildcard expressions. (`*`). - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`. - To get information about any snapshots that are currently running, use `_current`.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,16 +19,16 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about a repository.
22
+ * Returns information about a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/get-snapshot-repository/ - snapshot.get_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
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] - Return local information, do not retrieve the state from cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
+ * @param {boolean} [params.local=false] - Whether to get information from the local node.
30
30
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
31
- * @param {string} [params.repository] - A comma-separated list of repository names
31
+ * @param {string} [params.repository] - A comma-separated list of repository names.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,12 +25,12 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {boolean} [params.wait_for_completion=false] - Should this request wait until the operation has completed before returning
31
- * @param {string} params.repository - A repository name
32
- * @param {string} params.snapshot - A snapshot name
33
- * @param {object} [params.body] - Details of what to restore
30
+ * @param {boolean} [params.wait_for_completion=false] - -| Whether to return a response after the restore operation has completed. When `false`, the request returns a response when the restore operation initializes. When `true`, the request returns a response when the restore operation completes.
31
+ * @param {string} params.repository - The name of the repository containing the snapshot
32
+ * @param {string} params.snapshot - The name of the snapshot to restore.
33
+ * @param {object} [params.body] - Determines which settings and indexes to restore when restoring a snapshot
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Snapshot
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.ignore_unavailable=false] - Whether to ignore unavailable snapshots, defaults to `false` which means a SnapshotMissingException is thrown
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
+ * @param {boolean} [params.ignore_unavailable=false] - Whether to ignore any unavailable snapshots, When `false`, a `SnapshotMissingException` is thrown.
30
30
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
31
- * @param {string} [params.repository] - A repository name
32
- * @param {string} [params.snapshot] - A comma-separated list of snapshot names
31
+ * @param {string} [params.repository] - The name of the repository containing the snapshot.
32
+ * @param {string} [params.snapshot] - A comma-separated list of snapshot names.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
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] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} [params.timeout] - Explicit operation timeout
31
- * @param {string} params.repository - A repository name
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
+ * @param {string} params.repository - The name of the repository containing the snapshot.
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-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.3.0",
39
+ "version": "3.5.0",
40
40
  "versionCanary": "7.10.0-canary.6",
41
41
  "keywords": [
42
42
  "opensearch",