@opensearch-project/opensearch 3.2.0 → 3.4.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 (95) hide show
  1. package/api/OpenSearchApi.d.ts +4 -0
  2. package/api/_types/_common.analysis.d.ts +11 -1
  3. package/api/_types/_common.d.ts +2 -1
  4. package/api/_types/_common.query_dsl.d.ts +64 -39
  5. package/api/_types/_core.search.d.ts +134 -7
  6. package/api/_types/ml._common.d.ts +34 -0
  7. package/api/_types/search_pipeline._common.d.ts +2 -60
  8. package/api/asynchronousSearch/search.js +3 -3
  9. package/api/asynchronousSearch/stats.js +1 -1
  10. package/api/cluster/allocationExplain.js +4 -4
  11. package/api/cluster/deleteComponentTemplate.js +3 -3
  12. package/api/cluster/deleteDecommissionAwareness.js +1 -1
  13. package/api/cluster/deleteVotingConfigExclusions.js +2 -2
  14. package/api/cluster/existsComponentTemplate.js +4 -4
  15. package/api/cluster/getComponentTemplate.js +4 -4
  16. package/api/cluster/getDecommissionAwareness.js +2 -2
  17. package/api/cluster/getSettings.js +5 -5
  18. package/api/cluster/getWeightedRouting.js +1 -1
  19. package/api/cluster/health.js +14 -14
  20. package/api/cluster/pendingTasks.js +5 -5
  21. package/api/cluster/postVotingConfigExclusions.js +4 -4
  22. package/api/cluster/putComponentTemplate.js +6 -6
  23. package/api/cluster/putDecommissionAwareness.js +3 -3
  24. package/api/cluster/putSettings.js +5 -5
  25. package/api/cluster/putWeightedRouting.js +1 -1
  26. package/api/cluster/reroute.js +6 -6
  27. package/api/cluster/state.js +10 -10
  28. package/api/cluster/stats.js +5 -5
  29. package/api/index.d.ts +2 -0
  30. package/api/indices/simulateIndexTemplate.d.ts +5 -1
  31. package/api/ml/_api.js +3 -0
  32. package/api/ml/executeAlgorithm.d.ts +45 -0
  33. package/api/ml/executeAlgorithm.js +50 -0
  34. package/api/security/authinfo.js +3 -3
  35. package/api/security/authtoken.js +1 -1
  36. package/api/security/configUpgradeCheck.js +1 -1
  37. package/api/security/configUpgradePerform.js +1 -1
  38. package/api/security/createAllowlist.js +1 -1
  39. package/api/security/createRole.js +1 -1
  40. package/api/security/createRoleMapping.js +1 -1
  41. package/api/security/createTenant.js +1 -1
  42. package/api/security/createUpdateTenancyConfig.js +1 -1
  43. package/api/security/createUser.js +1 -1
  44. package/api/security/createUserLegacy.js +1 -1
  45. package/api/security/deleteActionGroup.js +1 -1
  46. package/api/security/deleteDistinguishedName.js +2 -2
  47. package/api/security/deleteRole.js +1 -1
  48. package/api/security/deleteRoleMapping.js +1 -1
  49. package/api/security/deleteTenant.js +1 -1
  50. package/api/security/deleteUser.js +1 -1
  51. package/api/security/flushCache.js +1 -1
  52. package/api/security/generateOboToken.js +1 -1
  53. package/api/security/generateUserToken.js +2 -2
  54. package/api/security/generateUserTokenLegacy.js +1 -1
  55. package/api/security/getAccountDetails.js +1 -1
  56. package/api/security/getAllCertificates.js +2 -2
  57. package/api/security/getAllowlist.js +1 -1
  58. package/api/security/getConfiguration.js +1 -1
  59. package/api/security/getDashboardsInfo.js +1 -1
  60. package/api/security/getDistinguishedName.js +3 -3
  61. package/api/security/getDistinguishedNames.js +2 -2
  62. package/api/security/getNodeCertificates.js +4 -4
  63. package/api/security/getPermissionsInfo.js +1 -1
  64. package/api/security/getRole.js +1 -1
  65. package/api/security/getRoleMapping.js +2 -2
  66. package/api/security/getSslinfo.js +2 -2
  67. package/api/security/getTenancyConfig.js +1 -1
  68. package/api/security/getTenant.js +1 -1
  69. package/api/security/getUser.js +1 -1
  70. package/api/security/health.js +2 -2
  71. package/api/security/migrate.js +1 -1
  72. package/api/security/patchActionGroup.js +1 -1
  73. package/api/security/patchActionGroups.js +1 -1
  74. package/api/security/patchAllowlist.js +1 -1
  75. package/api/security/patchAuditConfiguration.js +1 -1
  76. package/api/security/patchConfiguration.js +1 -1
  77. package/api/security/patchDistinguishedName.js +2 -2
  78. package/api/security/patchDistinguishedNames.js +1 -1
  79. package/api/security/patchRole.js +1 -1
  80. package/api/security/patchRoleMapping.js +2 -2
  81. package/api/security/patchRoleMappings.js +1 -1
  82. package/api/security/patchTenant.js +1 -1
  83. package/api/security/patchTenants.js +1 -1
  84. package/api/security/patchUser.js +1 -1
  85. package/api/security/patchUsers.js +1 -1
  86. package/api/security/postDashboardsInfo.js +1 -1
  87. package/api/security/reloadHttpCertificates.js +1 -1
  88. package/api/security/reloadTransportCertificates.js +1 -1
  89. package/api/security/tenantInfo.js +1 -1
  90. package/api/security/updateConfiguration.js +1 -1
  91. package/api/security/updateDistinguishedName.js +2 -2
  92. package/api/security/validate.js +1 -1
  93. package/api/security/whoAmI.js +1 -1
  94. package/api/security/whoAmIProtected.js +1 -1
  95. package/package.json +1 -1
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.role - The name of the role to be created.
28
+ * @param {string} params.role - The name of the role 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-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.role - The name of the role to create a role mapping for.
28
+ * @param {string} params.role - The name of the role for which to create a role mapping.
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-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.tenant - The name of the tenant to be created.
28
+ * @param {string} params.tenant - The name of the tenant to create.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates or replaces the multi-tenancy configuration. Only accessible to admins and users with REST API permissions.
22
+ * Creates or replaces the multi-tenancy configuration. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/multi-tenancy/dynamic-config/#configuring-multi-tenancy-with-the-rest-api - security.create_update_tenancy_config}
24
24
  *
25
25
  * @memberOf API-Security
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.username - The name of the user to be created.
28
+ * @param {string} params.username - The name of the user 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-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.username - The name of the user to be created.
28
+ * @param {string} params.username - The name of the user to create.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Delete a specified action group.
22
+ * Deletes the specified action group.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#delete-action-group - security.delete_action_group}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Deletes all distinguished names in the specified cluster or node allow list. Only accessible to super-admins and with rest-api permissions when enabled.
22
+ * Deletes all distinguished names in the specified 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/#delete-distinguished-names - security.delete_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 delete from list of distinguished names.
28
+ * @param {string} params.cluster_name - The cluster name to delete from list of distinguished names.
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, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Delete the specified role.
22
+ * Deletes the specified role.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#delete-role - security.delete_role}
24
24
  *
25
25
  * @memberOf API-Security
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.role - The name of the role whose mapping needs to delete.
28
+ * @param {string} params.role - The name of the role for which to delete the role's mappings.
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, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Delete the specified tenant.
22
+ * Deletes the specified tenant.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#delete-action-group - security.delete_tenant}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Delete the specified user.
22
+ * Deletes the specified internal user.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#delete-user - security.delete_user}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Flushes the Security plugin user, authentication, and authorization cache.
22
+ * Flushes the Security plugin's user, authentication, and authorization cache.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#flush-cache - security.flush_cache}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Generates On-Behalf-Of token for the current user.
22
+ * Generates a `On-Behalf-Of` token for the current user.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/authentication-tokens/#api-endpoint - security.generate_obo_token}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Generates authorization token for the given user.
22
+ * Generates an authorization token for the specified user.
23
23
  * <br/> See Also: {@link undefined - security.generate_user_token}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.username - The name of the user for whom an auth token is to be vended.
28
+ * @param {string} params.username - The name of the user for whom to issue an authorization token.
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-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.username - The name of the user for whom an auth token is to be vended.
28
+ * @param {string} params.username - The name of the user for whom to issue an authorization token.
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
- * Returns account details for the current user.
22
+ * Returns account information for the current user.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-account-details - security.get_account_details}
24
24
  *
25
25
  * @memberOf API-Security
@@ -25,8 +25,8 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cert_type] - The type of certificates (HTTP, TRANSPORT, ALL) to retrieve from all nodes.
29
- * @param {string} [params.timeout] - The maximum duration, in seconds, to be spent to retrieve certificates from all nodes.
28
+ * @param {string} [params.cert_type] - The type of certificates (`HTTP`, `TRANSPORT`, or `ALL`) to retrieve from all nodes.
29
+ * @param {string} [params.timeout] - The maximum duration, in seconds, to spend retrieving certificates from all nodes before a timeout.
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
32
32
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves the current list of allowed API accessible to normal user.
22
+ * Retrieves the current list of allowed APIs accessible to a normal user.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#access-control-for-the-api - security.get_allowlist}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns the current Security plugin configuration in JSON format.
22
+ * Returns the current Security plugin configuration in a JSON format.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-configuration - security.get_configuration}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves the current security-dashboards plugin configuration.
22
+ * Retrieves the current values for dynamic security settings for OpenSearch Dashboards.
23
23
  * <br/> See Also: {@link undefined - security.get_dashboards_info}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,14 +19,14 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves distinguished names. Only accessible to super-admins and with rest-api permissions when enabled.
22
+ * Retrieves all node distinguished names. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-distinguished-names - security.get_distinguished_name}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {boolean} [params.show_all] - A Boolean flag to include/exclude static nodes DN from final result.
29
- * @param {string} params.cluster_name - The cluster-name to retrieve nodes DN setting for.
28
+ * @param {boolean} [params.show_all] - Whether to include or exclude any static node's DN settings from the final result.
29
+ * @param {string} params.cluster_name - The name of the cluster to retrieve that cluster's nodes DN settings.
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
32
32
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves distinguished names. Only accessible to super-admins and with rest-api permissions when enabled.
22
+ * Retrieves all node distinguished names. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-distinguished-names - security.get_distinguished_names}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {boolean} [params.show_all] - A Boolean flag to include/exclude static nodes DN from final result.
28
+ * @param {boolean} [params.show_all] - Whether to include or exclude any static node's DN settings from the final result.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,15 +19,15 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves the given node's security certificates.
22
+ * Retrieves the specified node's security certificates.
23
23
  * <br/> See Also: {@link undefined - security.get_node_certificates}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cert_type] - The type of certificates (HTTP, TRANSPORT, ALL) to retrieve for a node.
29
- * @param {string} [params.timeout] - The maximum duration, in seconds, to be spent to retrieve a node's certificates.
30
- * @param {string} params.node_id - The full-id of the node to retrieve certificates.
28
+ * @param {string} [params.cert_type] - The type of certificates (`HTTP`, `TRANSPORT`, or `ALL`) to retrieve from a node.
29
+ * @param {string} [params.timeout] - The maximum duration, in seconds, to spend retrieving certificates from all nodes before a timeout.
30
+ * @param {string} params.node_id - The node ID to retrieve certificates for.
31
31
  *
32
32
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
33
33
  * @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 evaluated REST API permissions for the currently logged in user.
22
+ * Retrieves the evaluated REST API permissions for the currently logged in user.
23
23
  * <br/> See Also: {@link undefined - security.get_permissions_info}
24
24
  *
25
25
  * @memberOf API-Security
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.role
28
+ * @param {string} params.role - The name of the role 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
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves one role mapping.
22
+ * Retrieves the specified role mapping.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-role-mapping - security.get_role_mapping}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.role
28
+ * @param {string} params.role - The name of the role mapping 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
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves the SSL configuration information.
22
+ * Retrieves information about the SSL configuration.
23
23
  * <br/> See Also: {@link undefined - security.get_sslinfo}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {boolean | string} [params.show_dn] - A Boolean flag to indicate whether all domain names should be returned.
28
+ * @param {boolean | string} [params.show_dn] - Whether to include all domain names in the response.
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
- * Retrieves multi-tenancy configuration. Only accessible to admins and users with REST API permissions.
22
+ * Retrieves the multi-tenancy configuration. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/multi-tenancy/dynamic-config/#configuring-multi-tenancy-with-the-rest-api - security.get_tenancy_config}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves one tenant.
22
+ * Retrieves the specified tenant.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-tenant - security.get_tenant}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieve one internal user.
22
+ * Retrieve information about the specified internal user.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#get-user - security.get_user}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Checks to see if the Security plugin is up and running.
22
+ * Checks to see if the Security plugin is running.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#health-check - security.health}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.mode] - A flag to indicate whether service should consider security-plugin's status before returning health response. `strict` mode indicates service should check Security plugin status.
28
+ * @param {string} [params.mode] - A flag that determines whether to consider the security status before returning a response for a health query response. For example, `strict` mode indicates service should check the Security plugin status.
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
- * Migrates security configuration from v6 to v7.
22
+ * Migrates the security configuration from v6 to v7.
23
23
  * <br/> See Also: {@link undefined - security.migrate}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates individual attributes of an action group.
22
+ * Updates the individual attributes of an action group.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-action-group - security.patch_action_group}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates, updates, or deletes multiple action groups in a single call.
22
+ * Creates, updates, or deletes multiple action groups in a single request.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-action-groups - security.patch_action_groups}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates the current list of allowed API accessible to normal user.
22
+ * Updates the current list of APIs accessible for users on the allow list.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#access-control-for-the-api - security.patch_allowlist}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * A PATCH call is used to update specified fields in the audit configuration.
22
+ * Updates the specified fields in the audit configuration.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#audit-logs - security.patch_audit_configuration}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * A `PATCH` call is used to update the existing configuration using the REST API. Only accessible by admins and users with REST API access and only when put or patch is enabled.
22
+ * Updates the existing security configuration using the REST API. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-configuration - security.patch_configuration}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates a distinguished cluster name for a specific cluster. Only accessible to super-admins and with rest-api permissions when enabled.
22
+ * Updates the distinguished cluster name for the specified cluster. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link undefined - security.patch_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 update `nodesDn` value.
28
+ * @param {string} params.cluster_name - The cluster name to update the `nodesDn` value.
29
29
  * @param {array} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Bulk update of distinguished names. Only accessible to super-admins and with rest-api permissions when enabled.
22
+ * Bulk updates specified node distinguished names. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#update-all-distinguished-names - security.patch_distinguished_names}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates individual attributes of a role.
22
+ * Updates the individual attributes of a role.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-role - security.patch_role}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates individual attributes of a role mapping.
22
+ * Updates the individual attributes of a role mapping.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-role-mapping - security.patch_role_mapping}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.role - The name of the role to update role-mapping for.
28
+ * @param {string} params.role - The name of the role to update a role mapping for
29
29
  * @param {array} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates or updates multiple role mappings in a single call.
22
+ * Creates or updates multiple role mappings in a single request.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-role-mappings - security.patch_role_mappings}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Add, delete, or modify a single tenant.
22
+ * Adds, deletes, or modifies a single tenant.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-tenant - security.patch_tenant}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Add, delete, or modify multiple tenants in a single call.
22
+ * Adds, deletes, or modifies multiple tenants in a single request.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-tenants - security.patch_tenants}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates individual attributes of an internal user.
22
+ * Updates individual attributes for an internal user.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-user - security.patch_user}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates, updates, or deletes multiple internal users in a single call.
22
+ * Creates, updates, or deletes multiple internal users in a single request.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#patch-users - security.patch_users}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates the current security-dashboards plugin configuration.
22
+ * Retrieves the current values for dynamic security settings for OpenSearch Dashboards.
23
23
  * <br/> See Also: {@link undefined - security.post_dashboards_info}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Reload HTTP layer communication certificates.
22
+ * Reloads the HTTP communication certificates.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#reload-http-certificates - security.reload_http_certificates}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Reload Transport layer communication certificates.
22
+ * Reloads the transport communication certificates.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#reload-transport-certificates - security.reload_transport_certificates}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Retrieves the tenant names if any exist. Only accessible to super admins or kibanaserver user.
22
+ * Retrieves the names of current tenants. Requires super admin or `kibanaserver` permissions.
23
23
  * <br/> See Also: {@link undefined - security.tenant_info}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Adds or updates the existing configuration using the REST API. Only accessible by admins and users with REST API access and only when put or patch is enabled.
22
+ * Updates the settings for an existing security configuration. Requires super admin or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#update-configuration - security.update_configuration}
24
24
  *
25
25
  * @memberOf API-Security