@elastic/elasticsearch 8.16.2 → 9.0.0-alpha.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 +4 -1
- package/lib/api/api/async_search.d.ts +16 -17
- package/lib/api/api/async_search.js +5 -16
- package/lib/api/api/async_search.js.map +1 -1
- package/lib/api/api/autoscaling.d.ts +16 -17
- package/lib/api/api/autoscaling.js +5 -7
- package/lib/api/api/autoscaling.js.map +1 -1
- package/lib/api/api/bulk.d.ts +4 -5
- package/lib/api/api/bulk.js +3 -5
- package/lib/api/api/bulk.js.map +1 -1
- package/lib/api/api/capabilities.d.ts +3 -4
- package/lib/api/api/capabilities.js +2 -2
- package/lib/api/api/capabilities.js.map +1 -1
- package/lib/api/api/cat.d.ts +121 -122
- package/lib/api/api/cat.js +26 -26
- package/lib/api/api/cat.js.map +1 -1
- package/lib/api/api/ccr.d.ts +52 -53
- package/lib/api/api/ccr.js +18 -54
- package/lib/api/api/ccr.js.map +1 -1
- package/lib/api/api/clear_scroll.d.ts +4 -5
- package/lib/api/api/clear_scroll.js +3 -12
- package/lib/api/api/clear_scroll.js.map +1 -1
- package/lib/api/api/close_point_in_time.d.ts +4 -5
- package/lib/api/api/close_point_in_time.js +3 -12
- package/lib/api/api/close_point_in_time.js.map +1 -1
- package/lib/api/api/cluster.d.ts +64 -65
- package/lib/api/api/cluster.js +20 -56
- package/lib/api/api/cluster.js.map +1 -1
- package/lib/api/api/connector.d.ts +132 -133
- package/lib/api/api/connector.js +50 -194
- package/lib/api/api/connector.js.map +1 -1
- package/lib/api/api/count.d.ts +5 -6
- package/lib/api/api/count.js +3 -12
- package/lib/api/api/count.js.map +1 -1
- package/lib/api/api/create.d.ts +4 -5
- package/lib/api/api/create.js +3 -5
- package/lib/api/api/create.js.map +1 -1
- package/lib/api/api/dangling_indices.d.ts +12 -13
- package/lib/api/api/dangling_indices.js +3 -3
- package/lib/api/api/dangling_indices.js.map +1 -1
- package/lib/api/api/delete.d.ts +4 -5
- package/lib/api/api/delete.js +2 -2
- package/lib/api/api/delete.js.map +1 -1
- package/lib/api/api/delete_by_query.d.ts +4 -5
- package/lib/api/api/delete_by_query.js +3 -12
- package/lib/api/api/delete_by_query.js.map +1 -1
- package/lib/api/api/delete_by_query_rethrottle.d.ts +4 -5
- package/lib/api/api/delete_by_query_rethrottle.js +2 -2
- package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/delete_script.d.ts +4 -5
- package/lib/api/api/delete_script.js +2 -2
- package/lib/api/api/delete_script.js.map +1 -1
- package/lib/api/api/enrich.d.ts +21 -22
- package/lib/api/api/enrich.js +6 -15
- package/lib/api/api/enrich.js.map +1 -1
- package/lib/api/api/eql.d.ts +20 -21
- package/lib/api/api/eql.js +6 -15
- package/lib/api/api/eql.js.map +1 -1
- package/lib/api/api/esql.d.ts +13 -14
- package/lib/api/api/esql.js +4 -13
- package/lib/api/api/esql.js.map +1 -1
- package/lib/api/api/exists.d.ts +4 -5
- package/lib/api/api/exists.js +2 -2
- package/lib/api/api/exists.js.map +1 -1
- package/lib/api/api/exists_source.d.ts +4 -5
- package/lib/api/api/exists_source.js +2 -2
- package/lib/api/api/exists_source.js.map +1 -1
- package/lib/api/api/explain.d.ts +4 -5
- package/lib/api/api/explain.js +3 -12
- package/lib/api/api/explain.js.map +1 -1
- package/lib/api/api/features.d.ts +8 -9
- package/lib/api/api/features.js +2 -2
- package/lib/api/api/features.js.map +1 -1
- package/lib/api/api/field_caps.d.ts +4 -5
- package/lib/api/api/field_caps.js +3 -12
- package/lib/api/api/field_caps.js.map +1 -1
- package/lib/api/api/fleet.d.ts +22 -23
- package/lib/api/api/fleet.js +8 -19
- package/lib/api/api/fleet.js.map +1 -1
- package/lib/api/api/get.d.ts +4 -5
- package/lib/api/api/get.js +2 -2
- package/lib/api/api/get.js.map +1 -1
- package/lib/api/api/get_script.d.ts +4 -5
- package/lib/api/api/get_script.js +2 -2
- package/lib/api/api/get_script.js.map +1 -1
- package/lib/api/api/get_script_context.d.ts +4 -5
- package/lib/api/api/get_script_context.js +2 -2
- package/lib/api/api/get_script_context.js.map +1 -1
- package/lib/api/api/get_script_languages.d.ts +4 -5
- package/lib/api/api/get_script_languages.js +2 -2
- package/lib/api/api/get_script_languages.js.map +1 -1
- package/lib/api/api/get_source.d.ts +4 -5
- package/lib/api/api/get_source.js +2 -2
- package/lib/api/api/get_source.js.map +1 -1
- package/lib/api/api/graph.d.ts +5 -6
- package/lib/api/api/graph.js +2 -11
- package/lib/api/api/graph.js.map +1 -1
- package/lib/api/api/health_report.d.ts +4 -5
- package/lib/api/api/health_report.js +2 -2
- package/lib/api/api/health_report.js.map +1 -1
- package/lib/api/api/ilm.d.ts +44 -45
- package/lib/api/api/ilm.js +14 -41
- package/lib/api/api/ilm.js.map +1 -1
- package/lib/api/api/index.d.ts +4 -5
- package/lib/api/api/index.js +3 -5
- package/lib/api/api/index.js.map +1 -1
- package/lib/api/api/indices.d.ts +238 -239
- package/lib/api/api/indices.js +77 -216
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/inference.d.ts +20 -21
- package/lib/api/api/inference.js +7 -18
- package/lib/api/api/inference.js.map +1 -1
- package/lib/api/api/info.d.ts +4 -5
- package/lib/api/api/info.js +2 -2
- package/lib/api/api/info.js.map +1 -1
- package/lib/api/api/ingest.d.ts +57 -58
- package/lib/api/api/ingest.js +15 -42
- package/lib/api/api/ingest.js.map +1 -1
- package/lib/api/api/knn_search.d.ts +4 -5
- package/lib/api/api/knn_search.js +3 -12
- package/lib/api/api/knn_search.js.map +1 -1
- package/lib/api/api/license.d.ts +28 -29
- package/lib/api/api/license.js +8 -17
- package/lib/api/api/license.js.map +1 -1
- package/lib/api/api/logstash.d.ts +12 -13
- package/lib/api/api/logstash.js +4 -6
- package/lib/api/api/logstash.js.map +1 -1
- package/lib/api/api/mget.d.ts +4 -5
- package/lib/api/api/mget.js +3 -12
- package/lib/api/api/mget.js.map +1 -1
- package/lib/api/api/migration.d.ts +12 -13
- package/lib/api/api/migration.js +3 -3
- package/lib/api/api/migration.js.map +1 -1
- package/lib/api/api/ml.d.ts +293 -294
- package/lib/api/api/ml.js +112 -449
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +4 -5
- package/lib/api/api/monitoring.js +2 -4
- package/lib/api/api/monitoring.js.map +1 -1
- package/lib/api/api/msearch.d.ts +4 -5
- package/lib/api/api/msearch.js +3 -5
- package/lib/api/api/msearch.js.map +1 -1
- package/lib/api/api/msearch_template.d.ts +4 -5
- package/lib/api/api/msearch_template.js +3 -5
- package/lib/api/api/msearch_template.js.map +1 -1
- package/lib/api/api/mtermvectors.d.ts +4 -5
- package/lib/api/api/mtermvectors.js +3 -12
- package/lib/api/api/mtermvectors.js.map +1 -1
- package/lib/api/api/nodes.d.ts +28 -29
- package/lib/api/api/nodes.js +8 -17
- package/lib/api/api/nodes.js.map +1 -1
- package/lib/api/api/open_point_in_time.d.ts +4 -5
- package/lib/api/api/open_point_in_time.js +3 -12
- package/lib/api/api/open_point_in_time.js.map +1 -1
- package/lib/api/api/ping.d.ts +4 -5
- package/lib/api/api/ping.js +2 -2
- package/lib/api/api/ping.js.map +1 -1
- package/lib/api/api/profiling.d.ts +16 -17
- package/lib/api/api/profiling.js +4 -4
- package/lib/api/api/profiling.js.map +1 -1
- package/lib/api/api/put_script.d.ts +4 -5
- package/lib/api/api/put_script.js +3 -12
- package/lib/api/api/put_script.js.map +1 -1
- package/lib/api/api/query_rules.d.ts +40 -41
- package/lib/api/api/query_rules.js +11 -38
- package/lib/api/api/query_rules.js.map +1 -1
- package/lib/api/api/rank_eval.d.ts +4 -5
- package/lib/api/api/rank_eval.js +3 -12
- package/lib/api/api/rank_eval.js.map +1 -1
- package/lib/api/api/reindex.d.ts +4 -5
- package/lib/api/api/reindex.js +3 -12
- package/lib/api/api/reindex.js.map +1 -1
- package/lib/api/api/reindex_rethrottle.d.ts +4 -5
- package/lib/api/api/reindex_rethrottle.js +2 -2
- package/lib/api/api/reindex_rethrottle.js.map +1 -1
- package/lib/api/api/render_search_template.d.ts +4 -5
- package/lib/api/api/render_search_template.js +3 -12
- package/lib/api/api/render_search_template.js.map +1 -1
- package/lib/api/api/rollup.d.ts +32 -33
- package/lib/api/api/rollup.js +10 -28
- package/lib/api/api/rollup.js.map +1 -1
- package/lib/api/api/scripts_painless_execute.d.ts +4 -5
- package/lib/api/api/scripts_painless_execute.js +3 -12
- package/lib/api/api/scripts_painless_execute.js.map +1 -1
- package/lib/api/api/scroll.d.ts +4 -5
- package/lib/api/api/scroll.js +3 -12
- package/lib/api/api/scroll.js.map +1 -1
- package/lib/api/api/search.d.ts +4 -5
- package/lib/api/api/search.js +3 -14
- package/lib/api/api/search.js.map +1 -1
- package/lib/api/api/search_application.d.ts +39 -40
- package/lib/api/api/search_application.js +12 -23
- package/lib/api/api/search_application.js.map +1 -1
- package/lib/api/api/search_mvt.d.ts +4 -5
- package/lib/api/api/search_mvt.js +3 -12
- package/lib/api/api/search_mvt.js.map +1 -1
- package/lib/api/api/search_shards.d.ts +4 -5
- package/lib/api/api/search_shards.js +2 -2
- package/lib/api/api/search_shards.js.map +1 -1
- package/lib/api/api/search_template.d.ts +4 -5
- package/lib/api/api/search_template.js +3 -12
- package/lib/api/api/search_template.js.map +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +16 -17
- package/lib/api/api/searchable_snapshots.js +5 -14
- package/lib/api/api/searchable_snapshots.js.map +1 -1
- package/lib/api/api/security.d.ts +253 -254
- package/lib/api/api/security.js +92 -337
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/shutdown.d.ts +9 -10
- package/lib/api/api/shutdown.js +4 -13
- package/lib/api/api/shutdown.js.map +1 -1
- package/lib/api/api/simulate.d.ts +4 -5
- package/lib/api/api/simulate.js +1 -1
- package/lib/api/api/simulate.js.map +1 -1
- package/lib/api/api/slm.d.ts +36 -37
- package/lib/api/api/slm.js +10 -19
- package/lib/api/api/slm.js.map +1 -1
- package/lib/api/api/snapshot.d.ts +52 -53
- package/lib/api/api/snapshot.js +17 -46
- package/lib/api/api/snapshot.js.map +1 -1
- package/lib/api/api/sql.d.ts +30 -31
- package/lib/api/api/sql.js +9 -36
- package/lib/api/api/sql.js.map +1 -1
- package/lib/api/api/ssl.d.ts +4 -5
- package/lib/api/api/ssl.js +1 -1
- package/lib/api/api/ssl.js.map +1 -1
- package/lib/api/api/synonyms.d.ts +35 -36
- package/lib/api/api/synonyms.js +9 -27
- package/lib/api/api/synonyms.js.map +1 -1
- package/lib/api/api/tasks.d.ts +12 -13
- package/lib/api/api/tasks.js +3 -3
- package/lib/api/api/tasks.js.map +1 -1
- package/lib/api/api/terms_enum.d.ts +4 -5
- package/lib/api/api/terms_enum.js +3 -12
- package/lib/api/api/terms_enum.js.map +1 -1
- package/lib/api/api/termvectors.d.ts +4 -5
- package/lib/api/api/termvectors.js +3 -12
- package/lib/api/api/termvectors.js.map +1 -1
- package/lib/api/api/text_structure.d.ts +16 -17
- package/lib/api/api/text_structure.js +6 -17
- package/lib/api/api/text_structure.js.map +1 -1
- package/lib/api/api/transform.d.ts +48 -49
- package/lib/api/api/transform.js +15 -42
- package/lib/api/api/transform.js.map +1 -1
- package/lib/api/api/update.d.ts +4 -5
- package/lib/api/api/update.js +3 -12
- package/lib/api/api/update.js.map +1 -1
- package/lib/api/api/update_by_query.d.ts +4 -5
- package/lib/api/api/update_by_query.js +3 -12
- package/lib/api/api/update_by_query.js.map +1 -1
- package/lib/api/api/update_by_query_rethrottle.d.ts +4 -5
- package/lib/api/api/update_by_query_rethrottle.js +2 -2
- package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/watcher.d.ts +52 -53
- package/lib/api/api/watcher.js +16 -43
- package/lib/api/api/watcher.js.map +1 -1
- package/lib/api/api/xpack.d.ts +8 -9
- package/lib/api/api/xpack.js +2 -2
- package/lib/api/api/xpack.js.map +1 -1
- package/lib/api/index.js +1 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +131 -72
- package/lib/client.d.ts +82 -2
- package/lib/client.js +11 -4
- package/lib/client.js.map +1 -1
- package/lib/helpers.d.ts +0 -3
- package/lib/helpers.js +8 -7
- package/lib/helpers.js.map +1 -1
- package/package.json +33 -33
- package/renovate.json +29 -0
- package/lib/api/typesWithBodyKey.d.ts +0 -18163
- package/lib/api/typesWithBodyKey.js +0 -21
- package/lib/api/typesWithBodyKey.js.map +0 -1
package/lib/api/api/security.js
CHANGED
|
@@ -32,25 +32,16 @@ class Security {
|
|
|
32
32
|
const acceptedPath = [];
|
|
33
33
|
const acceptedBody = ['access_token', 'grant_type', 'password', 'username'];
|
|
34
34
|
const querystring = {};
|
|
35
|
-
|
|
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
|
-
}
|
|
35
|
+
const body = {};
|
|
44
36
|
for (const key in params) {
|
|
45
37
|
if (acceptedBody.includes(key)) {
|
|
46
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
47
38
|
// @ts-expect-error
|
|
48
39
|
body[key] = params[key];
|
|
49
40
|
}
|
|
50
41
|
else if (acceptedPath.includes(key)) {
|
|
51
42
|
continue;
|
|
52
43
|
}
|
|
53
|
-
else
|
|
44
|
+
else {
|
|
54
45
|
// @ts-expect-error
|
|
55
46
|
querystring[key] = params[key];
|
|
56
47
|
}
|
|
@@ -71,7 +62,7 @@ class Security {
|
|
|
71
62
|
if (acceptedPath.includes(key)) {
|
|
72
63
|
continue;
|
|
73
64
|
}
|
|
74
|
-
else
|
|
65
|
+
else {
|
|
75
66
|
// @ts-expect-error
|
|
76
67
|
querystring[key] = params[key];
|
|
77
68
|
}
|
|
@@ -87,25 +78,16 @@ class Security {
|
|
|
87
78
|
const acceptedPath = [];
|
|
88
79
|
const acceptedBody = ['names'];
|
|
89
80
|
const querystring = {};
|
|
90
|
-
|
|
91
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
92
|
-
let body;
|
|
93
|
-
if (typeof userBody === 'string') {
|
|
94
|
-
body = userBody;
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
98
|
-
}
|
|
81
|
+
const body = {};
|
|
99
82
|
for (const key in params) {
|
|
100
83
|
if (acceptedBody.includes(key)) {
|
|
101
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
102
84
|
// @ts-expect-error
|
|
103
85
|
body[key] = params[key];
|
|
104
86
|
}
|
|
105
87
|
else if (acceptedPath.includes(key)) {
|
|
106
88
|
continue;
|
|
107
89
|
}
|
|
108
|
-
else
|
|
90
|
+
else {
|
|
109
91
|
// @ts-expect-error
|
|
110
92
|
querystring[key] = params[key];
|
|
111
93
|
}
|
|
@@ -121,25 +103,16 @@ class Security {
|
|
|
121
103
|
const acceptedPath = [];
|
|
122
104
|
const acceptedBody = ['roles'];
|
|
123
105
|
const querystring = {};
|
|
124
|
-
|
|
125
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
126
|
-
let body;
|
|
127
|
-
if (typeof userBody === 'string') {
|
|
128
|
-
body = userBody;
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
132
|
-
}
|
|
106
|
+
const body = {};
|
|
133
107
|
for (const key in params) {
|
|
134
108
|
if (acceptedBody.includes(key)) {
|
|
135
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
136
109
|
// @ts-expect-error
|
|
137
110
|
body[key] = params[key];
|
|
138
111
|
}
|
|
139
112
|
else if (acceptedPath.includes(key)) {
|
|
140
113
|
continue;
|
|
141
114
|
}
|
|
142
|
-
else
|
|
115
|
+
else {
|
|
143
116
|
// @ts-expect-error
|
|
144
117
|
querystring[key] = params[key];
|
|
145
118
|
}
|
|
@@ -160,7 +133,7 @@ class Security {
|
|
|
160
133
|
if (acceptedPath.includes(key)) {
|
|
161
134
|
continue;
|
|
162
135
|
}
|
|
163
|
-
else
|
|
136
|
+
else {
|
|
164
137
|
querystring[key] = params[key];
|
|
165
138
|
}
|
|
166
139
|
}
|
|
@@ -175,26 +148,17 @@ class Security {
|
|
|
175
148
|
const acceptedPath = ['username'];
|
|
176
149
|
const acceptedBody = ['password', 'password_hash'];
|
|
177
150
|
const querystring = {};
|
|
178
|
-
|
|
179
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
180
|
-
let body;
|
|
181
|
-
if (typeof userBody === 'string') {
|
|
182
|
-
body = userBody;
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
186
|
-
}
|
|
151
|
+
const body = {};
|
|
187
152
|
params = params !== null && params !== void 0 ? params : {};
|
|
188
153
|
for (const key in params) {
|
|
189
154
|
if (acceptedBody.includes(key)) {
|
|
190
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
191
155
|
// @ts-expect-error
|
|
192
156
|
body[key] = params[key];
|
|
193
157
|
}
|
|
194
158
|
else if (acceptedPath.includes(key)) {
|
|
195
159
|
continue;
|
|
196
160
|
}
|
|
197
|
-
else
|
|
161
|
+
else {
|
|
198
162
|
// @ts-expect-error
|
|
199
163
|
querystring[key] = params[key];
|
|
200
164
|
}
|
|
@@ -225,7 +189,7 @@ class Security {
|
|
|
225
189
|
if (acceptedPath.includes(key)) {
|
|
226
190
|
continue;
|
|
227
191
|
}
|
|
228
|
-
else
|
|
192
|
+
else {
|
|
229
193
|
// @ts-expect-error
|
|
230
194
|
querystring[key] = params[key];
|
|
231
195
|
}
|
|
@@ -248,7 +212,7 @@ class Security {
|
|
|
248
212
|
if (acceptedPath.includes(key)) {
|
|
249
213
|
continue;
|
|
250
214
|
}
|
|
251
|
-
else
|
|
215
|
+
else {
|
|
252
216
|
// @ts-expect-error
|
|
253
217
|
querystring[key] = params[key];
|
|
254
218
|
}
|
|
@@ -271,7 +235,7 @@ class Security {
|
|
|
271
235
|
if (acceptedPath.includes(key)) {
|
|
272
236
|
continue;
|
|
273
237
|
}
|
|
274
|
-
else
|
|
238
|
+
else {
|
|
275
239
|
// @ts-expect-error
|
|
276
240
|
querystring[key] = params[key];
|
|
277
241
|
}
|
|
@@ -294,7 +258,7 @@ class Security {
|
|
|
294
258
|
if (acceptedPath.includes(key)) {
|
|
295
259
|
continue;
|
|
296
260
|
}
|
|
297
|
-
else
|
|
261
|
+
else {
|
|
298
262
|
// @ts-expect-error
|
|
299
263
|
querystring[key] = params[key];
|
|
300
264
|
}
|
|
@@ -317,7 +281,7 @@ class Security {
|
|
|
317
281
|
if (acceptedPath.includes(key)) {
|
|
318
282
|
continue;
|
|
319
283
|
}
|
|
320
|
-
else
|
|
284
|
+
else {
|
|
321
285
|
// @ts-expect-error
|
|
322
286
|
querystring[key] = params[key];
|
|
323
287
|
}
|
|
@@ -338,26 +302,17 @@ class Security {
|
|
|
338
302
|
const acceptedPath = [];
|
|
339
303
|
const acceptedBody = ['expiration', 'name', 'role_descriptors', 'metadata'];
|
|
340
304
|
const querystring = {};
|
|
341
|
-
|
|
342
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
343
|
-
let body;
|
|
344
|
-
if (typeof userBody === 'string') {
|
|
345
|
-
body = userBody;
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
349
|
-
}
|
|
305
|
+
const body = {};
|
|
350
306
|
params = params !== null && params !== void 0 ? params : {};
|
|
351
307
|
for (const key in params) {
|
|
352
308
|
if (acceptedBody.includes(key)) {
|
|
353
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
354
309
|
// @ts-expect-error
|
|
355
310
|
body[key] = params[key];
|
|
356
311
|
}
|
|
357
312
|
else if (acceptedPath.includes(key)) {
|
|
358
313
|
continue;
|
|
359
314
|
}
|
|
360
|
-
else
|
|
315
|
+
else {
|
|
361
316
|
// @ts-expect-error
|
|
362
317
|
querystring[key] = params[key];
|
|
363
318
|
}
|
|
@@ -373,25 +328,16 @@ class Security {
|
|
|
373
328
|
const acceptedPath = [];
|
|
374
329
|
const acceptedBody = ['access', 'expiration', 'metadata', 'name'];
|
|
375
330
|
const querystring = {};
|
|
376
|
-
|
|
377
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
378
|
-
let body;
|
|
379
|
-
if (typeof userBody === 'string') {
|
|
380
|
-
body = userBody;
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
384
|
-
}
|
|
331
|
+
const body = {};
|
|
385
332
|
for (const key in params) {
|
|
386
333
|
if (acceptedBody.includes(key)) {
|
|
387
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
388
334
|
// @ts-expect-error
|
|
389
335
|
body[key] = params[key];
|
|
390
336
|
}
|
|
391
337
|
else if (acceptedPath.includes(key)) {
|
|
392
338
|
continue;
|
|
393
339
|
}
|
|
394
|
-
else
|
|
340
|
+
else {
|
|
395
341
|
// @ts-expect-error
|
|
396
342
|
querystring[key] = params[key];
|
|
397
343
|
}
|
|
@@ -411,7 +357,7 @@ class Security {
|
|
|
411
357
|
if (acceptedPath.includes(key)) {
|
|
412
358
|
continue;
|
|
413
359
|
}
|
|
414
|
-
else
|
|
360
|
+
else {
|
|
415
361
|
// @ts-expect-error
|
|
416
362
|
querystring[key] = params[key];
|
|
417
363
|
}
|
|
@@ -444,7 +390,7 @@ class Security {
|
|
|
444
390
|
if (acceptedPath.includes(key)) {
|
|
445
391
|
continue;
|
|
446
392
|
}
|
|
447
|
-
else
|
|
393
|
+
else {
|
|
448
394
|
// @ts-expect-error
|
|
449
395
|
querystring[key] = params[key];
|
|
450
396
|
}
|
|
@@ -468,7 +414,7 @@ class Security {
|
|
|
468
414
|
if (acceptedPath.includes(key)) {
|
|
469
415
|
continue;
|
|
470
416
|
}
|
|
471
|
-
else
|
|
417
|
+
else {
|
|
472
418
|
// @ts-expect-error
|
|
473
419
|
querystring[key] = params[key];
|
|
474
420
|
}
|
|
@@ -491,7 +437,7 @@ class Security {
|
|
|
491
437
|
if (acceptedPath.includes(key)) {
|
|
492
438
|
continue;
|
|
493
439
|
}
|
|
494
|
-
else
|
|
440
|
+
else {
|
|
495
441
|
// @ts-expect-error
|
|
496
442
|
querystring[key] = params[key];
|
|
497
443
|
}
|
|
@@ -514,7 +460,7 @@ class Security {
|
|
|
514
460
|
if (acceptedPath.includes(key)) {
|
|
515
461
|
continue;
|
|
516
462
|
}
|
|
517
|
-
else
|
|
463
|
+
else {
|
|
518
464
|
// @ts-expect-error
|
|
519
465
|
querystring[key] = params[key];
|
|
520
466
|
}
|
|
@@ -539,7 +485,7 @@ class Security {
|
|
|
539
485
|
if (acceptedPath.includes(key)) {
|
|
540
486
|
continue;
|
|
541
487
|
}
|
|
542
|
-
else
|
|
488
|
+
else {
|
|
543
489
|
// @ts-expect-error
|
|
544
490
|
querystring[key] = params[key];
|
|
545
491
|
}
|
|
@@ -562,7 +508,7 @@ class Security {
|
|
|
562
508
|
if (acceptedPath.includes(key)) {
|
|
563
509
|
continue;
|
|
564
510
|
}
|
|
565
|
-
else
|
|
511
|
+
else {
|
|
566
512
|
// @ts-expect-error
|
|
567
513
|
querystring[key] = params[key];
|
|
568
514
|
}
|
|
@@ -585,7 +531,7 @@ class Security {
|
|
|
585
531
|
if (acceptedPath.includes(key)) {
|
|
586
532
|
continue;
|
|
587
533
|
}
|
|
588
|
-
else
|
|
534
|
+
else {
|
|
589
535
|
// @ts-expect-error
|
|
590
536
|
querystring[key] = params[key];
|
|
591
537
|
}
|
|
@@ -608,7 +554,7 @@ class Security {
|
|
|
608
554
|
if (acceptedPath.includes(key)) {
|
|
609
555
|
continue;
|
|
610
556
|
}
|
|
611
|
-
else
|
|
557
|
+
else {
|
|
612
558
|
// @ts-expect-error
|
|
613
559
|
querystring[key] = params[key];
|
|
614
560
|
}
|
|
@@ -631,7 +577,7 @@ class Security {
|
|
|
631
577
|
if (acceptedPath.includes(key)) {
|
|
632
578
|
continue;
|
|
633
579
|
}
|
|
634
|
-
else
|
|
580
|
+
else {
|
|
635
581
|
// @ts-expect-error
|
|
636
582
|
querystring[key] = params[key];
|
|
637
583
|
}
|
|
@@ -655,7 +601,7 @@ class Security {
|
|
|
655
601
|
if (acceptedPath.includes(key)) {
|
|
656
602
|
continue;
|
|
657
603
|
}
|
|
658
|
-
else
|
|
604
|
+
else {
|
|
659
605
|
// @ts-expect-error
|
|
660
606
|
querystring[key] = params[key];
|
|
661
607
|
}
|
|
@@ -676,7 +622,7 @@ class Security {
|
|
|
676
622
|
if (acceptedPath.includes(key)) {
|
|
677
623
|
continue;
|
|
678
624
|
}
|
|
679
|
-
else
|
|
625
|
+
else {
|
|
680
626
|
// @ts-expect-error
|
|
681
627
|
querystring[key] = params[key];
|
|
682
628
|
}
|
|
@@ -697,7 +643,7 @@ class Security {
|
|
|
697
643
|
if (acceptedPath.includes(key)) {
|
|
698
644
|
continue;
|
|
699
645
|
}
|
|
700
|
-
else
|
|
646
|
+
else {
|
|
701
647
|
// @ts-expect-error
|
|
702
648
|
querystring[key] = params[key];
|
|
703
649
|
}
|
|
@@ -718,7 +664,7 @@ class Security {
|
|
|
718
664
|
if (acceptedPath.includes(key)) {
|
|
719
665
|
continue;
|
|
720
666
|
}
|
|
721
|
-
else
|
|
667
|
+
else {
|
|
722
668
|
// @ts-expect-error
|
|
723
669
|
querystring[key] = params[key];
|
|
724
670
|
}
|
|
@@ -739,7 +685,7 @@ class Security {
|
|
|
739
685
|
if (acceptedPath.includes(key)) {
|
|
740
686
|
continue;
|
|
741
687
|
}
|
|
742
|
-
else
|
|
688
|
+
else {
|
|
743
689
|
// @ts-expect-error
|
|
744
690
|
querystring[key] = params[key];
|
|
745
691
|
}
|
|
@@ -776,7 +722,7 @@ class Security {
|
|
|
776
722
|
if (acceptedPath.includes(key)) {
|
|
777
723
|
continue;
|
|
778
724
|
}
|
|
779
|
-
else
|
|
725
|
+
else {
|
|
780
726
|
// @ts-expect-error
|
|
781
727
|
querystring[key] = params[key];
|
|
782
728
|
}
|
|
@@ -808,7 +754,7 @@ class Security {
|
|
|
808
754
|
if (acceptedPath.includes(key)) {
|
|
809
755
|
continue;
|
|
810
756
|
}
|
|
811
|
-
else
|
|
757
|
+
else {
|
|
812
758
|
// @ts-expect-error
|
|
813
759
|
querystring[key] = params[key];
|
|
814
760
|
}
|
|
@@ -840,7 +786,7 @@ class Security {
|
|
|
840
786
|
if (acceptedPath.includes(key)) {
|
|
841
787
|
continue;
|
|
842
788
|
}
|
|
843
|
-
else
|
|
789
|
+
else {
|
|
844
790
|
// @ts-expect-error
|
|
845
791
|
querystring[key] = params[key];
|
|
846
792
|
}
|
|
@@ -876,7 +822,7 @@ class Security {
|
|
|
876
822
|
if (acceptedPath.includes(key)) {
|
|
877
823
|
continue;
|
|
878
824
|
}
|
|
879
|
-
else
|
|
825
|
+
else {
|
|
880
826
|
// @ts-expect-error
|
|
881
827
|
querystring[key] = params[key];
|
|
882
828
|
}
|
|
@@ -901,7 +847,7 @@ class Security {
|
|
|
901
847
|
if (acceptedPath.includes(key)) {
|
|
902
848
|
continue;
|
|
903
849
|
}
|
|
904
|
-
else
|
|
850
|
+
else {
|
|
905
851
|
querystring[key] = params[key];
|
|
906
852
|
}
|
|
907
853
|
}
|
|
@@ -916,26 +862,17 @@ class Security {
|
|
|
916
862
|
const acceptedPath = [];
|
|
917
863
|
const acceptedBody = ['grant_type', 'scope', 'password', 'kerberos_ticket', 'refresh_token', 'username'];
|
|
918
864
|
const querystring = {};
|
|
919
|
-
|
|
920
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
921
|
-
let body;
|
|
922
|
-
if (typeof userBody === 'string') {
|
|
923
|
-
body = userBody;
|
|
924
|
-
}
|
|
925
|
-
else {
|
|
926
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
927
|
-
}
|
|
865
|
+
const body = {};
|
|
928
866
|
params = params !== null && params !== void 0 ? params : {};
|
|
929
867
|
for (const key in params) {
|
|
930
868
|
if (acceptedBody.includes(key)) {
|
|
931
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
932
869
|
// @ts-expect-error
|
|
933
870
|
body[key] = params[key];
|
|
934
871
|
}
|
|
935
872
|
else if (acceptedPath.includes(key)) {
|
|
936
873
|
continue;
|
|
937
874
|
}
|
|
938
|
-
else
|
|
875
|
+
else {
|
|
939
876
|
// @ts-expect-error
|
|
940
877
|
querystring[key] = params[key];
|
|
941
878
|
}
|
|
@@ -956,7 +893,7 @@ class Security {
|
|
|
956
893
|
if (acceptedPath.includes(key)) {
|
|
957
894
|
continue;
|
|
958
895
|
}
|
|
959
|
-
else
|
|
896
|
+
else {
|
|
960
897
|
// @ts-expect-error
|
|
961
898
|
querystring[key] = params[key];
|
|
962
899
|
}
|
|
@@ -988,7 +925,7 @@ class Security {
|
|
|
988
925
|
if (acceptedPath.includes(key)) {
|
|
989
926
|
continue;
|
|
990
927
|
}
|
|
991
|
-
else
|
|
928
|
+
else {
|
|
992
929
|
// @ts-expect-error
|
|
993
930
|
querystring[key] = params[key];
|
|
994
931
|
}
|
|
@@ -1008,7 +945,7 @@ class Security {
|
|
|
1008
945
|
if (acceptedPath.includes(key)) {
|
|
1009
946
|
continue;
|
|
1010
947
|
}
|
|
1011
|
-
else
|
|
948
|
+
else {
|
|
1012
949
|
// @ts-expect-error
|
|
1013
950
|
querystring[key] = params[key];
|
|
1014
951
|
}
|
|
@@ -1027,25 +964,16 @@ class Security {
|
|
|
1027
964
|
const acceptedPath = [];
|
|
1028
965
|
const acceptedBody = ['api_key', 'grant_type', 'access_token', 'username', 'password', 'run_as'];
|
|
1029
966
|
const querystring = {};
|
|
1030
|
-
|
|
1031
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1032
|
-
let body;
|
|
1033
|
-
if (typeof userBody === 'string') {
|
|
1034
|
-
body = userBody;
|
|
1035
|
-
}
|
|
1036
|
-
else {
|
|
1037
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1038
|
-
}
|
|
967
|
+
const body = {};
|
|
1039
968
|
for (const key in params) {
|
|
1040
969
|
if (acceptedBody.includes(key)) {
|
|
1041
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1042
970
|
// @ts-expect-error
|
|
1043
971
|
body[key] = params[key];
|
|
1044
972
|
}
|
|
1045
973
|
else if (acceptedPath.includes(key)) {
|
|
1046
974
|
continue;
|
|
1047
975
|
}
|
|
1048
|
-
else
|
|
976
|
+
else {
|
|
1049
977
|
// @ts-expect-error
|
|
1050
978
|
querystring[key] = params[key];
|
|
1051
979
|
}
|
|
@@ -1061,26 +989,17 @@ class Security {
|
|
|
1061
989
|
const acceptedPath = ['user'];
|
|
1062
990
|
const acceptedBody = ['application', 'cluster', 'index'];
|
|
1063
991
|
const querystring = {};
|
|
1064
|
-
|
|
1065
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1066
|
-
let body;
|
|
1067
|
-
if (typeof userBody === 'string') {
|
|
1068
|
-
body = userBody;
|
|
1069
|
-
}
|
|
1070
|
-
else {
|
|
1071
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1072
|
-
}
|
|
992
|
+
const body = {};
|
|
1073
993
|
params = params !== null && params !== void 0 ? params : {};
|
|
1074
994
|
for (const key in params) {
|
|
1075
995
|
if (acceptedBody.includes(key)) {
|
|
1076
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1077
996
|
// @ts-expect-error
|
|
1078
997
|
body[key] = params[key];
|
|
1079
998
|
}
|
|
1080
999
|
else if (acceptedPath.includes(key)) {
|
|
1081
1000
|
continue;
|
|
1082
1001
|
}
|
|
1083
|
-
else
|
|
1002
|
+
else {
|
|
1084
1003
|
// @ts-expect-error
|
|
1085
1004
|
querystring[key] = params[key];
|
|
1086
1005
|
}
|
|
@@ -1107,25 +1026,16 @@ class Security {
|
|
|
1107
1026
|
const acceptedPath = [];
|
|
1108
1027
|
const acceptedBody = ['uids', 'privileges'];
|
|
1109
1028
|
const querystring = {};
|
|
1110
|
-
|
|
1111
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1112
|
-
let body;
|
|
1113
|
-
if (typeof userBody === 'string') {
|
|
1114
|
-
body = userBody;
|
|
1115
|
-
}
|
|
1116
|
-
else {
|
|
1117
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1118
|
-
}
|
|
1029
|
+
const body = {};
|
|
1119
1030
|
for (const key in params) {
|
|
1120
1031
|
if (acceptedBody.includes(key)) {
|
|
1121
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1122
1032
|
// @ts-expect-error
|
|
1123
1033
|
body[key] = params[key];
|
|
1124
1034
|
}
|
|
1125
1035
|
else if (acceptedPath.includes(key)) {
|
|
1126
1036
|
continue;
|
|
1127
1037
|
}
|
|
1128
|
-
else
|
|
1038
|
+
else {
|
|
1129
1039
|
// @ts-expect-error
|
|
1130
1040
|
querystring[key] = params[key];
|
|
1131
1041
|
}
|
|
@@ -1141,26 +1051,17 @@ class Security {
|
|
|
1141
1051
|
const acceptedPath = [];
|
|
1142
1052
|
const acceptedBody = ['id', 'ids', 'name', 'owner', 'realm_name', 'username'];
|
|
1143
1053
|
const querystring = {};
|
|
1144
|
-
|
|
1145
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1146
|
-
let body;
|
|
1147
|
-
if (typeof userBody === 'string') {
|
|
1148
|
-
body = userBody;
|
|
1149
|
-
}
|
|
1150
|
-
else {
|
|
1151
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1152
|
-
}
|
|
1054
|
+
const body = {};
|
|
1153
1055
|
params = params !== null && params !== void 0 ? params : {};
|
|
1154
1056
|
for (const key in params) {
|
|
1155
1057
|
if (acceptedBody.includes(key)) {
|
|
1156
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1157
1058
|
// @ts-expect-error
|
|
1158
1059
|
body[key] = params[key];
|
|
1159
1060
|
}
|
|
1160
1061
|
else if (acceptedPath.includes(key)) {
|
|
1161
1062
|
continue;
|
|
1162
1063
|
}
|
|
1163
|
-
else
|
|
1064
|
+
else {
|
|
1164
1065
|
// @ts-expect-error
|
|
1165
1066
|
querystring[key] = params[key];
|
|
1166
1067
|
}
|
|
@@ -1176,26 +1077,17 @@ class Security {
|
|
|
1176
1077
|
const acceptedPath = [];
|
|
1177
1078
|
const acceptedBody = ['token', 'refresh_token', 'realm_name', 'username'];
|
|
1178
1079
|
const querystring = {};
|
|
1179
|
-
|
|
1180
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1181
|
-
let body;
|
|
1182
|
-
if (typeof userBody === 'string') {
|
|
1183
|
-
body = userBody;
|
|
1184
|
-
}
|
|
1185
|
-
else {
|
|
1186
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1187
|
-
}
|
|
1080
|
+
const body = {};
|
|
1188
1081
|
params = params !== null && params !== void 0 ? params : {};
|
|
1189
1082
|
for (const key in params) {
|
|
1190
1083
|
if (acceptedBody.includes(key)) {
|
|
1191
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1192
1084
|
// @ts-expect-error
|
|
1193
1085
|
body[key] = params[key];
|
|
1194
1086
|
}
|
|
1195
1087
|
else if (acceptedPath.includes(key)) {
|
|
1196
1088
|
continue;
|
|
1197
1089
|
}
|
|
1198
|
-
else
|
|
1090
|
+
else {
|
|
1199
1091
|
// @ts-expect-error
|
|
1200
1092
|
querystring[key] = params[key];
|
|
1201
1093
|
}
|
|
@@ -1216,7 +1108,7 @@ class Security {
|
|
|
1216
1108
|
if (acceptedPath.includes(key)) {
|
|
1217
1109
|
continue;
|
|
1218
1110
|
}
|
|
1219
|
-
else
|
|
1111
|
+
else {
|
|
1220
1112
|
querystring[key] = params[key];
|
|
1221
1113
|
}
|
|
1222
1114
|
}
|
|
@@ -1236,7 +1128,7 @@ class Security {
|
|
|
1236
1128
|
if (acceptedPath.includes(key)) {
|
|
1237
1129
|
continue;
|
|
1238
1130
|
}
|
|
1239
|
-
else
|
|
1131
|
+
else {
|
|
1240
1132
|
querystring[key] = params[key];
|
|
1241
1133
|
}
|
|
1242
1134
|
}
|
|
@@ -1256,7 +1148,7 @@ class Security {
|
|
|
1256
1148
|
if (acceptedPath.includes(key)) {
|
|
1257
1149
|
continue;
|
|
1258
1150
|
}
|
|
1259
|
-
else
|
|
1151
|
+
else {
|
|
1260
1152
|
querystring[key] = params[key];
|
|
1261
1153
|
}
|
|
1262
1154
|
}
|
|
@@ -1268,12 +1160,10 @@ class Security {
|
|
|
1268
1160
|
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1269
1161
|
}
|
|
1270
1162
|
async putPrivileges(params, options) {
|
|
1271
|
-
var _a;
|
|
1272
1163
|
const acceptedPath = [];
|
|
1273
1164
|
const acceptedBody = ['privileges'];
|
|
1274
1165
|
const querystring = {};
|
|
1275
|
-
|
|
1276
|
-
let body = (_a = params.body) !== null && _a !== void 0 ? _a : undefined;
|
|
1166
|
+
let body;
|
|
1277
1167
|
for (const key in params) {
|
|
1278
1168
|
if (acceptedBody.includes(key)) {
|
|
1279
1169
|
// @ts-expect-error
|
|
@@ -1282,7 +1172,7 @@ class Security {
|
|
|
1282
1172
|
else if (acceptedPath.includes(key)) {
|
|
1283
1173
|
continue;
|
|
1284
1174
|
}
|
|
1285
|
-
else
|
|
1175
|
+
else {
|
|
1286
1176
|
// @ts-expect-error
|
|
1287
1177
|
querystring[key] = params[key];
|
|
1288
1178
|
}
|
|
@@ -1296,27 +1186,18 @@ class Security {
|
|
|
1296
1186
|
}
|
|
1297
1187
|
async putRole(params, options) {
|
|
1298
1188
|
const acceptedPath = ['name'];
|
|
1299
|
-
const acceptedBody = ['applications', 'cluster', 'global', 'indices', 'remote_indices', 'metadata', 'run_as', 'description', 'transient_metadata'];
|
|
1189
|
+
const acceptedBody = ['applications', 'cluster', 'global', 'indices', 'remote_indices', 'remote_cluster', 'metadata', 'run_as', 'description', 'transient_metadata'];
|
|
1300
1190
|
const querystring = {};
|
|
1301
|
-
|
|
1302
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1303
|
-
let body;
|
|
1304
|
-
if (typeof userBody === 'string') {
|
|
1305
|
-
body = userBody;
|
|
1306
|
-
}
|
|
1307
|
-
else {
|
|
1308
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1309
|
-
}
|
|
1191
|
+
const body = {};
|
|
1310
1192
|
for (const key in params) {
|
|
1311
1193
|
if (acceptedBody.includes(key)) {
|
|
1312
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1313
1194
|
// @ts-expect-error
|
|
1314
1195
|
body[key] = params[key];
|
|
1315
1196
|
}
|
|
1316
1197
|
else if (acceptedPath.includes(key)) {
|
|
1317
1198
|
continue;
|
|
1318
1199
|
}
|
|
1319
|
-
else
|
|
1200
|
+
else {
|
|
1320
1201
|
// @ts-expect-error
|
|
1321
1202
|
querystring[key] = params[key];
|
|
1322
1203
|
}
|
|
@@ -1335,25 +1216,16 @@ class Security {
|
|
|
1335
1216
|
const acceptedPath = ['name'];
|
|
1336
1217
|
const acceptedBody = ['enabled', 'metadata', 'roles', 'role_templates', 'rules', 'run_as'];
|
|
1337
1218
|
const querystring = {};
|
|
1338
|
-
|
|
1339
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1340
|
-
let body;
|
|
1341
|
-
if (typeof userBody === 'string') {
|
|
1342
|
-
body = userBody;
|
|
1343
|
-
}
|
|
1344
|
-
else {
|
|
1345
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1346
|
-
}
|
|
1219
|
+
const body = {};
|
|
1347
1220
|
for (const key in params) {
|
|
1348
1221
|
if (acceptedBody.includes(key)) {
|
|
1349
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1350
1222
|
// @ts-expect-error
|
|
1351
1223
|
body[key] = params[key];
|
|
1352
1224
|
}
|
|
1353
1225
|
else if (acceptedPath.includes(key)) {
|
|
1354
1226
|
continue;
|
|
1355
1227
|
}
|
|
1356
|
-
else
|
|
1228
|
+
else {
|
|
1357
1229
|
// @ts-expect-error
|
|
1358
1230
|
querystring[key] = params[key];
|
|
1359
1231
|
}
|
|
@@ -1372,25 +1244,16 @@ class Security {
|
|
|
1372
1244
|
const acceptedPath = [];
|
|
1373
1245
|
const acceptedBody = ['username', 'email', 'full_name', 'metadata', 'password', 'password_hash', 'roles', 'enabled'];
|
|
1374
1246
|
const querystring = {};
|
|
1375
|
-
|
|
1376
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1377
|
-
let body;
|
|
1378
|
-
if (typeof userBody === 'string') {
|
|
1379
|
-
body = userBody;
|
|
1380
|
-
}
|
|
1381
|
-
else {
|
|
1382
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1383
|
-
}
|
|
1247
|
+
const body = {};
|
|
1384
1248
|
for (const key in params) {
|
|
1385
1249
|
if (acceptedBody.includes(key)) {
|
|
1386
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1387
1250
|
// @ts-expect-error
|
|
1388
1251
|
body[key] = params[key];
|
|
1389
1252
|
}
|
|
1390
1253
|
else if (acceptedPath.includes(key)) {
|
|
1391
1254
|
continue;
|
|
1392
1255
|
}
|
|
1393
|
-
else
|
|
1256
|
+
else {
|
|
1394
1257
|
// @ts-expect-error
|
|
1395
1258
|
querystring[key] = params[key];
|
|
1396
1259
|
}
|
|
@@ -1409,26 +1272,17 @@ class Security {
|
|
|
1409
1272
|
const acceptedPath = [];
|
|
1410
1273
|
const acceptedBody = ['aggregations', 'aggs', 'query', 'from', 'sort', 'size', 'search_after'];
|
|
1411
1274
|
const querystring = {};
|
|
1412
|
-
|
|
1413
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1414
|
-
let body;
|
|
1415
|
-
if (typeof userBody === 'string') {
|
|
1416
|
-
body = userBody;
|
|
1417
|
-
}
|
|
1418
|
-
else {
|
|
1419
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1420
|
-
}
|
|
1275
|
+
const body = {};
|
|
1421
1276
|
params = params !== null && params !== void 0 ? params : {};
|
|
1422
1277
|
for (const key in params) {
|
|
1423
1278
|
if (acceptedBody.includes(key)) {
|
|
1424
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1425
1279
|
// @ts-expect-error
|
|
1426
1280
|
body[key] = params[key];
|
|
1427
1281
|
}
|
|
1428
1282
|
else if (acceptedPath.includes(key)) {
|
|
1429
1283
|
continue;
|
|
1430
1284
|
}
|
|
1431
|
-
else
|
|
1285
|
+
else {
|
|
1432
1286
|
// @ts-expect-error
|
|
1433
1287
|
querystring[key] = params[key];
|
|
1434
1288
|
}
|
|
@@ -1444,26 +1298,17 @@ class Security {
|
|
|
1444
1298
|
const acceptedPath = [];
|
|
1445
1299
|
const acceptedBody = ['query', 'from', 'sort', 'size', 'search_after'];
|
|
1446
1300
|
const querystring = {};
|
|
1447
|
-
|
|
1448
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1449
|
-
let body;
|
|
1450
|
-
if (typeof userBody === 'string') {
|
|
1451
|
-
body = userBody;
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1455
|
-
}
|
|
1301
|
+
const body = {};
|
|
1456
1302
|
params = params !== null && params !== void 0 ? params : {};
|
|
1457
1303
|
for (const key in params) {
|
|
1458
1304
|
if (acceptedBody.includes(key)) {
|
|
1459
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1460
1305
|
// @ts-expect-error
|
|
1461
1306
|
body[key] = params[key];
|
|
1462
1307
|
}
|
|
1463
1308
|
else if (acceptedPath.includes(key)) {
|
|
1464
1309
|
continue;
|
|
1465
1310
|
}
|
|
1466
|
-
else
|
|
1311
|
+
else {
|
|
1467
1312
|
// @ts-expect-error
|
|
1468
1313
|
querystring[key] = params[key];
|
|
1469
1314
|
}
|
|
@@ -1479,26 +1324,17 @@ class Security {
|
|
|
1479
1324
|
const acceptedPath = [];
|
|
1480
1325
|
const acceptedBody = ['query', 'from', 'sort', 'size', 'search_after'];
|
|
1481
1326
|
const querystring = {};
|
|
1482
|
-
|
|
1483
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1484
|
-
let body;
|
|
1485
|
-
if (typeof userBody === 'string') {
|
|
1486
|
-
body = userBody;
|
|
1487
|
-
}
|
|
1488
|
-
else {
|
|
1489
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1490
|
-
}
|
|
1327
|
+
const body = {};
|
|
1491
1328
|
params = params !== null && params !== void 0 ? params : {};
|
|
1492
1329
|
for (const key in params) {
|
|
1493
1330
|
if (acceptedBody.includes(key)) {
|
|
1494
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1495
1331
|
// @ts-expect-error
|
|
1496
1332
|
body[key] = params[key];
|
|
1497
1333
|
}
|
|
1498
1334
|
else if (acceptedPath.includes(key)) {
|
|
1499
1335
|
continue;
|
|
1500
1336
|
}
|
|
1501
|
-
else
|
|
1337
|
+
else {
|
|
1502
1338
|
// @ts-expect-error
|
|
1503
1339
|
querystring[key] = params[key];
|
|
1504
1340
|
}
|
|
@@ -1514,25 +1350,16 @@ class Security {
|
|
|
1514
1350
|
const acceptedPath = [];
|
|
1515
1351
|
const acceptedBody = ['content', 'ids', 'realm'];
|
|
1516
1352
|
const querystring = {};
|
|
1517
|
-
|
|
1518
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1519
|
-
let body;
|
|
1520
|
-
if (typeof userBody === 'string') {
|
|
1521
|
-
body = userBody;
|
|
1522
|
-
}
|
|
1523
|
-
else {
|
|
1524
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1525
|
-
}
|
|
1353
|
+
const body = {};
|
|
1526
1354
|
for (const key in params) {
|
|
1527
1355
|
if (acceptedBody.includes(key)) {
|
|
1528
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1529
1356
|
// @ts-expect-error
|
|
1530
1357
|
body[key] = params[key];
|
|
1531
1358
|
}
|
|
1532
1359
|
else if (acceptedPath.includes(key)) {
|
|
1533
1360
|
continue;
|
|
1534
1361
|
}
|
|
1535
|
-
else
|
|
1362
|
+
else {
|
|
1536
1363
|
// @ts-expect-error
|
|
1537
1364
|
querystring[key] = params[key];
|
|
1538
1365
|
}
|
|
@@ -1548,25 +1375,16 @@ class Security {
|
|
|
1548
1375
|
const acceptedPath = [];
|
|
1549
1376
|
const acceptedBody = ['realm', 'ids', 'query_string', 'content'];
|
|
1550
1377
|
const querystring = {};
|
|
1551
|
-
|
|
1552
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1553
|
-
let body;
|
|
1554
|
-
if (typeof userBody === 'string') {
|
|
1555
|
-
body = userBody;
|
|
1556
|
-
}
|
|
1557
|
-
else {
|
|
1558
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1559
|
-
}
|
|
1378
|
+
const body = {};
|
|
1560
1379
|
for (const key in params) {
|
|
1561
1380
|
if (acceptedBody.includes(key)) {
|
|
1562
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1563
1381
|
// @ts-expect-error
|
|
1564
1382
|
body[key] = params[key];
|
|
1565
1383
|
}
|
|
1566
1384
|
else if (acceptedPath.includes(key)) {
|
|
1567
1385
|
continue;
|
|
1568
1386
|
}
|
|
1569
|
-
else
|
|
1387
|
+
else {
|
|
1570
1388
|
// @ts-expect-error
|
|
1571
1389
|
querystring[key] = params[key];
|
|
1572
1390
|
}
|
|
@@ -1582,25 +1400,16 @@ class Security {
|
|
|
1582
1400
|
const acceptedPath = [];
|
|
1583
1401
|
const acceptedBody = ['acs', 'query_string', 'realm'];
|
|
1584
1402
|
const querystring = {};
|
|
1585
|
-
|
|
1586
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1587
|
-
let body;
|
|
1588
|
-
if (typeof userBody === 'string') {
|
|
1589
|
-
body = userBody;
|
|
1590
|
-
}
|
|
1591
|
-
else {
|
|
1592
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1593
|
-
}
|
|
1403
|
+
const body = {};
|
|
1594
1404
|
for (const key in params) {
|
|
1595
1405
|
if (acceptedBody.includes(key)) {
|
|
1596
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1597
1406
|
// @ts-expect-error
|
|
1598
1407
|
body[key] = params[key];
|
|
1599
1408
|
}
|
|
1600
1409
|
else if (acceptedPath.includes(key)) {
|
|
1601
1410
|
continue;
|
|
1602
1411
|
}
|
|
1603
|
-
else
|
|
1412
|
+
else {
|
|
1604
1413
|
// @ts-expect-error
|
|
1605
1414
|
querystring[key] = params[key];
|
|
1606
1415
|
}
|
|
@@ -1616,25 +1425,16 @@ class Security {
|
|
|
1616
1425
|
const acceptedPath = [];
|
|
1617
1426
|
const acceptedBody = ['token', 'refresh_token'];
|
|
1618
1427
|
const querystring = {};
|
|
1619
|
-
|
|
1620
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1621
|
-
let body;
|
|
1622
|
-
if (typeof userBody === 'string') {
|
|
1623
|
-
body = userBody;
|
|
1624
|
-
}
|
|
1625
|
-
else {
|
|
1626
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1627
|
-
}
|
|
1428
|
+
const body = {};
|
|
1628
1429
|
for (const key in params) {
|
|
1629
1430
|
if (acceptedBody.includes(key)) {
|
|
1630
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1631
1431
|
// @ts-expect-error
|
|
1632
1432
|
body[key] = params[key];
|
|
1633
1433
|
}
|
|
1634
1434
|
else if (acceptedPath.includes(key)) {
|
|
1635
1435
|
continue;
|
|
1636
1436
|
}
|
|
1637
|
-
else
|
|
1437
|
+
else {
|
|
1638
1438
|
// @ts-expect-error
|
|
1639
1439
|
querystring[key] = params[key];
|
|
1640
1440
|
}
|
|
@@ -1650,26 +1450,17 @@ class Security {
|
|
|
1650
1450
|
const acceptedPath = [];
|
|
1651
1451
|
const acceptedBody = ['acs', 'realm', 'relay_state'];
|
|
1652
1452
|
const querystring = {};
|
|
1653
|
-
|
|
1654
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1655
|
-
let body;
|
|
1656
|
-
if (typeof userBody === 'string') {
|
|
1657
|
-
body = userBody;
|
|
1658
|
-
}
|
|
1659
|
-
else {
|
|
1660
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1661
|
-
}
|
|
1453
|
+
const body = {};
|
|
1662
1454
|
params = params !== null && params !== void 0 ? params : {};
|
|
1663
1455
|
for (const key in params) {
|
|
1664
1456
|
if (acceptedBody.includes(key)) {
|
|
1665
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1666
1457
|
// @ts-expect-error
|
|
1667
1458
|
body[key] = params[key];
|
|
1668
1459
|
}
|
|
1669
1460
|
else if (acceptedPath.includes(key)) {
|
|
1670
1461
|
continue;
|
|
1671
1462
|
}
|
|
1672
|
-
else
|
|
1463
|
+
else {
|
|
1673
1464
|
// @ts-expect-error
|
|
1674
1465
|
querystring[key] = params[key];
|
|
1675
1466
|
}
|
|
@@ -1689,7 +1480,7 @@ class Security {
|
|
|
1689
1480
|
if (acceptedPath.includes(key)) {
|
|
1690
1481
|
continue;
|
|
1691
1482
|
}
|
|
1692
|
-
else
|
|
1483
|
+
else {
|
|
1693
1484
|
// @ts-expect-error
|
|
1694
1485
|
querystring[key] = params[key];
|
|
1695
1486
|
}
|
|
@@ -1708,26 +1499,17 @@ class Security {
|
|
|
1708
1499
|
const acceptedPath = [];
|
|
1709
1500
|
const acceptedBody = ['name', 'size', 'data', 'hint'];
|
|
1710
1501
|
const querystring = {};
|
|
1711
|
-
|
|
1712
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1713
|
-
let body;
|
|
1714
|
-
if (typeof userBody === 'string') {
|
|
1715
|
-
body = userBody;
|
|
1716
|
-
}
|
|
1717
|
-
else {
|
|
1718
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1719
|
-
}
|
|
1502
|
+
const body = {};
|
|
1720
1503
|
params = params !== null && params !== void 0 ? params : {};
|
|
1721
1504
|
for (const key in params) {
|
|
1722
1505
|
if (acceptedBody.includes(key)) {
|
|
1723
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1724
1506
|
// @ts-expect-error
|
|
1725
1507
|
body[key] = params[key];
|
|
1726
1508
|
}
|
|
1727
1509
|
else if (acceptedPath.includes(key)) {
|
|
1728
1510
|
continue;
|
|
1729
1511
|
}
|
|
1730
|
-
else
|
|
1512
|
+
else {
|
|
1731
1513
|
// @ts-expect-error
|
|
1732
1514
|
querystring[key] = params[key];
|
|
1733
1515
|
}
|
|
@@ -1743,25 +1525,16 @@ class Security {
|
|
|
1743
1525
|
const acceptedPath = ['id'];
|
|
1744
1526
|
const acceptedBody = ['role_descriptors', 'metadata', 'expiration'];
|
|
1745
1527
|
const querystring = {};
|
|
1746
|
-
|
|
1747
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1748
|
-
let body;
|
|
1749
|
-
if (typeof userBody === 'string') {
|
|
1750
|
-
body = userBody;
|
|
1751
|
-
}
|
|
1752
|
-
else {
|
|
1753
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1754
|
-
}
|
|
1528
|
+
const body = {};
|
|
1755
1529
|
for (const key in params) {
|
|
1756
1530
|
if (acceptedBody.includes(key)) {
|
|
1757
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1758
1531
|
// @ts-expect-error
|
|
1759
1532
|
body[key] = params[key];
|
|
1760
1533
|
}
|
|
1761
1534
|
else if (acceptedPath.includes(key)) {
|
|
1762
1535
|
continue;
|
|
1763
1536
|
}
|
|
1764
|
-
else
|
|
1537
|
+
else {
|
|
1765
1538
|
// @ts-expect-error
|
|
1766
1539
|
querystring[key] = params[key];
|
|
1767
1540
|
}
|
|
@@ -1780,25 +1553,16 @@ class Security {
|
|
|
1780
1553
|
const acceptedPath = ['id'];
|
|
1781
1554
|
const acceptedBody = ['access', 'expiration', 'metadata'];
|
|
1782
1555
|
const querystring = {};
|
|
1783
|
-
|
|
1784
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1785
|
-
let body;
|
|
1786
|
-
if (typeof userBody === 'string') {
|
|
1787
|
-
body = userBody;
|
|
1788
|
-
}
|
|
1789
|
-
else {
|
|
1790
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1791
|
-
}
|
|
1556
|
+
const body = {};
|
|
1792
1557
|
for (const key in params) {
|
|
1793
1558
|
if (acceptedBody.includes(key)) {
|
|
1794
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1795
1559
|
// @ts-expect-error
|
|
1796
1560
|
body[key] = params[key];
|
|
1797
1561
|
}
|
|
1798
1562
|
else if (acceptedPath.includes(key)) {
|
|
1799
1563
|
continue;
|
|
1800
1564
|
}
|
|
1801
|
-
else
|
|
1565
|
+
else {
|
|
1802
1566
|
// @ts-expect-error
|
|
1803
1567
|
querystring[key] = params[key];
|
|
1804
1568
|
}
|
|
@@ -1822,7 +1586,7 @@ class Security {
|
|
|
1822
1586
|
if (acceptedPath.includes(key)) {
|
|
1823
1587
|
continue;
|
|
1824
1588
|
}
|
|
1825
|
-
else
|
|
1589
|
+
else {
|
|
1826
1590
|
querystring[key] = params[key];
|
|
1827
1591
|
}
|
|
1828
1592
|
}
|
|
@@ -1837,25 +1601,16 @@ class Security {
|
|
|
1837
1601
|
const acceptedPath = ['uid'];
|
|
1838
1602
|
const acceptedBody = ['labels', 'data'];
|
|
1839
1603
|
const querystring = {};
|
|
1840
|
-
|
|
1841
|
-
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
1842
|
-
let body;
|
|
1843
|
-
if (typeof userBody === 'string') {
|
|
1844
|
-
body = userBody;
|
|
1845
|
-
}
|
|
1846
|
-
else {
|
|
1847
|
-
body = userBody != null ? { ...userBody } : undefined;
|
|
1848
|
-
}
|
|
1604
|
+
const body = {};
|
|
1849
1605
|
for (const key in params) {
|
|
1850
1606
|
if (acceptedBody.includes(key)) {
|
|
1851
|
-
body = body !== null && body !== void 0 ? body : {};
|
|
1852
1607
|
// @ts-expect-error
|
|
1853
1608
|
body[key] = params[key];
|
|
1854
1609
|
}
|
|
1855
1610
|
else if (acceptedPath.includes(key)) {
|
|
1856
1611
|
continue;
|
|
1857
1612
|
}
|
|
1858
|
-
else
|
|
1613
|
+
else {
|
|
1859
1614
|
// @ts-expect-error
|
|
1860
1615
|
querystring[key] = params[key];
|
|
1861
1616
|
}
|