@opensearch-project/opensearch 3.5.1 → 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 (120) 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/explain.d.ts +1 -1
  5. package/api/_core/search.d.ts +1 -0
  6. package/api/_core/search.js +1 -0
  7. package/api/_core/searchShards.d.ts +5 -0
  8. package/api/_core/searchShards.js +1 -0
  9. package/api/_types/_common.aggregations.d.ts +111 -266
  10. package/api/_types/_common.analysis.d.ts +2 -2
  11. package/api/_types/_common.d.ts +13 -7
  12. package/api/_types/_common.mapping.d.ts +1 -1
  13. package/api/_types/_common.query_dsl.d.ts +10 -6
  14. package/api/_types/_core.bulk.d.ts +16 -8
  15. package/api/_types/_core.explain.d.ts +1 -7
  16. package/api/_types/_core.search.d.ts +23 -7
  17. package/api/_types/cluster._common.d.ts +2 -0
  18. package/api/_types/cluster.stats.d.ts +3 -3
  19. package/api/_types/geospatial._common.d.ts +147 -0
  20. package/api/_types/index.d.ts +4 -0
  21. package/api/_types/indices._common.d.ts +6 -3
  22. package/api/_types/ltr._common.d.ts +54 -0
  23. package/api/_types/ml._common.d.ts +9 -0
  24. package/api/_types/neural._common.d.ts +94 -0
  25. package/api/_types/nodes._common.d.ts +1 -1
  26. package/api/_types/nodes.stats.d.ts +1 -0
  27. package/api/_types/search_pipeline._common.d.ts +19 -1
  28. package/api/_types/security._common.d.ts +6 -6
  29. package/api/cluster/existsComponentTemplate.js +1 -1
  30. package/api/cluster/health.d.ts +2 -1
  31. package/api/flowFramework/create.js +6 -6
  32. package/api/flowFramework/delete.js +3 -3
  33. package/api/flowFramework/deprovision.js +3 -3
  34. package/api/flowFramework/get.js +2 -2
  35. package/api/flowFramework/getStatus.js +3 -3
  36. package/api/flowFramework/getSteps.js +2 -2
  37. package/api/flowFramework/provision.js +2 -2
  38. package/api/flowFramework/update.js +7 -7
  39. package/api/geospatial/_api.js +46 -0
  40. package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
  41. package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
  42. package/api/geospatial/geojsonUploadPost.d.ts +30 -0
  43. package/api/geospatial/geojsonUploadPost.js +49 -0
  44. package/api/geospatial/geojsonUploadPut.d.ts +30 -0
  45. package/api/geospatial/geojsonUploadPut.js +49 -0
  46. package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
  47. package/api/geospatial/getIp2GeoDatasource.js +48 -0
  48. package/api/geospatial/getUploadStats.d.ts +28 -0
  49. package/api/geospatial/getUploadStats.js +45 -0
  50. package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
  51. package/api/geospatial/putIp2GeoDatasource.js +53 -0
  52. package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
  53. package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
  54. package/api/index.d.ts +36 -4
  55. package/api/indices/putSettings.js +1 -1
  56. package/api/indices/simulateTemplate.js +1 -1
  57. package/api/ism/addPolicy.js +1 -1
  58. package/api/ism/changePolicy.js +1 -1
  59. package/api/ism/existsPolicy.js +1 -1
  60. package/api/ism/explainPolicy.js +2 -2
  61. package/api/ism/getPolicies.js +1 -1
  62. package/api/ism/getPolicy.js +1 -1
  63. package/api/ism/putPolicies.js +1 -1
  64. package/api/ism/refreshSearchAnalyzers.js +2 -2
  65. package/api/ism/removePolicy.js +1 -1
  66. package/api/ism/retryIndex.js +2 -2
  67. package/api/ltr/_api.js +24 -0
  68. package/api/ltr/cacheStats.d.ts +28 -0
  69. package/api/ltr/cacheStats.js +45 -0
  70. package/api/ltr/clearCache.d.ts +30 -0
  71. package/api/ltr/clearCache.js +48 -0
  72. package/api/ltr/createDefaultStore.d.ts +28 -0
  73. package/api/ltr/createDefaultStore.js +45 -0
  74. package/api/ltr/createStore.d.ts +30 -0
  75. package/api/ltr/createStore.js +49 -0
  76. package/api/ltr/deleteDefaultStore.d.ts +28 -0
  77. package/api/ltr/deleteDefaultStore.js +45 -0
  78. package/api/ltr/deleteStore.d.ts +30 -0
  79. package/api/ltr/deleteStore.js +49 -0
  80. package/api/ltr/getStore.d.ts +30 -0
  81. package/api/ltr/getStore.js +49 -0
  82. package/api/ltr/listStores.d.ts +28 -0
  83. package/api/ltr/listStores.js +45 -0
  84. package/api/ml/getTool.d.ts +1 -1
  85. package/api/neural/_api.js +26 -0
  86. package/api/neural/stats.d.ts +33 -0
  87. package/api/neural/stats.js +52 -0
  88. package/api/nodes/hotThreads.js +6 -6
  89. package/api/nodes/info.js +3 -3
  90. package/api/nodes/reloadSecureSettings.js +1 -1
  91. package/api/nodes/stats.js +9 -9
  92. package/api/observability/createObject.js +1 -1
  93. package/api/observability/deleteObject.js +1 -1
  94. package/api/observability/deleteObjects.js +2 -2
  95. package/api/observability/getObject.js +1 -1
  96. package/api/observability/updateObject.js +2 -2
  97. package/api/ppl/explain.js +4 -4
  98. package/api/ppl/getStats.js +3 -3
  99. package/api/ppl/postStats.js +4 -4
  100. package/api/ppl/query.js +4 -4
  101. package/api/query/datasourceDelete.js +2 -2
  102. package/api/query/datasourceRetrieve.js +2 -2
  103. package/api/query/datasourcesCreate.js +2 -2
  104. package/api/query/datasourcesList.js +1 -1
  105. package/api/query/datasourcesUpdate.js +2 -2
  106. package/api/rollups/delete.js +2 -2
  107. package/api/rollups/explain.js +2 -2
  108. package/api/rollups/get.js +2 -2
  109. package/api/rollups/put.js +5 -5
  110. package/api/rollups/start.js +2 -2
  111. package/api/rollups/stop.js +2 -2
  112. package/api/sql/close.js +4 -4
  113. package/api/sql/explain.js +4 -4
  114. package/api/sql/getStats.js +3 -3
  115. package/api/sql/postStats.js +4 -4
  116. package/api/sql/query.js +4 -4
  117. package/api/sql/settings.js +3 -3
  118. package/lib/Connection.js +2 -0
  119. package/lib/aws/shared.js +3 -2
  120. package/package.json +2 -2
@@ -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 cache statistics for all feature stores.
23
+ * <br/> See Also: {@link undefined - ltr.cache_stats}
24
+ *
25
+ * @memberOf API-Ltr
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 cacheStatsFunc(params, options, callback) {
34
+ [params, options, callback] = normalizeArguments(params, options, callback);
35
+
36
+ let { body, ...querystring } = params;
37
+
38
+ const path = '/_ltr/_cachestats';
39
+ const method = 'GET';
40
+ body = body || '';
41
+
42
+ return this.transport.request({ method, path, querystring, body }, options, callback);
43
+ }
44
+
45
+ module.exports = cacheStatsFunc;
@@ -0,0 +1,30 @@
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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export interface Ltr_ClearCache_Request extends Global.Params {
22
+ store?: string;
23
+ }
24
+
25
+ export interface Ltr_ClearCache_Response extends ApiResponse {
26
+ body: Ltr_ClearCache_ResponseBody;
27
+ }
28
+
29
+ export type Ltr_ClearCache_ResponseBody = Ltr_Common.AcknowledgedResponse
30
+
@@ -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
+ * Clears the store caches.
23
+ * <br/> See Also: {@link undefined - ltr.clear_cache}
24
+ *
25
+ * @memberOf API-Ltr
26
+ *
27
+ * @param {object} [params]
28
+ * @param {string} [params.store] - The name of the feature store for which to clear the cache.
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 clearCacheFunc(params, options, callback) {
36
+ [params, options, callback] = normalizeArguments(params, options, callback);
37
+
38
+ let { body, store, ...querystring } = params;
39
+ store = parsePathParam(store);
40
+
41
+ const path = ['/_ltr', store, '_clearcache'].filter(c => c != null).join('/');
42
+ const method = 'POST';
43
+ body = body || '';
44
+
45
+ return this.transport.request({ method, path, querystring, body }, options, callback);
46
+ }
47
+
48
+ module.exports = clearCacheFunc;
@@ -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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export type Ltr_CreateDefaultStore_Request = Global.Params & Record<string, any>
22
+
23
+ export interface Ltr_CreateDefaultStore_Response extends ApiResponse {
24
+ body: Ltr_CreateDefaultStore_ResponseBody;
25
+ }
26
+
27
+ export type Ltr_CreateDefaultStore_ResponseBody = Ltr_Common.AcknowledgedResponse
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
+ * Creates the default feature store.
23
+ * <br/> See Also: {@link undefined - ltr.create_default_store}
24
+ *
25
+ * @memberOf API-Ltr
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 createDefaultStoreFunc(params, options, callback) {
34
+ [params, options, callback] = normalizeArguments(params, options, callback);
35
+
36
+ let { body, ...querystring } = params;
37
+
38
+ const path = '/_ltr';
39
+ const method = 'PUT';
40
+ body = body || '';
41
+
42
+ return this.transport.request({ method, path, querystring, body }, options, callback);
43
+ }
44
+
45
+ module.exports = createDefaultStoreFunc;
@@ -0,0 +1,30 @@
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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export interface Ltr_CreateStore_Request extends Global.Params {
22
+ store: string;
23
+ }
24
+
25
+ export interface Ltr_CreateStore_Response extends ApiResponse {
26
+ body: Ltr_CreateStore_ResponseBody;
27
+ }
28
+
29
+ export type Ltr_CreateStore_ResponseBody = Ltr_Common.AcknowledgedResponse
30
+
@@ -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, parsePathParam, handleMissingParam } = require('../utils');
20
+
21
+ /**
22
+ * Creates a new feature store with the specified name.
23
+ * <br/> See Also: {@link undefined - ltr.create_store}
24
+ *
25
+ * @memberOf API-Ltr
26
+ *
27
+ * @param {object} params
28
+ * @param {string} params.store - The name of the feature store.
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 createStoreFunc(params, options, callback) {
36
+ [params, options, callback] = normalizeArguments(params, options, callback);
37
+ if (params.store == null) return handleMissingParam('store', this, callback);
38
+
39
+ let { body, store, ...querystring } = params;
40
+ store = parsePathParam(store);
41
+
42
+ const path = '/_ltr/' + store;
43
+ const method = 'PUT';
44
+ body = body || '';
45
+
46
+ return this.transport.request({ method, path, querystring, body }, options, callback);
47
+ }
48
+
49
+ module.exports = createStoreFunc;
@@ -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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export type Ltr_DeleteDefaultStore_Request = Global.Params & Record<string, any>
22
+
23
+ export interface Ltr_DeleteDefaultStore_Response extends ApiResponse {
24
+ body: Ltr_DeleteDefaultStore_ResponseBody;
25
+ }
26
+
27
+ export type Ltr_DeleteDefaultStore_ResponseBody = Ltr_Common.AcknowledgedResponse
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
+ * Deletes the default feature store.
23
+ * <br/> See Also: {@link undefined - ltr.delete_default_store}
24
+ *
25
+ * @memberOf API-Ltr
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 deleteDefaultStoreFunc(params, options, callback) {
34
+ [params, options, callback] = normalizeArguments(params, options, callback);
35
+
36
+ let { body, ...querystring } = params;
37
+
38
+ const path = '/_ltr';
39
+ const method = 'DELETE';
40
+ body = body || '';
41
+
42
+ return this.transport.request({ method, path, querystring, body }, options, callback);
43
+ }
44
+
45
+ module.exports = deleteDefaultStoreFunc;
@@ -0,0 +1,30 @@
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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export interface Ltr_DeleteStore_Request extends Global.Params {
22
+ store: string;
23
+ }
24
+
25
+ export interface Ltr_DeleteStore_Response extends ApiResponse {
26
+ body: Ltr_DeleteStore_ResponseBody;
27
+ }
28
+
29
+ export type Ltr_DeleteStore_ResponseBody = Ltr_Common.AcknowledgedResponse
30
+
@@ -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, parsePathParam, handleMissingParam } = require('../utils');
20
+
21
+ /**
22
+ * Deletes a feature store with the specified name.
23
+ * <br/> See Also: {@link undefined - ltr.delete_store}
24
+ *
25
+ * @memberOf API-Ltr
26
+ *
27
+ * @param {object} params
28
+ * @param {string} params.store - The name of the feature store.
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 deleteStoreFunc(params, options, callback) {
36
+ [params, options, callback] = normalizeArguments(params, options, callback);
37
+ if (params.store == null) return handleMissingParam('store', this, callback);
38
+
39
+ let { body, store, ...querystring } = params;
40
+ store = parsePathParam(store);
41
+
42
+ const path = '/_ltr/' + store;
43
+ const method = 'DELETE';
44
+ body = body || '';
45
+
46
+ return this.transport.request({ method, path, querystring, body }, options, callback);
47
+ }
48
+
49
+ module.exports = deleteStoreFunc;
@@ -0,0 +1,30 @@
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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export interface Ltr_GetStore_Request extends Global.Params {
22
+ store: string;
23
+ }
24
+
25
+ export interface Ltr_GetStore_Response extends ApiResponse {
26
+ body: Ltr_GetStore_ResponseBody;
27
+ }
28
+
29
+ export type Ltr_GetStore_ResponseBody = Ltr_Common.StoreExistsResponse
30
+
@@ -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, parsePathParam, handleMissingParam } = require('../utils');
20
+
21
+ /**
22
+ * Checks if a store exists.
23
+ * <br/> See Also: {@link undefined - ltr.get_store}
24
+ *
25
+ * @memberOf API-Ltr
26
+ *
27
+ * @param {object} params
28
+ * @param {string} params.store - The name of the feature store.
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 getStoreFunc(params, options, callback) {
36
+ [params, options, callback] = normalizeArguments(params, options, callback);
37
+ if (params.store == null) return handleMissingParam('store', this, callback);
38
+
39
+ let { body, store, ...querystring } = params;
40
+ store = parsePathParam(store);
41
+
42
+ const path = '/_ltr/' + store;
43
+ const method = 'GET';
44
+ body = body || '';
45
+
46
+ return this.transport.request({ method, path, querystring, body }, options, callback);
47
+ }
48
+
49
+ module.exports = getStoreFunc;
@@ -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 Global from '../_types/_global'
19
+ import * as Ltr_Common from '../_types/ltr._common'
20
+
21
+ export type Ltr_ListStores_Request = Global.Params & Record<string, any>
22
+
23
+ export interface Ltr_ListStores_Response extends ApiResponse {
24
+ body: Ltr_ListStores_ResponseBody;
25
+ }
26
+
27
+ export type Ltr_ListStores_ResponseBody = Ltr_Common.ListStoresResponse
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
+ * Lists all available feature stores.
23
+ * <br/> See Also: {@link undefined - ltr.list_stores}
24
+ *
25
+ * @memberOf API-Ltr
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 listStoresFunc(params, options, callback) {
34
+ [params, options, callback] = normalizeArguments(params, options, callback);
35
+
36
+ let { body, ...querystring } = params;
37
+
38
+ const path = '/_ltr';
39
+ const method = 'GET';
40
+ body = body || '';
41
+
42
+ return this.transport.request({ method, path, querystring, body }, options, callback);
43
+ }
44
+
45
+ module.exports = listStoresFunc;
@@ -19,7 +19,7 @@ import * as Global from '../_types/_global'
19
19
  import * as Ml_Common from '../_types/ml._common'
20
20
 
21
21
  export interface Ml_GetTool_Request extends Global.Params {
22
- tool_name: 'AgentTool' | 'CatIndexTool' | 'ConnectorTool' | 'CreateAnomalyDetectorTool' | 'IndexMappingTool' | 'LogPatternTool' | 'MLModelTool' | 'NeuralSparseSearchTool' | 'PPLTool' | 'RAGTool' | 'SearchAlertsTool' | 'SearchAnomalyDetectorsTool' | 'SearchAnomalyResultsTool' | 'SearchIndexTool' | 'SearchMonitorsTool' | 'VectorDBTool' | 'VisualizationTool';
22
+ tool_name: 'AgentTool' | 'CatIndexTool' | 'ConnectorTool' | 'CreateAnomalyDetectorTool' | 'IndexMappingTool' | 'ListIndexTool' | 'LogPatternTool' | 'MLModelTool' | 'NeuralSparseSearchTool' | 'PPLTool' | 'RAGTool' | 'SearchAlertsTool' | 'SearchAnomalyDetectorsTool' | 'SearchAnomalyResultsTool' | 'SearchIndexTool' | 'SearchMonitorsTool' | 'VectorDBTool' | 'VisualizationTool';
23
23
  }
24
24
 
25
25
  export interface Ml_GetTool_Response extends ApiResponse {
@@ -0,0 +1,26 @@
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
+ /** @namespace API-Neural */
20
+
21
+ function NeuralApi(bindObj) {
22
+ this.stats = require('./stats').bind(bindObj);
23
+
24
+ }
25
+
26
+ module.exports = NeuralApi;
@@ -0,0 +1,33 @@
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 Global from '../_types/_global'
19
+ import * as Neural_Common from '../_types/neural._common'
20
+
21
+ export interface Neural_Stats_Request extends Global.Params {
22
+ flat_stat_paths?: boolean;
23
+ include_metadata?: boolean;
24
+ node_id?: string;
25
+ stat?: 'cluster_version' | 'text_embedding_executions' | 'text_embedding_processors_in_pipelines';
26
+ }
27
+
28
+ export interface Neural_Stats_Response extends ApiResponse {
29
+ body: Neural_Stats_ResponseBody;
30
+ }
31
+
32
+ export type Neural_Stats_ResponseBody = Neural_Common.NeuralStats
33
+