@elastic/elasticsearch 8.13.1 → 8.14.1
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.
- package/catalog-info.yaml +3 -6
- package/lib/api/api/async_search.d.ts +4 -4
- package/lib/api/api/async_search.js +28 -4
- package/lib/api/api/async_search.js.map +1 -1
- package/lib/api/api/autoscaling.d.ts +4 -4
- package/lib/api/api/autoscaling.js +25 -4
- package/lib/api/api/autoscaling.js.map +1 -1
- package/lib/api/api/bulk.d.ts +1 -1
- package/lib/api/api/bulk.js +7 -1
- package/lib/api/api/bulk.js.map +1 -1
- package/lib/api/api/cat.d.ts +26 -26
- package/lib/api/api/cat.js +155 -26
- package/lib/api/api/cat.js.map +1 -1
- package/lib/api/api/ccr.d.ts +13 -13
- package/lib/api/api/ccr.js +88 -13
- package/lib/api/api/ccr.js.map +1 -1
- package/lib/api/api/clear_scroll.d.ts +1 -1
- package/lib/api/api/clear_scroll.js +7 -1
- package/lib/api/api/clear_scroll.js.map +1 -1
- package/lib/api/api/close_point_in_time.d.ts +1 -1
- package/lib/api/api/close_point_in_time.js +4 -1
- package/lib/api/api/close_point_in_time.js.map +1 -1
- package/lib/api/api/cluster.d.ts +16 -16
- package/lib/api/api/cluster.js +90 -17
- package/lib/api/api/cluster.js.map +1 -1
- package/lib/api/api/connector.d.ts +231 -0
- package/lib/api/api/connector.js +980 -0
- package/lib/api/api/connector.js.map +1 -0
- package/lib/api/api/count.d.ts +1 -1
- package/lib/api/api/count.js +7 -1
- package/lib/api/api/count.js.map +1 -1
- package/lib/api/api/create.d.ts +1 -1
- package/lib/api/api/create.js +8 -1
- package/lib/api/api/create.js.map +1 -1
- package/lib/api/api/dangling_indices.d.ts +3 -3
- package/lib/api/api/dangling_indices.js +18 -3
- package/lib/api/api/dangling_indices.js.map +1 -1
- package/lib/api/api/delete.d.ts +1 -1
- package/lib/api/api/delete.js +8 -1
- package/lib/api/api/delete.js.map +1 -1
- package/lib/api/api/delete_by_query.d.ts +1 -1
- package/lib/api/api/delete_by_query.js +7 -1
- package/lib/api/api/delete_by_query.js.map +1 -1
- package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/delete_by_query_rethrottle.js +7 -1
- package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/delete_script.d.ts +1 -1
- package/lib/api/api/delete_script.js +7 -1
- package/lib/api/api/delete_script.js.map +1 -1
- package/lib/api/api/enrich.d.ts +5 -5
- package/lib/api/api/enrich.js +32 -5
- package/lib/api/api/enrich.js.map +1 -1
- package/lib/api/api/eql.d.ts +4 -4
- package/lib/api/api/eql.js +28 -4
- package/lib/api/api/eql.js.map +1 -1
- package/lib/api/api/esql.d.ts +15 -1
- package/lib/api/api/esql.js +47 -1
- package/lib/api/api/esql.js.map +1 -1
- package/lib/api/api/exists.d.ts +1 -1
- package/lib/api/api/exists.js +8 -1
- package/lib/api/api/exists.js.map +1 -1
- package/lib/api/api/exists_source.d.ts +1 -1
- package/lib/api/api/exists_source.js +8 -1
- package/lib/api/api/exists_source.js.map +1 -1
- package/lib/api/api/explain.d.ts +1 -1
- package/lib/api/api/explain.js +8 -1
- package/lib/api/api/explain.js.map +1 -1
- package/lib/api/api/features.d.ts +2 -2
- package/lib/api/api/features.js +8 -2
- package/lib/api/api/features.js.map +1 -1
- package/lib/api/api/field_caps.d.ts +1 -1
- package/lib/api/api/field_caps.js +7 -1
- package/lib/api/api/field_caps.js.map +1 -1
- package/lib/api/api/fleet.d.ts +1 -1
- package/lib/api/api/fleet.js +39 -6
- package/lib/api/api/fleet.js.map +1 -1
- package/lib/api/api/get.d.ts +1 -1
- package/lib/api/api/get.js +8 -1
- package/lib/api/api/get.js.map +1 -1
- package/lib/api/api/get_script.d.ts +1 -1
- package/lib/api/api/get_script.js +7 -1
- package/lib/api/api/get_script.js.map +1 -1
- package/lib/api/api/get_script_context.d.ts +1 -1
- package/lib/api/api/get_script_context.js +4 -1
- package/lib/api/api/get_script_context.js.map +1 -1
- package/lib/api/api/get_script_languages.d.ts +1 -1
- package/lib/api/api/get_script_languages.js +4 -1
- package/lib/api/api/get_script_languages.js.map +1 -1
- package/lib/api/api/get_source.d.ts +1 -1
- package/lib/api/api/get_source.js +8 -1
- package/lib/api/api/get_source.js.map +1 -1
- package/lib/api/api/graph.d.ts +1 -1
- package/lib/api/api/graph.js +7 -1
- package/lib/api/api/graph.js.map +1 -1
- package/lib/api/api/health_report.d.ts +1 -1
- package/lib/api/api/health_report.js +7 -1
- package/lib/api/api/health_report.js.map +1 -1
- package/lib/api/api/ilm.d.ts +11 -11
- package/lib/api/api/ilm.js +65 -11
- package/lib/api/api/ilm.js.map +1 -1
- package/lib/api/api/index.d.ts +1 -1
- package/lib/api/api/index.js +8 -1
- package/lib/api/api/index.js.map +1 -1
- package/lib/api/api/indices.d.ts +62 -62
- package/lib/api/api/indices.js +435 -80
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/inference.d.ts +4 -4
- package/lib/api/api/inference.js +38 -6
- package/lib/api/api/inference.js.map +1 -1
- package/lib/api/api/info.d.ts +1 -1
- package/lib/api/api/info.js +4 -1
- package/lib/api/api/info.js.map +1 -1
- package/lib/api/api/ingest.d.ts +6 -6
- package/lib/api/api/ingest.js +36 -6
- package/lib/api/api/ingest.js.map +1 -1
- package/lib/api/api/knn_search.d.ts +1 -1
- package/lib/api/api/knn_search.js +7 -1
- package/lib/api/api/knn_search.js.map +1 -1
- package/lib/api/api/license.d.ts +7 -7
- package/lib/api/api/license.js +28 -7
- package/lib/api/api/license.js.map +1 -1
- package/lib/api/api/logstash.d.ts +3 -3
- package/lib/api/api/logstash.js +21 -3
- package/lib/api/api/logstash.js.map +1 -1
- package/lib/api/api/mget.d.ts +1 -1
- package/lib/api/api/mget.js +7 -1
- package/lib/api/api/mget.js.map +1 -1
- package/lib/api/api/migration.d.ts +3 -3
- package/lib/api/api/migration.js +15 -3
- package/lib/api/api/migration.js.map +1 -1
- package/lib/api/api/ml.d.ts +76 -76
- package/lib/api/api/ml.js +525 -76
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +1 -1
- package/lib/api/api/monitoring.js +7 -1
- package/lib/api/api/monitoring.js.map +1 -1
- package/lib/api/api/msearch.d.ts +1 -1
- package/lib/api/api/msearch.js +7 -1
- package/lib/api/api/msearch.js.map +1 -1
- package/lib/api/api/msearch_template.d.ts +1 -1
- package/lib/api/api/msearch_template.js +7 -1
- package/lib/api/api/msearch_template.js.map +1 -1
- package/lib/api/api/mtermvectors.d.ts +1 -1
- package/lib/api/api/mtermvectors.js +7 -1
- package/lib/api/api/mtermvectors.js.map +1 -1
- package/lib/api/api/nodes.d.ts +7 -7
- package/lib/api/api/nodes.js +54 -7
- package/lib/api/api/nodes.js.map +1 -1
- package/lib/api/api/open_point_in_time.d.ts +1 -1
- package/lib/api/api/open_point_in_time.js +7 -1
- package/lib/api/api/open_point_in_time.js.map +1 -1
- package/lib/api/api/ping.d.ts +1 -1
- package/lib/api/api/ping.js +4 -1
- package/lib/api/api/ping.js.map +1 -1
- package/lib/api/api/profiling.d.ts +39 -0
- package/lib/api/api/profiling.js +113 -0
- package/lib/api/api/profiling.js.map +1 -0
- package/lib/api/api/put_script.d.ts +1 -1
- package/lib/api/api/put_script.js +8 -1
- package/lib/api/api/put_script.js.map +1 -1
- package/lib/api/api/query_ruleset.d.ts +4 -4
- package/lib/api/api/query_ruleset.js +25 -4
- package/lib/api/api/query_ruleset.js.map +1 -1
- package/lib/api/api/rank_eval.d.ts +1 -1
- package/lib/api/api/rank_eval.js +7 -1
- package/lib/api/api/rank_eval.js.map +1 -1
- package/lib/api/api/reindex.d.ts +1 -1
- package/lib/api/api/reindex.js +4 -1
- package/lib/api/api/reindex.js.map +1 -1
- package/lib/api/api/reindex_rethrottle.d.ts +1 -1
- package/lib/api/api/reindex_rethrottle.js +7 -1
- package/lib/api/api/reindex_rethrottle.js.map +1 -1
- package/lib/api/api/render_search_template.d.ts +1 -1
- package/lib/api/api/render_search_template.js +7 -1
- package/lib/api/api/render_search_template.js.map +1 -1
- package/lib/api/api/rollup.d.ts +8 -8
- package/lib/api/api/rollup.js +56 -8
- package/lib/api/api/rollup.js.map +1 -1
- package/lib/api/api/scripts_painless_execute.d.ts +1 -1
- package/lib/api/api/scripts_painless_execute.js +4 -1
- package/lib/api/api/scripts_painless_execute.js.map +1 -1
- package/lib/api/api/scroll.d.ts +1 -1
- package/lib/api/api/scroll.js +7 -1
- package/lib/api/api/scroll.js.map +1 -1
- package/lib/api/api/search.d.ts +1 -1
- package/lib/api/api/search.js +8 -2
- package/lib/api/api/search.js.map +1 -1
- package/lib/api/api/search_application.d.ts +9 -9
- package/lib/api/api/search_application.js +68 -10
- package/lib/api/api/search_application.js.map +1 -1
- package/lib/api/api/search_mvt.d.ts +1 -1
- package/lib/api/api/search_mvt.js +11 -1
- package/lib/api/api/search_mvt.js.map +1 -1
- package/lib/api/api/search_shards.d.ts +1 -1
- package/lib/api/api/search_shards.js +7 -1
- package/lib/api/api/search_shards.js.map +1 -1
- package/lib/api/api/search_template.d.ts +1 -1
- package/lib/api/api/search_template.js +7 -1
- package/lib/api/api/search_template.js.map +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +4 -4
- package/lib/api/api/searchable_snapshots.js +29 -4
- package/lib/api/api/searchable_snapshots.js.map +1 -1
- package/lib/api/api/security.d.ts +66 -59
- package/lib/api/api/security.js +359 -59
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/shutdown.js +21 -3
- package/lib/api/api/shutdown.js.map +1 -1
- package/lib/api/api/simulate.d.ts +18 -0
- package/lib/api/api/simulate.js +64 -0
- package/lib/api/api/simulate.js.map +1 -0
- package/lib/api/api/slm.d.ts +9 -9
- package/lib/api/api/slm.js +48 -9
- package/lib/api/api/slm.js.map +1 -1
- package/lib/api/api/snapshot.d.ts +12 -12
- package/lib/api/api/snapshot.js +91 -12
- package/lib/api/api/snapshot.js.map +1 -1
- package/lib/api/api/sql.d.ts +6 -6
- package/lib/api/api/sql.js +33 -6
- package/lib/api/api/sql.js.map +1 -1
- package/lib/api/api/ssl.d.ts +1 -1
- package/lib/api/api/ssl.js +4 -1
- package/lib/api/api/ssl.js.map +1 -1
- package/lib/api/api/synonyms.d.ts +7 -7
- package/lib/api/api/synonyms.js +49 -7
- package/lib/api/api/synonyms.js.map +1 -1
- package/lib/api/api/tasks.d.ts +3 -3
- package/lib/api/api/tasks.js +18 -3
- package/lib/api/api/tasks.js.map +1 -1
- package/lib/api/api/terms_enum.d.ts +1 -1
- package/lib/api/api/terms_enum.js +7 -1
- package/lib/api/api/terms_enum.js.map +1 -1
- package/lib/api/api/termvectors.d.ts +1 -1
- package/lib/api/api/termvectors.js +8 -1
- package/lib/api/api/termvectors.js.map +1 -1
- package/lib/api/api/text_structure.d.ts +16 -2
- package/lib/api/api/text_structure.js +48 -2
- package/lib/api/api/text_structure.js.map +1 -1
- package/lib/api/api/transform.d.ts +11 -11
- package/lib/api/api/transform.js +74 -11
- package/lib/api/api/transform.js.map +1 -1
- package/lib/api/api/update.d.ts +1 -1
- package/lib/api/api/update.js +8 -1
- package/lib/api/api/update.js.map +1 -1
- package/lib/api/api/update_by_query.d.ts +2 -2
- package/lib/api/api/update_by_query.js +7 -1
- package/lib/api/api/update_by_query.js.map +1 -1
- package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/update_by_query_rethrottle.js +7 -1
- package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/watcher.d.ts +13 -13
- package/lib/api/api/watcher.js +77 -13
- package/lib/api/api/watcher.js.map +1 -1
- package/lib/api/api/xpack.d.ts +2 -2
- package/lib/api/api/xpack.js +8 -2
- package/lib/api/api/xpack.js.map +1 -1
- package/lib/api/index.d.ts +12 -0
- package/lib/api/index.js +38 -2
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +590 -95
- package/lib/api/typesWithBodyKey.d.ts +644 -99
- package/lib/helpers.d.ts +29 -0
- package/lib/helpers.js +96 -20
- package/lib/helpers.js.map +1 -1
- package/package.json +3 -3
- package/Makefile +0 -11
package/lib/api/api/security.js
CHANGED
|
@@ -57,7 +57,10 @@ class Security {
|
|
|
57
57
|
}
|
|
58
58
|
const method = 'POST';
|
|
59
59
|
const path = '/_security/profile/_activate';
|
|
60
|
-
|
|
60
|
+
const meta = {
|
|
61
|
+
name: 'security.activate_user_profile'
|
|
62
|
+
};
|
|
63
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
61
64
|
}
|
|
62
65
|
async authenticate(params, options) {
|
|
63
66
|
const acceptedPath = [];
|
|
@@ -75,7 +78,10 @@ class Security {
|
|
|
75
78
|
}
|
|
76
79
|
const method = 'GET';
|
|
77
80
|
const path = '/_security/_authenticate';
|
|
78
|
-
|
|
81
|
+
const meta = {
|
|
82
|
+
name: 'security.authenticate'
|
|
83
|
+
};
|
|
84
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
79
85
|
}
|
|
80
86
|
async bulkUpdateApiKeys(params, options) {
|
|
81
87
|
const acceptedPath = [];
|
|
@@ -92,7 +98,10 @@ class Security {
|
|
|
92
98
|
}
|
|
93
99
|
const method = 'POST';
|
|
94
100
|
const path = '/_security/api_key/_bulk_update';
|
|
95
|
-
|
|
101
|
+
const meta = {
|
|
102
|
+
name: 'security.bulk_update_api_keys'
|
|
103
|
+
};
|
|
104
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
96
105
|
}
|
|
97
106
|
async changePassword(params, options) {
|
|
98
107
|
const acceptedPath = ['username'];
|
|
@@ -132,7 +141,13 @@ class Security {
|
|
|
132
141
|
method = 'PUT';
|
|
133
142
|
path = '/_security/user/_password';
|
|
134
143
|
}
|
|
135
|
-
|
|
144
|
+
const meta = {
|
|
145
|
+
name: 'security.change_password',
|
|
146
|
+
pathParts: {
|
|
147
|
+
username: params.username
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
136
151
|
}
|
|
137
152
|
async clearApiKeyCache(params, options) {
|
|
138
153
|
const acceptedPath = ['ids'];
|
|
@@ -149,7 +164,13 @@ class Security {
|
|
|
149
164
|
}
|
|
150
165
|
const method = 'POST';
|
|
151
166
|
const path = `/_security/api_key/${encodeURIComponent(params.ids.toString())}/_clear_cache`;
|
|
152
|
-
|
|
167
|
+
const meta = {
|
|
168
|
+
name: 'security.clear_api_key_cache',
|
|
169
|
+
pathParts: {
|
|
170
|
+
ids: params.ids
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
153
174
|
}
|
|
154
175
|
async clearCachedPrivileges(params, options) {
|
|
155
176
|
const acceptedPath = ['application'];
|
|
@@ -166,7 +187,13 @@ class Security {
|
|
|
166
187
|
}
|
|
167
188
|
const method = 'POST';
|
|
168
189
|
const path = `/_security/privilege/${encodeURIComponent(params.application.toString())}/_clear_cache`;
|
|
169
|
-
|
|
190
|
+
const meta = {
|
|
191
|
+
name: 'security.clear_cached_privileges',
|
|
192
|
+
pathParts: {
|
|
193
|
+
application: params.application
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
170
197
|
}
|
|
171
198
|
async clearCachedRealms(params, options) {
|
|
172
199
|
const acceptedPath = ['realms'];
|
|
@@ -183,7 +210,13 @@ class Security {
|
|
|
183
210
|
}
|
|
184
211
|
const method = 'POST';
|
|
185
212
|
const path = `/_security/realm/${encodeURIComponent(params.realms.toString())}/_clear_cache`;
|
|
186
|
-
|
|
213
|
+
const meta = {
|
|
214
|
+
name: 'security.clear_cached_realms',
|
|
215
|
+
pathParts: {
|
|
216
|
+
realms: params.realms
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
187
220
|
}
|
|
188
221
|
async clearCachedRoles(params, options) {
|
|
189
222
|
const acceptedPath = ['name'];
|
|
@@ -200,7 +233,13 @@ class Security {
|
|
|
200
233
|
}
|
|
201
234
|
const method = 'POST';
|
|
202
235
|
const path = `/_security/role/${encodeURIComponent(params.name.toString())}/_clear_cache`;
|
|
203
|
-
|
|
236
|
+
const meta = {
|
|
237
|
+
name: 'security.clear_cached_roles',
|
|
238
|
+
pathParts: {
|
|
239
|
+
name: params.name
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
204
243
|
}
|
|
205
244
|
async clearCachedServiceTokens(params, options) {
|
|
206
245
|
const acceptedPath = ['namespace', 'service', 'name'];
|
|
@@ -217,7 +256,15 @@ class Security {
|
|
|
217
256
|
}
|
|
218
257
|
const method = 'POST';
|
|
219
258
|
const path = `/_security/service/${encodeURIComponent(params.namespace.toString())}/${encodeURIComponent(params.service.toString())}/credential/token/${encodeURIComponent(params.name.toString())}/_clear_cache`;
|
|
220
|
-
|
|
259
|
+
const meta = {
|
|
260
|
+
name: 'security.clear_cached_service_tokens',
|
|
261
|
+
pathParts: {
|
|
262
|
+
namespace: params.namespace,
|
|
263
|
+
service: params.service,
|
|
264
|
+
name: params.name
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
221
268
|
}
|
|
222
269
|
async createApiKey(params, options) {
|
|
223
270
|
const acceptedPath = [];
|
|
@@ -249,7 +296,10 @@ class Security {
|
|
|
249
296
|
}
|
|
250
297
|
const method = 'PUT';
|
|
251
298
|
const path = '/_security/api_key';
|
|
252
|
-
|
|
299
|
+
const meta = {
|
|
300
|
+
name: 'security.create_api_key'
|
|
301
|
+
};
|
|
302
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
253
303
|
}
|
|
254
304
|
async createCrossClusterApiKey(params, options) {
|
|
255
305
|
const acceptedPath = [];
|
|
@@ -266,7 +316,10 @@ class Security {
|
|
|
266
316
|
}
|
|
267
317
|
const method = 'POST';
|
|
268
318
|
const path = '/_security/cross_cluster/api_key';
|
|
269
|
-
|
|
319
|
+
const meta = {
|
|
320
|
+
name: 'security.create_cross_cluster_api_key'
|
|
321
|
+
};
|
|
322
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
270
323
|
}
|
|
271
324
|
async createServiceToken(params, options) {
|
|
272
325
|
const acceptedPath = ['namespace', 'service', 'name'];
|
|
@@ -291,7 +344,15 @@ class Security {
|
|
|
291
344
|
method = 'POST';
|
|
292
345
|
path = `/_security/service/${encodeURIComponent(params.namespace.toString())}/${encodeURIComponent(params.service.toString())}/credential/token`;
|
|
293
346
|
}
|
|
294
|
-
|
|
347
|
+
const meta = {
|
|
348
|
+
name: 'security.create_service_token',
|
|
349
|
+
pathParts: {
|
|
350
|
+
namespace: params.namespace,
|
|
351
|
+
service: params.service,
|
|
352
|
+
name: params.name
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
295
356
|
}
|
|
296
357
|
async deletePrivileges(params, options) {
|
|
297
358
|
const acceptedPath = ['application', 'name'];
|
|
@@ -308,7 +369,14 @@ class Security {
|
|
|
308
369
|
}
|
|
309
370
|
const method = 'DELETE';
|
|
310
371
|
const path = `/_security/privilege/${encodeURIComponent(params.application.toString())}/${encodeURIComponent(params.name.toString())}`;
|
|
311
|
-
|
|
372
|
+
const meta = {
|
|
373
|
+
name: 'security.delete_privileges',
|
|
374
|
+
pathParts: {
|
|
375
|
+
application: params.application,
|
|
376
|
+
name: params.name
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
312
380
|
}
|
|
313
381
|
async deleteRole(params, options) {
|
|
314
382
|
const acceptedPath = ['name'];
|
|
@@ -325,7 +393,13 @@ class Security {
|
|
|
325
393
|
}
|
|
326
394
|
const method = 'DELETE';
|
|
327
395
|
const path = `/_security/role/${encodeURIComponent(params.name.toString())}`;
|
|
328
|
-
|
|
396
|
+
const meta = {
|
|
397
|
+
name: 'security.delete_role',
|
|
398
|
+
pathParts: {
|
|
399
|
+
name: params.name
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
329
403
|
}
|
|
330
404
|
async deleteRoleMapping(params, options) {
|
|
331
405
|
const acceptedPath = ['name'];
|
|
@@ -342,7 +416,13 @@ class Security {
|
|
|
342
416
|
}
|
|
343
417
|
const method = 'DELETE';
|
|
344
418
|
const path = `/_security/role_mapping/${encodeURIComponent(params.name.toString())}`;
|
|
345
|
-
|
|
419
|
+
const meta = {
|
|
420
|
+
name: 'security.delete_role_mapping',
|
|
421
|
+
pathParts: {
|
|
422
|
+
name: params.name
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
346
426
|
}
|
|
347
427
|
async deleteServiceToken(params, options) {
|
|
348
428
|
const acceptedPath = ['namespace', 'service', 'name'];
|
|
@@ -359,7 +439,15 @@ class Security {
|
|
|
359
439
|
}
|
|
360
440
|
const method = 'DELETE';
|
|
361
441
|
const path = `/_security/service/${encodeURIComponent(params.namespace.toString())}/${encodeURIComponent(params.service.toString())}/credential/token/${encodeURIComponent(params.name.toString())}`;
|
|
362
|
-
|
|
442
|
+
const meta = {
|
|
443
|
+
name: 'security.delete_service_token',
|
|
444
|
+
pathParts: {
|
|
445
|
+
namespace: params.namespace,
|
|
446
|
+
service: params.service,
|
|
447
|
+
name: params.name
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
363
451
|
}
|
|
364
452
|
async deleteUser(params, options) {
|
|
365
453
|
const acceptedPath = ['username'];
|
|
@@ -376,7 +464,13 @@ class Security {
|
|
|
376
464
|
}
|
|
377
465
|
const method = 'DELETE';
|
|
378
466
|
const path = `/_security/user/${encodeURIComponent(params.username.toString())}`;
|
|
379
|
-
|
|
467
|
+
const meta = {
|
|
468
|
+
name: 'security.delete_user',
|
|
469
|
+
pathParts: {
|
|
470
|
+
username: params.username
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
380
474
|
}
|
|
381
475
|
async disableUser(params, options) {
|
|
382
476
|
const acceptedPath = ['username'];
|
|
@@ -393,7 +487,13 @@ class Security {
|
|
|
393
487
|
}
|
|
394
488
|
const method = 'PUT';
|
|
395
489
|
const path = `/_security/user/${encodeURIComponent(params.username.toString())}/_disable`;
|
|
396
|
-
|
|
490
|
+
const meta = {
|
|
491
|
+
name: 'security.disable_user',
|
|
492
|
+
pathParts: {
|
|
493
|
+
username: params.username
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
397
497
|
}
|
|
398
498
|
async disableUserProfile(params, options) {
|
|
399
499
|
const acceptedPath = ['uid'];
|
|
@@ -410,7 +510,13 @@ class Security {
|
|
|
410
510
|
}
|
|
411
511
|
const method = 'PUT';
|
|
412
512
|
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_disable`;
|
|
413
|
-
|
|
513
|
+
const meta = {
|
|
514
|
+
name: 'security.disable_user_profile',
|
|
515
|
+
pathParts: {
|
|
516
|
+
uid: params.uid
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
414
520
|
}
|
|
415
521
|
async enableUser(params, options) {
|
|
416
522
|
const acceptedPath = ['username'];
|
|
@@ -427,7 +533,13 @@ class Security {
|
|
|
427
533
|
}
|
|
428
534
|
const method = 'PUT';
|
|
429
535
|
const path = `/_security/user/${encodeURIComponent(params.username.toString())}/_enable`;
|
|
430
|
-
|
|
536
|
+
const meta = {
|
|
537
|
+
name: 'security.enable_user',
|
|
538
|
+
pathParts: {
|
|
539
|
+
username: params.username
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
431
543
|
}
|
|
432
544
|
async enableUserProfile(params, options) {
|
|
433
545
|
const acceptedPath = ['uid'];
|
|
@@ -444,7 +556,13 @@ class Security {
|
|
|
444
556
|
}
|
|
445
557
|
const method = 'PUT';
|
|
446
558
|
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_enable`;
|
|
447
|
-
|
|
559
|
+
const meta = {
|
|
560
|
+
name: 'security.enable_user_profile',
|
|
561
|
+
pathParts: {
|
|
562
|
+
uid: params.uid
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
448
566
|
}
|
|
449
567
|
async enrollKibana(params, options) {
|
|
450
568
|
const acceptedPath = [];
|
|
@@ -462,7 +580,10 @@ class Security {
|
|
|
462
580
|
}
|
|
463
581
|
const method = 'GET';
|
|
464
582
|
const path = '/_security/enroll/kibana';
|
|
465
|
-
|
|
583
|
+
const meta = {
|
|
584
|
+
name: 'security.enroll_kibana'
|
|
585
|
+
};
|
|
586
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
466
587
|
}
|
|
467
588
|
async enrollNode(params, options) {
|
|
468
589
|
const acceptedPath = [];
|
|
@@ -480,7 +601,10 @@ class Security {
|
|
|
480
601
|
}
|
|
481
602
|
const method = 'GET';
|
|
482
603
|
const path = '/_security/enroll/node';
|
|
483
|
-
|
|
604
|
+
const meta = {
|
|
605
|
+
name: 'security.enroll_node'
|
|
606
|
+
};
|
|
607
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
484
608
|
}
|
|
485
609
|
async getApiKey(params, options) {
|
|
486
610
|
const acceptedPath = [];
|
|
@@ -498,7 +622,10 @@ class Security {
|
|
|
498
622
|
}
|
|
499
623
|
const method = 'GET';
|
|
500
624
|
const path = '/_security/api_key';
|
|
501
|
-
|
|
625
|
+
const meta = {
|
|
626
|
+
name: 'security.get_api_key'
|
|
627
|
+
};
|
|
628
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
502
629
|
}
|
|
503
630
|
async getBuiltinPrivileges(params, options) {
|
|
504
631
|
const acceptedPath = [];
|
|
@@ -516,7 +643,10 @@ class Security {
|
|
|
516
643
|
}
|
|
517
644
|
const method = 'GET';
|
|
518
645
|
const path = '/_security/privilege/_builtin';
|
|
519
|
-
|
|
646
|
+
const meta = {
|
|
647
|
+
name: 'security.get_builtin_privileges'
|
|
648
|
+
};
|
|
649
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
520
650
|
}
|
|
521
651
|
async getPrivileges(params, options) {
|
|
522
652
|
const acceptedPath = ['application', 'name'];
|
|
@@ -546,7 +676,14 @@ class Security {
|
|
|
546
676
|
method = 'GET';
|
|
547
677
|
path = '/_security/privilege';
|
|
548
678
|
}
|
|
549
|
-
|
|
679
|
+
const meta = {
|
|
680
|
+
name: 'security.get_privileges',
|
|
681
|
+
pathParts: {
|
|
682
|
+
application: params.application,
|
|
683
|
+
name: params.name
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
550
687
|
}
|
|
551
688
|
async getRole(params, options) {
|
|
552
689
|
const acceptedPath = ['name'];
|
|
@@ -572,7 +709,13 @@ class Security {
|
|
|
572
709
|
method = 'GET';
|
|
573
710
|
path = '/_security/role';
|
|
574
711
|
}
|
|
575
|
-
|
|
712
|
+
const meta = {
|
|
713
|
+
name: 'security.get_role',
|
|
714
|
+
pathParts: {
|
|
715
|
+
name: params.name
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
576
719
|
}
|
|
577
720
|
async getRoleMapping(params, options) {
|
|
578
721
|
const acceptedPath = ['name'];
|
|
@@ -598,7 +741,13 @@ class Security {
|
|
|
598
741
|
method = 'GET';
|
|
599
742
|
path = '/_security/role_mapping';
|
|
600
743
|
}
|
|
601
|
-
|
|
744
|
+
const meta = {
|
|
745
|
+
name: 'security.get_role_mapping',
|
|
746
|
+
pathParts: {
|
|
747
|
+
name: params.name
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
602
751
|
}
|
|
603
752
|
async getServiceAccounts(params, options) {
|
|
604
753
|
const acceptedPath = ['namespace', 'service'];
|
|
@@ -628,7 +777,14 @@ class Security {
|
|
|
628
777
|
method = 'GET';
|
|
629
778
|
path = '/_security/service';
|
|
630
779
|
}
|
|
631
|
-
|
|
780
|
+
const meta = {
|
|
781
|
+
name: 'security.get_service_accounts',
|
|
782
|
+
pathParts: {
|
|
783
|
+
namespace: params.namespace,
|
|
784
|
+
service: params.service
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
632
788
|
}
|
|
633
789
|
async getServiceCredentials(params, options) {
|
|
634
790
|
const acceptedPath = ['namespace', 'service'];
|
|
@@ -645,7 +801,14 @@ class Security {
|
|
|
645
801
|
}
|
|
646
802
|
const method = 'GET';
|
|
647
803
|
const path = `/_security/service/${encodeURIComponent(params.namespace.toString())}/${encodeURIComponent(params.service.toString())}/credential`;
|
|
648
|
-
|
|
804
|
+
const meta = {
|
|
805
|
+
name: 'security.get_service_credentials',
|
|
806
|
+
pathParts: {
|
|
807
|
+
namespace: params.namespace,
|
|
808
|
+
service: params.service
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
649
812
|
}
|
|
650
813
|
async getSettings(params, options) {
|
|
651
814
|
const acceptedPath = [];
|
|
@@ -662,7 +825,10 @@ class Security {
|
|
|
662
825
|
}
|
|
663
826
|
const method = 'GET';
|
|
664
827
|
const path = '/_security/settings';
|
|
665
|
-
|
|
828
|
+
const meta = {
|
|
829
|
+
name: 'security.get_settings'
|
|
830
|
+
};
|
|
831
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
666
832
|
}
|
|
667
833
|
async getToken(params, options) {
|
|
668
834
|
const acceptedPath = [];
|
|
@@ -694,7 +860,10 @@ class Security {
|
|
|
694
860
|
}
|
|
695
861
|
const method = 'POST';
|
|
696
862
|
const path = '/_security/oauth2/token';
|
|
697
|
-
|
|
863
|
+
const meta = {
|
|
864
|
+
name: 'security.get_token'
|
|
865
|
+
};
|
|
866
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
698
867
|
}
|
|
699
868
|
async getUser(params, options) {
|
|
700
869
|
const acceptedPath = ['username'];
|
|
@@ -720,7 +889,13 @@ class Security {
|
|
|
720
889
|
method = 'GET';
|
|
721
890
|
path = '/_security/user';
|
|
722
891
|
}
|
|
723
|
-
|
|
892
|
+
const meta = {
|
|
893
|
+
name: 'security.get_user',
|
|
894
|
+
pathParts: {
|
|
895
|
+
username: params.username
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
724
899
|
}
|
|
725
900
|
async getUserPrivileges(params, options) {
|
|
726
901
|
const acceptedPath = [];
|
|
@@ -738,7 +913,10 @@ class Security {
|
|
|
738
913
|
}
|
|
739
914
|
const method = 'GET';
|
|
740
915
|
const path = '/_security/user/_privileges';
|
|
741
|
-
|
|
916
|
+
const meta = {
|
|
917
|
+
name: 'security.get_user_privileges'
|
|
918
|
+
};
|
|
919
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
742
920
|
}
|
|
743
921
|
async getUserProfile(params, options) {
|
|
744
922
|
const acceptedPath = ['uid'];
|
|
@@ -755,7 +933,13 @@ class Security {
|
|
|
755
933
|
}
|
|
756
934
|
const method = 'GET';
|
|
757
935
|
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}`;
|
|
758
|
-
|
|
936
|
+
const meta = {
|
|
937
|
+
name: 'security.get_user_profile',
|
|
938
|
+
pathParts: {
|
|
939
|
+
uid: params.uid
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
759
943
|
}
|
|
760
944
|
async grantApiKey(params, options) {
|
|
761
945
|
const acceptedPath = [];
|
|
@@ -786,7 +970,10 @@ class Security {
|
|
|
786
970
|
}
|
|
787
971
|
const method = 'POST';
|
|
788
972
|
const path = '/_security/api_key/grant';
|
|
789
|
-
|
|
973
|
+
const meta = {
|
|
974
|
+
name: 'security.grant_api_key'
|
|
975
|
+
};
|
|
976
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
790
977
|
}
|
|
791
978
|
async hasPrivileges(params, options) {
|
|
792
979
|
const acceptedPath = ['user'];
|
|
@@ -826,7 +1013,13 @@ class Security {
|
|
|
826
1013
|
method = body != null ? 'POST' : 'GET';
|
|
827
1014
|
path = '/_security/user/_has_privileges';
|
|
828
1015
|
}
|
|
829
|
-
|
|
1016
|
+
const meta = {
|
|
1017
|
+
name: 'security.has_privileges',
|
|
1018
|
+
pathParts: {
|
|
1019
|
+
user: params.user
|
|
1020
|
+
}
|
|
1021
|
+
};
|
|
1022
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
830
1023
|
}
|
|
831
1024
|
async hasPrivilegesUserProfile(params, options) {
|
|
832
1025
|
const acceptedPath = [];
|
|
@@ -857,7 +1050,10 @@ class Security {
|
|
|
857
1050
|
}
|
|
858
1051
|
const method = body != null ? 'POST' : 'GET';
|
|
859
1052
|
const path = '/_security/profile/_has_privileges';
|
|
860
|
-
|
|
1053
|
+
const meta = {
|
|
1054
|
+
name: 'security.has_privileges_user_profile'
|
|
1055
|
+
};
|
|
1056
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
861
1057
|
}
|
|
862
1058
|
async invalidateApiKey(params, options) {
|
|
863
1059
|
const acceptedPath = [];
|
|
@@ -889,7 +1085,10 @@ class Security {
|
|
|
889
1085
|
}
|
|
890
1086
|
const method = 'DELETE';
|
|
891
1087
|
const path = '/_security/api_key';
|
|
892
|
-
|
|
1088
|
+
const meta = {
|
|
1089
|
+
name: 'security.invalidate_api_key'
|
|
1090
|
+
};
|
|
1091
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
893
1092
|
}
|
|
894
1093
|
async invalidateToken(params, options) {
|
|
895
1094
|
const acceptedPath = [];
|
|
@@ -921,7 +1120,10 @@ class Security {
|
|
|
921
1120
|
}
|
|
922
1121
|
const method = 'DELETE';
|
|
923
1122
|
const path = '/_security/oauth2/token';
|
|
924
|
-
|
|
1123
|
+
const meta = {
|
|
1124
|
+
name: 'security.invalidate_token'
|
|
1125
|
+
};
|
|
1126
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
925
1127
|
}
|
|
926
1128
|
async oidcAuthenticate(params, options) {
|
|
927
1129
|
const acceptedPath = [];
|
|
@@ -938,7 +1140,10 @@ class Security {
|
|
|
938
1140
|
}
|
|
939
1141
|
const method = 'POST';
|
|
940
1142
|
const path = '/_security/oidc/authenticate';
|
|
941
|
-
|
|
1143
|
+
const meta = {
|
|
1144
|
+
name: 'security.oidc_authenticate'
|
|
1145
|
+
};
|
|
1146
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
942
1147
|
}
|
|
943
1148
|
async oidcLogout(params, options) {
|
|
944
1149
|
const acceptedPath = [];
|
|
@@ -955,7 +1160,10 @@ class Security {
|
|
|
955
1160
|
}
|
|
956
1161
|
const method = 'POST';
|
|
957
1162
|
const path = '/_security/oidc/logout';
|
|
958
|
-
|
|
1163
|
+
const meta = {
|
|
1164
|
+
name: 'security.oidc_logout'
|
|
1165
|
+
};
|
|
1166
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
959
1167
|
}
|
|
960
1168
|
async oidcPrepareAuthentication(params, options) {
|
|
961
1169
|
const acceptedPath = [];
|
|
@@ -972,7 +1180,10 @@ class Security {
|
|
|
972
1180
|
}
|
|
973
1181
|
const method = 'POST';
|
|
974
1182
|
const path = '/_security/oidc/prepare';
|
|
975
|
-
|
|
1183
|
+
const meta = {
|
|
1184
|
+
name: 'security.oidc_prepare_authentication'
|
|
1185
|
+
};
|
|
1186
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
976
1187
|
}
|
|
977
1188
|
async putPrivileges(params, options) {
|
|
978
1189
|
var _a;
|
|
@@ -996,7 +1207,10 @@ class Security {
|
|
|
996
1207
|
}
|
|
997
1208
|
const method = 'PUT';
|
|
998
1209
|
const path = '/_security/privilege';
|
|
999
|
-
|
|
1210
|
+
const meta = {
|
|
1211
|
+
name: 'security.put_privileges'
|
|
1212
|
+
};
|
|
1213
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1000
1214
|
}
|
|
1001
1215
|
async putRole(params, options) {
|
|
1002
1216
|
const acceptedPath = ['name'];
|
|
@@ -1027,7 +1241,13 @@ class Security {
|
|
|
1027
1241
|
}
|
|
1028
1242
|
const method = 'PUT';
|
|
1029
1243
|
const path = `/_security/role/${encodeURIComponent(params.name.toString())}`;
|
|
1030
|
-
|
|
1244
|
+
const meta = {
|
|
1245
|
+
name: 'security.put_role',
|
|
1246
|
+
pathParts: {
|
|
1247
|
+
name: params.name
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1031
1251
|
}
|
|
1032
1252
|
async putRoleMapping(params, options) {
|
|
1033
1253
|
const acceptedPath = ['name'];
|
|
@@ -1058,7 +1278,13 @@ class Security {
|
|
|
1058
1278
|
}
|
|
1059
1279
|
const method = 'PUT';
|
|
1060
1280
|
const path = `/_security/role_mapping/${encodeURIComponent(params.name.toString())}`;
|
|
1061
|
-
|
|
1281
|
+
const meta = {
|
|
1282
|
+
name: 'security.put_role_mapping',
|
|
1283
|
+
pathParts: {
|
|
1284
|
+
name: params.name
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1062
1288
|
}
|
|
1063
1289
|
async putUser(params, options) {
|
|
1064
1290
|
const acceptedPath = [];
|
|
@@ -1089,7 +1315,13 @@ class Security {
|
|
|
1089
1315
|
}
|
|
1090
1316
|
const method = 'PUT';
|
|
1091
1317
|
const path = `/_security/user/${encodeURIComponent(params.username.toString())}`;
|
|
1092
|
-
|
|
1318
|
+
const meta = {
|
|
1319
|
+
name: 'security.put_user',
|
|
1320
|
+
pathParts: {
|
|
1321
|
+
username: params.username
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1093
1325
|
}
|
|
1094
1326
|
async queryApiKeys(params, options) {
|
|
1095
1327
|
const acceptedPath = [];
|
|
@@ -1121,7 +1353,30 @@ class Security {
|
|
|
1121
1353
|
}
|
|
1122
1354
|
const method = body != null ? 'POST' : 'GET';
|
|
1123
1355
|
const path = '/_security/_query/api_key';
|
|
1124
|
-
|
|
1356
|
+
const meta = {
|
|
1357
|
+
name: 'security.query_api_keys'
|
|
1358
|
+
};
|
|
1359
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1360
|
+
}
|
|
1361
|
+
async queryUser(params, options) {
|
|
1362
|
+
const acceptedPath = [];
|
|
1363
|
+
const querystring = {};
|
|
1364
|
+
const body = undefined;
|
|
1365
|
+
params = params !== null && params !== void 0 ? params : {};
|
|
1366
|
+
for (const key in params) {
|
|
1367
|
+
if (acceptedPath.includes(key)) {
|
|
1368
|
+
continue;
|
|
1369
|
+
}
|
|
1370
|
+
else if (key !== 'body') {
|
|
1371
|
+
querystring[key] = params[key];
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
const method = body != null ? 'POST' : 'GET';
|
|
1375
|
+
const path = '/_security/_query/user';
|
|
1376
|
+
const meta = {
|
|
1377
|
+
name: 'security.query_user'
|
|
1378
|
+
};
|
|
1379
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1125
1380
|
}
|
|
1126
1381
|
async samlAuthenticate(params, options) {
|
|
1127
1382
|
const acceptedPath = [];
|
|
@@ -1152,7 +1407,10 @@ class Security {
|
|
|
1152
1407
|
}
|
|
1153
1408
|
const method = 'POST';
|
|
1154
1409
|
const path = '/_security/saml/authenticate';
|
|
1155
|
-
|
|
1410
|
+
const meta = {
|
|
1411
|
+
name: 'security.saml_authenticate'
|
|
1412
|
+
};
|
|
1413
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1156
1414
|
}
|
|
1157
1415
|
async samlCompleteLogout(params, options) {
|
|
1158
1416
|
const acceptedPath = [];
|
|
@@ -1183,7 +1441,10 @@ class Security {
|
|
|
1183
1441
|
}
|
|
1184
1442
|
const method = 'POST';
|
|
1185
1443
|
const path = '/_security/saml/complete_logout';
|
|
1186
|
-
|
|
1444
|
+
const meta = {
|
|
1445
|
+
name: 'security.saml_complete_logout'
|
|
1446
|
+
};
|
|
1447
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1187
1448
|
}
|
|
1188
1449
|
async samlInvalidate(params, options) {
|
|
1189
1450
|
const acceptedPath = [];
|
|
@@ -1214,7 +1475,10 @@ class Security {
|
|
|
1214
1475
|
}
|
|
1215
1476
|
const method = 'POST';
|
|
1216
1477
|
const path = '/_security/saml/invalidate';
|
|
1217
|
-
|
|
1478
|
+
const meta = {
|
|
1479
|
+
name: 'security.saml_invalidate'
|
|
1480
|
+
};
|
|
1481
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1218
1482
|
}
|
|
1219
1483
|
async samlLogout(params, options) {
|
|
1220
1484
|
const acceptedPath = [];
|
|
@@ -1245,7 +1509,10 @@ class Security {
|
|
|
1245
1509
|
}
|
|
1246
1510
|
const method = 'POST';
|
|
1247
1511
|
const path = '/_security/saml/logout';
|
|
1248
|
-
|
|
1512
|
+
const meta = {
|
|
1513
|
+
name: 'security.saml_logout'
|
|
1514
|
+
};
|
|
1515
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1249
1516
|
}
|
|
1250
1517
|
async samlPrepareAuthentication(params, options) {
|
|
1251
1518
|
const acceptedPath = [];
|
|
@@ -1277,7 +1544,10 @@ class Security {
|
|
|
1277
1544
|
}
|
|
1278
1545
|
const method = 'POST';
|
|
1279
1546
|
const path = '/_security/saml/prepare';
|
|
1280
|
-
|
|
1547
|
+
const meta = {
|
|
1548
|
+
name: 'security.saml_prepare_authentication'
|
|
1549
|
+
};
|
|
1550
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1281
1551
|
}
|
|
1282
1552
|
async samlServiceProviderMetadata(params, options) {
|
|
1283
1553
|
const acceptedPath = ['realm_name'];
|
|
@@ -1294,7 +1564,13 @@ class Security {
|
|
|
1294
1564
|
}
|
|
1295
1565
|
const method = 'GET';
|
|
1296
1566
|
const path = `/_security/saml/metadata/${encodeURIComponent(params.realm_name.toString())}`;
|
|
1297
|
-
|
|
1567
|
+
const meta = {
|
|
1568
|
+
name: 'security.saml_service_provider_metadata',
|
|
1569
|
+
pathParts: {
|
|
1570
|
+
realm_name: params.realm_name
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1298
1574
|
}
|
|
1299
1575
|
async suggestUserProfiles(params, options) {
|
|
1300
1576
|
const acceptedPath = [];
|
|
@@ -1326,7 +1602,10 @@ class Security {
|
|
|
1326
1602
|
}
|
|
1327
1603
|
const method = body != null ? 'POST' : 'GET';
|
|
1328
1604
|
const path = '/_security/profile/_suggest';
|
|
1329
|
-
|
|
1605
|
+
const meta = {
|
|
1606
|
+
name: 'security.suggest_user_profiles'
|
|
1607
|
+
};
|
|
1608
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1330
1609
|
}
|
|
1331
1610
|
async updateApiKey(params, options) {
|
|
1332
1611
|
const acceptedPath = ['id'];
|
|
@@ -1357,7 +1636,13 @@ class Security {
|
|
|
1357
1636
|
}
|
|
1358
1637
|
const method = 'PUT';
|
|
1359
1638
|
const path = `/_security/api_key/${encodeURIComponent(params.id.toString())}`;
|
|
1360
|
-
|
|
1639
|
+
const meta = {
|
|
1640
|
+
name: 'security.update_api_key',
|
|
1641
|
+
pathParts: {
|
|
1642
|
+
id: params.id
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1645
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1361
1646
|
}
|
|
1362
1647
|
async updateCrossClusterApiKey(params, options) {
|
|
1363
1648
|
const acceptedPath = ['id'];
|
|
@@ -1374,7 +1659,13 @@ class Security {
|
|
|
1374
1659
|
}
|
|
1375
1660
|
const method = 'PUT';
|
|
1376
1661
|
const path = `/_security/cross_cluster/api_key/${encodeURIComponent(params.id.toString())}`;
|
|
1377
|
-
|
|
1662
|
+
const meta = {
|
|
1663
|
+
name: 'security.update_cross_cluster_api_key',
|
|
1664
|
+
pathParts: {
|
|
1665
|
+
id: params.id
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1378
1669
|
}
|
|
1379
1670
|
async updateSettings(params, options) {
|
|
1380
1671
|
const acceptedPath = [];
|
|
@@ -1391,7 +1682,10 @@ class Security {
|
|
|
1391
1682
|
}
|
|
1392
1683
|
const method = 'PUT';
|
|
1393
1684
|
const path = '/_security/settings';
|
|
1394
|
-
|
|
1685
|
+
const meta = {
|
|
1686
|
+
name: 'security.update_settings'
|
|
1687
|
+
};
|
|
1688
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1395
1689
|
}
|
|
1396
1690
|
async updateUserProfileData(params, options) {
|
|
1397
1691
|
const acceptedPath = ['uid'];
|
|
@@ -1422,7 +1716,13 @@ class Security {
|
|
|
1422
1716
|
}
|
|
1423
1717
|
const method = 'PUT';
|
|
1424
1718
|
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_data`;
|
|
1425
|
-
|
|
1719
|
+
const meta = {
|
|
1720
|
+
name: 'security.update_user_profile_data',
|
|
1721
|
+
pathParts: {
|
|
1722
|
+
uid: params.uid
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1426
1726
|
}
|
|
1427
1727
|
}
|
|
1428
1728
|
exports.default = Security;
|