@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.
- package/api/OpenSearchApi.d.ts +78 -0
- package/api/OpenSearchApi.js +4 -0
- package/api/_core/bulk.d.ts +1 -1
- package/api/_core/explain.d.ts +1 -1
- package/api/_core/search.d.ts +1 -0
- package/api/_core/search.js +1 -0
- package/api/_core/searchShards.d.ts +5 -0
- package/api/_core/searchShards.js +1 -0
- package/api/_types/_common.aggregations.d.ts +111 -266
- package/api/_types/_common.analysis.d.ts +2 -2
- package/api/_types/_common.d.ts +13 -7
- package/api/_types/_common.mapping.d.ts +1 -1
- package/api/_types/_common.query_dsl.d.ts +10 -6
- package/api/_types/_core.bulk.d.ts +16 -8
- package/api/_types/_core.explain.d.ts +1 -7
- package/api/_types/_core.search.d.ts +23 -7
- package/api/_types/cluster._common.d.ts +2 -0
- package/api/_types/cluster.stats.d.ts +3 -3
- package/api/_types/geospatial._common.d.ts +147 -0
- package/api/_types/index.d.ts +4 -0
- package/api/_types/indices._common.d.ts +6 -3
- package/api/_types/ltr._common.d.ts +54 -0
- package/api/_types/ml._common.d.ts +9 -0
- package/api/_types/neural._common.d.ts +94 -0
- package/api/_types/nodes._common.d.ts +1 -1
- package/api/_types/nodes.stats.d.ts +1 -0
- package/api/_types/search_pipeline._common.d.ts +19 -1
- package/api/_types/security._common.d.ts +6 -6
- package/api/cluster/existsComponentTemplate.js +1 -1
- package/api/cluster/health.d.ts +2 -1
- package/api/flowFramework/create.js +6 -6
- package/api/flowFramework/delete.js +3 -3
- package/api/flowFramework/deprovision.js +3 -3
- package/api/flowFramework/get.js +2 -2
- package/api/flowFramework/getStatus.js +3 -3
- package/api/flowFramework/getSteps.js +2 -2
- package/api/flowFramework/provision.js +2 -2
- package/api/flowFramework/update.js +7 -7
- package/api/geospatial/_api.js +46 -0
- package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
- package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
- package/api/geospatial/geojsonUploadPost.d.ts +30 -0
- package/api/geospatial/geojsonUploadPost.js +49 -0
- package/api/geospatial/geojsonUploadPut.d.ts +30 -0
- package/api/geospatial/geojsonUploadPut.js +49 -0
- package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
- package/api/geospatial/getIp2GeoDatasource.js +48 -0
- package/api/geospatial/getUploadStats.d.ts +28 -0
- package/api/geospatial/getUploadStats.js +45 -0
- package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasource.js +53 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
- package/api/index.d.ts +36 -4
- package/api/indices/putSettings.js +1 -1
- package/api/indices/simulateTemplate.js +1 -1
- package/api/ism/addPolicy.js +1 -1
- package/api/ism/changePolicy.js +1 -1
- package/api/ism/existsPolicy.js +1 -1
- package/api/ism/explainPolicy.js +2 -2
- package/api/ism/getPolicies.js +1 -1
- package/api/ism/getPolicy.js +1 -1
- package/api/ism/putPolicies.js +1 -1
- package/api/ism/refreshSearchAnalyzers.js +2 -2
- package/api/ism/removePolicy.js +1 -1
- package/api/ism/retryIndex.js +2 -2
- package/api/ltr/_api.js +24 -0
- package/api/ltr/cacheStats.d.ts +28 -0
- package/api/ltr/cacheStats.js +45 -0
- package/api/ltr/clearCache.d.ts +30 -0
- package/api/ltr/clearCache.js +48 -0
- package/api/ltr/createDefaultStore.d.ts +28 -0
- package/api/ltr/createDefaultStore.js +45 -0
- package/api/ltr/createStore.d.ts +30 -0
- package/api/ltr/createStore.js +49 -0
- package/api/ltr/deleteDefaultStore.d.ts +28 -0
- package/api/ltr/deleteDefaultStore.js +45 -0
- package/api/ltr/deleteStore.d.ts +30 -0
- package/api/ltr/deleteStore.js +49 -0
- package/api/ltr/getStore.d.ts +30 -0
- package/api/ltr/getStore.js +49 -0
- package/api/ltr/listStores.d.ts +28 -0
- package/api/ltr/listStores.js +45 -0
- package/api/ml/getTool.d.ts +1 -1
- package/api/neural/_api.js +26 -0
- package/api/neural/stats.d.ts +33 -0
- package/api/neural/stats.js +52 -0
- package/api/nodes/hotThreads.js +6 -6
- package/api/nodes/info.js +3 -3
- package/api/nodes/reloadSecureSettings.js +1 -1
- package/api/nodes/stats.js +9 -9
- package/api/observability/createObject.js +1 -1
- package/api/observability/deleteObject.js +1 -1
- package/api/observability/deleteObjects.js +2 -2
- package/api/observability/getObject.js +1 -1
- package/api/observability/updateObject.js +2 -2
- package/api/ppl/explain.js +4 -4
- package/api/ppl/getStats.js +3 -3
- package/api/ppl/postStats.js +4 -4
- package/api/ppl/query.js +4 -4
- package/api/query/datasourceDelete.js +2 -2
- package/api/query/datasourceRetrieve.js +2 -2
- package/api/query/datasourcesCreate.js +2 -2
- package/api/query/datasourcesList.js +1 -1
- package/api/query/datasourcesUpdate.js +2 -2
- package/api/rollups/delete.js +2 -2
- package/api/rollups/explain.js +2 -2
- package/api/rollups/get.js +2 -2
- package/api/rollups/put.js +5 -5
- package/api/rollups/start.js +2 -2
- package/api/rollups/stop.js +2 -2
- package/api/sql/close.js +4 -4
- package/api/sql/explain.js +4 -4
- package/api/sql/getStats.js +3 -3
- package/api/sql/postStats.js +4 -4
- package/api/sql/query.js +4 -4
- package/api/sql/settings.js +3 -3
- package/lib/Connection.js +2 -0
- package/lib/aws/shared.js +3 -2
- package/package.json +2 -2
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
|
|
18
|
+
export type FlatNeuralInfoStats = {
|
|
19
|
+
cluster_version?: InfoStringStat;
|
|
20
|
+
'processors.ingest.text_embedding_processors_in_pipelines'?: InfoCounterStat;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type FlatNeuralNodeStats = {
|
|
24
|
+
'processors.ingest.text_embedding_executions'?: TimestampedEventCounterStat;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type FlatNeuralStats = {
|
|
28
|
+
_nodes?: NodesInfo;
|
|
29
|
+
all_nodes?: FlatNeuralNodeStats;
|
|
30
|
+
cluster_name?: string;
|
|
31
|
+
info?: FlatNeuralInfoStats;
|
|
32
|
+
nodes?: Record<string, FlatNeuralNodeStats>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type InfoCounterStat = number | (StatMetadata & {
|
|
36
|
+
stat_type?: 'info_counter';
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
export type InfoStringStat = string | (StatMetadata & {
|
|
40
|
+
stat_type?: 'info_string';
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
export type NestedNeuralInfoStats = {
|
|
44
|
+
cluster_version?: InfoStringStat;
|
|
45
|
+
processors?: NestedNeuralInfoStatsProcessors;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type NestedNeuralInfoStatsProcessors = {
|
|
49
|
+
ingest?: NestedNeuralInfoStatsProcessorsIngest;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type NestedNeuralInfoStatsProcessorsIngest = {
|
|
53
|
+
text_embedding_processors_in_pipelines?: InfoCounterStat;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type NestedNeuralNodeStats = {
|
|
57
|
+
processors?: NestedNeuralNodeStatsProcessors;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type NestedNeuralNodeStatsProcessors = {
|
|
61
|
+
ingest?: NestedNeuralNodeStatsProcessorsIngest;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type NestedNeuralNodeStatsProcessorsIngest = {
|
|
65
|
+
text_embedding_executions?: TimestampedEventCounterStat;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type NestedNeuralStats = {
|
|
69
|
+
_nodes?: NodesInfo;
|
|
70
|
+
all_nodes?: NestedNeuralNodeStats;
|
|
71
|
+
cluster_name?: string;
|
|
72
|
+
info?: NestedNeuralInfoStats;
|
|
73
|
+
nodes?: Record<string, NestedNeuralNodeStats>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type NeuralStats = NestedNeuralStats | FlatNeuralStats
|
|
77
|
+
|
|
78
|
+
export type NodesInfo = {
|
|
79
|
+
failed?: number;
|
|
80
|
+
successful?: number;
|
|
81
|
+
total?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type StatMetadata = {
|
|
85
|
+
stat_type: 'info_counter' | 'info_string' | 'timestamped_event_counter';
|
|
86
|
+
value: number | string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type TimestampedEventCounterStat = number | (StatMetadata & {
|
|
90
|
+
minutes_since_last_event?: number;
|
|
91
|
+
stat_type?: 'timestamped_event_counter';
|
|
92
|
+
trailing_interval_value?: number;
|
|
93
|
+
})
|
|
94
|
+
|
|
@@ -583,6 +583,7 @@ export type ShardSegmentReplicationBackpressureStats = {
|
|
|
583
583
|
|
|
584
584
|
export type ShardTaskCancellationStats = {
|
|
585
585
|
search_shard_task?: ShardTaskCancellationStatsDetail;
|
|
586
|
+
search_task?: ShardTaskCancellationStatsDetail;
|
|
586
587
|
}
|
|
587
588
|
|
|
588
589
|
export type ShardTaskCancellationStatsDetail = {
|
|
@@ -73,6 +73,8 @@ export type PersonalizeSearchRankingResponseProcessor = {
|
|
|
73
73
|
|
|
74
74
|
export type PhaseResultsProcessor = {
|
|
75
75
|
'normalization-processor': NormalizationPhaseResultsProcessor;
|
|
76
|
+
} | {
|
|
77
|
+
'score-ranker-processor': ScoreRankerPhaseResultsProcessor;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
export type RenameFieldResponseProcessor = {
|
|
@@ -133,10 +135,14 @@ export type RetrievalAugmentedGenerationResponseProcessor = {
|
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
export type ScoreCombination = {
|
|
136
|
-
parameters?:
|
|
138
|
+
parameters?: ScoreCombinationParameters;
|
|
137
139
|
technique?: ScoreCombinationTechnique;
|
|
138
140
|
}
|
|
139
141
|
|
|
142
|
+
export type ScoreCombinationParameters = {
|
|
143
|
+
weights?: number[];
|
|
144
|
+
}
|
|
145
|
+
|
|
140
146
|
export type ScoreCombinationTechnique = 'arithmetic_mean' | 'geometric_mean' | 'harmonic_mean'
|
|
141
147
|
|
|
142
148
|
export type ScoreNormalization = {
|
|
@@ -145,9 +151,21 @@ export type ScoreNormalization = {
|
|
|
145
151
|
|
|
146
152
|
export type ScoreNormalizationTechnique = 'l2' | 'min_max'
|
|
147
153
|
|
|
154
|
+
export type ScoreRankerCombination = {
|
|
155
|
+
rank_constant?: number;
|
|
156
|
+
technique: ScoreRankerCombinationTechnique;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type ScoreRankerCombinationTechnique = 'rrf'
|
|
160
|
+
|
|
161
|
+
export type ScoreRankerPhaseResultsProcessor = {
|
|
162
|
+
combination: ScoreRankerCombination;
|
|
163
|
+
}
|
|
164
|
+
|
|
148
165
|
export type SearchPipelineMap = Record<string, SearchPipelineStructure>
|
|
149
166
|
|
|
150
167
|
export type SearchPipelineStructure = {
|
|
168
|
+
description?: string;
|
|
151
169
|
phase_results_processors?: PhaseResultsProcessor[];
|
|
152
170
|
request_processors?: RequestProcessor[];
|
|
153
171
|
response_processors?: ResponseProcessor[];
|
|
@@ -295,12 +295,12 @@ export type SSLInfo = {
|
|
|
295
295
|
peer_certificates_list?: string[];
|
|
296
296
|
principal: undefined | string;
|
|
297
297
|
ssl_cipher: undefined | string;
|
|
298
|
-
ssl_openssl_available
|
|
299
|
-
ssl_openssl_non_available_cause
|
|
300
|
-
ssl_openssl_supports_hostname_validation
|
|
301
|
-
ssl_openssl_supports_key_manager_factory
|
|
302
|
-
ssl_openssl_version
|
|
303
|
-
ssl_openssl_version_string
|
|
298
|
+
ssl_openssl_available?: boolean;
|
|
299
|
+
ssl_openssl_non_available_cause?: undefined | string;
|
|
300
|
+
ssl_openssl_supports_hostname_validation?: boolean;
|
|
301
|
+
ssl_openssl_supports_key_manager_factory?: boolean;
|
|
302
|
+
ssl_openssl_version?: number | string;
|
|
303
|
+
ssl_openssl_version_string?: undefined | string;
|
|
304
304
|
ssl_protocol: undefined | string;
|
|
305
305
|
ssl_provider_http: undefined | string;
|
|
306
306
|
ssl_provider_transport_client: string;
|
|
@@ -26,7 +26,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
28
|
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
|
-
* @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false
|
|
29
|
+
* @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
|
|
30
30
|
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
31
31
|
* @param {string} params.name - The name of the component template. Wildcard (*) expressions are supported.
|
|
32
32
|
*
|
package/api/cluster/health.d.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Cluster_Common from '../_types/cluster._common'
|
|
18
19
|
import * as Cluster_Health from '../_types/cluster.health'
|
|
19
20
|
import * as Common from '../_types/_common'
|
|
20
21
|
import * as Global from '../_types/_global'
|
|
@@ -32,7 +33,7 @@ export interface Cluster_Health_Request extends Global.Params {
|
|
|
32
33
|
wait_for_events?: Common.WaitForEvents;
|
|
33
34
|
wait_for_no_initializing_shards?: boolean;
|
|
34
35
|
wait_for_no_relocating_shards?: boolean;
|
|
35
|
-
wait_for_nodes?:
|
|
36
|
+
wait_for_nodes?: Cluster_Common.WaitForNodes;
|
|
36
37
|
wait_for_status?: Common.HealthStatus;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
const { normalizeArguments } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Creates a new workflow template.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/create-workflow/ - flow_framework.create}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {boolean} [params.provision=false] -
|
|
29
|
-
* @param {boolean} [params.reprovision=false]
|
|
30
|
-
* @param {boolean} [params.update_fields=false] -
|
|
31
|
-
* @param {string} [params.use_case] -
|
|
32
|
-
* @param {string} [params.validation=all] -
|
|
28
|
+
* @param {boolean} [params.provision=false] - Whether to provision the workflow as part of the request.
|
|
29
|
+
* @param {boolean} [params.reprovision=false] - Whether to reprovision an existing workflow.
|
|
30
|
+
* @param {boolean} [params.update_fields=false] - Whether to update only the fields included in the request body..
|
|
31
|
+
* @param {string} [params.use_case] - Specifies the workflow template to use.
|
|
32
|
+
* @param {string} [params.validation=all] - Specifies the validation type. Valid values are `all` (validate the template) and `none` (do not validate the template).
|
|
33
33
|
* @param {object} [params.body]
|
|
34
34
|
*
|
|
35
35
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Deletes a workflow template.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/delete-workflow/ - flow_framework.delete}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {boolean} [params.clear_status=false] -
|
|
29
|
-
* @param {string} params.workflow_id
|
|
28
|
+
* @param {boolean} [params.clear_status=false] - Whether to delete the workflow state without deprovisioning resources. OpenSearch deletes the workflow state only if the provisioning status is not `IN_PROGRESS`. .
|
|
29
|
+
* @param {string} params.workflow_id - The ID of the workflow.
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
32
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Deprovision workflow's resources when you no longer need
|
|
22
|
+
* Deprovision workflow's resources when you no longer need them.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/deprovision-workflow/ - flow_framework.deprovision}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.allow_delete] -
|
|
29
|
-
* @param {string} params.workflow_id
|
|
28
|
+
* @param {string} [params.allow_delete] - Specifies whether to allow deletion of resources with potential data loss.
|
|
29
|
+
* @param {string} params.workflow_id - The ID of the workflow.
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
32
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/flowFramework/get.js
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Retrieves a workflow template.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/get-workflow/ - flow_framework.get}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} params.workflow_id
|
|
28
|
+
* @param {string} params.workflow_id - The ID of the workflow.
|
|
29
29
|
*
|
|
30
30
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
31
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Retrieves the current workflow provisioning status.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/get-workflow-status/ - flow_framework.get_status}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {boolean} [params.all=false] -
|
|
29
|
-
* @param {string} params.workflow_id
|
|
28
|
+
* @param {boolean} [params.all=false] - Whether to return all fields in the response.
|
|
29
|
+
* @param {string} params.workflow_id - The ID of the workflow.
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
32
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
const { normalizeArguments } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Retrieves available workflow steps.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/get-workflow-steps/ - flow_framework.get_steps}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.workflow_step]
|
|
28
|
+
* @param {string} [params.workflow_step] - The name of the workflow step.
|
|
29
29
|
*
|
|
30
30
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
31
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -25,8 +25,8 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} params.workflow_id
|
|
29
|
-
* @param {object} [params.body]
|
|
28
|
+
* @param {string} params.workflow_id - The ID of the workflow.
|
|
29
|
+
* @param {object} [params.body] - A map of user-provided substitution expressions and their values.
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
32
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Updates a workflow template that has not been provisioned.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/automating-configurations/api/create-workflow/ - flow_framework.update}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Flow-Framework
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {boolean} [params.provision=false] -
|
|
29
|
-
* @param {boolean} [params.reprovision=false]
|
|
30
|
-
* @param {boolean} [params.update_fields=false] -
|
|
31
|
-
* @param {string} [params.use_case] -
|
|
32
|
-
* @param {string} [params.validation=all] -
|
|
33
|
-
* @param {string} params.workflow_id
|
|
28
|
+
* @param {boolean} [params.provision=false] - Whether to provision the workflow as part of the request.
|
|
29
|
+
* @param {boolean} [params.reprovision=false] - Whether to reprovision an existing workflow.
|
|
30
|
+
* @param {boolean} [params.update_fields=false] - Whether to update only the fields included in the request body..
|
|
31
|
+
* @param {string} [params.use_case] - Specifies the workflow template to use.
|
|
32
|
+
* @param {string} [params.validation=all] - Specifies the validation type. Valid values are `all` (validate the template) and `none` (do not validate the template).
|
|
33
|
+
* @param {string} params.workflow_id - The ID of the workflow.
|
|
34
34
|
* @param {object} [params.body]
|
|
35
35
|
*
|
|
36
36
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -0,0 +1,46 @@
|
|
|
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-Geospatial */
|
|
20
|
+
|
|
21
|
+
function GeospatialApi(bindObj) {
|
|
22
|
+
this.deleteIp2GeoDatasource = require('./deleteIp2GeoDatasource').bind(bindObj);
|
|
23
|
+
this.geojsonUploadPost = require('./geojsonUploadPost').bind(bindObj);
|
|
24
|
+
this.geojsonUploadPut = require('./geojsonUploadPut').bind(bindObj);
|
|
25
|
+
this.getIp2GeoDatasource = require('./getIp2GeoDatasource').bind(bindObj);
|
|
26
|
+
this.getUploadStats = require('./getUploadStats').bind(bindObj);
|
|
27
|
+
this.putIp2GeoDatasource = require('./putIp2GeoDatasource').bind(bindObj);
|
|
28
|
+
this.putIp2GeoDatasourceSettings = require('./putIp2GeoDatasourceSettings').bind(bindObj);
|
|
29
|
+
|
|
30
|
+
// Deprecated: Use deleteIp2GeoDatasource instead.
|
|
31
|
+
this.delete_ip2geo_datasource = require('./deleteIp2GeoDatasource').bind(bindObj);
|
|
32
|
+
// Deprecated: Use geojsonUploadPost instead.
|
|
33
|
+
this.geojson_upload_post = require('./geojsonUploadPost').bind(bindObj);
|
|
34
|
+
// Deprecated: Use geojsonUploadPut instead.
|
|
35
|
+
this.geojson_upload_put = require('./geojsonUploadPut').bind(bindObj);
|
|
36
|
+
// Deprecated: Use getIp2GeoDatasource instead.
|
|
37
|
+
this.get_ip2geo_datasource = require('./getIp2GeoDatasource').bind(bindObj);
|
|
38
|
+
// Deprecated: Use getUploadStats instead.
|
|
39
|
+
this.get_upload_stats = require('./getUploadStats').bind(bindObj);
|
|
40
|
+
// Deprecated: Use putIp2GeoDatasource instead.
|
|
41
|
+
this.put_ip2geo_datasource = require('./putIp2GeoDatasource').bind(bindObj);
|
|
42
|
+
// Deprecated: Use putIp2GeoDatasourceSettings instead.
|
|
43
|
+
this.put_ip2geo_datasource_settings = require('./putIp2GeoDatasourceSettings').bind(bindObj);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
module.exports = GeospatialApi;
|
|
@@ -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 Common from '../_types/_common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
|
|
21
|
+
export interface Geospatial_DeleteIp2GeoDatasource_Request extends Global.Params {
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Geospatial_DeleteIp2GeoDatasource_Response extends ApiResponse {
|
|
26
|
+
body: Geospatial_DeleteIp2GeoDatasource_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Geospatial_DeleteIp2GeoDatasource_ResponseBody = Common.AcknowledgedResponseBase
|
|
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
|
+
* Delete a specific IP2Geo data source.
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#deleting-the-ip2geo-data-source - geospatial.delete_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 deleteIp2GeoDatasourceFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.name == null) return handleMissingParam('name', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, name, ...querystring } = params;
|
|
40
|
+
name = parsePathParam(name);
|
|
41
|
+
|
|
42
|
+
const path = '/_plugins/geospatial/ip2geo/datasource/' + name;
|
|
43
|
+
const method = 'DELETE';
|
|
44
|
+
body = body || '';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = deleteIp2GeoDatasourceFunc;
|
|
@@ -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 Geospatial_Common from '../_types/geospatial._common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
|
|
21
|
+
export interface Geospatial_GeojsonUploadPost_Request extends Global.Params {
|
|
22
|
+
body: Geospatial_Common.GeoJSONRequest;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Geospatial_GeojsonUploadPost_Response extends ApiResponse {
|
|
26
|
+
body: Geospatial_GeojsonUploadPost_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Geospatial_GeojsonUploadPost_ResponseBody = Geospatial_Common.GeoSpatialGeojsonUploadResponse
|
|
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, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Use an OpenSearch query to upload `GeoJSON`, operation will fail 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_post}
|
|
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 geojsonUploadPostFunc(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 = 'POST';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = geojsonUploadPostFunc;
|
|
@@ -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 Geospatial_Common from '../_types/geospatial._common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
|
|
21
|
+
export interface Geospatial_GeojsonUploadPut_Request extends Global.Params {
|
|
22
|
+
body: Geospatial_Common.GeoJSONRequest;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Geospatial_GeojsonUploadPut_Response extends ApiResponse {
|
|
26
|
+
body: Geospatial_GeojsonUploadPut_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Geospatial_GeojsonUploadPut_ResponseBody = Geospatial_Common.GeoSpatialGeojsonUploadResponse
|
|
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, 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;
|