@opensearch-project/opensearch 3.0.0 → 3.2.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 (138) hide show
  1. package/api/OpenSearchApi.d.ts +162 -3
  2. package/api/_core/count.js +1 -1
  3. package/api/_core/createPit.d.ts +1 -2
  4. package/api/_core/deleteAllPits.d.ts +2 -2
  5. package/api/_core/deleteByQuery.d.ts +2 -1
  6. package/api/_core/deleteByQuery.js +1 -1
  7. package/api/_core/deletePit.d.ts +2 -2
  8. package/api/_core/getAllPits.d.ts +2 -2
  9. package/api/_core/rankEval.d.ts +1 -1
  10. package/api/_core/reindex.d.ts +1 -0
  11. package/api/_core/reindex.js +1 -0
  12. package/api/_core/renderSearchTemplate.d.ts +1 -1
  13. package/api/_core/search.d.ts +1 -0
  14. package/api/_core/searchShards.d.ts +0 -11
  15. package/api/_core/searchShards.js +0 -1
  16. package/api/_core/updateByQuery.d.ts +2 -1
  17. package/api/_core/updateByQuery.js +1 -1
  18. package/api/_types/_common.aggregations.d.ts +37 -156
  19. package/api/_types/_common.d.ts +4 -17
  20. package/api/_types/_core.field_caps.d.ts +1 -1
  21. package/api/_types/{_core._common.d.ts → _core.pit.d.ts} +0 -12
  22. package/api/_types/_core.rank_eval.d.ts +3 -3
  23. package/api/_types/_core.termvectors.d.ts +1 -1
  24. package/api/_types/{cat._common.d.ts → cat.segment_replication.d.ts} +1 -18
  25. package/api/_types/cat.snapshots.d.ts +1 -1
  26. package/api/_types/index.d.ts +233 -0
  27. package/api/_types/ingest._common.d.ts +3 -40
  28. package/api/_types/ml._common.d.ts +293 -7
  29. package/api/_types/nodes.info.d.ts +17 -5
  30. package/api/asynchronousSearch/delete.js +1 -1
  31. package/api/asynchronousSearch/get.js +1 -1
  32. package/api/asynchronousSearch/search.js +4 -4
  33. package/api/asynchronousSearch/stats.js +1 -1
  34. package/api/cat/aliases.js +1 -1
  35. package/api/cat/allPitSegments.d.ts +2 -2
  36. package/api/cat/allPitSegments.js +1 -1
  37. package/api/cat/clusterManager.js +1 -1
  38. package/api/cat/count.js +1 -1
  39. package/api/cat/fielddata.js +1 -1
  40. package/api/cat/health.js +1 -1
  41. package/api/cat/indices.js +2 -2
  42. package/api/cat/master.js +1 -1
  43. package/api/cat/nodeattrs.js +1 -1
  44. package/api/cat/nodes.d.ts +1 -1
  45. package/api/cat/nodes.js +2 -2
  46. package/api/cat/pendingTasks.js +1 -1
  47. package/api/cat/pitSegments.d.ts +2 -2
  48. package/api/cat/pitSegments.js +1 -1
  49. package/api/cat/plugins.js +1 -1
  50. package/api/cat/recovery.js +1 -1
  51. package/api/cat/repositories.js +1 -1
  52. package/api/cat/segmentReplication.d.ts +2 -2
  53. package/api/cat/segmentReplication.js +2 -2
  54. package/api/cat/shards.js +1 -1
  55. package/api/cat/snapshots.js +1 -1
  56. package/api/cat/tasks.js +1 -1
  57. package/api/cat/templates.js +1 -1
  58. package/api/cat/threadPool.js +1 -1
  59. package/api/index.d.ts +76 -4
  60. package/api/ml/_api.js +108 -0
  61. package/api/ml/chunkModel.d.ts +37 -0
  62. package/api/ml/chunkModel.js +53 -0
  63. package/api/ml/createController.d.ts +39 -0
  64. package/api/ml/createController.js +50 -0
  65. package/api/ml/createMemory.d.ts +36 -0
  66. package/api/ml/createMemory.js +47 -0
  67. package/api/ml/createMessage.d.ts +42 -0
  68. package/api/ml/createMessage.js +50 -0
  69. package/api/ml/createModelMeta.d.ts +46 -0
  70. package/api/ml/createModelMeta.js +47 -0
  71. package/api/ml/deleteController.d.ts +30 -0
  72. package/api/ml/deleteController.js +49 -0
  73. package/api/ml/deleteMemory.d.ts +31 -0
  74. package/api/ml/deleteMemory.js +49 -0
  75. package/api/ml/executeAgent.d.ts +36 -0
  76. package/api/ml/executeAgent.js +50 -0
  77. package/api/ml/getAgent.d.ts +30 -0
  78. package/api/ml/getAgent.js +49 -0
  79. package/api/ml/getAllMemories.d.ts +34 -0
  80. package/api/ml/getAllMemories.js +48 -0
  81. package/api/ml/getAllMessages.d.ts +35 -0
  82. package/api/ml/getAllMessages.js +51 -0
  83. package/api/ml/getAllTools.d.ts +28 -0
  84. package/api/ml/getAllTools.js +45 -0
  85. package/api/ml/getController.d.ts +34 -0
  86. package/api/ml/getController.js +49 -0
  87. package/api/ml/getMemory.d.ts +30 -0
  88. package/api/ml/getMemory.js +49 -0
  89. package/api/ml/getMessage.d.ts +30 -0
  90. package/api/ml/getMessage.js +49 -0
  91. package/api/ml/getMessageTraces.d.ts +35 -0
  92. package/api/ml/getMessageTraces.js +51 -0
  93. package/api/ml/getModel.d.ts +30 -0
  94. package/api/ml/getModel.js +49 -0
  95. package/api/ml/getProfile.d.ts +30 -0
  96. package/api/ml/getProfile.js +47 -0
  97. package/api/ml/getProfileModels.d.ts +31 -0
  98. package/api/ml/getProfileModels.js +49 -0
  99. package/api/ml/getProfileTasks.d.ts +31 -0
  100. package/api/ml/getProfileTasks.js +49 -0
  101. package/api/ml/getStats.d.ts +31 -0
  102. package/api/ml/getStats.js +50 -0
  103. package/api/ml/getTool.d.ts +30 -0
  104. package/api/ml/getTool.js +49 -0
  105. package/api/ml/loadModel.d.ts +33 -0
  106. package/api/ml/loadModel.js +49 -0
  107. package/api/ml/predictModel.d.ts +36 -0
  108. package/api/ml/predictModel.js +50 -0
  109. package/api/ml/registerModel.d.ts +8 -3
  110. package/api/ml/registerModelMeta.d.ts +46 -0
  111. package/api/ml/registerModelMeta.js +47 -0
  112. package/api/ml/searchAgents.d.ts +36 -0
  113. package/api/ml/searchAgents.js +47 -0
  114. package/api/ml/searchMemory.d.ts +36 -0
  115. package/api/ml/searchMemory.js +47 -0
  116. package/api/ml/searchMessage.d.ts +37 -0
  117. package/api/ml/searchMessage.js +50 -0
  118. package/api/ml/searchModels.js +1 -1
  119. package/api/ml/searchTasks.d.ts +36 -0
  120. package/api/ml/searchTasks.js +47 -0
  121. package/api/ml/undeployModel.d.ts +8 -1
  122. package/api/ml/undeployModel.js +5 -5
  123. package/api/ml/unloadModel.d.ts +37 -0
  124. package/api/ml/unloadModel.js +49 -0
  125. package/api/ml/updateController.d.ts +37 -0
  126. package/api/ml/updateController.js +50 -0
  127. package/api/ml/updateMemory.d.ts +35 -0
  128. package/api/ml/updateMemory.js +50 -0
  129. package/api/ml/updateMessage.d.ts +40 -0
  130. package/api/ml/updateMessage.js +50 -0
  131. package/api/ml/updateModel.d.ts +44 -0
  132. package/api/ml/updateModel.js +50 -0
  133. package/api/ml/uploadChunk.d.ts +37 -0
  134. package/api/ml/uploadChunk.js +53 -0
  135. package/api/ml/uploadModel.d.ts +42 -0
  136. package/api/ml/uploadModel.js +47 -0
  137. package/index.d.ts +2 -0
  138. package/package.json +1 -1
@@ -0,0 +1,233 @@
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 * as Common from './_common'
18
+ import * as Common_Aggregations from './_common.aggregations'
19
+ import * as Common_Analysis from './_common.analysis'
20
+ import * as Common_Mapping from './_common.mapping'
21
+ import * as Common_QueryDsl from './_common.query_dsl'
22
+ import * as Core_Bulk from './_core.bulk'
23
+ import * as Core_Explain from './_core.explain'
24
+ import * as Core_FieldCaps from './_core.field_caps'
25
+ import * as Core_GetScriptContext from './_core.get_script_context'
26
+ import * as Core_GetScriptLanguages from './_core.get_script_languages'
27
+ import * as Core_Get from './_core.get'
28
+ import * as Core_Mget from './_core.mget'
29
+ import * as Core_MsearchTemplate from './_core.msearch_template'
30
+ import * as Core_Msearch from './_core.msearch'
31
+ import * as Core_Mtermvectors from './_core.mtermvectors'
32
+ import * as Core_Pit from './_core.pit'
33
+ import * as Core_RankEval from './_core.rank_eval'
34
+ import * as Core_ReindexRethrottle from './_core.reindex_rethrottle'
35
+ import * as Core_Reindex from './_core.reindex'
36
+ import * as Core_ScriptsPainlessExecute from './_core.scripts_painless_execute'
37
+ import * as Core_SearchShards from './_core.search_shards'
38
+ import * as Core_Search from './_core.search'
39
+ import * as Core_Termvectors from './_core.termvectors'
40
+ import * as Core_UpdateByQueryRethrottle from './_core.update_by_query_rethrottle'
41
+ import * as Core_Update from './_core.update'
42
+ import * as AsynchronousSearch_Common from './asynchronous_search._common'
43
+ import * as Cat_Aliases from './cat.aliases'
44
+ import * as Cat_Allocation from './cat.allocation'
45
+ import * as Cat_ClusterManager from './cat.cluster_manager'
46
+ import * as Cat_Count from './cat.count'
47
+ import * as Cat_Fielddata from './cat.fielddata'
48
+ import * as Cat_Health from './cat.health'
49
+ import * as Cat_Indices from './cat.indices'
50
+ import * as Cat_Master from './cat.master'
51
+ import * as Cat_Nodeattrs from './cat.nodeattrs'
52
+ import * as Cat_Nodes from './cat.nodes'
53
+ import * as Cat_PendingTasks from './cat.pending_tasks'
54
+ import * as Cat_Plugins from './cat.plugins'
55
+ import * as Cat_Recovery from './cat.recovery'
56
+ import * as Cat_Repositories from './cat.repositories'
57
+ import * as Cat_SegmentReplication from './cat.segment_replication'
58
+ import * as Cat_Segments from './cat.segments'
59
+ import * as Cat_Shards from './cat.shards'
60
+ import * as Cat_Snapshots from './cat.snapshots'
61
+ import * as Cat_Tasks from './cat.tasks'
62
+ import * as Cat_Templates from './cat.templates'
63
+ import * as Cat_ThreadPool from './cat.thread_pool'
64
+ import * as Cluster_Common from './cluster._common'
65
+ import * as Cluster_AllocationExplain from './cluster.allocation_explain'
66
+ import * as Cluster_DecommissionAwareness from './cluster.decommission_awareness'
67
+ import * as Cluster_Health from './cluster.health'
68
+ import * as Cluster_PendingTasks from './cluster.pending_tasks'
69
+ import * as Cluster_RemoteInfo from './cluster.remote_info'
70
+ import * as Cluster_Reroute from './cluster.reroute'
71
+ import * as Cluster_State from './cluster.state'
72
+ import * as Cluster_Stats from './cluster.stats'
73
+ import * as Cluster_WeightedRouting from './cluster.weighted_routing'
74
+ import * as DanglingIndices_ListDanglingIndices from './dangling_indices.list_dangling_indices'
75
+ import * as FlowFramework_Common from './flow_framework.common'
76
+ import * as FlowFramework_Errors from './flow_framework.errors'
77
+ import * as Indices_Common from './indices._common'
78
+ import * as Indices_AddBlock from './indices.add_block'
79
+ import * as Indices_Analyze from './indices.analyze'
80
+ import * as Indices_Close from './indices.close'
81
+ import * as Indices_GetAlias from './indices.get_alias'
82
+ import * as Indices_GetFieldMapping from './indices.get_field_mapping'
83
+ import * as Indices_GetIndexTemplate from './indices.get_index_template'
84
+ import * as Indices_GetMapping from './indices.get_mapping'
85
+ import * as Indices_PutIndexTemplate from './indices.put_index_template'
86
+ import * as Indices_Recovery from './indices.recovery'
87
+ import * as Indices_ResolveIndex from './indices.resolve_index'
88
+ import * as Indices_Rollover from './indices.rollover'
89
+ import * as Indices_Segments from './indices.segments'
90
+ import * as Indices_ShardStores from './indices.shard_stores'
91
+ import * as Indices_SimulateTemplate from './indices.simulate_template'
92
+ import * as Indices_Stats from './indices.stats'
93
+ import * as Indices_UpdateAliases from './indices.update_aliases'
94
+ import * as Indices_ValidateQuery from './indices.validate_query'
95
+ import * as Ingest_Common from './ingest._common'
96
+ import * as Ingest_Simulate from './ingest.simulate'
97
+ import * as Insights_Common from './insights._common'
98
+ import * as Ism_Common from './ism._common'
99
+ import * as Knn_Common from './knn._common'
100
+ import * as Ml_Common from './ml._common'
101
+ import * as Nodes_Common from './nodes._common'
102
+ import * as Nodes_Info from './nodes.info'
103
+ import * as Nodes_ReloadSecureSettings from './nodes.reload_secure_settings'
104
+ import * as Nodes_Stats from './nodes.stats'
105
+ import * as Nodes_Usage from './nodes.usage'
106
+ import * as Notifications_Common from './notifications._common'
107
+ import * as Observability_Common from './observability._common'
108
+ import * as Query_Common from './query._common'
109
+ import * as RemoteStore_Common from './remote_store._common'
110
+ import * as Replication_Common from './replication._common'
111
+ import * as Rollups_Common from './rollups._common'
112
+ import * as SearchPipeline_Common from './search_pipeline._common'
113
+ import * as Security_Common from './security._common'
114
+ import * as Sm_Common from './sm._common'
115
+ import * as Snapshot_Common from './snapshot._common'
116
+ import * as Snapshot_CleanupRepository from './snapshot.cleanup_repository'
117
+ import * as Snapshot_Restore from './snapshot.restore'
118
+ import * as Snapshot_VerifyRepository from './snapshot.verify_repository'
119
+ import * as Sql_Common from './sql._common'
120
+ import * as Tasks_Common from './tasks._common'
121
+ import * as Transforms_Common from './transforms._common'
122
+ import * as Wlm_Common from './wlm._common'
123
+ import * as Global from './_global'
124
+
125
+ export {
126
+ Common,
127
+ Common_Aggregations,
128
+ Common_Analysis,
129
+ Common_Mapping,
130
+ Common_QueryDsl,
131
+ Core_Bulk,
132
+ Core_Explain,
133
+ Core_FieldCaps,
134
+ Core_GetScriptContext,
135
+ Core_GetScriptLanguages,
136
+ Core_Get,
137
+ Core_Mget,
138
+ Core_MsearchTemplate,
139
+ Core_Msearch,
140
+ Core_Mtermvectors,
141
+ Core_Pit,
142
+ Core_RankEval,
143
+ Core_ReindexRethrottle,
144
+ Core_Reindex,
145
+ Core_ScriptsPainlessExecute,
146
+ Core_SearchShards,
147
+ Core_Search,
148
+ Core_Termvectors,
149
+ Core_UpdateByQueryRethrottle,
150
+ Core_Update,
151
+ AsynchronousSearch_Common,
152
+ Cat_Aliases,
153
+ Cat_Allocation,
154
+ Cat_ClusterManager,
155
+ Cat_Count,
156
+ Cat_Fielddata,
157
+ Cat_Health,
158
+ Cat_Indices,
159
+ Cat_Master,
160
+ Cat_Nodeattrs,
161
+ Cat_Nodes,
162
+ Cat_PendingTasks,
163
+ Cat_Plugins,
164
+ Cat_Recovery,
165
+ Cat_Repositories,
166
+ Cat_SegmentReplication,
167
+ Cat_Segments,
168
+ Cat_Shards,
169
+ Cat_Snapshots,
170
+ Cat_Tasks,
171
+ Cat_Templates,
172
+ Cat_ThreadPool,
173
+ Cluster_Common,
174
+ Cluster_AllocationExplain,
175
+ Cluster_DecommissionAwareness,
176
+ Cluster_Health,
177
+ Cluster_PendingTasks,
178
+ Cluster_RemoteInfo,
179
+ Cluster_Reroute,
180
+ Cluster_State,
181
+ Cluster_Stats,
182
+ Cluster_WeightedRouting,
183
+ DanglingIndices_ListDanglingIndices,
184
+ FlowFramework_Common,
185
+ FlowFramework_Errors,
186
+ Indices_Common,
187
+ Indices_AddBlock,
188
+ Indices_Analyze,
189
+ Indices_Close,
190
+ Indices_GetAlias,
191
+ Indices_GetFieldMapping,
192
+ Indices_GetIndexTemplate,
193
+ Indices_GetMapping,
194
+ Indices_PutIndexTemplate,
195
+ Indices_Recovery,
196
+ Indices_ResolveIndex,
197
+ Indices_Rollover,
198
+ Indices_Segments,
199
+ Indices_ShardStores,
200
+ Indices_SimulateTemplate,
201
+ Indices_Stats,
202
+ Indices_UpdateAliases,
203
+ Indices_ValidateQuery,
204
+ Ingest_Common,
205
+ Ingest_Simulate,
206
+ Insights_Common,
207
+ Ism_Common,
208
+ Knn_Common,
209
+ Ml_Common,
210
+ Nodes_Common,
211
+ Nodes_Info,
212
+ Nodes_ReloadSecureSettings,
213
+ Nodes_Stats,
214
+ Nodes_Usage,
215
+ Notifications_Common,
216
+ Observability_Common,
217
+ Query_Common,
218
+ RemoteStore_Common,
219
+ Replication_Common,
220
+ Rollups_Common,
221
+ SearchPipeline_Common,
222
+ Security_Common,
223
+ Sm_Common,
224
+ Snapshot_Common,
225
+ Snapshot_CleanupRepository,
226
+ Snapshot_Restore,
227
+ Snapshot_VerifyRepository,
228
+ Sql_Common,
229
+ Tasks_Common,
230
+ Transforms_Common,
231
+ Wlm_Common,
232
+ Global,
233
+ };
@@ -19,7 +19,7 @@ import * as Common from './_common'
19
19
  export type AppendProcessor = ProcessorBase & {
20
20
  allow_duplicates?: boolean;
21
21
  field: Common.Field;
22
- value: Record<string, any>[];
22
+ value: any[];
23
23
  }
24
24
 
25
25
  export type AttachmentProcessor = ProcessorBase & {
@@ -97,16 +97,6 @@ export type DotExpanderProcessor = ProcessorBase & {
97
97
 
98
98
  export type DropProcessor = ProcessorBase & Record<string, any>
99
99
 
100
- export type EnrichProcessor = ProcessorBase & {
101
- field: Common.Field;
102
- ignore_missing?: boolean;
103
- max_matches?: number;
104
- override?: boolean;
105
- policy_name: string;
106
- shape_relation?: Common.GeoShapeRelation;
107
- target_field: Common.Field;
108
- }
109
-
110
100
  export type FailProcessor = ProcessorBase & {
111
101
  message: string;
112
102
  }
@@ -142,31 +132,6 @@ export type GsubProcessor = ProcessorBase & {
142
132
  target_field?: Common.Field;
143
133
  }
144
134
 
145
- export type InferenceConfig = {
146
- classification?: InferenceConfigClassification;
147
- regression?: InferenceConfigRegression;
148
- }
149
-
150
- export type InferenceConfigClassification = {
151
- num_top_classes?: number;
152
- num_top_feature_importance_values?: number;
153
- prediction_field_type?: string;
154
- results_field?: Common.Field;
155
- top_classes_results_field?: Common.Field;
156
- }
157
-
158
- export type InferenceConfigRegression = {
159
- num_top_feature_importance_values?: number;
160
- results_field?: Common.Field;
161
- }
162
-
163
- export type InferenceProcessor = ProcessorBase & {
164
- field_map?: Record<string, Record<string, any>>;
165
- inference_config?: InferenceConfig;
166
- model_id: Common.Id;
167
- target_field?: Common.Field;
168
- }
169
-
170
135
  export type JoinProcessor = ProcessorBase & {
171
136
  field: Common.Field;
172
137
  separator: string;
@@ -236,13 +201,11 @@ export type ProcessorContainer = {
236
201
  dissect?: DissectProcessor;
237
202
  dot_expander?: DotExpanderProcessor;
238
203
  drop?: DropProcessor;
239
- enrich?: EnrichProcessor;
240
204
  fail?: FailProcessor;
241
205
  foreach?: ForeachProcessor;
242
206
  geoip?: GeoIpProcessor;
243
207
  grok?: GrokProcessor;
244
208
  gsub?: GsubProcessor;
245
- inference?: InferenceProcessor;
246
209
  join?: JoinProcessor;
247
210
  json?: JsonProcessor;
248
211
  kv?: KeyValueProcessor;
@@ -287,7 +250,7 @@ export type SetSecurityUserProcessor = ProcessorBase & {
287
250
  properties?: string[];
288
251
  }
289
252
 
290
- export type ShapeType = 'geo_shape' | 'shape'
253
+ export type ShapeType = 'geo_shape' | 'xy_shape'
291
254
 
292
255
  export type SortProcessor = ProcessorBase & {
293
256
  field: Common.Field;
@@ -304,7 +267,7 @@ export type SplitProcessor = ProcessorBase & {
304
267
  }
305
268
 
306
269
  export type TextEmbeddingProcessor = ProcessorBase & {
307
- description?: string;
270
+ batch_size?: number;
308
271
  field_map: Record<string, string>;
309
272
  model_id: Common.Id;
310
273
  }