@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
@@ -97,6 +97,7 @@ import * as Ingest_Simulate from './ingest.simulate'
97
97
  import * as Insights_Common from './insights._common'
98
98
  import * as Ism_Common from './ism._common'
99
99
  import * as Knn_Common from './knn._common'
100
+ import * as Ltr_Common from './ltr._common'
100
101
  import * as Ml_Common from './ml._common'
101
102
  import * as Nodes_Common from './nodes._common'
102
103
  import * as Nodes_Info from './nodes.info'
@@ -206,6 +207,7 @@ export {
206
207
  Insights_Common,
207
208
  Ism_Common,
208
209
  Knn_Common,
210
+ Ltr_Common,
209
211
  Ml_Common,
210
212
  Nodes_Common,
211
213
  Nodes_Info,
@@ -134,6 +134,7 @@ export type IndexRoutingAllocation = {
134
134
  enable?: IndexRoutingAllocationOptions;
135
135
  include?: IndexRoutingAllocationInclude;
136
136
  initial_recovery?: IndexRoutingAllocationInitialRecovery;
137
+ total_primary_shards_per_node?: Common.StringifiedInteger;
137
138
  total_shards_per_node?: Common.StringifiedInteger;
138
139
  }
139
140
 
@@ -18,6 +18,8 @@ import * as Common from './_common'
18
18
  import * as Common_QueryDsl from './_common.query_dsl'
19
19
  import * as Core_Search from './_core.search'
20
20
 
21
+ export type GroupingType = 'NONE' | 'SIMILARITY' | 'none' | 'similarity'
22
+
21
23
  export type Measurement = {
22
24
  aggregationType?: string;
23
25
  count?: number;
@@ -80,6 +82,8 @@ export type TopQueriesResponse = {
80
82
  }
81
83
 
82
84
  export type TopQuery = {
85
+ group_by?: GroupingType;
86
+ id?: string;
83
87
  indices?: string[];
84
88
  labels?: Record<string, any>;
85
89
  measurements?: Measurements;
@@ -16,8 +16,6 @@
16
16
 
17
17
  import * as Common from './_common'
18
18
 
19
- export type DefaultOperator = 'AND' | 'OR'
20
-
21
19
  export type DeletedModel = {
22
20
  model_id: string;
23
21
  result: 'deleted' | 'error';
@@ -43,6 +41,13 @@ export type GraphStats = {
43
41
  refresh?: GraphRefreshStats;
44
42
  }
45
43
 
44
+ export type KnnMethod = {
45
+ engine?: string;
46
+ name: string;
47
+ parameters?: Record<string, any>;
48
+ space_type?: string;
49
+ }
50
+
46
51
  export type NodeStats = {
47
52
  cache_capacity_reached?: boolean;
48
53
  eviction_count?: number;
@@ -79,8 +84,6 @@ export type NodeStats = {
79
84
  training_requests?: number;
80
85
  }
81
86
 
82
- export type SearchType = 'dfs_query_then_fetch' | 'query_then_fetch'
83
-
84
87
  export type Stats = {
85
88
  _nodes?: Common.NodeStatistics;
86
89
  circuit_breaker_triggered?: boolean;
@@ -89,14 +92,12 @@ export type Stats = {
89
92
  nodes?: Record<string, NodeStats>;
90
93
  }
91
94
 
92
- export type SuggestMode = 'always' | 'missing' | 'popular'
93
-
94
95
  export type TrainedModel = {
95
96
  compression_level?: string;
96
97
  description?: string;
97
98
  dimension: number;
98
99
  max_training_vector_count?: number;
99
- method?: string;
100
+ method?: KnnMethod;
100
101
  mode?: string;
101
102
  search_size?: number;
102
103
  spaceType?: string;
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ import * as Common from './_common'
18
+
19
+ export type CacheStat = {
20
+ entry_count?: number;
21
+ eviction_count?: number;
22
+ hit_count?: number;
23
+ memory_usage_in_bytes?: number;
24
+ miss_count?: number;
25
+ }
26
+
27
+ export type CacheStats = {
28
+ feature?: CacheStat;
29
+ featureset?: CacheStat;
30
+ model?: CacheStat;
31
+ }
32
+
33
+ export type NodeStats = {
34
+ cache?: CacheStats;
35
+ request_error_count?: number;
36
+ request_total_count?: number;
37
+ }
38
+
39
+ export type Stats = {
40
+ _nodes?: Common.NodeStatistics;
41
+ cluster_name?: Common.Name;
42
+ nodes?: Record<string, NodeStats>;
43
+ status?: string;
44
+ stores?: StoreStats;
45
+ }
46
+
47
+ export type StoreStat = {
48
+ feature_count?: number;
49
+ featureset_count?: number;
50
+ model_count?: number;
51
+ status?: string;
52
+ }
53
+
54
+ export type StoreStats = Record<string, StoreStat>
55
+
@@ -40,8 +40,8 @@ export type NodeInfo = {
40
40
  search_pipelines?: NodeInfoSearchPipelines;
41
41
  settings?: NodeInfoSettings;
42
42
  thread_pool?: Record<string, NodeThreadPoolInfo>;
43
- total_indexing_buffer?: Common.ByteCount;
44
- total_indexing_buffer_in_bytes?: Common.HumanReadableByteCount;
43
+ total_indexing_buffer?: Common.ByteCount | Common.HumanReadableByteCount;
44
+ total_indexing_buffer_in_bytes?: Common.HumanReadableByteCount | Common.ByteCount;
45
45
  transport?: NodeInfoTransport;
46
46
  transport_address?: Common.TransportAddress;
47
47
  version: Common.VersionString;
@@ -36,6 +36,27 @@ export type Breaker = {
36
36
  tripped?: number;
37
37
  }
38
38
 
39
+ export type CacheIndicesStats = CacheStatsBase & Record<string, any>
40
+
41
+ export type CacheShardStats = CacheStatsBase & Record<string, any>
42
+
43
+ export type CachesStats = Record<string, CacheStats>
44
+
45
+ export type CacheStats = CacheStatsBase & {
46
+ indices?: Record<string, CacheIndicesStats>;
47
+ shards?: Record<string, CacheShardStats>;
48
+ store_name?: string;
49
+ }
50
+
51
+ export type CacheStatsBase = {
52
+ evictions?: number;
53
+ hit_count?: number;
54
+ item_count?: number;
55
+ miss_count?: number;
56
+ size?: Common.HumanReadableByteCount;
57
+ size_in_bytes?: Common.ByteCount;
58
+ }
59
+
39
60
  export type CgroupCpuAcctStats = {
40
61
  control_group?: string;
41
62
  usage_nanos?: Common.DurationValueUnitNanos;
@@ -363,18 +384,6 @@ export type ShardAdmissionControlStats = {
363
384
  global_io_usage?: UsageStats;
364
385
  }
365
386
 
366
- export type ShardCachesStats = Record<string, ShardCacheStats>
367
-
368
- export type ShardCacheStats = {
369
- evictions?: number;
370
- hit_count?: number;
371
- item_count?: number;
372
- miss_count?: number;
373
- size?: Common.HumanReadableByteCount;
374
- size_in_bytes?: Common.ByteCount;
375
- store_name?: string;
376
- }
377
-
378
387
  export type ShardClusterManagerThrottlingStats = {
379
388
  stats?: ShardClusterManagerThrottlingStatsDetail;
380
389
  }
@@ -594,7 +603,7 @@ export type Stats = {
594
603
  admission_control?: ShardAdmissionControlStats;
595
604
  attributes?: Record<string, string>;
596
605
  breakers?: Record<string, Breaker>;
597
- caches?: ShardCachesStats;
606
+ caches?: CachesStats;
598
607
  cluster_manager_throttling?: ShardClusterManagerThrottlingStats;
599
608
  discovery?: Discovery;
600
609
  fs?: FileSystem;
@@ -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
-
@@ -115,6 +115,11 @@ export type ChangePasswordRequestContent = {
115
115
  password: string;
116
116
  }
117
117
 
118
+ export type ClientError = {
119
+ error?: string;
120
+ status?: number;
121
+ }
122
+
118
123
  export type ComplianceConfig = {
119
124
  enabled?: boolean;
120
125
  external_config?: boolean;
@@ -17,13 +17,13 @@
17
17
  import * as Common from './_common'
18
18
 
19
19
  export type FileCountSnapshotStats = {
20
- file_count: number;
21
- size_in_bytes: Common.ByteCount;
20
+ file_count?: number;
21
+ size_in_bytes?: Common.ByteCount;
22
22
  }
23
23
 
24
24
  export type Repository = {
25
- settings: RepositorySettings;
26
- type: string;
25
+ settings?: RepositorySettings;
26
+ type?: string;
27
27
  uuid?: Common.Uuid;
28
28
  }
29
29
 
@@ -31,18 +31,18 @@ export type RepositorySettings = {
31
31
  chunk_size?: string;
32
32
  compress?: Common.StringifiedBoolean;
33
33
  concurrent_streams?: Common.StringifiedInteger;
34
- location: string;
34
+ location?: string;
35
35
  read_only?: Common.StringifiedBoolean;
36
36
  }
37
37
 
38
38
  export type SnapshotIndexStats = {
39
- shards: Record<string, SnapshotShardsStatus>;
40
- shards_stats: SnapshotShardsStats;
41
- stats: SnapshotStats;
39
+ shards?: Record<string, SnapshotShardsStatus>;
40
+ shards_stats?: SnapshotShardsStats;
41
+ stats?: SnapshotStats;
42
42
  }
43
43
 
44
44
  export type SnapshotInfo = {
45
- data_streams: string[];
45
+ data_streams?: string[];
46
46
  duration?: Common.Duration;
47
47
  duration_in_millis?: Common.DurationValueUnitMillis;
48
48
  end_time?: Common.DateTime;
@@ -55,46 +55,46 @@ export type SnapshotInfo = {
55
55
  reason?: string;
56
56
  remote_store_index_shallow_copy?: boolean;
57
57
  shards?: Common.ShardStatistics;
58
- snapshot: Common.Name;
58
+ snapshot?: Common.Name;
59
59
  start_time?: Common.DateTime;
60
60
  start_time_in_millis?: Common.EpochTimeUnitMillis;
61
61
  state?: string;
62
- uuid: Common.Uuid;
62
+ uuid?: Common.Uuid;
63
63
  version?: Common.VersionString;
64
64
  version_id?: Common.VersionNumber;
65
65
  }
66
66
 
67
67
  export type SnapshotShardFailure = {
68
- index: Common.IndexName;
68
+ index?: Common.IndexName;
69
69
  node_id?: Common.Id;
70
- reason: string;
71
- shard_id: Common.Id;
72
- status: string;
70
+ reason?: string;
71
+ shard_id?: Common.Id;
72
+ status?: string;
73
73
  }
74
74
 
75
75
  export type SnapshotShardsStats = {
76
- done: number;
77
- failed: number;
78
- finalizing: number;
79
- initializing: number;
80
- started: number;
81
- total: number;
76
+ done?: number;
77
+ failed?: number;
78
+ finalizing?: number;
79
+ initializing?: number;
80
+ started?: number;
81
+ total?: number;
82
82
  }
83
83
 
84
84
  export type SnapshotShardsStatsStage = 'DONE' | 'FAILURE' | 'FINALIZE' | 'INIT' | 'STARTED'
85
85
 
86
86
  export type SnapshotShardsStatsSummary = {
87
- incremental: SnapshotShardsStatsSummaryItem;
87
+ incremental?: SnapshotShardsStatsSummaryItem;
88
88
  processed?: SnapshotShardsStatsSummaryItem;
89
- start_time_in_millis: Common.EpochTimeUnitMillis;
89
+ start_time_in_millis?: Common.EpochTimeUnitMillis;
90
90
  time?: Common.Duration;
91
- time_in_millis: Common.DurationValueUnitMillis;
92
- total: SnapshotShardsStatsSummaryItem;
91
+ time_in_millis?: Common.DurationValueUnitMillis;
92
+ total?: SnapshotShardsStatsSummaryItem;
93
93
  }
94
94
 
95
95
  export type SnapshotShardsStatsSummaryItem = {
96
- file_count: number;
97
- size_in_bytes: Common.ByteCount;
96
+ file_count?: number;
97
+ size_in_bytes?: Common.ByteCount;
98
98
  }
99
99
 
100
100
  export type SnapshotShardsStatus = {
@@ -105,22 +105,22 @@ export type SnapshotShardsStatus = {
105
105
  }
106
106
 
107
107
  export type SnapshotStats = {
108
- incremental: FileCountSnapshotStats;
108
+ incremental?: FileCountSnapshotStats;
109
109
  processed?: FileCountSnapshotStats;
110
- start_time_in_millis: Common.EpochTimeUnitMillis;
110
+ start_time_in_millis?: Common.EpochTimeUnitMillis;
111
111
  time?: Common.Duration;
112
- time_in_millis: Common.DurationValueUnitMillis;
113
- total: FileCountSnapshotStats;
112
+ time_in_millis?: Common.DurationValueUnitMillis;
113
+ total?: FileCountSnapshotStats;
114
114
  }
115
115
 
116
116
  export type SnapshotStatus = {
117
117
  include_global_state?: boolean;
118
- indices: Record<string, SnapshotIndexStats>;
119
- repository: string;
120
- shards_stats: SnapshotShardsStats;
121
- snapshot: string;
122
- state: string;
123
- stats: SnapshotStats;
124
- uuid: Common.Uuid;
118
+ indices?: Record<string, SnapshotIndexStats>;
119
+ repository?: string;
120
+ shards_stats?: SnapshotShardsStats;
121
+ snapshot?: string;
122
+ state?: string;
123
+ stats?: SnapshotStats;
124
+ uuid?: Common.Uuid;
125
125
  }
126
126
 
@@ -26,7 +26,7 @@ const { normalizeArguments } = require('../utils');
26
26
  *
27
27
  * @param {object} [params]
28
28
  * @param {boolean} [params.include_disk_info=false] - When `true`, returns information about disk usage and shard sizes.
29
- * @param {boolean} [params.include_yes_decisions=false] - When `true`, returns any `YES` decisions in the allocation explanation.
29
+ * @param {boolean} [params.include_yes_decisions=false] - When `true`, returns any `YES` decisions in the allocation explanation. `YES` decisions indicate when a particular shard allocation attempt was successful for the given node.
30
30
  * @param {object} [params.body] - The index, shard, and primary flag for which to generate an explanation. Leave this empty to generate an explanation for the first unassigned shard.
31
31
  *
32
32
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
30
- * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
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 {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
30
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
31
31
  * @param {string} params.name - The name of the component template to delete. Supports wildcard (*) expressions.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,9 +25,7 @@ export interface Cluster_ExistsComponentTemplate_Request extends Global.Params {
25
25
  name: Common.Name;
26
26
  }
27
27
 
28
- export interface Cluster_ExistsComponentTemplate_Response extends ApiResponse {
29
- body: Cluster_ExistsComponentTemplate_ResponseBody;
30
- }
28
+ export type Cluster_ExistsComponentTemplate_Response = boolean
31
29
 
32
30
  export type Cluster_ExistsComponentTemplate_ResponseBody = Record<string, any>
33
31
 
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - 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.
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 {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false, information is retrieved from the cluster manager node.
30
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
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.name - The name of the component template. Wildcard (*) expressions are supported.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
- * @param {boolean} [params.flat_settings=false] - If `true`, returns settings in flat format.
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.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
30
30
  * @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
31
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
32
32
  * @param {string} [params.name] - The name of the component template to retrieve. Wildcard (`*`) expressions are supported.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,11 +25,11 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
- * @param {boolean} [params.flat_settings=false] - When `true`, returns cluster settings in a flat format.
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.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
30
30
  * @param {boolean} [params.include_defaults=false] - When `true`, returns default cluster settings from the local node.
31
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
- * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
32
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -26,16 +26,16 @@ const { normalizeArguments, parsePathParam } = require('../utils');
26
26
  *
27
27
  * @param {object} [params]
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
- * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
+ * @param {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).
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
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
34
- * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
33
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
34
+ * @param {string} [params.timeout] - 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).
35
35
  * @param {string} [params.wait_for_active_shards] - Waits until the specified number of shards is active before returning a response. Use `all` for all shards.
36
36
  * @param {string} [params.wait_for_events] - Waits until all currently queued events with the given priority are processed.
37
37
  * @param {boolean} [params.wait_for_no_initializing_shards=false] - Whether to wait until there are no initializing shards in the cluster.
38
- * @param {boolean} [params.wait_for_no_relocating_shards] - Whether to wait until there are no relocating shards in the cluster.
38
+ * @param {boolean} [params.wait_for_no_relocating_shards=false] - Whether to wait until there are no relocating shards in the cluster.
39
39
  * @param {string} [params.wait_for_nodes] - Waits until the specified number of nodes (`N`) is available. Accepts `>=N`, `<=N`, `>N`, and `<N`. You can also use `ge(N)`, `le(N)`, `gt(N)`, and `lt(N)` notation.
40
40
  * @param {string} [params.wait_for_status] - Waits until the cluster health reaches the specified status or better.
41
41
  * @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
@@ -26,9 +26,9 @@ or new allocations.
26
26
  * @memberOf API-Cluster
27
27
  *
28
28
  * @param {object} [params]
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.
29
+ * @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).
30
30
  * @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
31
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,8 +25,8 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.node_ids] - A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specify `node_names`.
29
- * @param {string} [params.node_names] - A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specify `node_ids`.
28
+ * @param {string} [params.node_ids] - A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specify `node_names`. Either `node_ids` or `node_names` are required to receive a valid response.
29
+ * @param {string} [params.node_names] - A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specify `node_ids`. Either `node_ids` or `node_names` are required to receive a valid response.
30
30
  * @param {string} [params.timeout] - When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning a response. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.
31
31
  *
32
32
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - 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.
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 {boolean} [params.create=false] - When `true`, this request cannot replace or update existing component templates.
30
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
- * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
32
- * @param {string} params.name - The name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings`; 'logs-settings`; `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template `version` to a higher value than the current version. If you want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the Cluster Update Settings API.
30
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
31
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
32
+ * @param {string} params.name - The name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings`, `logs-settings`, `metrics-mappings`, `metrics-settings`, `synthetics-mapping`, and `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](https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/).
33
33
  * @param {object} params.body - The template definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -26,7 +26,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
26
26
  *
27
27
  * @param {object} params
28
28
  * @param {string} params.awareness_attribute_name - The name of the awareness attribute.
29
- * @param {string} params.awareness_attribute_value - The value of the awareness attribute.
29
+ * @param {string} params.awareness_attribute_value - The value of the awareness attribute. For example, if you have shards allocated in two different zones, you can give each zone a value of `zone-a` or `zoneb`. The cluster decommission operation decommissions the zone listed in the method.
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
32
32
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,10 +25,10 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
25
25
  * @memberOf API-Cluster
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
29
- * @param {boolean} [params.flat_settings=false] - Returns settings in a flat format.
30
- * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
31
- * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
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.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
30
+ * @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
31
+ * @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
32
32
  * @param {object} params.body - The cluster settings to update.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}