@opensearch-project/opensearch 3.0.0-beta.1 → 3.0.0-beta.3

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 (293) hide show
  1. package/index.d.ts +0 -4
  2. package/lib/Transport.d.ts +2 -7
  3. package/package.json +1 -1
  4. package/types/Client.d.ts +1229 -1231
  5. package/types/components/_common.query_dsl.d.ts +1 -1
  6. package/types/components/search_pipeline._common.d.ts +40 -40
  7. package/types/components/security._common.d.ts +6 -6
  8. package/types/functions/bulk.d.ts +10 -6
  9. package/types/functions/cat.aliases.d.ts +6 -2
  10. package/types/functions/cat.all_pit_segments.d.ts +6 -2
  11. package/types/functions/cat.allocation.d.ts +6 -2
  12. package/types/functions/cat.cluster_manager.d.ts +6 -2
  13. package/types/functions/cat.count.d.ts +6 -2
  14. package/types/functions/cat.fielddata.d.ts +6 -2
  15. package/types/functions/cat.health.d.ts +6 -2
  16. package/types/functions/cat.help.d.ts +6 -2
  17. package/types/functions/cat.indices.d.ts +6 -2
  18. package/types/functions/cat.master.d.ts +6 -2
  19. package/types/functions/cat.nodeattrs.d.ts +6 -2
  20. package/types/functions/cat.nodes.d.ts +6 -2
  21. package/types/functions/cat.pending_tasks.d.ts +6 -2
  22. package/types/functions/cat.pit_segments.d.ts +10 -6
  23. package/types/functions/cat.plugins.d.ts +6 -2
  24. package/types/functions/cat.recovery.d.ts +6 -2
  25. package/types/functions/cat.repositories.d.ts +6 -2
  26. package/types/functions/cat.segment_replication.d.ts +6 -2
  27. package/types/functions/cat.segments.d.ts +6 -2
  28. package/types/functions/cat.shards.d.ts +6 -2
  29. package/types/functions/cat.snapshots.d.ts +6 -2
  30. package/types/functions/cat.tasks.d.ts +6 -2
  31. package/types/functions/cat.templates.d.ts +6 -2
  32. package/types/functions/cat.thread_pool.d.ts +6 -2
  33. package/types/functions/clear_scroll.d.ts +11 -7
  34. package/types/functions/cluster.allocation_explain.d.ts +14 -10
  35. package/types/functions/cluster.delete_component_template.d.ts +6 -2
  36. package/types/functions/cluster.delete_decommission_awareness.d.ts +6 -2
  37. package/types/functions/cluster.delete_voting_config_exclusions.d.ts +6 -2
  38. package/types/functions/cluster.delete_weighted_routing.d.ts +6 -2
  39. package/types/functions/cluster.exists_component_template.d.ts +6 -2
  40. package/types/functions/cluster.get_component_template.d.ts +6 -2
  41. package/types/functions/cluster.get_decommission_awareness.d.ts +6 -2
  42. package/types/functions/cluster.get_settings.d.ts +6 -2
  43. package/types/functions/cluster.get_weighted_routing.d.ts +6 -2
  44. package/types/functions/cluster.health.d.ts +6 -2
  45. package/types/functions/cluster.pending_tasks.d.ts +6 -2
  46. package/types/functions/cluster.post_voting_config_exclusions.d.ts +6 -2
  47. package/types/functions/cluster.put_component_template.d.ts +14 -10
  48. package/types/functions/cluster.put_decommission_awareness.d.ts +6 -2
  49. package/types/functions/cluster.put_settings.d.ts +13 -9
  50. package/types/functions/cluster.put_weighted_routing.d.ts +6 -2
  51. package/types/functions/cluster.remote_info.d.ts +6 -2
  52. package/types/functions/cluster.reroute.d.ts +11 -7
  53. package/types/functions/cluster.state.d.ts +6 -2
  54. package/types/functions/cluster.stats.d.ts +6 -2
  55. package/types/functions/count.d.ts +11 -7
  56. package/types/functions/create.d.ts +9 -5
  57. package/types/functions/create_pit.d.ts +6 -2
  58. package/types/functions/dangling_indices.delete_dangling_index.d.ts +6 -2
  59. package/types/functions/dangling_indices.import_dangling_index.d.ts +6 -2
  60. package/types/functions/dangling_indices.list_dangling_indices.d.ts +6 -2
  61. package/types/functions/delete.d.ts +6 -2
  62. package/types/functions/delete_all_pits.d.ts +6 -2
  63. package/types/functions/delete_by_query.d.ts +14 -10
  64. package/types/functions/delete_by_query_rethrottle.d.ts +6 -2
  65. package/types/functions/delete_pit.d.ts +10 -6
  66. package/types/functions/delete_script.d.ts +6 -2
  67. package/types/functions/exists.d.ts +6 -2
  68. package/types/functions/exists_source.d.ts +6 -2
  69. package/types/functions/explain.d.ts +11 -7
  70. package/types/functions/field_caps.d.ts +14 -10
  71. package/types/functions/get.d.ts +6 -2
  72. package/types/functions/get_all_pits.d.ts +6 -2
  73. package/types/functions/get_script.d.ts +6 -2
  74. package/types/functions/get_script_context.d.ts +6 -2
  75. package/types/functions/get_script_languages.d.ts +6 -2
  76. package/types/functions/get_source.d.ts +6 -2
  77. package/types/functions/index.d.ts +9 -5
  78. package/types/functions/indices.add_block.d.ts +6 -2
  79. package/types/functions/indices.analyze.d.ts +17 -13
  80. package/types/functions/indices.clear_cache.d.ts +6 -2
  81. package/types/functions/indices.clone.d.ts +12 -8
  82. package/types/functions/indices.close.d.ts +6 -2
  83. package/types/functions/indices.create.d.ts +14 -10
  84. package/types/functions/indices.create_data_stream.d.ts +9 -5
  85. package/types/functions/indices.data_streams_stats.d.ts +6 -2
  86. package/types/functions/indices.delete.d.ts +6 -2
  87. package/types/functions/indices.delete_alias.d.ts +6 -2
  88. package/types/functions/indices.delete_data_stream.d.ts +6 -2
  89. package/types/functions/indices.delete_index_template.d.ts +6 -2
  90. package/types/functions/indices.delete_template.d.ts +6 -2
  91. package/types/functions/indices.exists.d.ts +6 -2
  92. package/types/functions/indices.exists_alias.d.ts +6 -2
  93. package/types/functions/indices.exists_index_template.d.ts +6 -2
  94. package/types/functions/indices.exists_template.d.ts +6 -2
  95. package/types/functions/indices.flush.d.ts +6 -2
  96. package/types/functions/indices.forcemerge.d.ts +6 -2
  97. package/types/functions/indices.get.d.ts +6 -2
  98. package/types/functions/indices.get_alias.d.ts +6 -2
  99. package/types/functions/indices.get_data_stream.d.ts +6 -2
  100. package/types/functions/indices.get_field_mapping.d.ts +6 -2
  101. package/types/functions/indices.get_index_template.d.ts +6 -2
  102. package/types/functions/indices.get_mapping.d.ts +6 -2
  103. package/types/functions/indices.get_settings.d.ts +6 -2
  104. package/types/functions/indices.get_template.d.ts +6 -2
  105. package/types/functions/indices.get_upgrade.d.ts +6 -2
  106. package/types/functions/indices.open.d.ts +6 -2
  107. package/types/functions/indices.put_alias.d.ts +18 -14
  108. package/types/functions/indices.put_index_template.d.ts +17 -13
  109. package/types/functions/indices.put_mapping.d.ts +21 -17
  110. package/types/functions/indices.put_settings.d.ts +6 -2
  111. package/types/functions/indices.put_template.d.ts +17 -13
  112. package/types/functions/indices.recovery.d.ts +6 -2
  113. package/types/functions/indices.refresh.d.ts +6 -2
  114. package/types/functions/indices.resolve_index.d.ts +6 -2
  115. package/types/functions/indices.rollover.d.ts +15 -11
  116. package/types/functions/indices.segments.d.ts +6 -2
  117. package/types/functions/indices.shard_stores.d.ts +6 -2
  118. package/types/functions/indices.shrink.d.ts +12 -8
  119. package/types/functions/indices.simulate_index_template.d.ts +17 -13
  120. package/types/functions/indices.simulate_template.d.ts +6 -2
  121. package/types/functions/indices.split.d.ts +13 -9
  122. package/types/functions/indices.stats.d.ts +6 -2
  123. package/types/functions/indices.update_aliases.d.ts +11 -7
  124. package/types/functions/indices.upgrade.d.ts +6 -2
  125. package/types/functions/indices.validate_query.d.ts +11 -7
  126. package/types/functions/info.d.ts +6 -2
  127. package/types/functions/ingest.delete_pipeline.d.ts +6 -2
  128. package/types/functions/ingest.get_pipeline.d.ts +6 -2
  129. package/types/functions/ingest.processor_grok.d.ts +6 -2
  130. package/types/functions/ingest.put_pipeline.d.ts +15 -11
  131. package/types/functions/ingest.simulate.d.ts +13 -9
  132. package/types/functions/knn.delete_model.d.ts +6 -2
  133. package/types/functions/knn.get_model.d.ts +6 -2
  134. package/types/functions/knn.search_models.d.ts +9 -5
  135. package/types/functions/knn.stats.d.ts +6 -2
  136. package/types/functions/knn.train_model.d.ts +13 -9
  137. package/types/functions/knn.warmup.d.ts +6 -2
  138. package/types/functions/mget.d.ts +13 -9
  139. package/types/functions/ml.delete_model.d.ts +6 -2
  140. package/types/functions/ml.delete_model_group.d.ts +6 -2
  141. package/types/functions/ml.get_model_group.d.ts +6 -2
  142. package/types/functions/ml.get_task.d.ts +6 -2
  143. package/types/functions/ml.register_model.d.ts +11 -7
  144. package/types/functions/ml.register_model_group.d.ts +11 -7
  145. package/types/functions/ml.search_models.d.ts +6 -2
  146. package/types/functions/msearch.d.ts +10 -6
  147. package/types/functions/msearch_template.d.ts +10 -6
  148. package/types/functions/mtermvectors.d.ts +13 -9
  149. package/types/functions/nodes.hot_threads.d.ts +6 -2
  150. package/types/functions/nodes.info.d.ts +6 -2
  151. package/types/functions/nodes.reload_secure_settings.d.ts +11 -7
  152. package/types/functions/nodes.stats.d.ts +6 -2
  153. package/types/functions/nodes.usage.d.ts +6 -2
  154. package/types/functions/notifications.create_config.d.ts +6 -2
  155. package/types/functions/notifications.delete_config.d.ts +6 -2
  156. package/types/functions/notifications.delete_configs.d.ts +6 -2
  157. package/types/functions/notifications.get_config.d.ts +6 -2
  158. package/types/functions/notifications.get_configs.d.ts +14 -10
  159. package/types/functions/notifications.list_channels.d.ts +6 -2
  160. package/types/functions/notifications.list_features.d.ts +6 -2
  161. package/types/functions/notifications.send_test.d.ts +6 -2
  162. package/types/functions/notifications.update_config.d.ts +6 -2
  163. package/types/functions/ping.d.ts +6 -2
  164. package/types/functions/ppl.explain.d.ts +6 -2
  165. package/types/functions/ppl.get_stats.d.ts +6 -2
  166. package/types/functions/ppl.post_stats.d.ts +6 -2
  167. package/types/functions/ppl.query.d.ts +6 -2
  168. package/types/functions/put_script.d.ts +11 -7
  169. package/types/functions/rank_eval.d.ts +12 -8
  170. package/types/functions/reindex.d.ts +16 -12
  171. package/types/functions/reindex_rethrottle.d.ts +6 -2
  172. package/types/functions/remote_store.restore.d.ts +10 -6
  173. package/types/functions/render_search_template.d.ts +12 -8
  174. package/types/functions/rollups.delete.d.ts +6 -2
  175. package/types/functions/rollups.explain.d.ts +6 -2
  176. package/types/functions/rollups.get.d.ts +6 -2
  177. package/types/functions/rollups.put.d.ts +6 -2
  178. package/types/functions/rollups.start.d.ts +6 -2
  179. package/types/functions/rollups.stop.d.ts +6 -2
  180. package/types/functions/scripts_painless_execute.d.ts +13 -9
  181. package/types/functions/scroll.d.ts +12 -8
  182. package/types/functions/search.d.ts +45 -41
  183. package/types/functions/search_pipeline.delete.d.ts +6 -2
  184. package/types/functions/search_pipeline.get.d.ts +6 -2
  185. package/types/functions/search_pipeline.put.d.ts +6 -2
  186. package/types/functions/search_shards.d.ts +6 -2
  187. package/types/functions/search_template.d.ts +15 -11
  188. package/types/functions/security.authinfo.d.ts +6 -2
  189. package/types/functions/security.authtoken.d.ts +6 -2
  190. package/types/functions/security.change_password.d.ts +6 -2
  191. package/types/functions/security.config_upgrade_check.d.ts +6 -2
  192. package/types/functions/security.config_upgrade_perform.d.ts +6 -2
  193. package/types/functions/security.create_action_group.d.ts +6 -2
  194. package/types/functions/security.create_allowlist.d.ts +6 -2
  195. package/types/functions/security.create_role.d.ts +6 -2
  196. package/types/functions/security.create_role_mapping.d.ts +6 -2
  197. package/types/functions/security.create_tenant.d.ts +6 -2
  198. package/types/functions/security.create_update_tenancy_config.d.ts +10 -6
  199. package/types/functions/security.create_user.d.ts +6 -2
  200. package/types/functions/security.create_user_legacy.d.ts +6 -2
  201. package/types/functions/security.delete_action_group.d.ts +6 -2
  202. package/types/functions/security.delete_distinguished_name.d.ts +6 -2
  203. package/types/functions/security.delete_role.d.ts +6 -2
  204. package/types/functions/security.delete_role_mapping.d.ts +6 -2
  205. package/types/functions/security.delete_tenant.d.ts +6 -2
  206. package/types/functions/security.delete_user.d.ts +6 -2
  207. package/types/functions/security.delete_user_legacy.d.ts +6 -2
  208. package/types/functions/security.flush_cache.d.ts +6 -2
  209. package/types/functions/security.generate_obo_token.d.ts +6 -2
  210. package/types/functions/security.generate_user_token.d.ts +6 -2
  211. package/types/functions/security.generate_user_token_legacy.d.ts +6 -2
  212. package/types/functions/security.get_account_details.d.ts +6 -2
  213. package/types/functions/security.get_action_group.d.ts +6 -2
  214. package/types/functions/security.get_action_groups.d.ts +6 -2
  215. package/types/functions/security.get_allowlist.d.ts +6 -2
  216. package/types/functions/security.get_audit_configuration.d.ts +6 -2
  217. package/types/functions/security.get_certificates.d.ts +6 -2
  218. package/types/functions/security.get_configuration.d.ts +6 -2
  219. package/types/functions/security.get_dashboards_info.d.ts +6 -2
  220. package/types/functions/security.get_distinguished_name.d.ts +6 -2
  221. package/types/functions/security.get_distinguished_names.d.ts +6 -2
  222. package/types/functions/security.get_permissions_info.d.ts +6 -2
  223. package/types/functions/security.get_role.d.ts +6 -2
  224. package/types/functions/security.get_role_mapping.d.ts +6 -2
  225. package/types/functions/security.get_role_mappings.d.ts +6 -2
  226. package/types/functions/security.get_roles.d.ts +6 -2
  227. package/types/functions/security.get_sslinfo.d.ts +6 -2
  228. package/types/functions/security.get_tenancy_config.d.ts +6 -2
  229. package/types/functions/security.get_tenant.d.ts +6 -2
  230. package/types/functions/security.get_tenants.d.ts +6 -2
  231. package/types/functions/security.get_user.d.ts +6 -2
  232. package/types/functions/security.get_user_legacy.d.ts +6 -2
  233. package/types/functions/security.get_users.d.ts +6 -2
  234. package/types/functions/security.get_users_legacy.d.ts +6 -2
  235. package/types/functions/security.health.d.ts +6 -2
  236. package/types/functions/security.migrate.d.ts +6 -2
  237. package/types/functions/security.patch_action_group.d.ts +10 -6
  238. package/types/functions/security.patch_action_groups.d.ts +10 -6
  239. package/types/functions/security.patch_allowlist.d.ts +10 -6
  240. package/types/functions/security.patch_audit_configuration.d.ts +10 -6
  241. package/types/functions/security.patch_configuration.d.ts +10 -6
  242. package/types/functions/security.patch_distinguished_name.d.ts +6 -2
  243. package/types/functions/security.patch_distinguished_names.d.ts +10 -6
  244. package/types/functions/security.patch_role.d.ts +10 -6
  245. package/types/functions/security.patch_role_mapping.d.ts +10 -6
  246. package/types/functions/security.patch_role_mappings.d.ts +10 -6
  247. package/types/functions/security.patch_roles.d.ts +10 -6
  248. package/types/functions/security.patch_tenant.d.ts +10 -6
  249. package/types/functions/security.patch_tenants.d.ts +10 -6
  250. package/types/functions/security.patch_user.d.ts +10 -6
  251. package/types/functions/security.patch_users.d.ts +10 -6
  252. package/types/functions/security.post_dashboards_info.d.ts +6 -2
  253. package/types/functions/security.reload_http_certificates.d.ts +6 -2
  254. package/types/functions/security.reload_transport_certificates.d.ts +6 -2
  255. package/types/functions/security.tenant_info.d.ts +6 -2
  256. package/types/functions/security.update_audit_configuration.d.ts +6 -2
  257. package/types/functions/security.update_configuration.d.ts +6 -2
  258. package/types/functions/security.update_distinguished_name.d.ts +6 -2
  259. package/types/functions/security.validate.d.ts +6 -2
  260. package/types/functions/security.who_am_i.d.ts +6 -2
  261. package/types/functions/security.who_am_i_protected.d.ts +6 -2
  262. package/types/functions/snapshot.cleanup_repository.d.ts +6 -2
  263. package/types/functions/snapshot.clone.d.ts +10 -6
  264. package/types/functions/snapshot.create.d.ts +16 -12
  265. package/types/functions/snapshot.create_repository.d.ts +13 -9
  266. package/types/functions/snapshot.delete.d.ts +6 -2
  267. package/types/functions/snapshot.delete_repository.d.ts +6 -2
  268. package/types/functions/snapshot.get.d.ts +6 -2
  269. package/types/functions/snapshot.get_repository.d.ts +6 -2
  270. package/types/functions/snapshot.restore.d.ts +20 -16
  271. package/types/functions/snapshot.status.d.ts +6 -2
  272. package/types/functions/snapshot.verify_repository.d.ts +6 -2
  273. package/types/functions/sql.close.d.ts +6 -2
  274. package/types/functions/sql.explain.d.ts +6 -2
  275. package/types/functions/sql.get_stats.d.ts +6 -2
  276. package/types/functions/sql.post_stats.d.ts +6 -2
  277. package/types/functions/sql.query.d.ts +6 -2
  278. package/types/functions/sql.settings.d.ts +10 -6
  279. package/types/functions/tasks.cancel.d.ts +6 -2
  280. package/types/functions/tasks.get.d.ts +6 -2
  281. package/types/functions/tasks.list.d.ts +6 -2
  282. package/types/functions/termvectors.d.ts +13 -9
  283. package/types/functions/transforms.delete.d.ts +6 -2
  284. package/types/functions/transforms.explain.d.ts +6 -2
  285. package/types/functions/transforms.get.d.ts +6 -2
  286. package/types/functions/transforms.preview.d.ts +6 -2
  287. package/types/functions/transforms.put.d.ts +6 -2
  288. package/types/functions/transforms.search.d.ts +6 -2
  289. package/types/functions/transforms.start.d.ts +6 -2
  290. package/types/functions/transforms.stop.d.ts +6 -2
  291. package/types/functions/update.d.ts +17 -13
  292. package/types/functions/update_by_query.d.ts +15 -11
  293. package/types/functions/update_by_query_rethrottle.d.ts +6 -2
@@ -13,11 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_Common from '../components/indices._common'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_GetSettings_Request extends Global.Params {
21
22
  allow_no_indices?: boolean;
22
23
  cluster_manager_timeout?: Common.Duration;
23
24
  expand_wildcards?: Common.ExpandWildcards;
@@ -30,5 +31,8 @@ export interface Request extends Global.Params {
30
31
  name?: Common.Names;
31
32
  }
32
33
 
33
- export type Response = Record<string, Indices_Common.IndexState>
34
+ export type Indices_GetSettings_ResponseBody = Record<string, Indices_Common.IndexState>
34
35
 
36
+ export interface Indices_GetSettings_Response extends ApiResponse {
37
+ body: Indices_GetSettings_ResponseBody
38
+ }
@@ -13,11 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_Common from '../components/indices._common'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_GetTemplate_Request extends Global.Params {
21
22
  cluster_manager_timeout?: Common.Duration;
22
23
  flat_settings?: boolean;
23
24
  local?: boolean;
@@ -25,5 +26,8 @@ export interface Request extends Global.Params {
25
26
  name?: Common.Names;
26
27
  }
27
28
 
28
- export type Response = Record<string, Indices_Common.TemplateMapping>
29
+ export type Indices_GetTemplate_ResponseBody = Record<string, Indices_Common.TemplateMapping>
29
30
 
31
+ export interface Indices_GetTemplate_Response extends ApiResponse {
32
+ body: Indices_GetTemplate_ResponseBody
33
+ }
@@ -13,15 +13,19 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
 
19
- export interface Request extends Global.Params {
20
+ export interface Indices_GetUpgrade_Request extends Global.Params {
20
21
  allow_no_indices?: boolean;
21
22
  expand_wildcards?: Common.ExpandWildcards;
22
23
  ignore_unavailable?: boolean;
23
24
  index?: string[];
24
25
  }
25
26
 
26
- export type Response = Record<string, any>
27
+ export type Indices_GetUpgrade_ResponseBody = Record<string, any>
27
28
 
29
+ export interface Indices_GetUpgrade_Response extends ApiResponse {
30
+ body: Indices_GetUpgrade_ResponseBody
31
+ }
@@ -13,10 +13,11 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
 
19
- export interface Request extends Global.Params {
20
+ export interface Indices_Open_Request extends Global.Params {
20
21
  allow_no_indices?: boolean;
21
22
  cluster_manager_timeout?: Common.Duration;
22
23
  expand_wildcards?: Common.ExpandWildcards;
@@ -29,10 +30,13 @@ export interface Request extends Global.Params {
29
30
  wait_for_completion?: boolean;
30
31
  }
31
32
 
32
- export type Response = {
33
+ export type Indices_Open_ResponseBody = {
33
34
  task?: Common.TaskId;
34
35
  } | {
35
36
  acknowledged: boolean;
36
37
  shards_acknowledged: boolean;
37
38
  }
38
39
 
40
+ export interface Indices_Open_Response extends ApiResponse {
41
+ body: Indices_Open_ResponseBody
42
+ }
@@ -13,22 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
- import * as Global from '../components/_global'
17
- import * as Common from '../components/_common'
16
+ import { ApiResponse } from '../../lib/Transport'
18
17
  import * as Common_QueryDsl from '../components/_common.query_dsl'
18
+ import * as Common from '../components/_common'
19
+ import * as Global from '../components/_global'
19
20
 
20
- export interface Request extends Global.Params {
21
- body?: RequestBody;
22
- cluster_manager_timeout?: Common.Duration;
23
- index?: Common.Indices;
24
- master_timeout?: Common.Duration;
25
- name?: Common.Name;
26
- timeout?: Common.Duration;
27
- }
28
-
29
- export type Response = Common.AcknowledgedResponseBase
30
-
31
- export interface RequestBody {
21
+ export interface Indices_PutAlias_RequestBody {
32
22
  alias?: string;
33
23
  filter?: Common_QueryDsl.QueryContainer;
34
24
  index?: string;
@@ -39,3 +29,17 @@ export interface RequestBody {
39
29
  search_routing?: Common.Routing;
40
30
  }
41
31
 
32
+ export interface Indices_PutAlias_Request extends Global.Params {
33
+ body?: Indices_PutAlias_RequestBody;
34
+ cluster_manager_timeout?: Common.Duration;
35
+ index?: Common.Indices;
36
+ master_timeout?: Common.Duration;
37
+ name?: Common.Name;
38
+ timeout?: Common.Duration;
39
+ }
40
+
41
+ export type Indices_PutAlias_ResponseBody = Common.AcknowledgedResponseBase
42
+
43
+ export interface Indices_PutAlias_Response extends ApiResponse {
44
+ body: Indices_PutAlias_ResponseBody
45
+ }
@@ -13,23 +13,13 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
- import * as Global from '../components/_global'
16
+ import { ApiResponse } from '../../lib/Transport'
17
17
  import * as Common from '../components/_common'
18
18
  import * as Indices_Common from '../components/indices._common'
19
19
  import * as Indices_PutIndexTemplate from '../components/indices.put_index_template'
20
+ import * as Global from '../components/_global'
20
21
 
21
- export interface Request extends Global.Params {
22
- body: RequestBody;
23
- cause?: string;
24
- cluster_manager_timeout?: Common.Duration;
25
- create?: boolean;
26
- master_timeout?: Common.Duration;
27
- name: Common.Name;
28
- }
29
-
30
- export type Response = Common.AcknowledgedResponseBase
31
-
32
- export interface RequestBody {
22
+ export interface Indices_PutIndexTemplate_RequestBody {
33
23
  _meta?: Common.Metadata;
34
24
  composed_of?: Common.Name[];
35
25
  data_stream?: Indices_Common.IndexTemplateDataStreamConfiguration;
@@ -39,3 +29,17 @@ export interface RequestBody {
39
29
  version?: Common.VersionNumber;
40
30
  }
41
31
 
32
+ export interface Indices_PutIndexTemplate_Request extends Global.Params {
33
+ body: Indices_PutIndexTemplate_RequestBody;
34
+ cause?: string;
35
+ cluster_manager_timeout?: Common.Duration;
36
+ create?: boolean;
37
+ master_timeout?: Common.Duration;
38
+ name: Common.Name;
39
+ }
40
+
41
+ export type Indices_PutIndexTemplate_ResponseBody = Common.AcknowledgedResponseBase
42
+
43
+ export interface Indices_PutIndexTemplate_Response extends ApiResponse {
44
+ body: Indices_PutIndexTemplate_ResponseBody
45
+ }
@@ -13,25 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
- import * as Global from '../components/_global'
17
- import * as Common from '../components/_common'
16
+ import { ApiResponse } from '../../lib/Transport'
18
17
  import * as Common_Mapping from '../components/_common.mapping'
18
+ import * as Common from '../components/_common'
19
+ import * as Global from '../components/_global'
19
20
 
20
- export interface Request extends Global.Params {
21
- allow_no_indices?: boolean;
22
- body: RequestBody;
23
- cluster_manager_timeout?: Common.Duration;
24
- expand_wildcards?: Common.ExpandWildcards;
25
- ignore_unavailable?: boolean;
26
- index: Common.Indices;
27
- master_timeout?: Common.Duration;
28
- timeout?: Common.Duration;
29
- write_index_only?: boolean;
30
- }
31
-
32
- export type Response = Common.IndicesResponseBase
33
-
34
- export interface RequestBody {
21
+ export interface Indices_PutMapping_RequestBody {
35
22
  _field_names?: Common_Mapping.FieldNamesField;
36
23
  _meta?: Common.Metadata;
37
24
  _routing?: Common_Mapping.RoutingField;
@@ -45,3 +32,20 @@ export interface RequestBody {
45
32
  runtime?: Common_Mapping.RuntimeFields;
46
33
  }
47
34
 
35
+ export interface Indices_PutMapping_Request extends Global.Params {
36
+ allow_no_indices?: boolean;
37
+ body: Indices_PutMapping_RequestBody;
38
+ cluster_manager_timeout?: Common.Duration;
39
+ expand_wildcards?: Common.ExpandWildcards;
40
+ ignore_unavailable?: boolean;
41
+ index: Common.Indices;
42
+ master_timeout?: Common.Duration;
43
+ timeout?: Common.Duration;
44
+ write_index_only?: boolean;
45
+ }
46
+
47
+ export type Indices_PutMapping_ResponseBody = Common.IndicesResponseBase
48
+
49
+ export interface Indices_PutMapping_Response extends ApiResponse {
50
+ body: Indices_PutMapping_ResponseBody
51
+ }
@@ -13,11 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Indices_Common from '../components/indices._common'
18
19
  import * as Common from '../components/_common'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_PutSettings_Request extends Global.Params {
21
22
  allow_no_indices?: boolean;
22
23
  body: Indices_Common.IndexSettings;
23
24
  cluster_manager_timeout?: Common.Duration;
@@ -30,5 +31,8 @@ export interface Request extends Global.Params {
30
31
  timeout?: Common.Duration;
31
32
  }
32
33
 
33
- export type Response = Common.AcknowledgedResponseBase
34
+ export type Indices_PutSettings_ResponseBody = Common.AcknowledgedResponseBase
34
35
 
36
+ export interface Indices_PutSettings_Response extends ApiResponse {
37
+ body: Indices_PutSettings_ResponseBody
38
+ }
@@ -13,13 +13,23 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
- import * as Global from '../components/_global'
17
- import * as Common from '../components/_common'
16
+ import { ApiResponse } from '../../lib/Transport'
18
17
  import * as Indices_Common from '../components/indices._common'
19
18
  import * as Common_Mapping from '../components/_common.mapping'
19
+ import * as Common from '../components/_common'
20
+ import * as Global from '../components/_global'
20
21
 
21
- export interface Request extends Global.Params {
22
- body: RequestBody;
22
+ export interface Indices_PutTemplate_RequestBody {
23
+ aliases?: Record<string, Indices_Common.Alias>;
24
+ index_patterns?: string | string[];
25
+ mappings?: Common_Mapping.TypeMapping;
26
+ order?: number;
27
+ settings?: Record<string, Record<string, any>>;
28
+ version?: Common.VersionNumber;
29
+ }
30
+
31
+ export interface Indices_PutTemplate_Request extends Global.Params {
32
+ body: Indices_PutTemplate_RequestBody;
23
33
  cluster_manager_timeout?: Common.Duration;
24
34
  create?: boolean;
25
35
  master_timeout?: Common.Duration;
@@ -27,14 +37,8 @@ export interface Request extends Global.Params {
27
37
  order?: number;
28
38
  }
29
39
 
30
- export type Response = Common.AcknowledgedResponseBase
40
+ export type Indices_PutTemplate_ResponseBody = Common.AcknowledgedResponseBase
31
41
 
32
- export interface RequestBody {
33
- aliases?: Record<string, Indices_Common.Alias>;
34
- index_patterns?: string | string[];
35
- mappings?: Common_Mapping.TypeMapping;
36
- order?: number;
37
- settings?: Record<string, Record<string, any>>;
38
- version?: Common.VersionNumber;
42
+ export interface Indices_PutTemplate_Response extends ApiResponse {
43
+ body: Indices_PutTemplate_ResponseBody
39
44
  }
40
-
@@ -13,15 +13,19 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_Recovery from '../components/indices.recovery'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_Recovery_Request extends Global.Params {
21
22
  active_only?: boolean;
22
23
  detailed?: boolean;
23
24
  index?: Common.Indices;
24
25
  }
25
26
 
26
- export type Response = Record<string, Indices_Recovery.RecoveryStatus>
27
+ export type Indices_Recovery_ResponseBody = Record<string, Indices_Recovery.RecoveryStatus>
27
28
 
29
+ export interface Indices_Recovery_Response extends ApiResponse {
30
+ body: Indices_Recovery_ResponseBody
31
+ }
@@ -13,15 +13,19 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
 
19
- export interface Request extends Global.Params {
20
+ export interface Indices_Refresh_Request extends Global.Params {
20
21
  allow_no_indices?: boolean;
21
22
  expand_wildcards?: Common.ExpandWildcards;
22
23
  ignore_unavailable?: boolean;
23
24
  index?: Common.Indices;
24
25
  }
25
26
 
26
- export type Response = Common.ShardsOperationResponseBase
27
+ export type Indices_Refresh_ResponseBody = Common.ShardsOperationResponseBase
27
28
 
29
+ export interface Indices_Refresh_Response extends ApiResponse {
30
+ body: Indices_Refresh_ResponseBody
31
+ }
@@ -13,18 +13,22 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_ResolveIndex from '../components/indices.resolve_index'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_ResolveIndex_Request extends Global.Params {
21
22
  expand_wildcards?: Common.ExpandWildcards;
22
23
  name: Common.Names;
23
24
  }
24
25
 
25
- export interface Response {
26
+ export interface Indices_ResolveIndex_ResponseBody {
26
27
  aliases: Indices_ResolveIndex.ResolveIndexAliasItem[];
27
28
  data_streams: Indices_ResolveIndex.ResolveIndexDataStreamsItem[];
28
29
  indices: Indices_ResolveIndex.ResolveIndexItem[];
29
30
  }
30
31
 
32
+ export interface Indices_ResolveIndex_Response extends ApiResponse {
33
+ body: Indices_ResolveIndex_ResponseBody
34
+ }
@@ -13,15 +13,23 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
- import * as Global from '../components/_global'
17
- import * as Common from '../components/_common'
16
+ import { ApiResponse } from '../../lib/Transport'
18
17
  import * as Indices_Common from '../components/indices._common'
19
18
  import * as Indices_Rollover from '../components/indices.rollover'
20
19
  import * as Common_Mapping from '../components/_common.mapping'
20
+ import * as Global from '../components/_global'
21
+ import * as Common from '../components/_common'
21
22
 
22
- export interface Request extends Global.Params {
23
+ export interface Indices_Rollover_RequestBody {
24
+ aliases?: Record<string, Indices_Common.Alias>;
25
+ conditions?: Indices_Rollover.RolloverConditions;
26
+ mappings?: Common_Mapping.TypeMapping;
27
+ settings?: Record<string, Record<string, any>>;
28
+ }
29
+
30
+ export interface Indices_Rollover_Request extends Global.Params {
23
31
  alias: Common.IndexAlias;
24
- body?: RequestBody;
32
+ body?: Indices_Rollover_RequestBody;
25
33
  cluster_manager_timeout?: Common.Duration;
26
34
  dry_run?: boolean;
27
35
  master_timeout?: Common.Duration;
@@ -30,7 +38,7 @@ export interface Request extends Global.Params {
30
38
  wait_for_active_shards?: Common.WaitForActiveShards;
31
39
  }
32
40
 
33
- export interface Response {
41
+ export interface Indices_Rollover_ResponseBody {
34
42
  acknowledged: boolean;
35
43
  conditions: Record<string, boolean>;
36
44
  dry_run: boolean;
@@ -40,10 +48,6 @@ export interface Response {
40
48
  shards_acknowledged: boolean;
41
49
  }
42
50
 
43
- export interface RequestBody {
44
- aliases?: Record<string, Indices_Common.Alias>;
45
- conditions?: Indices_Rollover.RolloverConditions;
46
- mappings?: Common_Mapping.TypeMapping;
47
- settings?: Record<string, Record<string, any>>;
51
+ export interface Indices_Rollover_Response extends ApiResponse {
52
+ body: Indices_Rollover_ResponseBody
48
53
  }
49
-
@@ -13,11 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_Segments from '../components/indices.segments'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_Segments_Request extends Global.Params {
21
22
  allow_no_indices?: boolean;
22
23
  expand_wildcards?: Common.ExpandWildcards;
23
24
  ignore_unavailable?: boolean;
@@ -25,8 +26,11 @@ export interface Request extends Global.Params {
25
26
  verbose?: boolean;
26
27
  }
27
28
 
28
- export interface Response {
29
+ export interface Indices_Segments_ResponseBody {
29
30
  _shards: Common.ShardStatistics;
30
31
  indices: Record<string, Indices_Segments.IndexSegment>;
31
32
  }
32
33
 
34
+ export interface Indices_Segments_Response extends ApiResponse {
35
+ body: Indices_Segments_ResponseBody
36
+ }
@@ -13,11 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_ShardStores from '../components/indices.shard_stores'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_ShardStores_Request extends Global.Params {
21
22
  allow_no_indices?: boolean;
22
23
  expand_wildcards?: Common.ExpandWildcards;
23
24
  ignore_unavailable?: boolean;
@@ -25,7 +26,10 @@ export interface Request extends Global.Params {
25
26
  status?: Indices_ShardStores.ShardStoreStatus | Indices_ShardStores.ShardStoreStatus[];
26
27
  }
27
28
 
28
- export interface Response {
29
+ export interface Indices_ShardStores_ResponseBody {
29
30
  indices: Record<string, Indices_ShardStores.IndicesShardStores>;
30
31
  }
31
32
 
33
+ export interface Indices_ShardStores_Response extends ApiResponse {
34
+ body: Indices_ShardStores_ResponseBody
35
+ }
@@ -13,12 +13,18 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
17
+ import * as Indices_Common from '../components/indices._common'
16
18
  import * as Global from '../components/_global'
17
19
  import * as Common from '../components/_common'
18
- import * as Indices_Common from '../components/indices._common'
19
20
 
20
- export interface Request extends Global.Params {
21
- body?: RequestBody;
21
+ export interface Indices_Shrink_RequestBody {
22
+ aliases?: Record<string, Indices_Common.Alias>;
23
+ settings?: Record<string, Record<string, any>>;
24
+ }
25
+
26
+ export interface Indices_Shrink_Request extends Global.Params {
27
+ body?: Indices_Shrink_RequestBody;
22
28
  cluster_manager_timeout?: Common.Duration;
23
29
  copy_settings?: boolean;
24
30
  index: Common.IndexName;
@@ -30,14 +36,12 @@ export interface Request extends Global.Params {
30
36
  wait_for_completion?: boolean;
31
37
  }
32
38
 
33
- export interface Response {
39
+ export interface Indices_Shrink_ResponseBody {
34
40
  acknowledged: boolean;
35
41
  index: Common.IndexName;
36
42
  shards_acknowledged: boolean;
37
43
  }
38
44
 
39
- export interface RequestBody {
40
- aliases?: Record<string, Indices_Common.Alias>;
41
- settings?: Record<string, Record<string, any>>;
45
+ export interface Indices_Shrink_Response extends ApiResponse {
46
+ body: Indices_Shrink_ResponseBody
42
47
  }
43
-
@@ -13,23 +13,13 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
- import * as Global from '../components/_global'
16
+ import { ApiResponse } from '../../lib/Transport'
17
17
  import * as Common from '../components/_common'
18
18
  import * as Indices_Common from '../components/indices._common'
19
19
  import * as Indices_PutIndexTemplate from '../components/indices.put_index_template'
20
+ import * as Global from '../components/_global'
20
21
 
21
- export interface Request extends Global.Params {
22
- body?: RequestBody;
23
- cause?: string;
24
- cluster_manager_timeout?: Common.Duration;
25
- create?: boolean;
26
- master_timeout?: Common.Duration;
27
- name: Common.Name;
28
- }
29
-
30
- export type Response = Record<string, any>
31
-
32
- export interface RequestBody {
22
+ export interface Indices_SimulateIndexTemplate_RequestBody {
33
23
  _meta?: Common.Metadata;
34
24
  allow_auto_create?: boolean;
35
25
  composed_of?: Common.Name[];
@@ -40,3 +30,17 @@ export interface RequestBody {
40
30
  version?: Common.VersionNumber;
41
31
  }
42
32
 
33
+ export interface Indices_SimulateIndexTemplate_Request extends Global.Params {
34
+ body?: Indices_SimulateIndexTemplate_RequestBody;
35
+ cause?: string;
36
+ cluster_manager_timeout?: Common.Duration;
37
+ create?: boolean;
38
+ master_timeout?: Common.Duration;
39
+ name: Common.Name;
40
+ }
41
+
42
+ export type Indices_SimulateIndexTemplate_ResponseBody = Record<string, any>
43
+
44
+ export interface Indices_SimulateIndexTemplate_Response extends ApiResponse {
45
+ body: Indices_SimulateIndexTemplate_ResponseBody
46
+ }
@@ -13,12 +13,13 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Indices_Common from '../components/indices._common'
18
19
  import * as Common from '../components/_common'
19
20
  import * as Indices_SimulateTemplate from '../components/indices.simulate_template'
20
21
 
21
- export interface Request extends Global.Params {
22
+ export interface Indices_SimulateTemplate_Request extends Global.Params {
22
23
  body?: Indices_Common.IndexTemplate;
23
24
  cause?: string;
24
25
  cluster_manager_timeout?: Common.Duration;
@@ -27,8 +28,11 @@ export interface Request extends Global.Params {
27
28
  name?: Common.Name;
28
29
  }
29
30
 
30
- export interface Response {
31
+ export interface Indices_SimulateTemplate_ResponseBody {
31
32
  overlapping?: Indices_SimulateTemplate.Overlapping[];
32
33
  template: Indices_SimulateTemplate.Template;
33
34
  }
34
35
 
36
+ export interface Indices_SimulateTemplate_Response extends ApiResponse {
37
+ body: Indices_SimulateTemplate_ResponseBody
38
+ }
@@ -13,12 +13,19 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
17
+ import * as Indices_Common from '../components/indices._common'
16
18
  import * as Global from '../components/_global'
17
19
  import * as Common from '../components/_common'
18
- import * as Indices_Common from '../components/indices._common'
19
20
 
20
- export interface Request extends Global.Params {
21
- body?: RequestBody;
21
+ export interface Indices_Split_RequestBody {
22
+ aliases?: Record<string, Indices_Common.Alias>;
23
+ settings?: {
24
+ };
25
+ }
26
+
27
+ export interface Indices_Split_Request extends Global.Params {
28
+ body?: Indices_Split_RequestBody;
22
29
  cluster_manager_timeout?: Common.Duration;
23
30
  copy_settings?: boolean;
24
31
  index: Common.IndexName;
@@ -30,15 +37,12 @@ export interface Request extends Global.Params {
30
37
  wait_for_completion?: boolean;
31
38
  }
32
39
 
33
- export interface Response {
40
+ export interface Indices_Split_ResponseBody {
34
41
  acknowledged: boolean;
35
42
  index: Common.IndexName;
36
43
  shards_acknowledged: boolean;
37
44
  }
38
45
 
39
- export interface RequestBody {
40
- aliases?: Record<string, Indices_Common.Alias>;
41
- settings?: {
42
- };
46
+ export interface Indices_Split_Response extends ApiResponse {
47
+ body: Indices_Split_ResponseBody
43
48
  }
44
-
@@ -13,11 +13,12 @@
13
13
  * the API generator.
14
14
  */
15
15
 
16
+ import { ApiResponse } from '../../lib/Transport'
16
17
  import * as Global from '../components/_global'
17
18
  import * as Common from '../components/_common'
18
19
  import * as Indices_Stats from '../components/indices.stats'
19
20
 
20
- export interface Request extends Global.Params {
21
+ export interface Indices_Stats_Request extends Global.Params {
21
22
  completion_fields?: Common.Fields;
22
23
  expand_wildcards?: Common.ExpandWildcards;
23
24
  fielddata_fields?: Common.Fields;
@@ -31,9 +32,12 @@ export interface Request extends Global.Params {
31
32
  metric?: Common.Metrics;
32
33
  }
33
34
 
34
- export interface Response {
35
+ export interface Indices_Stats_ResponseBody {
35
36
  _all: Indices_Stats.IndicesStats;
36
37
  _shards: Common.ShardStatistics;
37
38
  indices?: Record<string, Indices_Stats.IndicesStats>;
38
39
  }
39
40
 
41
+ export interface Indices_Stats_Response extends ApiResponse {
42
+ body: Indices_Stats_ResponseBody
43
+ }