@elastic/elasticsearch 8.11.0 → 8.12.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 (99) hide show
  1. package/.dockerignore +2 -0
  2. package/catalog-info.yaml +4 -4
  3. package/lib/api/api/async_search.d.ts +4 -4
  4. package/lib/api/api/autoscaling.d.ts +4 -4
  5. package/lib/api/api/bulk.d.ts +1 -1
  6. package/lib/api/api/cat.d.ts +26 -26
  7. package/lib/api/api/ccr.d.ts +13 -13
  8. package/lib/api/api/clear_scroll.d.ts +1 -1
  9. package/lib/api/api/close_point_in_time.d.ts +1 -1
  10. package/lib/api/api/cluster.d.ts +16 -16
  11. package/lib/api/api/count.d.ts +1 -1
  12. package/lib/api/api/create.d.ts +1 -1
  13. package/lib/api/api/dangling_indices.d.ts +3 -3
  14. package/lib/api/api/delete.d.ts +1 -1
  15. package/lib/api/api/delete_by_query.d.ts +1 -1
  16. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  17. package/lib/api/api/delete_script.d.ts +1 -1
  18. package/lib/api/api/enrich.d.ts +5 -5
  19. package/lib/api/api/eql.d.ts +4 -4
  20. package/lib/api/api/esql.d.ts +18 -0
  21. package/lib/api/api/esql.js +64 -0
  22. package/lib/api/api/esql.js.map +1 -0
  23. package/lib/api/api/exists.d.ts +1 -1
  24. package/lib/api/api/exists_source.d.ts +1 -1
  25. package/lib/api/api/explain.d.ts +1 -1
  26. package/lib/api/api/features.d.ts +2 -2
  27. package/lib/api/api/field_caps.d.ts +1 -1
  28. package/lib/api/api/fleet.d.ts +19 -1
  29. package/lib/api/api/fleet.js +51 -0
  30. package/lib/api/api/fleet.js.map +1 -1
  31. package/lib/api/api/get.d.ts +1 -1
  32. package/lib/api/api/get_script.d.ts +1 -1
  33. package/lib/api/api/get_script_context.d.ts +1 -1
  34. package/lib/api/api/get_script_languages.d.ts +1 -1
  35. package/lib/api/api/get_source.d.ts +1 -1
  36. package/lib/api/api/graph.d.ts +1 -1
  37. package/lib/api/api/health_report.d.ts +1 -1
  38. package/lib/api/api/ilm.d.ts +11 -11
  39. package/lib/api/api/index.d.ts +1 -1
  40. package/lib/api/api/indices.d.ts +58 -58
  41. package/lib/api/api/inference.d.ts +39 -0
  42. package/lib/api/api/inference.js +122 -0
  43. package/lib/api/api/inference.js.map +1 -0
  44. package/lib/api/api/info.d.ts +1 -1
  45. package/lib/api/api/ingest.d.ts +6 -6
  46. package/lib/api/api/knn_search.d.ts +1 -1
  47. package/lib/api/api/license.d.ts +7 -7
  48. package/lib/api/api/logstash.d.ts +6 -6
  49. package/lib/api/api/logstash.js +1 -0
  50. package/lib/api/api/logstash.js.map +1 -1
  51. package/lib/api/api/mget.d.ts +1 -1
  52. package/lib/api/api/migration.d.ts +3 -3
  53. package/lib/api/api/ml.d.ts +73 -73
  54. package/lib/api/api/monitoring.d.ts +1 -1
  55. package/lib/api/api/msearch.d.ts +1 -1
  56. package/lib/api/api/msearch_template.d.ts +1 -1
  57. package/lib/api/api/mtermvectors.d.ts +1 -1
  58. package/lib/api/api/nodes.d.ts +7 -7
  59. package/lib/api/api/open_point_in_time.d.ts +1 -1
  60. package/lib/api/api/ping.d.ts +1 -1
  61. package/lib/api/api/put_script.d.ts +1 -1
  62. package/lib/api/api/query_ruleset.d.ts +4 -4
  63. package/lib/api/api/rank_eval.d.ts +1 -1
  64. package/lib/api/api/reindex.d.ts +1 -1
  65. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  66. package/lib/api/api/render_search_template.d.ts +1 -1
  67. package/lib/api/api/rollup.d.ts +8 -8
  68. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  69. package/lib/api/api/scroll.d.ts +1 -1
  70. package/lib/api/api/search.d.ts +1 -1
  71. package/lib/api/api/search_application.d.ts +9 -9
  72. package/lib/api/api/search_mvt.d.ts +1 -1
  73. package/lib/api/api/search_shards.d.ts +1 -1
  74. package/lib/api/api/search_template.d.ts +1 -1
  75. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  76. package/lib/api/api/security.d.ts +71 -57
  77. package/lib/api/api/security.js +35 -1
  78. package/lib/api/api/security.js.map +1 -1
  79. package/lib/api/api/slm.d.ts +9 -9
  80. package/lib/api/api/snapshot.d.ts +12 -12
  81. package/lib/api/api/sql.d.ts +6 -6
  82. package/lib/api/api/ssl.d.ts +1 -1
  83. package/lib/api/api/synonyms.d.ts +7 -7
  84. package/lib/api/api/tasks.d.ts +3 -3
  85. package/lib/api/api/terms_enum.d.ts +1 -1
  86. package/lib/api/api/termvectors.d.ts +1 -1
  87. package/lib/api/api/text_structure.d.ts +1 -1
  88. package/lib/api/api/transform.d.ts +11 -11
  89. package/lib/api/api/update.d.ts +1 -1
  90. package/lib/api/api/update_by_query.d.ts +1 -1
  91. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  92. package/lib/api/api/watcher.d.ts +13 -13
  93. package/lib/api/api/xpack.d.ts +2 -2
  94. package/lib/api/index.d.ts +8 -0
  95. package/lib/api/index.js +26 -2
  96. package/lib/api/index.js.map +1 -1
  97. package/lib/api/types.d.ts +84 -13
  98. package/lib/api/typesWithBodyKey.d.ts +91 -13
  99. package/package.json +4 -3
@@ -9,112 +9,112 @@ export default class Cluster {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Provides explanations for shard allocations in the cluster.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-allocation-explain.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-allocation-explain.html | Elasticsearch API documentation}
13
13
  */
14
14
  allocationExplain(this: That, params?: T.ClusterAllocationExplainRequest | TB.ClusterAllocationExplainRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterAllocationExplainResponse>;
15
15
  allocationExplain(this: That, params?: T.ClusterAllocationExplainRequest | TB.ClusterAllocationExplainRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterAllocationExplainResponse, unknown>>;
16
16
  allocationExplain(this: That, params?: T.ClusterAllocationExplainRequest | TB.ClusterAllocationExplainRequest, options?: TransportRequestOptions): Promise<T.ClusterAllocationExplainResponse>;
17
17
  /**
18
18
  * Deletes a component template
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-component-template.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/indices-component-template.html | Elasticsearch API documentation}
20
20
  */
21
21
  deleteComponentTemplate(this: That, params: T.ClusterDeleteComponentTemplateRequest | TB.ClusterDeleteComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterDeleteComponentTemplateResponse>;
22
22
  deleteComponentTemplate(this: That, params: T.ClusterDeleteComponentTemplateRequest | TB.ClusterDeleteComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterDeleteComponentTemplateResponse, unknown>>;
23
23
  deleteComponentTemplate(this: That, params: T.ClusterDeleteComponentTemplateRequest | TB.ClusterDeleteComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterDeleteComponentTemplateResponse>;
24
24
  /**
25
25
  * Clears cluster voting config exclusions.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/voting-config-exclusions.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/voting-config-exclusions.html | Elasticsearch API documentation}
27
27
  */
28
28
  deleteVotingConfigExclusions(this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterDeleteVotingConfigExclusionsResponse>;
29
29
  deleteVotingConfigExclusions(this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterDeleteVotingConfigExclusionsResponse, unknown>>;
30
30
  deleteVotingConfigExclusions(this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptions): Promise<T.ClusterDeleteVotingConfigExclusionsResponse>;
31
31
  /**
32
32
  * Returns information about whether a particular component template exist
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-component-template.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/indices-component-template.html | Elasticsearch API documentation}
34
34
  */
35
35
  existsComponentTemplate(this: That, params: T.ClusterExistsComponentTemplateRequest | TB.ClusterExistsComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterExistsComponentTemplateResponse>;
36
36
  existsComponentTemplate(this: That, params: T.ClusterExistsComponentTemplateRequest | TB.ClusterExistsComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterExistsComponentTemplateResponse, unknown>>;
37
37
  existsComponentTemplate(this: That, params: T.ClusterExistsComponentTemplateRequest | TB.ClusterExistsComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterExistsComponentTemplateResponse>;
38
38
  /**
39
39
  * Returns one or more component templates
40
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-component-template.html | Elasticsearch API documentation}
40
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/indices-component-template.html | Elasticsearch API documentation}
41
41
  */
42
42
  getComponentTemplate(this: That, params?: T.ClusterGetComponentTemplateRequest | TB.ClusterGetComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterGetComponentTemplateResponse>;
43
43
  getComponentTemplate(this: That, params?: T.ClusterGetComponentTemplateRequest | TB.ClusterGetComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterGetComponentTemplateResponse, unknown>>;
44
44
  getComponentTemplate(this: That, params?: T.ClusterGetComponentTemplateRequest | TB.ClusterGetComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterGetComponentTemplateResponse>;
45
45
  /**
46
46
  * Returns cluster settings.
47
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-get-settings.html | Elasticsearch API documentation}
47
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-get-settings.html | Elasticsearch API documentation}
48
48
  */
49
49
  getSettings(this: That, params?: T.ClusterGetSettingsRequest | TB.ClusterGetSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterGetSettingsResponse>;
50
50
  getSettings(this: That, params?: T.ClusterGetSettingsRequest | TB.ClusterGetSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterGetSettingsResponse, unknown>>;
51
51
  getSettings(this: That, params?: T.ClusterGetSettingsRequest | TB.ClusterGetSettingsRequest, options?: TransportRequestOptions): Promise<T.ClusterGetSettingsResponse>;
52
52
  /**
53
53
  * Returns basic information about the health of the cluster.
54
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-health.html | Elasticsearch API documentation}
54
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-health.html | Elasticsearch API documentation}
55
55
  */
56
56
  health(this: That, params?: T.ClusterHealthRequest | TB.ClusterHealthRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterHealthResponse>;
57
57
  health(this: That, params?: T.ClusterHealthRequest | TB.ClusterHealthRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterHealthResponse, unknown>>;
58
58
  health(this: That, params?: T.ClusterHealthRequest | TB.ClusterHealthRequest, options?: TransportRequestOptions): Promise<T.ClusterHealthResponse>;
59
59
  /**
60
60
  * Returns different information about the cluster.
61
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-info.html | Elasticsearch API documentation}
61
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-info.html | Elasticsearch API documentation}
62
62
  */
63
63
  info(this: That, params: T.ClusterInfoRequest | TB.ClusterInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterInfoResponse>;
64
64
  info(this: That, params: T.ClusterInfoRequest | TB.ClusterInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterInfoResponse, unknown>>;
65
65
  info(this: That, params: T.ClusterInfoRequest | TB.ClusterInfoRequest, options?: TransportRequestOptions): Promise<T.ClusterInfoResponse>;
66
66
  /**
67
67
  * Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard) which have not yet been executed.
68
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-pending.html | Elasticsearch API documentation}
68
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-pending.html | Elasticsearch API documentation}
69
69
  */
70
70
  pendingTasks(this: That, params?: T.ClusterPendingTasksRequest | TB.ClusterPendingTasksRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPendingTasksResponse>;
71
71
  pendingTasks(this: That, params?: T.ClusterPendingTasksRequest | TB.ClusterPendingTasksRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPendingTasksResponse, unknown>>;
72
72
  pendingTasks(this: That, params?: T.ClusterPendingTasksRequest | TB.ClusterPendingTasksRequest, options?: TransportRequestOptions): Promise<T.ClusterPendingTasksResponse>;
73
73
  /**
74
74
  * Updates the cluster voting config exclusions by node ids or node names.
75
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/voting-config-exclusions.html | Elasticsearch API documentation}
75
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/voting-config-exclusions.html | Elasticsearch API documentation}
76
76
  */
77
77
  postVotingConfigExclusions(this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPostVotingConfigExclusionsResponse>;
78
78
  postVotingConfigExclusions(this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPostVotingConfigExclusionsResponse, unknown>>;
79
79
  postVotingConfigExclusions(this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptions): Promise<T.ClusterPostVotingConfigExclusionsResponse>;
80
80
  /**
81
81
  * Creates or updates a component template
82
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/indices-component-template.html | Elasticsearch API documentation}
82
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/indices-component-template.html | Elasticsearch API documentation}
83
83
  */
84
84
  putComponentTemplate(this: That, params: T.ClusterPutComponentTemplateRequest | TB.ClusterPutComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPutComponentTemplateResponse>;
85
85
  putComponentTemplate(this: That, params: T.ClusterPutComponentTemplateRequest | TB.ClusterPutComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPutComponentTemplateResponse, unknown>>;
86
86
  putComponentTemplate(this: That, params: T.ClusterPutComponentTemplateRequest | TB.ClusterPutComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterPutComponentTemplateResponse>;
87
87
  /**
88
88
  * Updates the cluster settings.
89
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-update-settings.html | Elasticsearch API documentation}
89
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-update-settings.html | Elasticsearch API documentation}
90
90
  */
91
91
  putSettings(this: That, params?: T.ClusterPutSettingsRequest | TB.ClusterPutSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPutSettingsResponse>;
92
92
  putSettings(this: That, params?: T.ClusterPutSettingsRequest | TB.ClusterPutSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPutSettingsResponse, unknown>>;
93
93
  putSettings(this: That, params?: T.ClusterPutSettingsRequest | TB.ClusterPutSettingsRequest, options?: TransportRequestOptions): Promise<T.ClusterPutSettingsResponse>;
94
94
  /**
95
95
  * Returns the information about configured remote clusters.
96
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-remote-info.html | Elasticsearch API documentation}
96
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-remote-info.html | Elasticsearch API documentation}
97
97
  */
98
98
  remoteInfo(this: That, params?: T.ClusterRemoteInfoRequest | TB.ClusterRemoteInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterRemoteInfoResponse>;
99
99
  remoteInfo(this: That, params?: T.ClusterRemoteInfoRequest | TB.ClusterRemoteInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterRemoteInfoResponse, unknown>>;
100
100
  remoteInfo(this: That, params?: T.ClusterRemoteInfoRequest | TB.ClusterRemoteInfoRequest, options?: TransportRequestOptions): Promise<T.ClusterRemoteInfoResponse>;
101
101
  /**
102
102
  * Allows to manually change the allocation of individual shards in the cluster.
103
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-reroute.html | Elasticsearch API documentation}
103
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-reroute.html | Elasticsearch API documentation}
104
104
  */
105
105
  reroute(this: That, params?: T.ClusterRerouteRequest | TB.ClusterRerouteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterRerouteResponse>;
106
106
  reroute(this: That, params?: T.ClusterRerouteRequest | TB.ClusterRerouteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterRerouteResponse, unknown>>;
107
107
  reroute(this: That, params?: T.ClusterRerouteRequest | TB.ClusterRerouteRequest, options?: TransportRequestOptions): Promise<T.ClusterRerouteResponse>;
108
108
  /**
109
109
  * Returns a comprehensive information about the state of the cluster.
110
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-state.html | Elasticsearch API documentation}
110
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-state.html | Elasticsearch API documentation}
111
111
  */
112
112
  state(this: That, params?: T.ClusterStateRequest | TB.ClusterStateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterStateResponse>;
113
113
  state(this: That, params?: T.ClusterStateRequest | TB.ClusterStateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterStateResponse, unknown>>;
114
114
  state(this: That, params?: T.ClusterStateRequest | TB.ClusterStateRequest, options?: TransportRequestOptions): Promise<T.ClusterStateResponse>;
115
115
  /**
116
116
  * Returns high-level overview of cluster statistics.
117
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cluster-stats.html | Elasticsearch API documentation}
117
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cluster-stats.html | Elasticsearch API documentation}
118
118
  */
119
119
  stats(this: That, params?: T.ClusterStatsRequest | TB.ClusterStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterStatsResponse>;
120
120
  stats(this: That, params?: T.ClusterStatsRequest | TB.ClusterStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterStatsResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns number of documents matching a query.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-count.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/search-count.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function CountApi(this: That, params?: T.CountRequest | TB.CountRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CountResponse>;
12
12
  export default function CountApi(this: That, params?: T.CountRequest | TB.CountRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CountResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Creates a new document in the index. Returns a 409 response when a document with a same ID already exists in the index.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-index_.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-index_.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function CreateApi<TDocument = unknown>(this: That, params: T.CreateRequest<TDocument> | TB.CreateRequest<TDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.CreateResponse>;
12
12
  export default function CreateApi<TDocument = unknown>(this: That, params: T.CreateRequest<TDocument> | TB.CreateRequest<TDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CreateResponse, unknown>>;
@@ -9,21 +9,21 @@ export default class DanglingIndices {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Deletes the specified dangling index
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
13
13
  */
14
14
  deleteDanglingIndex(this: That, params: T.DanglingIndicesDeleteDanglingIndexRequest | TB.DanglingIndicesDeleteDanglingIndexRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DanglingIndicesDeleteDanglingIndexResponse>;
15
15
  deleteDanglingIndex(this: That, params: T.DanglingIndicesDeleteDanglingIndexRequest | TB.DanglingIndicesDeleteDanglingIndexRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DanglingIndicesDeleteDanglingIndexResponse, unknown>>;
16
16
  deleteDanglingIndex(this: That, params: T.DanglingIndicesDeleteDanglingIndexRequest | TB.DanglingIndicesDeleteDanglingIndexRequest, options?: TransportRequestOptions): Promise<T.DanglingIndicesDeleteDanglingIndexResponse>;
17
17
  /**
18
18
  * Imports the specified dangling index
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
20
20
  */
21
21
  importDanglingIndex(this: That, params: T.DanglingIndicesImportDanglingIndexRequest | TB.DanglingIndicesImportDanglingIndexRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DanglingIndicesImportDanglingIndexResponse>;
22
22
  importDanglingIndex(this: That, params: T.DanglingIndicesImportDanglingIndexRequest | TB.DanglingIndicesImportDanglingIndexRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DanglingIndicesImportDanglingIndexResponse, unknown>>;
23
23
  importDanglingIndex(this: That, params: T.DanglingIndicesImportDanglingIndexRequest | TB.DanglingIndicesImportDanglingIndexRequest, options?: TransportRequestOptions): Promise<T.DanglingIndicesImportDanglingIndexResponse>;
24
24
  /**
25
25
  * Returns all dangling indices.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
27
27
  */
28
28
  listDanglingIndices(this: That, params?: T.DanglingIndicesListDanglingIndicesRequest | TB.DanglingIndicesListDanglingIndicesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DanglingIndicesListDanglingIndicesResponse>;
29
29
  listDanglingIndices(this: That, params?: T.DanglingIndicesListDanglingIndicesRequest | TB.DanglingIndicesListDanglingIndicesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DanglingIndicesListDanglingIndicesResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Removes a document from the index.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-delete.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-delete.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function DeleteApi(this: That, params: T.DeleteRequest | TB.DeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteResponse>;
12
12
  export default function DeleteApi(this: That, params: T.DeleteRequest | TB.DeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Deletes documents matching the provided query.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-delete-by-query.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-delete-by-query.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function DeleteByQueryApi(this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteByQueryResponse>;
12
12
  export default function DeleteByQueryApi(this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteByQueryResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Changes the number of requests per second for a particular Delete By Query operation.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-delete-by-query.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-delete-by-query.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function DeleteByQueryRethrottleApi(this: That, params: T.DeleteByQueryRethrottleRequest | TB.DeleteByQueryRethrottleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteByQueryRethrottleResponse>;
12
12
  export default function DeleteByQueryRethrottleApi(this: That, params: T.DeleteByQueryRethrottleRequest | TB.DeleteByQueryRethrottleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteByQueryRethrottleResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Deletes a script.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/modules-scripting.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/modules-scripting.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function DeleteScriptApi(this: That, params: T.DeleteScriptRequest | TB.DeleteScriptRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteScriptResponse>;
12
12
  export default function DeleteScriptApi(this: That, params: T.DeleteScriptRequest | TB.DeleteScriptRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteScriptResponse, unknown>>;
@@ -9,35 +9,35 @@ export default class Enrich {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Deletes an existing enrich policy and its enrich index.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/delete-enrich-policy-api.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/delete-enrich-policy-api.html | Elasticsearch API documentation}
13
13
  */
14
14
  deletePolicy(this: That, params: T.EnrichDeletePolicyRequest | TB.EnrichDeletePolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichDeletePolicyResponse>;
15
15
  deletePolicy(this: That, params: T.EnrichDeletePolicyRequest | TB.EnrichDeletePolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichDeletePolicyResponse, unknown>>;
16
16
  deletePolicy(this: That, params: T.EnrichDeletePolicyRequest | TB.EnrichDeletePolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichDeletePolicyResponse>;
17
17
  /**
18
18
  * Creates the enrich index for an existing enrich policy.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/execute-enrich-policy-api.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/execute-enrich-policy-api.html | Elasticsearch API documentation}
20
20
  */
21
21
  executePolicy(this: That, params: T.EnrichExecutePolicyRequest | TB.EnrichExecutePolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichExecutePolicyResponse>;
22
22
  executePolicy(this: That, params: T.EnrichExecutePolicyRequest | TB.EnrichExecutePolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichExecutePolicyResponse, unknown>>;
23
23
  executePolicy(this: That, params: T.EnrichExecutePolicyRequest | TB.EnrichExecutePolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichExecutePolicyResponse>;
24
24
  /**
25
25
  * Gets information about an enrich policy.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-enrich-policy-api.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-enrich-policy-api.html | Elasticsearch API documentation}
27
27
  */
28
28
  getPolicy(this: That, params?: T.EnrichGetPolicyRequest | TB.EnrichGetPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichGetPolicyResponse>;
29
29
  getPolicy(this: That, params?: T.EnrichGetPolicyRequest | TB.EnrichGetPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichGetPolicyResponse, unknown>>;
30
30
  getPolicy(this: That, params?: T.EnrichGetPolicyRequest | TB.EnrichGetPolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichGetPolicyResponse>;
31
31
  /**
32
32
  * Creates a new enrich policy.
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/put-enrich-policy-api.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/put-enrich-policy-api.html | Elasticsearch API documentation}
34
34
  */
35
35
  putPolicy(this: That, params: T.EnrichPutPolicyRequest | TB.EnrichPutPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichPutPolicyResponse>;
36
36
  putPolicy(this: That, params: T.EnrichPutPolicyRequest | TB.EnrichPutPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichPutPolicyResponse, unknown>>;
37
37
  putPolicy(this: That, params: T.EnrichPutPolicyRequest | TB.EnrichPutPolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichPutPolicyResponse>;
38
38
  /**
39
39
  * Gets enrich coordinator statistics and information about enrich policies that are currently executing.
40
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/enrich-stats-api.html | Elasticsearch API documentation}
40
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/enrich-stats-api.html | Elasticsearch API documentation}
41
41
  */
42
42
  stats(this: That, params?: T.EnrichStatsRequest | TB.EnrichStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichStatsResponse>;
43
43
  stats(this: That, params?: T.EnrichStatsRequest | TB.EnrichStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichStatsResponse, unknown>>;
@@ -9,28 +9,28 @@ export default class Eql {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/eql-search-api.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/eql-search-api.html | Elasticsearch API documentation}
13
13
  */
14
14
  delete(this: That, params: T.EqlDeleteRequest | TB.EqlDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlDeleteResponse>;
15
15
  delete(this: That, params: T.EqlDeleteRequest | TB.EqlDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlDeleteResponse, unknown>>;
16
16
  delete(this: That, params: T.EqlDeleteRequest | TB.EqlDeleteRequest, options?: TransportRequestOptions): Promise<T.EqlDeleteResponse>;
17
17
  /**
18
18
  * Returns async results from previously executed Event Query Language (EQL) search
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-async-eql-search-api.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-async-eql-search-api.html | Elasticsearch API documentation}
20
20
  */
21
21
  get<TEvent = unknown>(this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetResponse<TEvent>>;
22
22
  get<TEvent = unknown>(this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetResponse<TEvent>, unknown>>;
23
23
  get<TEvent = unknown>(this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptions): Promise<T.EqlGetResponse<TEvent>>;
24
24
  /**
25
25
  * Returns the status of a previously submitted async or stored Event Query Language (EQL) search
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-async-eql-status-api.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-async-eql-status-api.html | Elasticsearch API documentation}
27
27
  */
28
28
  getStatus(this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetStatusResponse>;
29
29
  getStatus(this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetStatusResponse, unknown>>;
30
30
  getStatus(this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptions): Promise<T.EqlGetStatusResponse>;
31
31
  /**
32
32
  * Returns results matching a query expressed in Event Query Language (EQL)
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/eql-search-api.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/eql-search-api.html | Elasticsearch API documentation}
34
34
  */
35
35
  search<TEvent = unknown>(this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlSearchResponse<TEvent>>;
36
36
  search<TEvent = unknown>(this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlSearchResponse<TEvent>, unknown>>;
@@ -0,0 +1,18 @@
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 Esql {
8
+ transport: Transport;
9
+ constructor(transport: Transport);
10
+ /**
11
+ * Executes an ESQL request
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/esql-rest.html | Elasticsearch API documentation}
13
+ */
14
+ query(this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EsqlQueryResponse>;
15
+ query(this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EsqlQueryResponse, unknown>>;
16
+ query(this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>;
17
+ }
18
+ export {};
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Licensed to Elasticsearch B.V. under one or more contributor
4
+ * license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright
6
+ * ownership. Elasticsearch B.V. licenses this file to you under
7
+ * the Apache License, Version 2.0 (the "License"); you may
8
+ * not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing,
14
+ * software distributed under the License is distributed on an
15
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ * KIND, either express or implied. See the License for the
17
+ * specific language governing permissions and limitations
18
+ * under the License.
19
+ */
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ class Esql {
22
+ constructor(transport) {
23
+ Object.defineProperty(this, "transport", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: void 0
28
+ });
29
+ this.transport = transport;
30
+ }
31
+ async query(params, options) {
32
+ const acceptedPath = [];
33
+ const acceptedBody = ['columnar', 'filter', 'locale', 'params', 'query'];
34
+ const querystring = {};
35
+ // @ts-expect-error
36
+ const userBody = params === null || params === void 0 ? void 0 : params.body;
37
+ let body;
38
+ if (typeof userBody === 'string') {
39
+ body = userBody;
40
+ }
41
+ else {
42
+ body = userBody != null ? { ...userBody } : undefined;
43
+ }
44
+ for (const key in params) {
45
+ if (acceptedBody.includes(key)) {
46
+ body = body !== null && body !== void 0 ? body : {};
47
+ // @ts-expect-error
48
+ body[key] = params[key];
49
+ }
50
+ else if (acceptedPath.includes(key)) {
51
+ continue;
52
+ }
53
+ else if (key !== 'body') {
54
+ // @ts-expect-error
55
+ querystring[key] = params[key];
56
+ }
57
+ }
58
+ const method = 'POST';
59
+ const path = '/_query';
60
+ return await this.transport.request({ path, method, querystring, body }, options);
61
+ }
62
+ }
63
+ exports.default = Esql;
64
+ //# sourceMappingURL=esql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esql.js","sourceRoot":"","sources":["../../../src/api/api/esql.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAsBH,MAAqB,IAAI;IAEvB,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,KAAK,CAAc,MAAgD,EAAE,OAAiC;QAC1G,MAAM,YAAY,GAAa,EAAE,CAAA;QACjC,MAAM,YAA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ic.co/guide/en/elasticsearch/reference/8.11/docs-get.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-get.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ExistsApi(this: That, params: T.ExistsRequest | TB.ExistsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ExistsResponse>;
12
12
  export default function ExistsApi(this: That, params: T.ExistsRequest | TB.ExistsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ExistsResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns information about whether a document source exists in an index.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-get.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-get.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ExistsSourceApi(this: That, params: T.ExistsSourceRequest | TB.ExistsSourceRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ExistsSourceResponse>;
12
12
  export default function ExistsSourceApi(this: That, params: T.ExistsSourceRequest | TB.ExistsSourceRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ExistsSourceResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns information about why a specific matches (or doesn't match) a query.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-explain.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/search-explain.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function ExplainApi<TDocument = unknown>(this: That, params: T.ExplainRequest | TB.ExplainRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ExplainResponse<TDocument>>;
12
12
  export default function ExplainApi<TDocument = unknown>(this: That, params: T.ExplainRequest | TB.ExplainRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ExplainResponse<TDocument>, unknown>>;
@@ -9,14 +9,14 @@ export default class Features {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-features-api.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-features-api.html | Elasticsearch API documentation}
13
13
  */
14
14
  getFeatures(this: That, params?: T.FeaturesGetFeaturesRequest | TB.FeaturesGetFeaturesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FeaturesGetFeaturesResponse>;
15
15
  getFeatures(this: That, params?: T.FeaturesGetFeaturesRequest | TB.FeaturesGetFeaturesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FeaturesGetFeaturesResponse, unknown>>;
16
16
  getFeatures(this: That, params?: T.FeaturesGetFeaturesRequest | TB.FeaturesGetFeaturesRequest, options?: TransportRequestOptions): Promise<T.FeaturesGetFeaturesResponse>;
17
17
  /**
18
18
  * Resets the internal state of features, usually by deleting system indices
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/modules-snapshots.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/modules-snapshots.html | Elasticsearch API documentation}
20
20
  */
21
21
  resetFeatures(this: That, params?: T.FeaturesResetFeaturesRequest | TB.FeaturesResetFeaturesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FeaturesResetFeaturesResponse>;
22
22
  resetFeatures(this: That, params?: T.FeaturesResetFeaturesRequest | TB.FeaturesResetFeaturesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FeaturesResetFeaturesResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns the information about the capabilities of fields among multiple indices.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-field-caps.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/search-field-caps.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FieldCapsResponse>;
12
12
  export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FieldCapsResponse, unknown>>;
@@ -7,9 +7,21 @@ interface That {
7
7
  export default class Fleet {
8
8
  transport: Transport;
9
9
  constructor(transport: Transport);
10
+ /**
11
+ * Deletes a secret stored by Fleet.
12
+ */
13
+ deleteSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
14
+ deleteSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
15
+ deleteSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
16
+ /**
17
+ * Retrieves a secret stored by Fleet.
18
+ */
19
+ getSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
20
+ getSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
21
+ getSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
10
22
  /**
11
23
  * Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-global-checkpoints.html | Elasticsearch API documentation}
24
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-global-checkpoints.html | Elasticsearch API documentation}
13
25
  */
14
26
  globalCheckpoints(this: That, params: T.FleetGlobalCheckpointsRequest | TB.FleetGlobalCheckpointsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FleetGlobalCheckpointsResponse>;
15
27
  globalCheckpoints(this: That, params: T.FleetGlobalCheckpointsRequest | TB.FleetGlobalCheckpointsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FleetGlobalCheckpointsResponse, unknown>>;
@@ -20,6 +32,12 @@ export default class Fleet {
20
32
  msearch<TDocument = unknown>(this: That, params: T.FleetMsearchRequest | TB.FleetMsearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FleetMsearchResponse<TDocument>>;
21
33
  msearch<TDocument = unknown>(this: That, params: T.FleetMsearchRequest | TB.FleetMsearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FleetMsearchResponse<TDocument>, unknown>>;
22
34
  msearch<TDocument = unknown>(this: That, params: T.FleetMsearchRequest | TB.FleetMsearchRequest, options?: TransportRequestOptions): Promise<T.FleetMsearchResponse<TDocument>>;
35
+ /**
36
+ * Creates a secret stored by Fleet.
37
+ */
38
+ postSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
39
+ postSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
40
+ postSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
23
41
  /**
24
42
  * Search API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project.
25
43
  */
@@ -28,6 +28,40 @@ class Fleet {
28
28
  });
29
29
  this.transport = transport;
30
30
  }
31
+ async deleteSecret(params, options) {
32
+ const acceptedPath = ['id'];
33
+ const querystring = {};
34
+ const body = undefined;
35
+ params = params !== null && params !== void 0 ? params : {};
36
+ for (const key in params) {
37
+ if (acceptedPath.includes(key)) {
38
+ continue;
39
+ }
40
+ else if (key !== 'body') {
41
+ querystring[key] = params[key];
42
+ }
43
+ }
44
+ const method = 'DELETE';
45
+ const path = `/_fleet/secret/${encodeURIComponent(params.id.toString())}`;
46
+ return await this.transport.request({ path, method, querystring, body }, options);
47
+ }
48
+ async getSecret(params, options) {
49
+ const acceptedPath = ['id'];
50
+ const querystring = {};
51
+ const body = undefined;
52
+ params = params !== null && params !== void 0 ? params : {};
53
+ for (const key in params) {
54
+ if (acceptedPath.includes(key)) {
55
+ continue;
56
+ }
57
+ else if (key !== 'body') {
58
+ querystring[key] = params[key];
59
+ }
60
+ }
61
+ const method = 'GET';
62
+ const path = `/_fleet/secret/${encodeURIComponent(params.id.toString())}`;
63
+ return await this.transport.request({ path, method, querystring, body }, options);
64
+ }
31
65
  async globalCheckpoints(params, options) {
32
66
  const acceptedPath = ['index'];
33
67
  const querystring = {};
@@ -77,6 +111,23 @@ class Fleet {
77
111
  }
78
112
  return await this.transport.request({ path, method, querystring, bulkBody: body }, options);
79
113
  }
114
+ async postSecret(params, options) {
115
+ const acceptedPath = [];
116
+ const querystring = {};
117
+ const body = undefined;
118
+ params = params !== null && params !== void 0 ? params : {};
119
+ for (const key in params) {
120
+ if (acceptedPath.includes(key)) {
121
+ continue;
122
+ }
123
+ else if (key !== 'body') {
124
+ querystring[key] = params[key];
125
+ }
126
+ }
127
+ const method = 'POST';
128
+ const path = '/_fleet/secret';
129
+ return await this.transport.request({ path, method, querystring, body }, options);
130
+ }
80
131
  async search(params, options) {
81
132
  const acceptedPath = ['index'];
82
133
  const acceptedBody = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats'];
@@ -1 +1 @@
1
- {"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../../src/api/api/fleet.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAsBH,MAAqB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AAC;CACF;AApLD,wBAoLC"}
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Returns a document.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-get.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-get.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function GetApi<TDocument = unknown>(this: That, params: T.GetRequest | TB.GetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetResponse<TDocument>>;
12
12
  export default function GetApi<TDocument = unknown>(this: That, params: T.GetRequest | TB.GetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetResponse<TDocument>, unknown>>;