@opensearch-project/opensearch 3.5.0 → 3.6.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 (129) hide show
  1. package/api/OpenSearchApi.d.ts +78 -0
  2. package/api/OpenSearchApi.js +4 -0
  3. package/api/_core/bulk.d.ts +1 -1
  4. package/api/_core/exists.d.ts +4 -2
  5. package/api/_core/existsSource.d.ts +4 -2
  6. package/api/_core/explain.d.ts +1 -1
  7. package/api/_core/ping.d.ts +4 -2
  8. package/api/_core/search.d.ts +1 -0
  9. package/api/_core/search.js +1 -0
  10. package/api/_core/searchShards.d.ts +5 -0
  11. package/api/_core/searchShards.js +1 -0
  12. package/api/_types/_common.aggregations.d.ts +111 -266
  13. package/api/_types/_common.analysis.d.ts +2 -2
  14. package/api/_types/_common.d.ts +13 -7
  15. package/api/_types/_common.mapping.d.ts +1 -1
  16. package/api/_types/_common.query_dsl.d.ts +10 -6
  17. package/api/_types/_core.bulk.d.ts +16 -8
  18. package/api/_types/_core.explain.d.ts +1 -7
  19. package/api/_types/_core.search.d.ts +23 -7
  20. package/api/_types/cluster._common.d.ts +2 -0
  21. package/api/_types/cluster.stats.d.ts +3 -3
  22. package/api/_types/geospatial._common.d.ts +147 -0
  23. package/api/_types/index.d.ts +4 -0
  24. package/api/_types/indices._common.d.ts +6 -3
  25. package/api/_types/ltr._common.d.ts +54 -0
  26. package/api/_types/ml._common.d.ts +9 -0
  27. package/api/_types/neural._common.d.ts +94 -0
  28. package/api/_types/nodes._common.d.ts +1 -1
  29. package/api/_types/nodes.stats.d.ts +1 -0
  30. package/api/_types/search_pipeline._common.d.ts +19 -1
  31. package/api/_types/security._common.d.ts +6 -6
  32. package/api/cluster/existsComponentTemplate.d.ts +4 -2
  33. package/api/cluster/existsComponentTemplate.js +1 -1
  34. package/api/cluster/health.d.ts +2 -1
  35. package/api/flowFramework/create.js +6 -6
  36. package/api/flowFramework/delete.js +3 -3
  37. package/api/flowFramework/deprovision.js +3 -3
  38. package/api/flowFramework/get.js +2 -2
  39. package/api/flowFramework/getStatus.js +3 -3
  40. package/api/flowFramework/getSteps.js +2 -2
  41. package/api/flowFramework/provision.js +2 -2
  42. package/api/flowFramework/update.js +7 -7
  43. package/api/geospatial/_api.js +46 -0
  44. package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
  45. package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
  46. package/api/geospatial/geojsonUploadPost.d.ts +30 -0
  47. package/api/geospatial/geojsonUploadPost.js +49 -0
  48. package/api/geospatial/geojsonUploadPut.d.ts +30 -0
  49. package/api/geospatial/geojsonUploadPut.js +49 -0
  50. package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
  51. package/api/geospatial/getIp2GeoDatasource.js +48 -0
  52. package/api/geospatial/getUploadStats.d.ts +28 -0
  53. package/api/geospatial/getUploadStats.js +45 -0
  54. package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
  55. package/api/geospatial/putIp2GeoDatasource.js +53 -0
  56. package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
  57. package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
  58. package/api/index.d.ts +36 -4
  59. package/api/indices/exists.d.ts +4 -2
  60. package/api/indices/existsAlias.d.ts +4 -2
  61. package/api/indices/existsIndexTemplate.d.ts +4 -2
  62. package/api/indices/existsTemplate.d.ts +4 -2
  63. package/api/indices/putSettings.js +1 -1
  64. package/api/indices/simulateTemplate.js +1 -1
  65. package/api/ism/addPolicy.js +1 -1
  66. package/api/ism/changePolicy.js +1 -1
  67. package/api/ism/existsPolicy.d.ts +4 -2
  68. package/api/ism/existsPolicy.js +1 -1
  69. package/api/ism/explainPolicy.js +2 -2
  70. package/api/ism/getPolicies.js +1 -1
  71. package/api/ism/getPolicy.js +1 -1
  72. package/api/ism/putPolicies.js +1 -1
  73. package/api/ism/refreshSearchAnalyzers.js +2 -2
  74. package/api/ism/removePolicy.js +1 -1
  75. package/api/ism/retryIndex.js +2 -2
  76. package/api/ltr/_api.js +24 -0
  77. package/api/ltr/cacheStats.d.ts +28 -0
  78. package/api/ltr/cacheStats.js +45 -0
  79. package/api/ltr/clearCache.d.ts +30 -0
  80. package/api/ltr/clearCache.js +48 -0
  81. package/api/ltr/createDefaultStore.d.ts +28 -0
  82. package/api/ltr/createDefaultStore.js +45 -0
  83. package/api/ltr/createStore.d.ts +30 -0
  84. package/api/ltr/createStore.js +49 -0
  85. package/api/ltr/deleteDefaultStore.d.ts +28 -0
  86. package/api/ltr/deleteDefaultStore.js +45 -0
  87. package/api/ltr/deleteStore.d.ts +30 -0
  88. package/api/ltr/deleteStore.js +49 -0
  89. package/api/ltr/getStore.d.ts +30 -0
  90. package/api/ltr/getStore.js +49 -0
  91. package/api/ltr/listStores.d.ts +28 -0
  92. package/api/ltr/listStores.js +45 -0
  93. package/api/ml/getTool.d.ts +1 -1
  94. package/api/neural/_api.js +26 -0
  95. package/api/neural/stats.d.ts +33 -0
  96. package/api/neural/stats.js +52 -0
  97. package/api/nodes/hotThreads.js +6 -6
  98. package/api/nodes/info.js +3 -3
  99. package/api/nodes/reloadSecureSettings.js +1 -1
  100. package/api/nodes/stats.js +9 -9
  101. package/api/observability/createObject.js +1 -1
  102. package/api/observability/deleteObject.js +1 -1
  103. package/api/observability/deleteObjects.js +2 -2
  104. package/api/observability/getObject.js +1 -1
  105. package/api/observability/updateObject.js +2 -2
  106. package/api/ppl/explain.js +4 -4
  107. package/api/ppl/getStats.js +3 -3
  108. package/api/ppl/postStats.js +4 -4
  109. package/api/ppl/query.js +4 -4
  110. package/api/query/datasourceDelete.js +2 -2
  111. package/api/query/datasourceRetrieve.js +2 -2
  112. package/api/query/datasourcesCreate.js +2 -2
  113. package/api/query/datasourcesList.js +1 -1
  114. package/api/query/datasourcesUpdate.js +2 -2
  115. package/api/rollups/delete.js +2 -2
  116. package/api/rollups/explain.js +2 -2
  117. package/api/rollups/get.js +2 -2
  118. package/api/rollups/put.js +5 -5
  119. package/api/rollups/start.js +2 -2
  120. package/api/rollups/stop.js +2 -2
  121. package/api/sql/close.js +4 -4
  122. package/api/sql/explain.js +4 -4
  123. package/api/sql/getStats.js +3 -3
  124. package/api/sql/postStats.js +4 -4
  125. package/api/sql/query.js +4 -4
  126. package/api/sql/settings.js +3 -3
  127. package/lib/Connection.js +2 -0
  128. package/lib/aws/shared.js +3 -2
  129. package/package.json +2 -2
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ 'use strict';
18
+
19
+ const { normalizeArguments, handleMissingParam } = require('../utils');
20
+
21
+ /**
22
+ * Use an OpenSearch query to upload `GeoJSON` regardless if index exists.
23
+ - When type is `geo_point`, only Point geometry is allowed
24
+ - When type is `geo_shape`, all geometry types are allowed (Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Envelope).
25
+ * <br/> See Also: {@link undefined - geospatial.geojson_upload_put}
26
+ *
27
+ * @memberOf API-Geospatial
28
+ *
29
+ * @param {object} params
30
+ * @param {object} params.body
31
+ *
32
+ * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
33
+ * @param {function} [callback] - Callback that handles errors and response
34
+ *
35
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
36
+ */
37
+ function geojsonUploadPutFunc(params, options, callback) {
38
+ [params, options, callback] = normalizeArguments(params, options, callback);
39
+ if (params.body == null) return handleMissingParam('body', this, callback);
40
+
41
+ let { body, ...querystring } = params;
42
+
43
+ const path = '/_plugins/geospatial/geojson/_upload';
44
+ const method = 'PUT';
45
+
46
+ return this.transport.request({ method, path, querystring, body }, options, callback);
47
+ }
48
+
49
+ module.exports = geojsonUploadPutFunc;
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ import { ApiResponse } from '../../lib/Transport'
18
+ import * as Common from '../_types/_common'
19
+ import * as Geospatial_Common from '../_types/geospatial._common'
20
+ import * as Global from '../_types/_global'
21
+
22
+ export interface Geospatial_GetIp2GeoDatasource_Request extends Global.Params {
23
+ name?: Common.StringOrStringArray;
24
+ }
25
+
26
+ export interface Geospatial_GetIp2GeoDatasource_Response extends ApiResponse {
27
+ body: Geospatial_GetIp2GeoDatasource_ResponseBody;
28
+ }
29
+
30
+ export type Geospatial_GetIp2GeoDatasource_ResponseBody = Geospatial_Common.GetDataSourceResponse
31
+
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ 'use strict';
18
+
19
+ const { normalizeArguments, parsePathParam } = require('../utils');
20
+
21
+ /**
22
+ * Get one or more IP2Geo data sources, defaulting to returning all if no names specified.
23
+ * <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#sending-a-get-request - geospatial.get_ip2geo_datasource}
24
+ *
25
+ * @memberOf API-Geospatial
26
+ *
27
+ * @param {object} [params]
28
+ * @param {string} [params.name]
29
+ *
30
+ * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
+ * @param {function} [callback] - Callback that handles errors and response
32
+ *
33
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
34
+ */
35
+ function getIp2GeoDatasourceFunc(params, options, callback) {
36
+ [params, options, callback] = normalizeArguments(params, options, callback);
37
+
38
+ let { body, name, ...querystring } = params;
39
+ name = parsePathParam(name);
40
+
41
+ const path = ['/_plugins/geospatial/ip2geo/datasource', name].filter(c => c != null).join('/');
42
+ const method = 'GET';
43
+ body = body || '';
44
+
45
+ return this.transport.request({ method, path, querystring, body }, options, callback);
46
+ }
47
+
48
+ module.exports = getIp2GeoDatasourceFunc;
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ import { ApiResponse } from '../../lib/Transport'
18
+ import * as Geospatial_Common from '../_types/geospatial._common'
19
+ import * as Global from '../_types/_global'
20
+
21
+ export type Geospatial_GetUploadStats_Request = Global.Params & Record<string, any>
22
+
23
+ export interface Geospatial_GetUploadStats_Response extends ApiResponse {
24
+ body: Geospatial_GetUploadStats_ResponseBody;
25
+ }
26
+
27
+ export type Geospatial_GetUploadStats_ResponseBody = Geospatial_Common.GeoSpatialUploadStats
28
+
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ 'use strict';
18
+
19
+ const { normalizeArguments } = require('../utils');
20
+
21
+ /**
22
+ * Retrieves statistics for all geospatial uploads.
23
+ * <br/> See Also: {@link undefined - geospatial.get_upload_stats}
24
+ *
25
+ * @memberOf API-Geospatial
26
+ *
27
+ * @param {object} [params] - (Unused)
28
+ * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
29
+ * @param {function} [callback] - Callback that handles errors and response
30
+ *
31
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
32
+ */
33
+ function getUploadStatsFunc(params, options, callback) {
34
+ [params, options, callback] = normalizeArguments(params, options, callback);
35
+
36
+ let { body, ...querystring } = params;
37
+
38
+ const path = '/_plugins/geospatial/_upload/stats';
39
+ const method = 'GET';
40
+ body = body || '';
41
+
42
+ return this.transport.request({ method, path, querystring, body }, options, callback);
43
+ }
44
+
45
+ module.exports = getUploadStatsFunc;
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ import { ApiResponse } from '../../lib/Transport'
18
+ import * as Common from '../_types/_common'
19
+ import * as Geospatial_Common from '../_types/geospatial._common'
20
+ import * as Global from '../_types/_global'
21
+
22
+ export interface Geospatial_PutIp2GeoDatasource_Request extends Global.Params {
23
+ body?: Geospatial_Common.PutIP2GeoDataSourceRequest;
24
+ name: string;
25
+ }
26
+
27
+ export interface Geospatial_PutIp2GeoDatasource_Response extends ApiResponse {
28
+ body: Geospatial_PutIp2GeoDatasource_ResponseBody;
29
+ }
30
+
31
+ export type Geospatial_PutIp2GeoDatasource_ResponseBody = Common.AcknowledgedResponseBase
32
+
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ 'use strict';
18
+
19
+ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
+
21
+ /**
22
+ * Create a specific IP2Geo data source.
23
+ Default values:
24
+ - `endpoint`: `"https://geoip.maps.opensearch.org/v1/geolite2-city/manifest.json"`
25
+ - `update_interval_in_days`: 3.
26
+ * <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#data-source-options - geospatial.put_ip2geo_datasource}
27
+ *
28
+ * @memberOf API-Geospatial
29
+ *
30
+ * @param {object} params
31
+ * @param {string} params.name
32
+ * @param {object} [params.body]
33
+ *
34
+ * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
+ * @param {function} [callback] - Callback that handles errors and response
36
+ *
37
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
38
+ */
39
+ function putIp2GeoDatasourceFunc(params, options, callback) {
40
+ [params, options, callback] = normalizeArguments(params, options, callback);
41
+ if (params.name == null) return handleMissingParam('name', this, callback);
42
+
43
+ let { body, name, ...querystring } = params;
44
+ name = parsePathParam(name);
45
+
46
+ const path = '/_plugins/geospatial/ip2geo/datasource/' + name;
47
+ const method = 'PUT';
48
+ body = body || '';
49
+
50
+ return this.transport.request({ method, path, querystring, body }, options, callback);
51
+ }
52
+
53
+ module.exports = putIp2GeoDatasourceFunc;
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ import { ApiResponse } from '../../lib/Transport'
18
+ import * as Common from '../_types/_common'
19
+ import * as Geospatial_Common from '../_types/geospatial._common'
20
+ import * as Global from '../_types/_global'
21
+
22
+ export interface Geospatial_PutIp2GeoDatasourceSettings_Request extends Global.Params {
23
+ body: Geospatial_Common.PutIP2GeoDataSourceRequest;
24
+ name: string;
25
+ }
26
+
27
+ export interface Geospatial_PutIp2GeoDatasourceSettings_Response extends ApiResponse {
28
+ body: Geospatial_PutIp2GeoDatasourceSettings_ResponseBody;
29
+ }
30
+
31
+ export type Geospatial_PutIp2GeoDatasourceSettings_ResponseBody = Common.AcknowledgedResponseBase
32
+
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ /*
12
+ * This file was generated from the OpenSearch API Spec. Do NOT edit it
13
+ * manually. If you want to make changes, either update the spec or
14
+ * modify the API generator.
15
+ */
16
+
17
+ 'use strict';
18
+
19
+ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
+
21
+ /**
22
+ * Update a specific IP2Geo data source.
23
+ * <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#updating-an-ip2geo-data-source - geospatial.put_ip2geo_datasource_settings}
24
+ *
25
+ * @memberOf API-Geospatial
26
+ *
27
+ * @param {object} params
28
+ * @param {string} params.name
29
+ * @param {object} params.body
30
+ *
31
+ * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
32
+ * @param {function} [callback] - Callback that handles errors and response
33
+ *
34
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
35
+ */
36
+ function putIp2GeoDatasourceSettingsFunc(params, options, callback) {
37
+ [params, options, callback] = normalizeArguments(params, options, callback);
38
+ if (params.name == null) return handleMissingParam('name', this, callback);
39
+ if (params.body == null) return handleMissingParam('body', this, callback);
40
+
41
+ let { body, name, ...querystring } = params;
42
+ name = parsePathParam(name);
43
+
44
+ const path = '/_plugins/geospatial/ip2geo/datasource/' + name + '/_settings';
45
+ const method = 'PUT';
46
+
47
+ return this.transport.request({ method, path, querystring, body }, options, callback);
48
+ }
49
+
50
+ module.exports = putIp2GeoDatasourceSettingsFunc;
package/api/index.d.ts CHANGED
@@ -36,7 +36,7 @@ import { GetScript_Request, GetScript_Response, GetScript_ResponseBody } from '.
36
36
  import { PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody } from './_core/putScript';
37
37
  import { ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody } from './_core/scriptsPainlessExecute';
38
38
  import { Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody } from './_core/search';
39
- import { SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody } from './_core/searchShards';
39
+ import { SearchShards_Request, SearchShards_RequestBody, SearchShards_Response, SearchShards_ResponseBody } from './_core/searchShards';
40
40
  import { DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody } from './_core/deletePit';
41
41
  import { DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody } from './_core/deleteAllPits';
42
42
  import { GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody } from './_core/getAllPits';
@@ -162,6 +162,15 @@ import { Insights_TopQueries_Request, Insights_TopQueries_Response, Insights_Top
162
162
  import { List_Help_Request, List_Help_Response, List_Help_ResponseBody } from './list/help';
163
163
  import { List_Indices_Request, List_Indices_Response, List_Indices_ResponseBody } from './list/indices';
164
164
  import { List_Shards_Request, List_Shards_Response, List_Shards_ResponseBody } from './list/shards';
165
+ import { Ltr_DeleteDefaultStore_Request, Ltr_DeleteDefaultStore_Response, Ltr_DeleteDefaultStore_ResponseBody } from './ltr/deleteDefaultStore';
166
+ import { Ltr_ListStores_Request, Ltr_ListStores_Response, Ltr_ListStores_ResponseBody } from './ltr/listStores';
167
+ import { Ltr_CreateDefaultStore_Request, Ltr_CreateDefaultStore_Response, Ltr_CreateDefaultStore_ResponseBody } from './ltr/createDefaultStore';
168
+ import { Ltr_CacheStats_Request, Ltr_CacheStats_Response, Ltr_CacheStats_ResponseBody } from './ltr/cacheStats';
169
+ import { Ltr_ClearCache_Request, Ltr_ClearCache_Response, Ltr_ClearCache_ResponseBody } from './ltr/clearCache';
170
+ import { Ltr_DeleteStore_Request, Ltr_DeleteStore_Response, Ltr_DeleteStore_ResponseBody } from './ltr/deleteStore';
171
+ import { Ltr_GetStore_Request, Ltr_GetStore_Response, Ltr_GetStore_ResponseBody } from './ltr/getStore';
172
+ import { Ltr_CreateStore_Request, Ltr_CreateStore_Response, Ltr_CreateStore_ResponseBody } from './ltr/createStore';
173
+ import { Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody } from './ltr/stats';
165
174
  import { Nodes_Info_Request, Nodes_Info_Response, Nodes_Info_ResponseBody } from './nodes/info';
166
175
  import { Nodes_HotThreads_Request, Nodes_HotThreads_Response, Nodes_HotThreads_ResponseBody } from './nodes/hotThreads';
167
176
  import { Nodes_ReloadSecureSettings_Request, Nodes_ReloadSecureSettings_RequestBody, Nodes_ReloadSecureSettings_Response, Nodes_ReloadSecureSettings_ResponseBody } from './nodes/reloadSecureSettings';
@@ -275,7 +284,6 @@ import { Knn_TrainModel_Request, Knn_TrainModel_Response, Knn_TrainModel_Respons
275
284
  import { Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody } from './knn/deleteModel';
276
285
  import { Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody } from './knn/getModel';
277
286
  import { Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody } from './knn/warmup';
278
- import { Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody } from './ltr/stats';
279
287
  import { Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody } from './ml/executeAlgorithm';
280
288
  import { Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody } from './ml/predict';
281
289
  import { Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody } from './ml/trainPredict';
@@ -335,6 +343,7 @@ import { Ml_DeleteTask_Request, Ml_DeleteTask_Response, Ml_DeleteTask_ResponseBo
335
343
  import { Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody } from './ml/getTask';
336
344
  import { Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody } from './ml/getAllTools';
337
345
  import { Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody } from './ml/getTool';
346
+ import { Neural_Stats_Request, Neural_Stats_Response, Neural_Stats_ResponseBody } from './neural/stats';
338
347
  import { Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody } from './notifications/listChannels';
339
348
  import { Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody } from './notifications/deleteConfigs';
340
349
  import { Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody } from './notifications/getConfigs';
@@ -399,6 +408,13 @@ import { Transforms_Put_Request, Transforms_Put_Response, Transforms_Put_Respons
399
408
  import { Transforms_Explain_Request, Transforms_Explain_Response, Transforms_Explain_ResponseBody } from './transforms/explain';
400
409
  import { Transforms_Start_Request, Transforms_Start_Response, Transforms_Start_ResponseBody } from './transforms/start';
401
410
  import { Transforms_Stop_Request, Transforms_Stop_Response, Transforms_Stop_ResponseBody } from './transforms/stop';
411
+ import { Geospatial_GetUploadStats_Request, Geospatial_GetUploadStats_Response, Geospatial_GetUploadStats_ResponseBody } from './geospatial/getUploadStats';
412
+ import { Geospatial_GeojsonUploadPost_Request, Geospatial_GeojsonUploadPost_Response, Geospatial_GeojsonUploadPost_ResponseBody } from './geospatial/geojsonUploadPost';
413
+ import { Geospatial_GeojsonUploadPut_Request, Geospatial_GeojsonUploadPut_Response, Geospatial_GeojsonUploadPut_ResponseBody } from './geospatial/geojsonUploadPut';
414
+ import { Geospatial_GetIp2GeoDatasource_Request, Geospatial_GetIp2GeoDatasource_Response, Geospatial_GetIp2GeoDatasource_ResponseBody } from './geospatial/getIp2GeoDatasource';
415
+ import { Geospatial_DeleteIp2GeoDatasource_Request, Geospatial_DeleteIp2GeoDatasource_Response, Geospatial_DeleteIp2GeoDatasource_ResponseBody } from './geospatial/deleteIp2GeoDatasource';
416
+ import { Geospatial_PutIp2GeoDatasource_Request, Geospatial_PutIp2GeoDatasource_Response, Geospatial_PutIp2GeoDatasource_ResponseBody } from './geospatial/putIp2GeoDatasource';
417
+ import { Geospatial_PutIp2GeoDatasourceSettings_Request, Geospatial_PutIp2GeoDatasourceSettings_Response, Geospatial_PutIp2GeoDatasourceSettings_ResponseBody } from './geospatial/putIp2GeoDatasourceSettings';
402
418
  import { RemoteStore_Restore_Request, RemoteStore_Restore_RequestBody, RemoteStore_Restore_Response, RemoteStore_Restore_ResponseBody } from './remoteStore/restore';
403
419
  import { SearchPipeline_Get_Request, SearchPipeline_Get_Response, SearchPipeline_Get_ResponseBody } from './searchPipeline/get';
404
420
  import { SearchPipeline_Delete_Request, SearchPipeline_Delete_Response, SearchPipeline_Delete_ResponseBody } from './searchPipeline/delete';
@@ -445,7 +461,7 @@ export {
445
461
  PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody,
446
462
  ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody,
447
463
  Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody,
448
- SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody,
464
+ SearchShards_Request, SearchShards_RequestBody, SearchShards_Response, SearchShards_ResponseBody,
449
465
  DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody,
450
466
  DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody,
451
467
  GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody,
@@ -571,6 +587,15 @@ export {
571
587
  List_Help_Request, List_Help_Response, List_Help_ResponseBody,
572
588
  List_Indices_Request, List_Indices_Response, List_Indices_ResponseBody,
573
589
  List_Shards_Request, List_Shards_Response, List_Shards_ResponseBody,
590
+ Ltr_DeleteDefaultStore_Request, Ltr_DeleteDefaultStore_Response, Ltr_DeleteDefaultStore_ResponseBody,
591
+ Ltr_ListStores_Request, Ltr_ListStores_Response, Ltr_ListStores_ResponseBody,
592
+ Ltr_CreateDefaultStore_Request, Ltr_CreateDefaultStore_Response, Ltr_CreateDefaultStore_ResponseBody,
593
+ Ltr_CacheStats_Request, Ltr_CacheStats_Response, Ltr_CacheStats_ResponseBody,
594
+ Ltr_ClearCache_Request, Ltr_ClearCache_Response, Ltr_ClearCache_ResponseBody,
595
+ Ltr_DeleteStore_Request, Ltr_DeleteStore_Response, Ltr_DeleteStore_ResponseBody,
596
+ Ltr_GetStore_Request, Ltr_GetStore_Response, Ltr_GetStore_ResponseBody,
597
+ Ltr_CreateStore_Request, Ltr_CreateStore_Response, Ltr_CreateStore_ResponseBody,
598
+ Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody,
574
599
  Nodes_Info_Request, Nodes_Info_Response, Nodes_Info_ResponseBody,
575
600
  Nodes_HotThreads_Request, Nodes_HotThreads_Response, Nodes_HotThreads_ResponseBody,
576
601
  Nodes_ReloadSecureSettings_Request, Nodes_ReloadSecureSettings_RequestBody, Nodes_ReloadSecureSettings_Response, Nodes_ReloadSecureSettings_ResponseBody,
@@ -684,7 +709,6 @@ export {
684
709
  Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody,
685
710
  Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody,
686
711
  Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody,
687
- Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody,
688
712
  Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody,
689
713
  Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody,
690
714
  Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody,
@@ -744,6 +768,7 @@ export {
744
768
  Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody,
745
769
  Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody,
746
770
  Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody,
771
+ Neural_Stats_Request, Neural_Stats_Response, Neural_Stats_ResponseBody,
747
772
  Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody,
748
773
  Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody,
749
774
  Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody,
@@ -808,6 +833,13 @@ export {
808
833
  Transforms_Explain_Request, Transforms_Explain_Response, Transforms_Explain_ResponseBody,
809
834
  Transforms_Start_Request, Transforms_Start_Response, Transforms_Start_ResponseBody,
810
835
  Transforms_Stop_Request, Transforms_Stop_Response, Transforms_Stop_ResponseBody,
836
+ Geospatial_GetUploadStats_Request, Geospatial_GetUploadStats_Response, Geospatial_GetUploadStats_ResponseBody,
837
+ Geospatial_GeojsonUploadPost_Request, Geospatial_GeojsonUploadPost_Response, Geospatial_GeojsonUploadPost_ResponseBody,
838
+ Geospatial_GeojsonUploadPut_Request, Geospatial_GeojsonUploadPut_Response, Geospatial_GeojsonUploadPut_ResponseBody,
839
+ Geospatial_GetIp2GeoDatasource_Request, Geospatial_GetIp2GeoDatasource_Response, Geospatial_GetIp2GeoDatasource_ResponseBody,
840
+ Geospatial_DeleteIp2GeoDatasource_Request, Geospatial_DeleteIp2GeoDatasource_Response, Geospatial_DeleteIp2GeoDatasource_ResponseBody,
841
+ Geospatial_PutIp2GeoDatasource_Request, Geospatial_PutIp2GeoDatasource_Response, Geospatial_PutIp2GeoDatasource_ResponseBody,
842
+ Geospatial_PutIp2GeoDatasourceSettings_Request, Geospatial_PutIp2GeoDatasourceSettings_Response, Geospatial_PutIp2GeoDatasourceSettings_ResponseBody,
811
843
  RemoteStore_Restore_Request, RemoteStore_Restore_RequestBody, RemoteStore_Restore_Response, RemoteStore_Restore_ResponseBody,
812
844
  SearchPipeline_Get_Request, SearchPipeline_Get_Response, SearchPipeline_Get_ResponseBody,
813
845
  SearchPipeline_Delete_Request, SearchPipeline_Delete_Response, SearchPipeline_Delete_ResponseBody,
@@ -29,7 +29,9 @@ export interface Indices_Exists_Request extends Global.Params {
29
29
  local?: boolean;
30
30
  }
31
31
 
32
- export type Indices_Exists_Response = boolean
32
+ export interface Indices_Exists_Response extends ApiResponse {
33
+ body: Indices_Exists_ResponseBody;
34
+ }
33
35
 
34
- export type Indices_Exists_ResponseBody = Record<string, any>
36
+ export type Indices_Exists_ResponseBody = boolean
35
37
 
@@ -27,7 +27,9 @@ export interface Indices_ExistsAlias_Request extends Global.Params {
27
27
  name: Common.Names;
28
28
  }
29
29
 
30
- export type Indices_ExistsAlias_Response = boolean
30
+ export interface Indices_ExistsAlias_Response extends ApiResponse {
31
+ body: Indices_ExistsAlias_ResponseBody;
32
+ }
31
33
 
32
- export type Indices_ExistsAlias_ResponseBody = Record<string, any>
34
+ export type Indices_ExistsAlias_ResponseBody = boolean
33
35
 
@@ -26,7 +26,9 @@ export interface Indices_ExistsIndexTemplate_Request extends Global.Params {
26
26
  name: Common.Name;
27
27
  }
28
28
 
29
- export type Indices_ExistsIndexTemplate_Response = boolean
29
+ export interface Indices_ExistsIndexTemplate_Response extends ApiResponse {
30
+ body: Indices_ExistsIndexTemplate_ResponseBody;
31
+ }
30
32
 
31
- export type Indices_ExistsIndexTemplate_ResponseBody = Record<string, any>
33
+ export type Indices_ExistsIndexTemplate_ResponseBody = boolean
32
34
 
@@ -26,7 +26,9 @@ export interface Indices_ExistsTemplate_Request extends Global.Params {
26
26
  name: Common.Names;
27
27
  }
28
28
 
29
- export type Indices_ExistsTemplate_Response = boolean
29
+ export interface Indices_ExistsTemplate_Response extends ApiResponse {
30
+ body: Indices_ExistsTemplate_ResponseBody;
31
+ }
30
32
 
31
- export type Indices_ExistsTemplate_ResponseBody = Record<string, any>
33
+ export type Indices_ExistsTemplate_ResponseBody = boolean
32
34
 
@@ -34,7 +34,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
34
34
  * @param {boolean} [params.preserve_existing=false] - If `true`, existing index settings remain unchanged.
35
35
  * @param {string} [params.timeout] - Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
36
36
  * @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
37
- * @param {object} params.body - The index settings to be updated.
37
+ * @param {object} params.body - The configuration settings for an index.
38
38
  *
39
39
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
40
40
  * @param {function} [callback] - Callback that handles errors and response
@@ -30,7 +30,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
30
30
  * @param {boolean} [params.create=false] - If `true`, the template passed in the body is only used if no existing templates match the same index patterns. If `false`, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.
31
31
  * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
32
32
  * @param {string} [params.name] - Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit this parameter and specify the template configuration in the request body.
33
- * @param {object} [params.body] - New index template definition to be simulated, if no index template name is specified.
33
+ * @param {object} [params.body] - The configuration for an index template.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Ism
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases. Supports wildcards (`*`).
28
+ * @param {string} [params.index]
29
29
  * @param {object} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Ism
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases. Supports wildcards (`*`).
28
+ * @param {string} [params.index]
29
29
  * @param {object} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -21,7 +21,9 @@ export interface Ism_ExistsPolicy_Request extends Global.Params {
21
21
  policy_id: string;
22
22
  }
23
23
 
24
- export type Ism_ExistsPolicy_Response = boolean
24
+ export interface Ism_ExistsPolicy_Response extends ApiResponse {
25
+ body: Ism_ExistsPolicy_ResponseBody;
26
+ }
25
27
 
26
- export type Ism_ExistsPolicy_ResponseBody = any
28
+ export type Ism_ExistsPolicy_ResponseBody = boolean
27
29
 
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Checks whether the policy exists.
22
+ * Checks for the existence of a policy.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#get-policy - ism.exists_policy}
24
24
  *
25
25
  * @memberOf API-Ism
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets the currently applied policy on indexes.
22
+ * Retrieves the currently applied policy on the specified indexes.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#explain-index - ism.explain_policy}
24
24
  *
25
25
  * @memberOf API-Ism
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases. Supports wildcards (`*`).
28
+ * @param {string} [params.index]
29
29
  * @param {string} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets the policies.
22
+ * Retrieves the policies.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#get-policy - ism.get_policies}
24
24
  *
25
25
  * @memberOf API-Ism
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets a policy.
22
+ * Retrieves a specific policy.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#put-policy - ism.get_policy}
24
24
  *
25
25
  * @memberOf API-Ism