@elastic/elasticsearch 8.14.1 → 8.15.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 (108) hide show
  1. package/catalog-info.yaml +9 -9
  2. package/lib/api/api/async_search.d.ts +8 -8
  3. package/lib/api/api/autoscaling.d.ts +4 -4
  4. package/lib/api/api/bulk.d.ts +2 -2
  5. package/lib/api/api/capabilities.d.ts +14 -0
  6. package/lib/api/api/capabilities.js +42 -0
  7. package/lib/api/api/capabilities.js.map +1 -0
  8. package/lib/api/api/cat.d.ts +51 -51
  9. package/lib/api/api/ccr.d.ts +13 -13
  10. package/lib/api/api/clear_scroll.d.ts +2 -2
  11. package/lib/api/api/close_point_in_time.d.ts +2 -2
  12. package/lib/api/api/cluster.d.ts +24 -24
  13. package/lib/api/api/connector.d.ts +67 -53
  14. package/lib/api/api/connector.js +59 -3
  15. package/lib/api/api/connector.js.map +1 -1
  16. package/lib/api/api/count.d.ts +1 -1
  17. package/lib/api/api/create.d.ts +2 -2
  18. package/lib/api/api/dangling_indices.d.ts +3 -3
  19. package/lib/api/api/delete.d.ts +2 -2
  20. package/lib/api/api/delete_by_query.d.ts +2 -2
  21. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  22. package/lib/api/api/delete_script.d.ts +2 -2
  23. package/lib/api/api/enrich.d.ts +8 -8
  24. package/lib/api/api/eql.d.ts +7 -7
  25. package/lib/api/api/esql.d.ts +4 -4
  26. package/lib/api/api/exists.d.ts +2 -2
  27. package/lib/api/api/exists_source.d.ts +2 -2
  28. package/lib/api/api/explain.d.ts +2 -2
  29. package/lib/api/api/features.d.ts +2 -2
  30. package/lib/api/api/field_caps.d.ts +2 -2
  31. package/lib/api/api/fleet.d.ts +3 -3
  32. package/lib/api/api/get.d.ts +1 -1
  33. package/lib/api/api/get_script.d.ts +2 -2
  34. package/lib/api/api/get_script_context.d.ts +1 -1
  35. package/lib/api/api/get_script_languages.d.ts +1 -1
  36. package/lib/api/api/get_source.d.ts +1 -1
  37. package/lib/api/api/graph.d.ts +2 -2
  38. package/lib/api/api/health_report.d.ts +1 -1
  39. package/lib/api/api/ilm.d.ts +16 -16
  40. package/lib/api/api/index.d.ts +2 -2
  41. package/lib/api/api/indices.d.ts +111 -111
  42. package/lib/api/api/inference.d.ts +17 -17
  43. package/lib/api/api/inference.js +8 -7
  44. package/lib/api/api/inference.js.map +1 -1
  45. package/lib/api/api/info.d.ts +1 -1
  46. package/lib/api/api/ingest.d.ts +33 -12
  47. package/lib/api/api/ingest.js +77 -0
  48. package/lib/api/api/ingest.js.map +1 -1
  49. package/lib/api/api/knn_search.d.ts +1 -1
  50. package/lib/api/api/license.d.ts +10 -10
  51. package/lib/api/api/logstash.d.ts +6 -6
  52. package/lib/api/api/mget.d.ts +1 -1
  53. package/lib/api/api/migration.d.ts +3 -3
  54. package/lib/api/api/ml.d.ts +131 -131
  55. package/lib/api/api/monitoring.d.ts +1 -1
  56. package/lib/api/api/msearch.d.ts +1 -1
  57. package/lib/api/api/msearch_template.d.ts +2 -2
  58. package/lib/api/api/mtermvectors.d.ts +1 -1
  59. package/lib/api/api/nodes.d.ts +14 -14
  60. package/lib/api/api/open_point_in_time.d.ts +2 -2
  61. package/lib/api/api/ping.d.ts +1 -1
  62. package/lib/api/api/profiling.d.ts +4 -4
  63. package/lib/api/api/put_script.d.ts +2 -2
  64. package/lib/api/api/query_rules.d.ts +60 -0
  65. package/lib/api/api/{query_ruleset.js → query_rules.js} +97 -11
  66. package/lib/api/api/query_rules.js.map +1 -0
  67. package/lib/api/api/rank_eval.d.ts +2 -2
  68. package/lib/api/api/reindex.d.ts +1 -1
  69. package/lib/api/api/reindex_rethrottle.d.ts +2 -2
  70. package/lib/api/api/render_search_template.d.ts +2 -2
  71. package/lib/api/api/rollup.d.ts +10 -10
  72. package/lib/api/api/scripts_painless_execute.d.ts +2 -2
  73. package/lib/api/api/scroll.d.ts +1 -1
  74. package/lib/api/api/search.d.ts +2 -2
  75. package/lib/api/api/search_application.d.ts +11 -11
  76. package/lib/api/api/search_mvt.d.ts +1 -1
  77. package/lib/api/api/search_shards.d.ts +1 -1
  78. package/lib/api/api/search_template.d.ts +2 -2
  79. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  80. package/lib/api/api/security.d.ts +108 -87
  81. package/lib/api/api/security.js +121 -3
  82. package/lib/api/api/security.js.map +1 -1
  83. package/lib/api/api/simulate.d.ts +1 -1
  84. package/lib/api/api/slm.d.ts +9 -9
  85. package/lib/api/api/snapshot.d.ts +13 -13
  86. package/lib/api/api/sql.d.ts +6 -6
  87. package/lib/api/api/ssl.d.ts +1 -1
  88. package/lib/api/api/synonyms.d.ts +8 -8
  89. package/lib/api/api/tasks.d.ts +4 -4
  90. package/lib/api/api/terms_enum.d.ts +1 -1
  91. package/lib/api/api/termvectors.d.ts +1 -1
  92. package/lib/api/api/text_structure.d.ts +4 -4
  93. package/lib/api/api/transform.d.ts +26 -19
  94. package/lib/api/api/transform.js +20 -0
  95. package/lib/api/api/transform.js.map +1 -1
  96. package/lib/api/api/update.d.ts +1 -1
  97. package/lib/api/api/update_by_query.d.ts +2 -2
  98. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  99. package/lib/api/api/watcher.d.ts +14 -14
  100. package/lib/api/api/xpack.d.ts +4 -4
  101. package/lib/api/index.d.ts +6 -4
  102. package/lib/api/index.js +8 -6
  103. package/lib/api/index.js.map +1 -1
  104. package/lib/api/types.d.ts +418 -215
  105. package/lib/api/typesWithBodyKey.d.ts +434 -216
  106. package/package.json +3 -3
  107. package/lib/api/api/query_ruleset.d.ts +0 -39
  108. package/lib/api/api/query_ruleset.js.map +0 -1
@@ -9,7 +9,7 @@ export default class Monitoring {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Used by the monitoring features to send monitoring data.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/monitor-elasticsearch-cluster.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/monitor-elasticsearch-cluster.html | Elasticsearch API documentation}
13
13
  */
14
14
  bulk<TDocument = unknown, TPartialDocument = unknown>(this: That, params: T.MonitoringBulkRequest<TDocument, TPartialDocument> | TB.MonitoringBulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.MonitoringBulkResponse>;
15
15
  bulk<TDocument = unknown, TPartialDocument = unknown>(this: That, params: T.MonitoringBulkRequest<TDocument, TPartialDocument> | TB.MonitoringBulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MonitoringBulkResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Allows to execute several search operations in one request.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-multi-search.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-multi-search.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function MsearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.MsearchRequest | TB.MsearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MsearchResponse<TDocument, TAggregations>>;
12
12
  export default function MsearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.MsearchRequest | TB.MsearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MsearchResponse<TDocument, TAggregations>, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Allows to execute several search template operations in one request.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-multi-search.html | Elasticsearch API documentation}
8
+ * Runs multiple templated searches with a single request.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-multi-search.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function MsearchTemplateApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.MsearchTemplateRequest | TB.MsearchTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MsearchTemplateResponse<TDocument, TAggregations>>;
12
12
  export default function MsearchTemplateApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.MsearchTemplateRequest | TB.MsearchTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MsearchTemplateResponse<TDocument, TAggregations>, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns multiple termvectors in one request.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-multi-termvectors.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-multi-termvectors.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function MtermvectorsApi(this: That, params?: T.MtermvectorsRequest | TB.MtermvectorsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MtermvectorsResponse>;
12
12
  export default function MtermvectorsApi(this: That, params?: T.MtermvectorsRequest | TB.MtermvectorsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MtermvectorsResponse, unknown>>;
@@ -8,50 +8,50 @@ export default class Nodes {
8
8
  transport: Transport;
9
9
  constructor(transport: Transport);
10
10
  /**
11
- * Removes the archived repositories metering information present in the cluster.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/clear-repositories-metering-archive-api.html | Elasticsearch API documentation}
11
+ * You can use this API to clear the archived repositories metering information in the cluster.
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/clear-repositories-metering-archive-api.html | Elasticsearch API documentation}
13
13
  */
14
14
  clearRepositoriesMeteringArchive(this: That, params: T.NodesClearRepositoriesMeteringArchiveRequest | TB.NodesClearRepositoriesMeteringArchiveRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesClearRepositoriesMeteringArchiveResponse>;
15
15
  clearRepositoriesMeteringArchive(this: That, params: T.NodesClearRepositoriesMeteringArchiveRequest | TB.NodesClearRepositoriesMeteringArchiveRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesClearRepositoriesMeteringArchiveResponse, unknown>>;
16
16
  clearRepositoriesMeteringArchive(this: That, params: T.NodesClearRepositoriesMeteringArchiveRequest | TB.NodesClearRepositoriesMeteringArchiveRequest, options?: TransportRequestOptions): Promise<T.NodesClearRepositoriesMeteringArchiveResponse>;
17
17
  /**
18
- * Returns cluster repositories metering information.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-repositories-metering-api.html | Elasticsearch API documentation}
18
+ * You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the information needed to compute aggregations over a period of time. Additionally, the information exposed by this API is volatile, meaning that it won’t be present after node restarts.
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-repositories-metering-api.html | Elasticsearch API documentation}
20
20
  */
21
21
  getRepositoriesMeteringInfo(this: That, params: T.NodesGetRepositoriesMeteringInfoRequest | TB.NodesGetRepositoriesMeteringInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesGetRepositoriesMeteringInfoResponse>;
22
22
  getRepositoriesMeteringInfo(this: That, params: T.NodesGetRepositoriesMeteringInfoRequest | TB.NodesGetRepositoriesMeteringInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesGetRepositoriesMeteringInfoResponse, unknown>>;
23
23
  getRepositoriesMeteringInfo(this: That, params: T.NodesGetRepositoriesMeteringInfoRequest | TB.NodesGetRepositoriesMeteringInfoRequest, options?: TransportRequestOptions): Promise<T.NodesGetRepositoriesMeteringInfoResponse>;
24
24
  /**
25
- * Returns information about hot threads on each node in the cluster.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-hot-threads.html | Elasticsearch API documentation}
25
+ * This API yields a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of each node’s top hot threads.
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-nodes-hot-threads.html | Elasticsearch API documentation}
27
27
  */
28
28
  hotThreads(this: That, params?: T.NodesHotThreadsRequest | TB.NodesHotThreadsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesHotThreadsResponse>;
29
29
  hotThreads(this: That, params?: T.NodesHotThreadsRequest | TB.NodesHotThreadsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesHotThreadsResponse, unknown>>;
30
30
  hotThreads(this: That, params?: T.NodesHotThreadsRequest | TB.NodesHotThreadsRequest, options?: TransportRequestOptions): Promise<T.NodesHotThreadsResponse>;
31
31
  /**
32
- * Returns information about nodes in the cluster.
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-info.html | Elasticsearch API documentation}
32
+ * Returns cluster nodes information.
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-nodes-info.html | Elasticsearch API documentation}
34
34
  */
35
35
  info(this: That, params?: T.NodesInfoRequest | TB.NodesInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesInfoResponse>;
36
36
  info(this: That, params?: T.NodesInfoRequest | TB.NodesInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesInfoResponse, unknown>>;
37
37
  info(this: That, params?: T.NodesInfoRequest | TB.NodesInfoRequest, options?: TransportRequestOptions): Promise<T.NodesInfoResponse>;
38
38
  /**
39
- * Reloads secure settings.
40
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/secure-settings.html#reloadable-secure-settings | Elasticsearch API documentation}
39
+ * Reloads the keystore on nodes in the cluster.
40
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/secure-settings.html#reloadable-secure-settings | Elasticsearch API documentation}
41
41
  */
42
42
  reloadSecureSettings(this: That, params?: T.NodesReloadSecureSettingsRequest | TB.NodesReloadSecureSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesReloadSecureSettingsResponse>;
43
43
  reloadSecureSettings(this: That, params?: T.NodesReloadSecureSettingsRequest | TB.NodesReloadSecureSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesReloadSecureSettingsResponse, unknown>>;
44
44
  reloadSecureSettings(this: That, params?: T.NodesReloadSecureSettingsRequest | TB.NodesReloadSecureSettingsRequest, options?: TransportRequestOptions): Promise<T.NodesReloadSecureSettingsResponse>;
45
45
  /**
46
- * Returns statistical information about nodes in the cluster.
47
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-stats.html | Elasticsearch API documentation}
46
+ * Returns cluster nodes statistics.
47
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-nodes-stats.html | Elasticsearch API documentation}
48
48
  */
49
49
  stats(this: That, params?: T.NodesStatsRequest | TB.NodesStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesStatsResponse>;
50
50
  stats(this: That, params?: T.NodesStatsRequest | TB.NodesStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesStatsResponse, unknown>>;
51
51
  stats(this: That, params?: T.NodesStatsRequest | TB.NodesStatsRequest, options?: TransportRequestOptions): Promise<T.NodesStatsResponse>;
52
52
  /**
53
- * Returns low-level information about REST actions usage on nodes.
54
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/cluster-nodes-usage.html | Elasticsearch API documentation}
53
+ * Returns information on the usage of features.
54
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-nodes-usage.html | Elasticsearch API documentation}
55
55
  */
56
56
  usage(this: That, params?: T.NodesUsageRequest | TB.NodesUsageRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.NodesUsageResponse>;
57
57
  usage(this: That, params?: T.NodesUsageRequest | TB.NodesUsageRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.NodesUsageResponse, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Open a point in time that can be used in subsequent searches
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/point-in-time-api.html | Elasticsearch API documentation}
8
+ * A search request by default executes against the most recent visible data of the target indices, which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple search requests using the same point in time. For example, if refreshes happen between `search_after` requests, then the results of those requests might not be consistent as changes happening between searches are only visible to the more recent point in time.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/point-in-time-api.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function OpenPointInTimeApi(this: That, params: T.OpenPointInTimeRequest | TB.OpenPointInTimeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.OpenPointInTimeResponse>;
12
12
  export default function OpenPointInTimeApi(this: That, params: T.OpenPointInTimeRequest | TB.OpenPointInTimeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.OpenPointInTimeResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns whether the cluster is running.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/index.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/index.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function PingApi(this: That, params?: T.PingRequest | TB.PingRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.PingResponse>;
12
12
  export default function PingApi(this: That, params?: T.PingRequest | TB.PingRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.PingResponse, unknown>>;
@@ -9,28 +9,28 @@ export default class Profiling {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Extracts a UI-optimized structure to render flamegraphs from Universal Profiling.
12
- * @see {@link https://www.elastic.co/guide/en/observability/8.14/universal-profiling.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/observability/8.15/universal-profiling.html | Elasticsearch API documentation}
13
13
  */
14
14
  flamegraph(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
15
15
  flamegraph(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
16
16
  flamegraph(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
17
17
  /**
18
18
  * Extracts raw stacktrace information from Universal Profiling.
19
- * @see {@link https://www.elastic.co/guide/en/observability/8.14/universal-profiling.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/observability/8.15/universal-profiling.html | Elasticsearch API documentation}
20
20
  */
21
21
  stacktraces(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
22
22
  stacktraces(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
23
23
  stacktraces(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
24
24
  /**
25
25
  * Returns basic information about the status of Universal Profiling.
26
- * @see {@link https://www.elastic.co/guide/en/observability/8.14/universal-profiling.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/observability/8.15/universal-profiling.html | Elasticsearch API documentation}
27
27
  */
28
28
  status(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
29
29
  status(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
30
30
  status(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
31
31
  /**
32
32
  * Extracts a list of topN functions from Universal Profiling.
33
- * @see {@link https://www.elastic.co/guide/en/observability/8.14/universal-profiling.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/guide/en/observability/8.15/universal-profiling.html | Elasticsearch API documentation}
34
34
  */
35
35
  topnFunctions(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
36
36
  topnFunctions(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Creates or updates a script.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/modules-scripting.html | Elasticsearch API documentation}
8
+ * Creates or updates a stored script or search template.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-scripting.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function PutScriptApi(this: That, params: T.PutScriptRequest | TB.PutScriptRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.PutScriptResponse>;
12
12
  export default function PutScriptApi(this: That, params: T.PutScriptRequest | TB.PutScriptRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.PutScriptResponse, unknown>>;
@@ -0,0 +1,60 @@
1
+ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
2
+ import * as T from '../types';
3
+ import * as TB from '../typesWithBodyKey';
4
+ interface That {
5
+ transport: Transport;
6
+ }
7
+ export default class QueryRules {
8
+ transport: Transport;
9
+ constructor(transport: Transport);
10
+ /**
11
+ * Deletes a query rule within a query ruleset.
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-query-rule.html | Elasticsearch API documentation}
13
+ */
14
+ deleteRule(this: That, params: T.QueryRulesDeleteRuleRequest | TB.QueryRulesDeleteRuleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesDeleteRuleResponse>;
15
+ deleteRule(this: That, params: T.QueryRulesDeleteRuleRequest | TB.QueryRulesDeleteRuleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesDeleteRuleResponse, unknown>>;
16
+ deleteRule(this: That, params: T.QueryRulesDeleteRuleRequest | TB.QueryRulesDeleteRuleRequest, options?: TransportRequestOptions): Promise<T.QueryRulesDeleteRuleResponse>;
17
+ /**
18
+ * Deletes a query ruleset.
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-query-ruleset.html | Elasticsearch API documentation}
20
+ */
21
+ deleteRuleset(this: That, params: T.QueryRulesDeleteRulesetRequest | TB.QueryRulesDeleteRulesetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesDeleteRulesetResponse>;
22
+ deleteRuleset(this: That, params: T.QueryRulesDeleteRulesetRequest | TB.QueryRulesDeleteRulesetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesDeleteRulesetResponse, unknown>>;
23
+ deleteRuleset(this: That, params: T.QueryRulesDeleteRulesetRequest | TB.QueryRulesDeleteRulesetRequest, options?: TransportRequestOptions): Promise<T.QueryRulesDeleteRulesetResponse>;
24
+ /**
25
+ * Returns the details about a query rule within a query ruleset
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-query-rule.html | Elasticsearch API documentation}
27
+ */
28
+ getRule(this: That, params: T.QueryRulesGetRuleRequest | TB.QueryRulesGetRuleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesGetRuleResponse>;
29
+ getRule(this: That, params: T.QueryRulesGetRuleRequest | TB.QueryRulesGetRuleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesGetRuleResponse, unknown>>;
30
+ getRule(this: That, params: T.QueryRulesGetRuleRequest | TB.QueryRulesGetRuleRequest, options?: TransportRequestOptions): Promise<T.QueryRulesGetRuleResponse>;
31
+ /**
32
+ * Returns the details about a query ruleset
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-query-ruleset.html | Elasticsearch API documentation}
34
+ */
35
+ getRuleset(this: That, params: T.QueryRulesGetRulesetRequest | TB.QueryRulesGetRulesetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesGetRulesetResponse>;
36
+ getRuleset(this: That, params: T.QueryRulesGetRulesetRequest | TB.QueryRulesGetRulesetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesGetRulesetResponse, unknown>>;
37
+ getRuleset(this: That, params: T.QueryRulesGetRulesetRequest | TB.QueryRulesGetRulesetRequest, options?: TransportRequestOptions): Promise<T.QueryRulesGetRulesetResponse>;
38
+ /**
39
+ * Returns summarized information about existing query rulesets.
40
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/list-query-rulesets.html | Elasticsearch API documentation}
41
+ */
42
+ listRulesets(this: That, params?: T.QueryRulesListRulesetsRequest | TB.QueryRulesListRulesetsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesListRulesetsResponse>;
43
+ listRulesets(this: That, params?: T.QueryRulesListRulesetsRequest | TB.QueryRulesListRulesetsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesListRulesetsResponse, unknown>>;
44
+ listRulesets(this: That, params?: T.QueryRulesListRulesetsRequest | TB.QueryRulesListRulesetsRequest, options?: TransportRequestOptions): Promise<T.QueryRulesListRulesetsResponse>;
45
+ /**
46
+ * Creates or updates a query rule within a query ruleset.
47
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-query-rule.html | Elasticsearch API documentation}
48
+ */
49
+ putRule(this: That, params: T.QueryRulesPutRuleRequest | TB.QueryRulesPutRuleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesPutRuleResponse>;
50
+ putRule(this: That, params: T.QueryRulesPutRuleRequest | TB.QueryRulesPutRuleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesPutRuleResponse, unknown>>;
51
+ putRule(this: That, params: T.QueryRulesPutRuleRequest | TB.QueryRulesPutRuleRequest, options?: TransportRequestOptions): Promise<T.QueryRulesPutRuleResponse>;
52
+ /**
53
+ * Creates or updates a query ruleset.
54
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-query-ruleset.html | Elasticsearch API documentation}
55
+ */
56
+ putRuleset(this: That, params: T.QueryRulesPutRulesetRequest | TB.QueryRulesPutRulesetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesPutRulesetResponse>;
57
+ putRuleset(this: That, params: T.QueryRulesPutRulesetRequest | TB.QueryRulesPutRulesetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesPutRulesetResponse, unknown>>;
58
+ putRuleset(this: That, params: T.QueryRulesPutRulesetRequest | TB.QueryRulesPutRulesetRequest, options?: TransportRequestOptions): Promise<T.QueryRulesPutRulesetResponse>;
59
+ }
60
+ export {};
@@ -18,7 +18,7 @@
18
18
  * under the License.
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- class QueryRuleset {
21
+ class QueryRules {
22
22
  constructor(transport) {
23
23
  Object.defineProperty(this, "transport", {
24
24
  enumerable: true,
@@ -28,7 +28,31 @@ class QueryRuleset {
28
28
  });
29
29
  this.transport = transport;
30
30
  }
31
- async delete(params, options) {
31
+ async deleteRule(params, options) {
32
+ const acceptedPath = ['ruleset_id', 'rule_id'];
33
+ const querystring = {};
34
+ const body = undefined;
35
+ for (const key in params) {
36
+ if (acceptedPath.includes(key)) {
37
+ continue;
38
+ }
39
+ else if (key !== 'body') {
40
+ // @ts-expect-error
41
+ querystring[key] = params[key];
42
+ }
43
+ }
44
+ const method = 'DELETE';
45
+ const path = `/_query_rules/${encodeURIComponent(params.ruleset_id.toString())}/_rule/${encodeURIComponent(params.rule_id.toString())}`;
46
+ const meta = {
47
+ name: 'query_rules.delete_rule',
48
+ pathParts: {
49
+ ruleset_id: params.ruleset_id,
50
+ rule_id: params.rule_id
51
+ }
52
+ };
53
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
54
+ }
55
+ async deleteRuleset(params, options) {
32
56
  const acceptedPath = ['ruleset_id'];
33
57
  const querystring = {};
34
58
  const body = undefined;
@@ -44,14 +68,38 @@ class QueryRuleset {
44
68
  const method = 'DELETE';
45
69
  const path = `/_query_rules/${encodeURIComponent(params.ruleset_id.toString())}`;
46
70
  const meta = {
47
- name: 'query_ruleset.delete',
71
+ name: 'query_rules.delete_ruleset',
48
72
  pathParts: {
49
73
  ruleset_id: params.ruleset_id
50
74
  }
51
75
  };
52
76
  return await this.transport.request({ path, method, querystring, body, meta }, options);
53
77
  }
54
- async get(params, options) {
78
+ async getRule(params, options) {
79
+ const acceptedPath = ['ruleset_id', 'rule_id'];
80
+ const querystring = {};
81
+ const body = undefined;
82
+ for (const key in params) {
83
+ if (acceptedPath.includes(key)) {
84
+ continue;
85
+ }
86
+ else if (key !== 'body') {
87
+ // @ts-expect-error
88
+ querystring[key] = params[key];
89
+ }
90
+ }
91
+ const method = 'GET';
92
+ const path = `/_query_rules/${encodeURIComponent(params.ruleset_id.toString())}/_rule/${encodeURIComponent(params.rule_id.toString())}`;
93
+ const meta = {
94
+ name: 'query_rules.get_rule',
95
+ pathParts: {
96
+ ruleset_id: params.ruleset_id,
97
+ rule_id: params.rule_id
98
+ }
99
+ };
100
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
101
+ }
102
+ async getRuleset(params, options) {
55
103
  const acceptedPath = ['ruleset_id'];
56
104
  const querystring = {};
57
105
  const body = undefined;
@@ -67,14 +115,14 @@ class QueryRuleset {
67
115
  const method = 'GET';
68
116
  const path = `/_query_rules/${encodeURIComponent(params.ruleset_id.toString())}`;
69
117
  const meta = {
70
- name: 'query_ruleset.get',
118
+ name: 'query_rules.get_ruleset',
71
119
  pathParts: {
72
120
  ruleset_id: params.ruleset_id
73
121
  }
74
122
  };
75
123
  return await this.transport.request({ path, method, querystring, body, meta }, options);
76
124
  }
77
- async list(params, options) {
125
+ async listRulesets(params, options) {
78
126
  const acceptedPath = [];
79
127
  const querystring = {};
80
128
  const body = undefined;
@@ -91,11 +139,49 @@ class QueryRuleset {
91
139
  const method = 'GET';
92
140
  const path = '/_query_rules';
93
141
  const meta = {
94
- name: 'query_ruleset.list'
142
+ name: 'query_rules.list_rulesets'
143
+ };
144
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
145
+ }
146
+ async putRule(params, options) {
147
+ const acceptedPath = ['ruleset_id', 'rule_id'];
148
+ const acceptedBody = ['type', 'criteria', 'actions', 'priority'];
149
+ const querystring = {};
150
+ // @ts-expect-error
151
+ const userBody = params === null || params === void 0 ? void 0 : params.body;
152
+ let body;
153
+ if (typeof userBody === 'string') {
154
+ body = userBody;
155
+ }
156
+ else {
157
+ body = userBody != null ? { ...userBody } : undefined;
158
+ }
159
+ for (const key in params) {
160
+ if (acceptedBody.includes(key)) {
161
+ body = body !== null && body !== void 0 ? body : {};
162
+ // @ts-expect-error
163
+ body[key] = params[key];
164
+ }
165
+ else if (acceptedPath.includes(key)) {
166
+ continue;
167
+ }
168
+ else if (key !== 'body') {
169
+ // @ts-expect-error
170
+ querystring[key] = params[key];
171
+ }
172
+ }
173
+ const method = 'PUT';
174
+ const path = `/_query_rules/${encodeURIComponent(params.ruleset_id.toString())}/_rule/${encodeURIComponent(params.rule_id.toString())}`;
175
+ const meta = {
176
+ name: 'query_rules.put_rule',
177
+ pathParts: {
178
+ ruleset_id: params.ruleset_id,
179
+ rule_id: params.rule_id
180
+ }
95
181
  };
96
182
  return await this.transport.request({ path, method, querystring, body, meta }, options);
97
183
  }
98
- async put(params, options) {
184
+ async putRuleset(params, options) {
99
185
  const acceptedPath = ['ruleset_id'];
100
186
  const acceptedBody = ['rules'];
101
187
  const querystring = {};
@@ -125,7 +211,7 @@ class QueryRuleset {
125
211
  const method = 'PUT';
126
212
  const path = `/_query_rules/${encodeURIComponent(params.ruleset_id.toString())}`;
127
213
  const meta = {
128
- name: 'query_ruleset.put',
214
+ name: 'query_rules.put_ruleset',
129
215
  pathParts: {
130
216
  ruleset_id: params.ruleset_id
131
217
  }
@@ -133,5 +219,5 @@ class QueryRuleset {
133
219
  return await this.transport.request({ path, method, querystring, body, meta }, options);
134
220
  }
135
221
  }
136
- exports.default = QueryRuleset;
137
- //# sourceMappingURL=query_ruleset.js.map
222
+ exports.default = QueryRules;
223
+ //# sourceMappingURL=query_rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query_rules.js","sourceRoot":"","sources":["../../../src/api/api/query_rules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,UAAU;IAE7B,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,UAAU,CAAc,MAAsE,EAAE,OAAiC;QACrI,MAAM,YAAY,GAAa,CAAC,YAAY,EAAE,SAAS,CAAC,CAAA;QACxD,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,QAAQ,CAAA;QACvB,MAAM,IAAI,GAAG,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,UAAU,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QACvI,MAAM,IAA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AG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,KAAK,CAAA;QACpB,MAAM,IAAI,GAAG,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAChF,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,yBAAyB;YAC/B,SAAS,EAAE;gBACT,UAAU,EAAE,MAAM,CAAC,UAAU;aAC9B;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACF;AA9PD,6BA8PC"}
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Allows to evaluate the quality of ranked search results over a set of typical search queries
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html | Elasticsearch API documentation}
8
+ * Enables you to evaluate the quality of ranked search results over a set of typical search queries.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-rank-eval.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function RankEvalApi(this: That, params: T.RankEvalRequest | TB.RankEvalRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RankEvalResponse>;
12
12
  export default function RankEvalApi(this: That, params: T.RankEvalRequest | TB.RankEvalRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RankEvalResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Allows to copy documents from one index to another, optionally filtering the source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-reindex.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-reindex.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ReindexApi(this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ReindexResponse>;
12
12
  export default function ReindexApi(this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ReindexResponse, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Changes the number of requests per second for a particular Reindex operation.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-reindex.html | Elasticsearch API documentation}
8
+ * Copies documents from a source to a destination.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-reindex.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ReindexRethrottleApi(this: That, params: T.ReindexRethrottleRequest | TB.ReindexRethrottleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ReindexRethrottleResponse>;
12
12
  export default function ReindexRethrottleApi(this: That, params: T.ReindexRethrottleRequest | TB.ReindexRethrottleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ReindexRethrottleResponse, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Allows to use the Mustache language to pre-render a search definition.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/render-search-template-api.html | Elasticsearch API documentation}
8
+ * Renders a search template as a search request body.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/render-search-template-api.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function RenderSearchTemplateApi(this: That, params?: T.RenderSearchTemplateRequest | TB.RenderSearchTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RenderSearchTemplateResponse>;
12
12
  export default function RenderSearchTemplateApi(this: That, params?: T.RenderSearchTemplateRequest | TB.RenderSearchTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RenderSearchTemplateResponse, unknown>>;
@@ -9,56 +9,56 @@ export default class Rollup {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Deletes an existing rollup job.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-delete-job.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-delete-job.html | Elasticsearch API documentation}
13
13
  */
14
14
  deleteJob(this: That, params: T.RollupDeleteJobRequest | TB.RollupDeleteJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupDeleteJobResponse>;
15
15
  deleteJob(this: That, params: T.RollupDeleteJobRequest | TB.RollupDeleteJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupDeleteJobResponse, unknown>>;
16
16
  deleteJob(this: That, params: T.RollupDeleteJobRequest | TB.RollupDeleteJobRequest, options?: TransportRequestOptions): Promise<T.RollupDeleteJobResponse>;
17
17
  /**
18
18
  * Retrieves the configuration, stats, and status of rollup jobs.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-get-job.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-get-job.html | Elasticsearch API documentation}
20
20
  */
21
21
  getJobs(this: That, params?: T.RollupGetJobsRequest | TB.RollupGetJobsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupGetJobsResponse>;
22
22
  getJobs(this: That, params?: T.RollupGetJobsRequest | TB.RollupGetJobsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupGetJobsResponse, unknown>>;
23
23
  getJobs(this: That, params?: T.RollupGetJobsRequest | TB.RollupGetJobsRequest, options?: TransportRequestOptions): Promise<T.RollupGetJobsResponse>;
24
24
  /**
25
25
  * Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-get-rollup-caps.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-get-rollup-caps.html | Elasticsearch API documentation}
27
27
  */
28
28
  getRollupCaps(this: That, params?: T.RollupGetRollupCapsRequest | TB.RollupGetRollupCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupGetRollupCapsResponse>;
29
29
  getRollupCaps(this: That, params?: T.RollupGetRollupCapsRequest | TB.RollupGetRollupCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupGetRollupCapsResponse, unknown>>;
30
30
  getRollupCaps(this: That, params?: T.RollupGetRollupCapsRequest | TB.RollupGetRollupCapsRequest, options?: TransportRequestOptions): Promise<T.RollupGetRollupCapsResponse>;
31
31
  /**
32
- * Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored).
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-get-rollup-index-caps.html | Elasticsearch API documentation}
32
+ * Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored).
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-get-rollup-index-caps.html | Elasticsearch API documentation}
34
34
  */
35
35
  getRollupIndexCaps(this: That, params: T.RollupGetRollupIndexCapsRequest | TB.RollupGetRollupIndexCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupGetRollupIndexCapsResponse>;
36
36
  getRollupIndexCaps(this: That, params: T.RollupGetRollupIndexCapsRequest | TB.RollupGetRollupIndexCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupGetRollupIndexCapsResponse, unknown>>;
37
37
  getRollupIndexCaps(this: That, params: T.RollupGetRollupIndexCapsRequest | TB.RollupGetRollupIndexCapsRequest, options?: TransportRequestOptions): Promise<T.RollupGetRollupIndexCapsResponse>;
38
38
  /**
39
39
  * Creates a rollup job.
40
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-put-job.html | Elasticsearch API documentation}
40
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-put-job.html | Elasticsearch API documentation}
41
41
  */
42
42
  putJob(this: That, params: T.RollupPutJobRequest | TB.RollupPutJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupPutJobResponse>;
43
43
  putJob(this: That, params: T.RollupPutJobRequest | TB.RollupPutJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupPutJobResponse, unknown>>;
44
44
  putJob(this: That, params: T.RollupPutJobRequest | TB.RollupPutJobRequest, options?: TransportRequestOptions): Promise<T.RollupPutJobResponse>;
45
45
  /**
46
- * Enables searching rolled-up data using the standard query DSL.
47
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-search.html | Elasticsearch API documentation}
46
+ * Enables searching rolled-up data using the standard Query DSL.
47
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-search.html | Elasticsearch API documentation}
48
48
  */
49
49
  rollupSearch<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.RollupRollupSearchRequest | TB.RollupRollupSearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupRollupSearchResponse<TDocument, TAggregations>>;
50
50
  rollupSearch<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.RollupRollupSearchRequest | TB.RollupRollupSearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupRollupSearchResponse<TDocument, TAggregations>, unknown>>;
51
51
  rollupSearch<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.RollupRollupSearchRequest | TB.RollupRollupSearchRequest, options?: TransportRequestOptions): Promise<T.RollupRollupSearchResponse<TDocument, TAggregations>>;
52
52
  /**
53
53
  * Starts an existing, stopped rollup job.
54
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-start-job.html | Elasticsearch API documentation}
54
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-start-job.html | Elasticsearch API documentation}
55
55
  */
56
56
  startJob(this: That, params: T.RollupStartJobRequest | TB.RollupStartJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupStartJobResponse>;
57
57
  startJob(this: That, params: T.RollupStartJobRequest | TB.RollupStartJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupStartJobResponse, unknown>>;
58
58
  startJob(this: That, params: T.RollupStartJobRequest | TB.RollupStartJobRequest, options?: TransportRequestOptions): Promise<T.RollupStartJobResponse>;
59
59
  /**
60
60
  * Stops an existing, started rollup job.
61
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rollup-stop-job.html | Elasticsearch API documentation}
61
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/rollup-stop-job.html | Elasticsearch API documentation}
62
62
  */
63
63
  stopJob(this: That, params: T.RollupStopJobRequest | TB.RollupStopJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupStopJobResponse>;
64
64
  stopJob(this: That, params: T.RollupStopJobRequest | TB.RollupStopJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupStopJobResponse, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Allows an arbitrary script to be executed and a result to be returned
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/painless/8.14/painless-execute-api.html | Elasticsearch API documentation}
8
+ * Runs a script and returns a result.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/painless/8.15/painless-execute-api.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ScriptsPainlessExecuteApi<TResult = unknown>(this: That, params?: T.ScriptsPainlessExecuteRequest | TB.ScriptsPainlessExecuteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ScriptsPainlessExecuteResponse<TResult>>;
12
12
  export default function ScriptsPainlessExecuteApi<TResult = unknown>(this: That, params?: T.ScriptsPainlessExecuteRequest | TB.ScriptsPainlessExecuteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ScriptsPainlessExecuteResponse<TResult>, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Allows to retrieve a large numbers of results from a single search request.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-request-body.html#request-body-search-scroll | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-request-body.html#request-body-search-scroll | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ScrollApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.ScrollRequest | TB.ScrollRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ScrollResponse<TDocument, TAggregations>>;
12
12
  export default function ScrollApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.ScrollRequest | TB.ScrollRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ScrollResponse<TDocument, TAggregations>, unknown>>;
@@ -5,8 +5,8 @@ interface That {
5
5
  transport: Transport;
6
6
  }
7
7
  /**
8
- * Returns results matching a query.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-search.html | Elasticsearch API documentation}
8
+ * Returns search hits that match the query defined in the request. You can provide search queries using the `q` query string parameter or the request body. If both are specified, only the query parameter is used.
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-search.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchResponse<TDocument, TAggregations>>;
12
12
  export default function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchResponse<TDocument, TAggregations>, unknown>>;