@elastic/elasticsearch 7.10.0 → 7.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +2 -2
  2. package/api/api/async_search.js +35 -8
  3. package/api/api/autoscaling.js +15 -15
  4. package/api/api/bulk.js +4 -4
  5. package/api/api/cat.js +127 -127
  6. package/api/api/ccr.js +40 -40
  7. package/api/api/clear_scroll.js +2 -2
  8. package/api/api/close_point_in_time.js +2 -2
  9. package/api/api/cluster.js +36 -36
  10. package/api/api/count.js +3 -3
  11. package/api/api/create.js +5 -5
  12. package/api/api/dangling_indices.js +8 -8
  13. package/api/api/delete.js +4 -4
  14. package/api/api/delete_by_query.js +5 -5
  15. package/api/api/delete_by_query_rethrottle.js +4 -4
  16. package/api/api/delete_script.js +3 -3
  17. package/api/api/enrich.js +14 -14
  18. package/api/api/eql.js +41 -10
  19. package/api/api/exists.js +4 -4
  20. package/api/api/exists_source.js +6 -6
  21. package/api/api/explain.js +4 -4
  22. package/api/api/features.js +81 -0
  23. package/api/api/field_caps.js +2 -2
  24. package/api/api/fleet.js +65 -0
  25. package/api/api/get.js +4 -4
  26. package/api/api/get_script.js +3 -3
  27. package/api/api/get_script_context.js +2 -2
  28. package/api/api/get_script_languages.js +2 -2
  29. package/api/api/get_source.js +4 -4
  30. package/api/api/graph.js +4 -4
  31. package/api/api/ilm.js +26 -26
  32. package/api/api/index.js +4 -4
  33. package/api/api/indices.js +385 -339
  34. package/api/api/info.js +2 -2
  35. package/api/api/ingest.js +37 -15
  36. package/api/api/license.js +14 -14
  37. package/api/api/logstash.js +125 -0
  38. package/api/api/mget.js +4 -4
  39. package/api/api/migration.js +2 -2
  40. package/api/api/ml.js +344 -204
  41. package/api/api/monitoring.js +3 -3
  42. package/api/api/msearch.js +4 -4
  43. package/api/api/msearch_template.js +4 -4
  44. package/api/api/mtermvectors.js +3 -3
  45. package/api/api/nodes.js +12 -12
  46. package/api/api/open_point_in_time.js +2 -2
  47. package/api/api/ping.js +2 -2
  48. package/api/api/put_script.js +5 -5
  49. package/api/api/rank_eval.js +3 -3
  50. package/api/api/reindex.js +3 -3
  51. package/api/api/reindex_rethrottle.js +4 -4
  52. package/api/api/render_search_template.js +2 -2
  53. package/api/api/rollup.js +66 -25
  54. package/api/api/scripts_painless_execute.js +2 -2
  55. package/api/api/scroll.js +2 -2
  56. package/api/api/search.js +5 -5
  57. package/api/api/search_shards.js +2 -2
  58. package/api/api/search_template.js +4 -4
  59. package/api/api/searchable_snapshots.js +42 -15
  60. package/api/api/security.js +295 -85
  61. package/api/api/shutdown.js +124 -0
  62. package/api/api/slm.js +21 -21
  63. package/api/api/snapshot.js +48 -48
  64. package/api/api/sql.js +9 -9
  65. package/api/api/ssl.js +2 -2
  66. package/api/api/tasks.js +7 -7
  67. package/api/api/termvectors.js +3 -3
  68. package/api/api/text_structure.js +65 -0
  69. package/api/api/transform.js +27 -27
  70. package/api/api/update.js +5 -5
  71. package/api/api/update_by_query.js +4 -4
  72. package/api/api/update_by_query_rethrottle.js +4 -4
  73. package/api/api/watcher.js +50 -28
  74. package/api/api/xpack.js +4 -4
  75. package/api/index.js +176 -120
  76. package/api/new.d.ts +1498 -0
  77. package/api/requestParams.d.ts +168 -8
  78. package/api/types.d.ts +13881 -0
  79. package/api/utils.js +4 -4
  80. package/free-report-junit.xml +3410 -0
  81. package/index.d.ts +275 -30
  82. package/index.js +29 -30
  83. package/lib/Connection.js +7 -5
  84. package/lib/Helpers.d.ts +2 -2
  85. package/lib/Helpers.js +30 -18
  86. package/lib/Serializer.d.ts +5 -0
  87. package/lib/Serializer.js +17 -6
  88. package/lib/Transport.d.ts +2 -1
  89. package/lib/Transport.js +38 -8
  90. package/lib/errors.js +14 -1
  91. package/lib/pool/BaseConnectionPool.js +3 -3
  92. package/lib/pool/ConnectionPool.js +4 -5
  93. package/package.json +26 -26
  94. package/api/kibana.d.ts +0 -479
package/api/index.js CHANGED
@@ -19,9 +19,13 @@
19
19
 
20
20
  'use strict'
21
21
 
22
+ const AsyncSearchApi = require('./api/async_search')
23
+ const AutoscalingApi = require('./api/autoscaling')
22
24
  const bulkApi = require('./api/bulk')
23
25
  const CatApi = require('./api/cat')
26
+ const CcrApi = require('./api/ccr')
24
27
  const clearScrollApi = require('./api/clear_scroll')
28
+ const closePointInTimeApi = require('./api/close_point_in_time')
25
29
  const ClusterApi = require('./api/cluster')
26
30
  const countApi = require('./api/count')
27
31
  const createApi = require('./api/create')
@@ -30,121 +34,132 @@ const deleteApi = require('./api/delete')
30
34
  const deleteByQueryApi = require('./api/delete_by_query')
31
35
  const deleteByQueryRethrottleApi = require('./api/delete_by_query_rethrottle')
32
36
  const deleteScriptApi = require('./api/delete_script')
37
+ const EnrichApi = require('./api/enrich')
38
+ const EqlApi = require('./api/eql')
33
39
  const existsApi = require('./api/exists')
34
40
  const existsSourceApi = require('./api/exists_source')
35
41
  const explainApi = require('./api/explain')
42
+ const FeaturesApi = require('./api/features')
36
43
  const fieldCapsApi = require('./api/field_caps')
44
+ const FleetApi = require('./api/fleet')
37
45
  const getApi = require('./api/get')
38
46
  const getScriptApi = require('./api/get_script')
39
47
  const getScriptContextApi = require('./api/get_script_context')
40
48
  const getScriptLanguagesApi = require('./api/get_script_languages')
41
49
  const getSourceApi = require('./api/get_source')
50
+ const GraphApi = require('./api/graph')
51
+ const IlmApi = require('./api/ilm')
42
52
  const indexApi = require('./api/index')
43
53
  const IndicesApi = require('./api/indices')
44
54
  const infoApi = require('./api/info')
45
55
  const IngestApi = require('./api/ingest')
56
+ const LicenseApi = require('./api/license')
57
+ const LogstashApi = require('./api/logstash')
46
58
  const mgetApi = require('./api/mget')
59
+ const MigrationApi = require('./api/migration')
60
+ const MlApi = require('./api/ml')
61
+ const MonitoringApi = require('./api/monitoring')
47
62
  const msearchApi = require('./api/msearch')
48
63
  const msearchTemplateApi = require('./api/msearch_template')
49
64
  const mtermvectorsApi = require('./api/mtermvectors')
50
65
  const NodesApi = require('./api/nodes')
66
+ const openPointInTimeApi = require('./api/open_point_in_time')
51
67
  const pingApi = require('./api/ping')
52
68
  const putScriptApi = require('./api/put_script')
53
69
  const rankEvalApi = require('./api/rank_eval')
54
70
  const reindexApi = require('./api/reindex')
55
71
  const reindexRethrottleApi = require('./api/reindex_rethrottle')
56
72
  const renderSearchTemplateApi = require('./api/render_search_template')
73
+ const RollupApi = require('./api/rollup')
57
74
  const scriptsPainlessExecuteApi = require('./api/scripts_painless_execute')
58
75
  const scrollApi = require('./api/scroll')
59
76
  const searchApi = require('./api/search')
60
77
  const searchShardsApi = require('./api/search_shards')
61
78
  const searchTemplateApi = require('./api/search_template')
62
- const SnapshotApi = require('./api/snapshot')
63
- const TasksApi = require('./api/tasks')
64
- const termvectorsApi = require('./api/termvectors')
65
- const updateApi = require('./api/update')
66
- const updateByQueryApi = require('./api/update_by_query')
67
- const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
68
- const AsyncSearchApi = require('./api/async_search')
69
- const AutoscalingApi = require('./api/autoscaling')
70
- const CcrApi = require('./api/ccr')
71
- const closePointInTimeApi = require('./api/close_point_in_time')
72
- const EnrichApi = require('./api/enrich')
73
- const EqlApi = require('./api/eql')
74
- const GraphApi = require('./api/graph')
75
- const IlmApi = require('./api/ilm')
76
- const LicenseApi = require('./api/license')
77
- const MigrationApi = require('./api/migration')
78
- const MlApi = require('./api/ml')
79
- const MonitoringApi = require('./api/monitoring')
80
- const openPointInTimeApi = require('./api/open_point_in_time')
81
- const RollupApi = require('./api/rollup')
82
79
  const SearchableSnapshotsApi = require('./api/searchable_snapshots')
83
80
  const SecurityApi = require('./api/security')
81
+ const ShutdownApi = require('./api/shutdown')
84
82
  const SlmApi = require('./api/slm')
83
+ const SnapshotApi = require('./api/snapshot')
85
84
  const SqlApi = require('./api/sql')
86
85
  const SslApi = require('./api/ssl')
86
+ const TasksApi = require('./api/tasks')
87
+ const termvectorsApi = require('./api/termvectors')
88
+ const TextStructureApi = require('./api/text_structure')
87
89
  const TransformApi = require('./api/transform')
90
+ const updateApi = require('./api/update')
91
+ const updateByQueryApi = require('./api/update_by_query')
92
+ const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
88
93
  const WatcherApi = require('./api/watcher')
89
94
  const XpackApi = require('./api/xpack')
90
95
 
91
96
  const { kConfigurationError } = require('./utils')
92
- const kCat = Symbol('Cat')
93
- const kCluster = Symbol('Cluster')
94
- const kDanglingIndices = Symbol('DanglingIndices')
95
- const kIndices = Symbol('Indices')
96
- const kIngest = Symbol('Ingest')
97
- const kNodes = Symbol('Nodes')
98
- const kSnapshot = Symbol('Snapshot')
99
- const kTasks = Symbol('Tasks')
100
97
  const kAsyncSearch = Symbol('AsyncSearch')
101
98
  const kAutoscaling = Symbol('Autoscaling')
99
+ const kCat = Symbol('Cat')
102
100
  const kCcr = Symbol('Ccr')
101
+ const kCluster = Symbol('Cluster')
102
+ const kDanglingIndices = Symbol('DanglingIndices')
103
103
  const kEnrich = Symbol('Enrich')
104
104
  const kEql = Symbol('Eql')
105
+ const kFeatures = Symbol('Features')
106
+ const kFleet = Symbol('Fleet')
105
107
  const kGraph = Symbol('Graph')
106
108
  const kIlm = Symbol('Ilm')
109
+ const kIndices = Symbol('Indices')
110
+ const kIngest = Symbol('Ingest')
107
111
  const kLicense = Symbol('License')
112
+ const kLogstash = Symbol('Logstash')
108
113
  const kMigration = Symbol('Migration')
109
114
  const kMl = Symbol('Ml')
110
115
  const kMonitoring = Symbol('Monitoring')
116
+ const kNodes = Symbol('Nodes')
111
117
  const kRollup = Symbol('Rollup')
112
118
  const kSearchableSnapshots = Symbol('SearchableSnapshots')
113
119
  const kSecurity = Symbol('Security')
120
+ const kShutdown = Symbol('Shutdown')
114
121
  const kSlm = Symbol('Slm')
122
+ const kSnapshot = Symbol('Snapshot')
115
123
  const kSql = Symbol('Sql')
116
124
  const kSsl = Symbol('Ssl')
125
+ const kTasks = Symbol('Tasks')
126
+ const kTextStructure = Symbol('TextStructure')
117
127
  const kTransform = Symbol('Transform')
118
128
  const kWatcher = Symbol('Watcher')
119
129
  const kXpack = Symbol('Xpack')
120
130
 
121
131
  function ESAPI (opts) {
122
132
  this[kConfigurationError] = opts.ConfigurationError
123
- this[kCat] = null
124
- this[kCluster] = null
125
- this[kDanglingIndices] = null
126
- this[kIndices] = null
127
- this[kIngest] = null
128
- this[kNodes] = null
129
- this[kSnapshot] = null
130
- this[kTasks] = null
131
133
  this[kAsyncSearch] = null
132
134
  this[kAutoscaling] = null
135
+ this[kCat] = null
133
136
  this[kCcr] = null
137
+ this[kCluster] = null
138
+ this[kDanglingIndices] = null
134
139
  this[kEnrich] = null
135
140
  this[kEql] = null
141
+ this[kFeatures] = null
142
+ this[kFleet] = null
136
143
  this[kGraph] = null
137
144
  this[kIlm] = null
145
+ this[kIndices] = null
146
+ this[kIngest] = null
138
147
  this[kLicense] = null
148
+ this[kLogstash] = null
139
149
  this[kMigration] = null
140
150
  this[kMl] = null
141
151
  this[kMonitoring] = null
152
+ this[kNodes] = null
142
153
  this[kRollup] = null
143
154
  this[kSearchableSnapshots] = null
144
155
  this[kSecurity] = null
156
+ this[kShutdown] = null
145
157
  this[kSlm] = null
158
+ this[kSnapshot] = null
146
159
  this[kSql] = null
147
160
  this[kSsl] = null
161
+ this[kTasks] = null
162
+ this[kTextStructure] = null
148
163
  this[kTransform] = null
149
164
  this[kWatcher] = null
150
165
  this[kXpack] = null
@@ -152,6 +167,7 @@ function ESAPI (opts) {
152
167
 
153
168
  ESAPI.prototype.bulk = bulkApi
154
169
  ESAPI.prototype.clearScroll = clearScrollApi
170
+ ESAPI.prototype.closePointInTime = closePointInTimeApi
155
171
  ESAPI.prototype.count = countApi
156
172
  ESAPI.prototype.create = createApi
157
173
  ESAPI.prototype.delete = deleteApi
@@ -173,6 +189,7 @@ ESAPI.prototype.mget = mgetApi
173
189
  ESAPI.prototype.msearch = msearchApi
174
190
  ESAPI.prototype.msearchTemplate = msearchTemplateApi
175
191
  ESAPI.prototype.mtermvectors = mtermvectorsApi
192
+ ESAPI.prototype.openPointInTime = openPointInTimeApi
176
193
  ESAPI.prototype.ping = pingApi
177
194
  ESAPI.prototype.putScript = putScriptApi
178
195
  ESAPI.prototype.rankEval = rankEvalApi
@@ -188,10 +205,25 @@ ESAPI.prototype.termvectors = termvectorsApi
188
205
  ESAPI.prototype.update = updateApi
189
206
  ESAPI.prototype.updateByQuery = updateByQueryApi
190
207
  ESAPI.prototype.updateByQueryRethrottle = updateByQueryRethrottleApi
191
- ESAPI.prototype.closePointInTime = closePointInTimeApi
192
- ESAPI.prototype.openPointInTime = openPointInTimeApi
193
208
 
194
209
  Object.defineProperties(ESAPI.prototype, {
210
+ asyncSearch: {
211
+ get () {
212
+ if (this[kAsyncSearch] === null) {
213
+ this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
214
+ }
215
+ return this[kAsyncSearch]
216
+ }
217
+ },
218
+ async_search: { get () { return this.asyncSearch } },
219
+ autoscaling: {
220
+ get () {
221
+ if (this[kAutoscaling] === null) {
222
+ this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
223
+ }
224
+ return this[kAutoscaling]
225
+ }
226
+ },
195
227
  cat: {
196
228
  get () {
197
229
  if (this[kCat] === null) {
@@ -200,7 +232,16 @@ Object.defineProperties(ESAPI.prototype, {
200
232
  return this[kCat]
201
233
  }
202
234
  },
235
+ ccr: {
236
+ get () {
237
+ if (this[kCcr] === null) {
238
+ this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
239
+ }
240
+ return this[kCcr]
241
+ }
242
+ },
203
243
  clear_scroll: { get () { return this.clearScroll } },
244
+ close_point_in_time: { get () { return this.closePointInTime } },
204
245
  cluster: {
205
246
  get () {
206
247
  if (this[kCluster] === null) {
@@ -221,88 +262,6 @@ Object.defineProperties(ESAPI.prototype, {
221
262
  delete_by_query: { get () { return this.deleteByQuery } },
222
263
  delete_by_query_rethrottle: { get () { return this.deleteByQueryRethrottle } },
223
264
  delete_script: { get () { return this.deleteScript } },
224
- exists_source: { get () { return this.existsSource } },
225
- field_caps: { get () { return this.fieldCaps } },
226
- get_script: { get () { return this.getScript } },
227
- get_script_context: { get () { return this.getScriptContext } },
228
- get_script_languages: { get () { return this.getScriptLanguages } },
229
- get_source: { get () { return this.getSource } },
230
- indices: {
231
- get () {
232
- if (this[kIndices] === null) {
233
- this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
234
- }
235
- return this[kIndices]
236
- }
237
- },
238
- ingest: {
239
- get () {
240
- if (this[kIngest] === null) {
241
- this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
242
- }
243
- return this[kIngest]
244
- }
245
- },
246
- msearch_template: { get () { return this.msearchTemplate } },
247
- nodes: {
248
- get () {
249
- if (this[kNodes] === null) {
250
- this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
251
- }
252
- return this[kNodes]
253
- }
254
- },
255
- put_script: { get () { return this.putScript } },
256
- rank_eval: { get () { return this.rankEval } },
257
- reindex_rethrottle: { get () { return this.reindexRethrottle } },
258
- render_search_template: { get () { return this.renderSearchTemplate } },
259
- scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
260
- search_shards: { get () { return this.searchShards } },
261
- search_template: { get () { return this.searchTemplate } },
262
- snapshot: {
263
- get () {
264
- if (this[kSnapshot] === null) {
265
- this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
266
- }
267
- return this[kSnapshot]
268
- }
269
- },
270
- tasks: {
271
- get () {
272
- if (this[kTasks] === null) {
273
- this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
274
- }
275
- return this[kTasks]
276
- }
277
- },
278
- update_by_query: { get () { return this.updateByQuery } },
279
- update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
280
- asyncSearch: {
281
- get () {
282
- if (this[kAsyncSearch] === null) {
283
- this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
284
- }
285
- return this[kAsyncSearch]
286
- }
287
- },
288
- async_search: { get () { return this.asyncSearch } },
289
- autoscaling: {
290
- get () {
291
- if (this[kAutoscaling] === null) {
292
- this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
293
- }
294
- return this[kAutoscaling]
295
- }
296
- },
297
- ccr: {
298
- get () {
299
- if (this[kCcr] === null) {
300
- this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
301
- }
302
- return this[kCcr]
303
- }
304
- },
305
- close_point_in_time: { get () { return this.closePointInTime } },
306
265
  enrich: {
307
266
  get () {
308
267
  if (this[kEnrich] === null) {
@@ -319,6 +278,28 @@ Object.defineProperties(ESAPI.prototype, {
319
278
  return this[kEql]
320
279
  }
321
280
  },
281
+ exists_source: { get () { return this.existsSource } },
282
+ features: {
283
+ get () {
284
+ if (this[kFeatures] === null) {
285
+ this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError])
286
+ }
287
+ return this[kFeatures]
288
+ }
289
+ },
290
+ field_caps: { get () { return this.fieldCaps } },
291
+ fleet: {
292
+ get () {
293
+ if (this[kFleet] === null) {
294
+ this[kFleet] = new FleetApi(this.transport, this[kConfigurationError])
295
+ }
296
+ return this[kFleet]
297
+ }
298
+ },
299
+ get_script: { get () { return this.getScript } },
300
+ get_script_context: { get () { return this.getScriptContext } },
301
+ get_script_languages: { get () { return this.getScriptLanguages } },
302
+ get_source: { get () { return this.getSource } },
322
303
  graph: {
323
304
  get () {
324
305
  if (this[kGraph] === null) {
@@ -335,6 +316,22 @@ Object.defineProperties(ESAPI.prototype, {
335
316
  return this[kIlm]
336
317
  }
337
318
  },
319
+ indices: {
320
+ get () {
321
+ if (this[kIndices] === null) {
322
+ this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
323
+ }
324
+ return this[kIndices]
325
+ }
326
+ },
327
+ ingest: {
328
+ get () {
329
+ if (this[kIngest] === null) {
330
+ this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
331
+ }
332
+ return this[kIngest]
333
+ }
334
+ },
338
335
  license: {
339
336
  get () {
340
337
  if (this[kLicense] === null) {
@@ -343,6 +340,14 @@ Object.defineProperties(ESAPI.prototype, {
343
340
  return this[kLicense]
344
341
  }
345
342
  },
343
+ logstash: {
344
+ get () {
345
+ if (this[kLogstash] === null) {
346
+ this[kLogstash] = new LogstashApi(this.transport, this[kConfigurationError])
347
+ }
348
+ return this[kLogstash]
349
+ }
350
+ },
346
351
  migration: {
347
352
  get () {
348
353
  if (this[kMigration] === null) {
@@ -367,7 +372,20 @@ Object.defineProperties(ESAPI.prototype, {
367
372
  return this[kMonitoring]
368
373
  }
369
374
  },
375
+ msearch_template: { get () { return this.msearchTemplate } },
376
+ nodes: {
377
+ get () {
378
+ if (this[kNodes] === null) {
379
+ this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
380
+ }
381
+ return this[kNodes]
382
+ }
383
+ },
370
384
  open_point_in_time: { get () { return this.openPointInTime } },
385
+ put_script: { get () { return this.putScript } },
386
+ rank_eval: { get () { return this.rankEval } },
387
+ reindex_rethrottle: { get () { return this.reindexRethrottle } },
388
+ render_search_template: { get () { return this.renderSearchTemplate } },
371
389
  rollup: {
372
390
  get () {
373
391
  if (this[kRollup] === null) {
@@ -376,6 +394,9 @@ Object.defineProperties(ESAPI.prototype, {
376
394
  return this[kRollup]
377
395
  }
378
396
  },
397
+ scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
398
+ search_shards: { get () { return this.searchShards } },
399
+ search_template: { get () { return this.searchTemplate } },
379
400
  searchableSnapshots: {
380
401
  get () {
381
402
  if (this[kSearchableSnapshots] === null) {
@@ -393,6 +414,14 @@ Object.defineProperties(ESAPI.prototype, {
393
414
  return this[kSecurity]
394
415
  }
395
416
  },
417
+ shutdown: {
418
+ get () {
419
+ if (this[kShutdown] === null) {
420
+ this[kShutdown] = new ShutdownApi(this.transport, this[kConfigurationError])
421
+ }
422
+ return this[kShutdown]
423
+ }
424
+ },
396
425
  slm: {
397
426
  get () {
398
427
  if (this[kSlm] === null) {
@@ -401,6 +430,14 @@ Object.defineProperties(ESAPI.prototype, {
401
430
  return this[kSlm]
402
431
  }
403
432
  },
433
+ snapshot: {
434
+ get () {
435
+ if (this[kSnapshot] === null) {
436
+ this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
437
+ }
438
+ return this[kSnapshot]
439
+ }
440
+ },
404
441
  sql: {
405
442
  get () {
406
443
  if (this[kSql] === null) {
@@ -417,6 +454,23 @@ Object.defineProperties(ESAPI.prototype, {
417
454
  return this[kSsl]
418
455
  }
419
456
  },
457
+ tasks: {
458
+ get () {
459
+ if (this[kTasks] === null) {
460
+ this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
461
+ }
462
+ return this[kTasks]
463
+ }
464
+ },
465
+ textStructure: {
466
+ get () {
467
+ if (this[kTextStructure] === null) {
468
+ this[kTextStructure] = new TextStructureApi(this.transport, this[kConfigurationError])
469
+ }
470
+ return this[kTextStructure]
471
+ }
472
+ },
473
+ text_structure: { get () { return this.textStructure } },
420
474
  transform: {
421
475
  get () {
422
476
  if (this[kTransform] === null) {
@@ -425,6 +479,8 @@ Object.defineProperties(ESAPI.prototype, {
425
479
  return this[kTransform]
426
480
  }
427
481
  },
482
+ update_by_query: { get () { return this.updateByQuery } },
483
+ update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
428
484
  watcher: {
429
485
  get () {
430
486
  if (this[kWatcher] === null) {