@opensearch-project/opensearch 3.3.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 (67) hide show
  1. package/api/_types/_common.analysis.d.ts +11 -1
  2. package/api/_types/_core.search.d.ts +134 -7
  3. package/api/_types/search_pipeline._common.d.ts +2 -60
  4. package/api/cluster/health.js +1 -1
  5. package/api/cluster/putComponentTemplate.js +1 -1
  6. package/api/security/authinfo.js +3 -3
  7. package/api/security/authtoken.js +1 -1
  8. package/api/security/configUpgradeCheck.js +1 -1
  9. package/api/security/configUpgradePerform.js +1 -1
  10. package/api/security/createAllowlist.js +1 -1
  11. package/api/security/createRole.js +1 -1
  12. package/api/security/createRoleMapping.js +1 -1
  13. package/api/security/createTenant.js +1 -1
  14. package/api/security/createUpdateTenancyConfig.js +1 -1
  15. package/api/security/createUser.js +1 -1
  16. package/api/security/createUserLegacy.js +1 -1
  17. package/api/security/deleteActionGroup.js +1 -1
  18. package/api/security/deleteDistinguishedName.js +2 -2
  19. package/api/security/deleteRole.js +1 -1
  20. package/api/security/deleteRoleMapping.js +1 -1
  21. package/api/security/deleteTenant.js +1 -1
  22. package/api/security/deleteUser.js +1 -1
  23. package/api/security/flushCache.js +1 -1
  24. package/api/security/generateOboToken.js +1 -1
  25. package/api/security/generateUserToken.js +2 -2
  26. package/api/security/generateUserTokenLegacy.js +1 -1
  27. package/api/security/getAccountDetails.js +1 -1
  28. package/api/security/getAllCertificates.js +2 -2
  29. package/api/security/getAllowlist.js +1 -1
  30. package/api/security/getConfiguration.js +1 -1
  31. package/api/security/getDashboardsInfo.js +1 -1
  32. package/api/security/getDistinguishedName.js +3 -3
  33. package/api/security/getDistinguishedNames.js +2 -2
  34. package/api/security/getNodeCertificates.js +4 -4
  35. package/api/security/getPermissionsInfo.js +1 -1
  36. package/api/security/getRole.js +1 -1
  37. package/api/security/getRoleMapping.js +2 -2
  38. package/api/security/getSslinfo.js +2 -2
  39. package/api/security/getTenancyConfig.js +1 -1
  40. package/api/security/getTenant.js +1 -1
  41. package/api/security/getUser.js +1 -1
  42. package/api/security/health.js +2 -2
  43. package/api/security/migrate.js +1 -1
  44. package/api/security/patchActionGroup.js +1 -1
  45. package/api/security/patchActionGroups.js +1 -1
  46. package/api/security/patchAllowlist.js +1 -1
  47. package/api/security/patchAuditConfiguration.js +1 -1
  48. package/api/security/patchConfiguration.js +1 -1
  49. package/api/security/patchDistinguishedName.js +2 -2
  50. package/api/security/patchDistinguishedNames.js +1 -1
  51. package/api/security/patchRole.js +1 -1
  52. package/api/security/patchRoleMapping.js +2 -2
  53. package/api/security/patchRoleMappings.js +1 -1
  54. package/api/security/patchTenant.js +1 -1
  55. package/api/security/patchTenants.js +1 -1
  56. package/api/security/patchUser.js +1 -1
  57. package/api/security/patchUsers.js +1 -1
  58. package/api/security/postDashboardsInfo.js +1 -1
  59. package/api/security/reloadHttpCertificates.js +1 -1
  60. package/api/security/reloadTransportCertificates.js +1 -1
  61. package/api/security/tenantInfo.js +1 -1
  62. package/api/security/updateConfiguration.js +1 -1
  63. package/api/security/updateDistinguishedName.js +2 -2
  64. package/api/security/validate.js +1 -1
  65. package/api/security/whoAmI.js +1 -1
  66. package/api/security/whoAmIProtected.js +1 -1
  67. package/package.json +1 -1
@@ -493,6 +493,16 @@ export type SimpleAnalyzer = {
493
493
  version?: Common.VersionString;
494
494
  }
495
495
 
496
+ export type SimplePatternSplitTokenizer = TokenizerBase & {
497
+ pattern?: string;
498
+ type: 'simple_pattern_split';
499
+ }
500
+
501
+ export type SimplePatternTokenizer = TokenizerBase & {
502
+ pattern?: string;
503
+ type: 'simple_pattern';
504
+ }
505
+
496
506
  export type SmartcnAnalyzer = {
497
507
  type?: 'smartcn';
498
508
  }
@@ -598,7 +608,7 @@ export type TokenizerBase = {
598
608
  version?: Common.VersionString;
599
609
  }
600
610
 
601
- export type TokenizerDefinition = CharGroupTokenizer | EdgeNGramTokenizer | KeywordTokenizer | LetterTokenizer | LowercaseTokenizer | NGramTokenizer | NoriTokenizer | PathHierarchyTokenizer | StandardTokenizer | UaxEmailUrlTokenizer | WhitespaceTokenizer | KuromojiTokenizer | PatternTokenizer | IcuTokenizer | SmartcnTokenizer
611
+ export type TokenizerDefinition = CharGroupTokenizer | EdgeNGramTokenizer | KeywordTokenizer | LetterTokenizer | LowercaseTokenizer | NGramTokenizer | NoriTokenizer | PathHierarchyTokenizer | StandardTokenizer | UaxEmailUrlTokenizer | WhitespaceTokenizer | KuromojiTokenizer | PatternTokenizer | SimplePatternTokenizer | SimplePatternSplitTokenizer | IcuTokenizer | SmartcnTokenizer
602
612
 
603
613
  export type TrimTokenFilter = TokenFilterBase & {
604
614
  type: 'trim';
@@ -52,21 +52,16 @@ export type AggregationProfileDebug = {
52
52
  collection_strategy?: string;
53
53
  deferred_aggregators?: string[];
54
54
  delegate?: string;
55
- delegate_debug?: AggregationProfileDebug;
55
+ delegate_debug?: AggregationProfileDelegateDebug;
56
56
  empty_collectors_used?: number;
57
57
  extract_count?: number;
58
58
  extract_ns?: number;
59
- filters?: AggregationProfileDelegateDebugFilter[];
60
59
  has_filter?: boolean;
61
60
  map_reducer?: string;
62
61
  numeric_collectors_used?: number;
63
62
  ordinals_collectors_overhead_too_high?: number;
64
63
  ordinals_collectors_used?: number;
65
64
  result_strategy?: string;
66
- segments_collected?: number;
67
- segments_counted?: number;
68
- segments_with_deleted_docs?: number;
69
- segments_with_doc_count_field?: number;
70
65
  segments_with_multi_valued_ords?: number;
71
66
  segments_with_single_valued_ords?: number;
72
67
  string_hashing_collectors_used?: number;
@@ -75,6 +70,14 @@ export type AggregationProfileDebug = {
75
70
  values_fetched?: number;
76
71
  }
77
72
 
73
+ export type AggregationProfileDelegateDebug = {
74
+ filters?: AggregationProfileDelegateDebugFilter[];
75
+ segments_collected?: number;
76
+ segments_counted?: number;
77
+ segments_with_deleted_docs?: number;
78
+ segments_with_doc_count_field?: number;
79
+ }
80
+
78
81
  export type AggregationProfileDelegateDebugFilter = {
79
82
  query?: string;
80
83
  results_from_metadata?: number;
@@ -93,10 +96,25 @@ export type Collector = {
93
96
  time_in_nanos: Common.DurationValueUnitNanos;
94
97
  }
95
98
 
99
+ export type CompletionContext = Context | {
100
+ boost?: number;
101
+ context: Context;
102
+ neighbours?: Common.GeoHashPrecision[];
103
+ precision?: Common.GeoHashPrecision;
104
+ prefix?: boolean;
105
+ }
106
+
96
107
  export type CompletionSuggest = SuggestBase & {
97
108
  options: CompletionSuggestOption | CompletionSuggestOption[];
98
109
  }
99
110
 
111
+ export type CompletionSuggester = SuggesterBase & {
112
+ contexts?: Record<string, CompletionContext[]>;
113
+ fuzzy?: SuggestFuzziness;
114
+ regex?: string;
115
+ skip_duplicates?: boolean;
116
+ }
117
+
100
118
  export type CompletionSuggestOption = {
101
119
  _id?: string;
102
120
  _index?: Common.IndexName;
@@ -112,6 +130,20 @@ export type CompletionSuggestOption = {
112
130
 
113
131
  export type Context = string | Common.GeoLocation
114
132
 
133
+ export type DirectGenerator = {
134
+ field: string;
135
+ max_edits?: number;
136
+ max_inspections?: number;
137
+ max_term_freq?: number;
138
+ min_doc_freq?: number;
139
+ min_word_length?: number;
140
+ post_filter?: string;
141
+ pre_filter?: string;
142
+ prefix_length?: number;
143
+ size?: number;
144
+ suggest_mode?: Common.SuggestMode;
145
+ }
146
+
115
147
  export type FetchProfile = {
116
148
  breakdown: FetchProfileBreakdown;
117
149
  children?: FetchProfile[];
@@ -143,6 +175,15 @@ export type FieldCollapse = {
143
175
  max_concurrent_group_searches?: number;
144
176
  }
145
177
 
178
+ export type FieldSuggester = {
179
+ completion?: CompletionSuggester;
180
+ phrase?: PhraseSuggester;
181
+ prefix?: string;
182
+ regex?: string;
183
+ term?: TermSuggester;
184
+ text?: string;
185
+ }
186
+
146
187
  export type Highlight = HighlightBase & {
147
188
  encoder?: HighlighterEncoder;
148
189
  fields: Record<string, HighlightField>;
@@ -240,6 +281,16 @@ export type InnerHitsResult = {
240
281
  hits: HitsMetadata;
241
282
  }
242
283
 
284
+ export type LaplaceSmoothingModel = {
285
+ alpha: number;
286
+ }
287
+
288
+ export type LinearInterpolationSmoothingModel = {
289
+ bigram_lambda: number;
290
+ trigram_lambda: number;
291
+ unigram_lambda: number;
292
+ }
293
+
243
294
  export type NestedIdentity = {
244
295
  _nested?: NestedIdentity;
245
296
  field: Common.Field;
@@ -250,6 +301,38 @@ export type PhraseSuggest = SuggestBase & {
250
301
  options: PhraseSuggestOption | PhraseSuggestOption[];
251
302
  }
252
303
 
304
+ export type PhraseSuggestCollate = {
305
+ params?: Record<string, any>;
306
+ prune?: boolean;
307
+ query: PhraseSuggestCollateQuery;
308
+ }
309
+
310
+ export type PhraseSuggestCollateQuery = {
311
+ id?: string;
312
+ source?: string;
313
+ }
314
+
315
+ export type PhraseSuggester = SuggesterBase & {
316
+ collate?: PhraseSuggestCollate;
317
+ confidence?: number;
318
+ direct_generator?: DirectGenerator[];
319
+ force_unigrams?: boolean;
320
+ gram_size?: number;
321
+ highlight?: PhraseSuggestHighlight;
322
+ max_errors?: number;
323
+ real_word_error_likelihood?: number;
324
+ separator?: string;
325
+ shard_size?: number;
326
+ smoothing?: SmoothingModel;
327
+ text?: string;
328
+ token_limit?: number;
329
+ }
330
+
331
+ export type PhraseSuggestHighlight = {
332
+ post_tag: string;
333
+ pre_tag: string;
334
+ }
335
+
253
336
  export type PhraseSuggestOption = {
254
337
  collate_match?: boolean;
255
338
  highlighted?: string;
@@ -340,6 +423,12 @@ export type ShardProfile = {
340
423
  searches: SearchProfile[];
341
424
  }
342
425
 
426
+ export type SmoothingModel = {
427
+ laplace?: LaplaceSmoothingModel;
428
+ linear_interpolation?: LinearInterpolationSmoothingModel;
429
+ stupid_backoff?: StupidBackoffSmoothingModel;
430
+ }
431
+
343
432
  export type SourceConfig = boolean | SourceFilter
344
433
 
345
434
  export type SourceConfigParam = boolean | Common.Fields
@@ -349,6 +438,12 @@ export type SourceFilter = Common.Fields | {
349
438
  includes?: Common.Fields;
350
439
  }
351
440
 
441
+ export type StringDistance = 'damerau_levenshtein' | 'internal' | 'jaro_winkler' | 'levenshtein' | 'ngram'
442
+
443
+ export type StupidBackoffSmoothingModel = {
444
+ discount: number;
445
+ }
446
+
352
447
  export type Suggest = CompletionSuggest | PhraseSuggest | TermSuggest
353
448
 
354
449
  export type SuggestBase = {
@@ -359,15 +454,47 @@ export type SuggestBase = {
359
454
 
360
455
  export type Suggester = {
361
456
  text?: string;
457
+ [key: string]: any | FieldSuggester;
458
+ }
459
+
460
+ export type SuggesterBase = {
461
+ analyzer?: string;
462
+ field: string;
463
+ size?: number;
362
464
  }
363
465
 
466
+ export type SuggestFuzziness = {
467
+ fuzziness: string;
468
+ min_length: number;
469
+ prefix_length: number;
470
+ transpositions: boolean;
471
+ unicode_aware: boolean;
472
+ }
473
+
474
+ export type SuggestSort = 'frequency' | 'score'
475
+
364
476
  export type TermSuggest = SuggestBase & {
365
477
  options: TermSuggestOption | TermSuggestOption[];
366
478
  }
367
479
 
480
+ export type TermSuggester = SuggesterBase & {
481
+ lowercase_terms?: boolean;
482
+ max_edits?: number;
483
+ max_inspections?: number;
484
+ max_term_freq?: number;
485
+ min_doc_freq?: number;
486
+ min_word_length?: number;
487
+ prefix_length?: number;
488
+ shard_size?: number;
489
+ sort?: SuggestSort;
490
+ string_distance?: StringDistance;
491
+ suggest_mode?: Common.SuggestMode;
492
+ text?: string;
493
+ }
494
+
368
495
  export type TermSuggestOption = {
369
496
  collate_match?: boolean;
370
- freq: number;
497
+ freq?: number;
371
498
  highlighted?: string;
372
499
  score: number;
373
500
  text: string;
@@ -14,6 +14,7 @@
14
14
  * modify the API generator.
15
15
  */
16
16
 
17
+ import * as Common_QueryDsl from './_common.query_dsl'
17
18
 
18
19
  export type CollapseResponseProcessor = {
19
20
  context_prefix?: string;
@@ -26,7 +27,7 @@ export type CollapseResponseProcessor = {
26
27
  export type FilterQueryRequestProcessor = {
27
28
  description?: string;
28
29
  ignore_failure?: boolean;
29
- query?: UserDefinedObjectStructure;
30
+ query?: Common_QueryDsl.QueryContainer;
30
31
  tag?: string;
31
32
  }
32
33
 
@@ -188,62 +189,3 @@ export type TruncateHitsResponseProcessor = {
188
189
  target_size?: number;
189
190
  }
190
191
 
191
- export type UserDefinedObjectStructure = {
192
- bool?: any;
193
- boosting?: any;
194
- combined_fields?: any;
195
- constant_score?: any;
196
- dis_max?: any;
197
- distance_feature?: any;
198
- exists?: any;
199
- field_masking_span?: any;
200
- function_score?: any;
201
- fuzzy?: UserDefinedValueMap;
202
- geo_bounding_box?: any;
203
- geo_distance?: any;
204
- geo_polygon?: any;
205
- geo_shape?: any;
206
- has_child?: any;
207
- has_parent?: any;
208
- ids?: any;
209
- intervals?: UserDefinedValueMap;
210
- knn?: any;
211
- match?: UserDefinedValueMap;
212
- match_all?: any;
213
- match_bool_prefix?: UserDefinedValueMap;
214
- match_none?: any;
215
- match_phrase?: UserDefinedValueMap;
216
- match_phrase_prefix?: UserDefinedValueMap;
217
- more_like_this?: any;
218
- multi_match?: any;
219
- nested?: any;
220
- parent_id?: any;
221
- percolate?: any;
222
- pinned?: any;
223
- prefix?: UserDefinedValueMap;
224
- query_string?: any;
225
- range?: UserDefinedValueMap;
226
- rank_feature?: any;
227
- regexp?: UserDefinedValueMap;
228
- script?: any;
229
- script_score?: any;
230
- shape?: any;
231
- simple_query_string?: any;
232
- span_containing?: any;
233
- span_first?: any;
234
- span_multi?: any;
235
- span_near?: any;
236
- span_not?: any;
237
- span_or?: any;
238
- span_term?: UserDefinedValueMap;
239
- span_within?: any;
240
- term?: UserDefinedValueMap;
241
- terms?: any;
242
- terms_set?: UserDefinedValueMap;
243
- wildcard?: UserDefinedValueMap;
244
- wrapper?: any;
245
- }
246
-
247
- export type UserDefinedValueMap = {
248
- }
249
-
@@ -28,7 +28,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
28
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
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
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]
31
+ * @param {string} [params.level] - Controls the amount of detail included in the cluster health response.
32
32
  * @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
33
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
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.
@@ -29,7 +29,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
29
29
  * @param {boolean} [params.create=false] - When `true`, this request cannot replace or update existing component templates.
30
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
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.
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
33
  * @param {object} params.body - The template definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,14 +19,14 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns the authentication information.
22
+ * Returns or updates authentication information for the currently authenticated user.
23
23
  * <br/> See Also: {@link undefined - security.authinfo}
24
24
  *
25
25
  * @memberOf API-Security
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.auth_type] - The type of current authentication request.
29
- * @param {boolean} [params.verbose] - Indicates whether a verbose response should be returned.
28
+ * @param {string} [params.auth_type] - The type of the current authentication request.
29
+ * @param {boolean} [params.verbose] - Whether to return a verbose response.
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
- * Returns the authorization token.
22
+ * Returns the authorization token for the current user.
23
23
  * <br/> See Also: {@link undefined - security.authtoken}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Check whether or not an upgrade can be performed and what resources can be updated.
22
+ * Checks whether or not an upgrade can be performed and which security resources can be updated.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#configuration-upgrade-check - security.config_upgrade_check}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Helps cluster operator upgrade missing defaults and stale default definitions.
22
+ * Assists the cluster operator with upgrading missing default values and stale default definitions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#configuration-upgrade - security.config_upgrade_perform}
24
24
  *
25
25
  * @memberOf API-Security
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates or replaces the permitted APIs. Accessible using Super Admin certificate or REST API permission.
22
+ * Creates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/security/access-control/api/#access-control-for-the-api - security.create_allowlist}
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 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
@@ -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
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.4.0",
40
40
  "versionCanary": "7.10.0-canary.6",
41
41
  "keywords": [
42
42
  "opensearch",