@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.
- package/api/OpenSearchApi.d.ts +162 -3
- package/api/_core/count.js +1 -1
- package/api/_core/createPit.d.ts +1 -2
- package/api/_core/deleteAllPits.d.ts +2 -2
- package/api/_core/deleteByQuery.d.ts +2 -1
- package/api/_core/deleteByQuery.js +1 -1
- package/api/_core/deletePit.d.ts +2 -2
- package/api/_core/getAllPits.d.ts +2 -2
- package/api/_core/rankEval.d.ts +1 -1
- package/api/_core/reindex.d.ts +1 -0
- package/api/_core/reindex.js +1 -0
- package/api/_core/renderSearchTemplate.d.ts +1 -1
- package/api/_core/search.d.ts +1 -0
- package/api/_core/searchShards.d.ts +0 -11
- package/api/_core/searchShards.js +0 -1
- package/api/_core/updateByQuery.d.ts +2 -1
- package/api/_core/updateByQuery.js +1 -1
- package/api/_types/_common.aggregations.d.ts +37 -156
- package/api/_types/_common.d.ts +4 -17
- package/api/_types/_core.field_caps.d.ts +1 -1
- package/api/_types/{_core._common.d.ts → _core.pit.d.ts} +0 -12
- package/api/_types/_core.rank_eval.d.ts +3 -3
- package/api/_types/_core.termvectors.d.ts +1 -1
- package/api/_types/{cat._common.d.ts → cat.segment_replication.d.ts} +1 -18
- package/api/_types/cat.snapshots.d.ts +1 -1
- package/api/_types/index.d.ts +233 -0
- package/api/_types/ingest._common.d.ts +3 -40
- package/api/_types/ml._common.d.ts +293 -7
- package/api/_types/nodes.info.d.ts +17 -5
- package/api/asynchronousSearch/delete.js +1 -1
- package/api/asynchronousSearch/get.js +1 -1
- package/api/asynchronousSearch/search.js +4 -4
- package/api/asynchronousSearch/stats.js +1 -1
- package/api/cat/aliases.js +1 -1
- package/api/cat/allPitSegments.d.ts +2 -2
- package/api/cat/allPitSegments.js +1 -1
- package/api/cat/clusterManager.js +1 -1
- package/api/cat/count.js +1 -1
- package/api/cat/fielddata.js +1 -1
- package/api/cat/health.js +1 -1
- package/api/cat/indices.js +2 -2
- package/api/cat/master.js +1 -1
- package/api/cat/nodeattrs.js +1 -1
- package/api/cat/nodes.d.ts +1 -1
- package/api/cat/nodes.js +2 -2
- package/api/cat/pendingTasks.js +1 -1
- package/api/cat/pitSegments.d.ts +2 -2
- package/api/cat/pitSegments.js +1 -1
- package/api/cat/plugins.js +1 -1
- package/api/cat/recovery.js +1 -1
- package/api/cat/repositories.js +1 -1
- package/api/cat/segmentReplication.d.ts +2 -2
- package/api/cat/segmentReplication.js +2 -2
- package/api/cat/shards.js +1 -1
- package/api/cat/snapshots.js +1 -1
- package/api/cat/tasks.js +1 -1
- package/api/cat/templates.js +1 -1
- package/api/cat/threadPool.js +1 -1
- package/api/index.d.ts +76 -4
- package/api/ml/_api.js +108 -0
- package/api/ml/chunkModel.d.ts +37 -0
- package/api/ml/chunkModel.js +53 -0
- package/api/ml/createController.d.ts +39 -0
- package/api/ml/createController.js +50 -0
- package/api/ml/createMemory.d.ts +36 -0
- package/api/ml/createMemory.js +47 -0
- package/api/ml/createMessage.d.ts +42 -0
- package/api/ml/createMessage.js +50 -0
- package/api/ml/createModelMeta.d.ts +46 -0
- package/api/ml/createModelMeta.js +47 -0
- package/api/ml/deleteController.d.ts +30 -0
- package/api/ml/deleteController.js +49 -0
- package/api/ml/deleteMemory.d.ts +31 -0
- package/api/ml/deleteMemory.js +49 -0
- package/api/ml/executeAgent.d.ts +36 -0
- package/api/ml/executeAgent.js +50 -0
- package/api/ml/getAgent.d.ts +30 -0
- package/api/ml/getAgent.js +49 -0
- package/api/ml/getAllMemories.d.ts +34 -0
- package/api/ml/getAllMemories.js +48 -0
- package/api/ml/getAllMessages.d.ts +35 -0
- package/api/ml/getAllMessages.js +51 -0
- package/api/ml/getAllTools.d.ts +28 -0
- package/api/ml/getAllTools.js +45 -0
- package/api/ml/getController.d.ts +34 -0
- package/api/ml/getController.js +49 -0
- package/api/ml/getMemory.d.ts +30 -0
- package/api/ml/getMemory.js +49 -0
- package/api/ml/getMessage.d.ts +30 -0
- package/api/ml/getMessage.js +49 -0
- package/api/ml/getMessageTraces.d.ts +35 -0
- package/api/ml/getMessageTraces.js +51 -0
- package/api/ml/getModel.d.ts +30 -0
- package/api/ml/getModel.js +49 -0
- package/api/ml/getProfile.d.ts +30 -0
- package/api/ml/getProfile.js +47 -0
- package/api/ml/getProfileModels.d.ts +31 -0
- package/api/ml/getProfileModels.js +49 -0
- package/api/ml/getProfileTasks.d.ts +31 -0
- package/api/ml/getProfileTasks.js +49 -0
- package/api/ml/getStats.d.ts +31 -0
- package/api/ml/getStats.js +50 -0
- package/api/ml/getTool.d.ts +30 -0
- package/api/ml/getTool.js +49 -0
- package/api/ml/loadModel.d.ts +33 -0
- package/api/ml/loadModel.js +49 -0
- package/api/ml/predictModel.d.ts +36 -0
- package/api/ml/predictModel.js +50 -0
- package/api/ml/registerModel.d.ts +8 -3
- package/api/ml/registerModelMeta.d.ts +46 -0
- package/api/ml/registerModelMeta.js +47 -0
- package/api/ml/searchAgents.d.ts +36 -0
- package/api/ml/searchAgents.js +47 -0
- package/api/ml/searchMemory.d.ts +36 -0
- package/api/ml/searchMemory.js +47 -0
- package/api/ml/searchMessage.d.ts +37 -0
- package/api/ml/searchMessage.js +50 -0
- package/api/ml/searchModels.js +1 -1
- package/api/ml/searchTasks.d.ts +36 -0
- package/api/ml/searchTasks.js +47 -0
- package/api/ml/undeployModel.d.ts +8 -1
- package/api/ml/undeployModel.js +5 -5
- package/api/ml/unloadModel.d.ts +37 -0
- package/api/ml/unloadModel.js +49 -0
- package/api/ml/updateController.d.ts +37 -0
- package/api/ml/updateController.js +50 -0
- package/api/ml/updateMemory.d.ts +35 -0
- package/api/ml/updateMemory.js +50 -0
- package/api/ml/updateMessage.d.ts +40 -0
- package/api/ml/updateMessage.js +50 -0
- package/api/ml/updateModel.d.ts +44 -0
- package/api/ml/updateModel.js +50 -0
- package/api/ml/uploadChunk.d.ts +37 -0
- package/api/ml/uploadChunk.js +53 -0
- package/api/ml/uploadModel.d.ts +42 -0
- package/api/ml/uploadModel.js +47 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
|
+
import * as Common_Analysis from './_common.analysis'
|
|
18
19
|
|
|
19
20
|
export type Action = {
|
|
20
21
|
action_type?: string;
|
|
@@ -26,10 +27,29 @@ export type Action = {
|
|
|
26
27
|
url?: string;
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
export type AdditionalInfo = Record<string, any>
|
|
31
|
+
|
|
32
|
+
export type Aggregation = {
|
|
33
|
+
field?: string;
|
|
34
|
+
sum?: Aggregation;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}
|
|
37
|
+
|
|
29
38
|
export type Algorithm = {
|
|
30
|
-
value?:
|
|
39
|
+
value?: FunctionName;
|
|
31
40
|
}
|
|
32
41
|
|
|
42
|
+
export type AlgorithmOperations = {
|
|
43
|
+
deploy?: ModelStats;
|
|
44
|
+
predict?: ModelStats;
|
|
45
|
+
register?: ModelStats;
|
|
46
|
+
train?: ModelStats;
|
|
47
|
+
train_predict?: ModelStats;
|
|
48
|
+
undeploy?: ModelStats;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type Algorithms = Record<string, AlgorithmOperations>
|
|
52
|
+
|
|
33
53
|
export type BoolQuery = {
|
|
34
54
|
filter?: Filter[];
|
|
35
55
|
must?: Filter[];
|
|
@@ -77,6 +97,18 @@ export type Filter = {
|
|
|
77
97
|
terms?: Term;
|
|
78
98
|
}
|
|
79
99
|
|
|
100
|
+
export type FunctionName = 'AD_LIBSVM' | 'AGENT' | 'ANOMALY_LOCALIZATION' | 'BATCH_RCF' | 'CONNECTOR' | 'FIT_RCF' | 'KMEANS' | 'LINEAR_REGRESSION' | 'LOCAL_SAMPLE_CALCULATOR' | 'LOGISTIC_REGRESSION' | 'METRICS_CORRELATION' | 'QUESTION_ANSWERING' | 'RCF_SUMMARIZE' | 'REMOTE' | 'SAMPLE_ALGO' | 'SPARSE_ENCODING' | 'SPARSE_TOKENIZE' | 'TEXT_EMBEDDING' | 'TEXT_SIMILARITY'
|
|
101
|
+
|
|
102
|
+
export type GetAgentResponse = {
|
|
103
|
+
created_time?: number;
|
|
104
|
+
description?: string;
|
|
105
|
+
is_hidden?: boolean;
|
|
106
|
+
last_updated_time?: number;
|
|
107
|
+
name?: Common.Name;
|
|
108
|
+
tools?: ToolItems[];
|
|
109
|
+
type?: 'conversational' | 'conversational_flow' | 'flow';
|
|
110
|
+
}
|
|
111
|
+
|
|
80
112
|
export type GetConnectorResponse = {
|
|
81
113
|
actions?: Action[];
|
|
82
114
|
created_time?: number;
|
|
@@ -88,6 +120,39 @@ export type GetConnectorResponse = {
|
|
|
88
120
|
version?: Common.VersionString;
|
|
89
121
|
}
|
|
90
122
|
|
|
123
|
+
export type GetProfileResponse = {
|
|
124
|
+
nodes?: Nodes;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetStatsResponse = {
|
|
128
|
+
ml_config_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
|
|
129
|
+
ml_connector_count?: number;
|
|
130
|
+
ml_connector_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
|
|
131
|
+
ml_controller_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
|
|
132
|
+
ml_model_count?: number;
|
|
133
|
+
ml_model_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
|
|
134
|
+
ml_task_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
|
|
135
|
+
nodes?: NodeStats;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type Guardrails = {
|
|
139
|
+
index_name?: Common.IndexName;
|
|
140
|
+
input_guardrail?: GuardrailsInputOutput;
|
|
141
|
+
model_id?: string;
|
|
142
|
+
output_guardrail?: GuardrailsInputOutput;
|
|
143
|
+
regex?: Record<string, any>;
|
|
144
|
+
response_filter?: string;
|
|
145
|
+
response_validation_regex?: string;
|
|
146
|
+
source_fields?: Common.Fields;
|
|
147
|
+
stop_words?: Common_Analysis.StopWords;
|
|
148
|
+
type?: 'local_regex' | 'model';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type GuardrailsInputOutput = {
|
|
152
|
+
model_id?: string;
|
|
153
|
+
response_validation_regex?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
91
156
|
export type Headers = {
|
|
92
157
|
content_type?: string;
|
|
93
158
|
[key: string]: any;
|
|
@@ -122,12 +187,49 @@ export type LLM = {
|
|
|
122
187
|
|
|
123
188
|
export type Match = {
|
|
124
189
|
description?: string;
|
|
190
|
+
[key: string]: any;
|
|
125
191
|
}
|
|
126
192
|
|
|
127
193
|
export type MatchAllQuery = Record<string, any>
|
|
128
194
|
|
|
129
195
|
export type Memory = {
|
|
196
|
+
additional_info?: AdditionalInfo;
|
|
197
|
+
create_time?: string;
|
|
198
|
+
memory_id?: Common.Name;
|
|
199
|
+
name?: Common.Name;
|
|
130
200
|
type?: string;
|
|
201
|
+
updated_time?: string;
|
|
202
|
+
user?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type Message = {
|
|
206
|
+
additional_info?: AdditionalInfo;
|
|
207
|
+
create_time?: string;
|
|
208
|
+
input?: undefined | string;
|
|
209
|
+
memory_id?: Common.Name;
|
|
210
|
+
message_id?: Common.Name;
|
|
211
|
+
origin?: undefined | string;
|
|
212
|
+
parent_message_id?: undefined | string;
|
|
213
|
+
prompt_template?: undefined | string;
|
|
214
|
+
response?: undefined | string;
|
|
215
|
+
trace_number?: number;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type Model = {
|
|
219
|
+
algorithm?: string;
|
|
220
|
+
created_time?: number;
|
|
221
|
+
is_hidden?: boolean;
|
|
222
|
+
last_registered_time?: number;
|
|
223
|
+
last_updated_time?: number;
|
|
224
|
+
model_config?: ModelConfig;
|
|
225
|
+
model_content_hash_value?: string;
|
|
226
|
+
model_content_size_in_bytes?: number;
|
|
227
|
+
model_format?: ModelFormat;
|
|
228
|
+
model_group_id?: string;
|
|
229
|
+
model_state: 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED';
|
|
230
|
+
model_version?: string;
|
|
231
|
+
name?: string;
|
|
232
|
+
total_chunks?: number;
|
|
131
233
|
}
|
|
132
234
|
|
|
133
235
|
export type ModelConfig = {
|
|
@@ -137,6 +239,8 @@ export type ModelConfig = {
|
|
|
137
239
|
model_type?: string;
|
|
138
240
|
}
|
|
139
241
|
|
|
242
|
+
export type ModelFormat = 'ONNX' | 'TORCH_SCRIPT'
|
|
243
|
+
|
|
140
244
|
export type ModelGroup = {
|
|
141
245
|
access: 'private' | 'public' | 'restricted';
|
|
142
246
|
created_time?: number;
|
|
@@ -152,6 +256,30 @@ export type ModelGroupRegistration = {
|
|
|
152
256
|
status: string;
|
|
153
257
|
}
|
|
154
258
|
|
|
259
|
+
export type ModelProfile = {
|
|
260
|
+
deploy?: ModelStats;
|
|
261
|
+
memory_size_estimation_cpu?: number;
|
|
262
|
+
memory_size_estimation_gpu?: number;
|
|
263
|
+
model_state?: 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED';
|
|
264
|
+
predict?: ModelStats;
|
|
265
|
+
predict_request_stats?: PredictRequestStats;
|
|
266
|
+
predictor?: string;
|
|
267
|
+
register?: ModelStats;
|
|
268
|
+
target_worker_nodes?: Common.NodeIds[];
|
|
269
|
+
train?: ModelStats;
|
|
270
|
+
train_predict?: ModelStats;
|
|
271
|
+
undeploy?: ModelStats;
|
|
272
|
+
worker_nodes?: Common.NodeIds[];
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type Models = Record<string, ModelProfile>
|
|
276
|
+
|
|
277
|
+
export type ModelStats = {
|
|
278
|
+
ml_action_failure_count?: number;
|
|
279
|
+
ml_action_request_count?: number;
|
|
280
|
+
ml_executing_task_count?: number;
|
|
281
|
+
}
|
|
282
|
+
|
|
155
283
|
export type Nested = {
|
|
156
284
|
boost?: number;
|
|
157
285
|
ignore_unmapped?: boolean;
|
|
@@ -160,11 +288,32 @@ export type Nested = {
|
|
|
160
288
|
score_mode?: 'avg' | 'max' | 'min' | 'none' | 'sum';
|
|
161
289
|
}
|
|
162
290
|
|
|
291
|
+
export type Node = {
|
|
292
|
+
models?: Models;
|
|
293
|
+
tasks?: Tasks;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type Nodes = Record<string, Node>
|
|
297
|
+
|
|
298
|
+
export type NodeStats = Record<string, NodeStatsDetails>
|
|
299
|
+
|
|
300
|
+
export type NodeStatsDetails = {
|
|
301
|
+
algorithms?: Algorithms;
|
|
302
|
+
ml_circuit_breaker_trigger_count?: number;
|
|
303
|
+
ml_deployed_model_count?: number;
|
|
304
|
+
ml_executing_task_count?: number;
|
|
305
|
+
ml_failure_count?: number;
|
|
306
|
+
ml_jvm_heap_usage?: number;
|
|
307
|
+
ml_request_count?: number;
|
|
308
|
+
models?: Models;
|
|
309
|
+
}
|
|
310
|
+
|
|
163
311
|
export type Output = {
|
|
164
312
|
byte_buffer?: ByteBuffer;
|
|
165
313
|
data: number[];
|
|
166
314
|
data_type?: 'BOOLEAN' | 'FLOAT16' | 'FLOAT32' | 'FLOAT64' | 'INT32' | 'INT64' | 'INT8' | 'STRING' | 'UINT8' | 'UNKNOWN';
|
|
167
315
|
name?: string;
|
|
316
|
+
result?: string;
|
|
168
317
|
shape?: number[];
|
|
169
318
|
}
|
|
170
319
|
|
|
@@ -188,16 +337,52 @@ export type PredictionResult = {
|
|
|
188
337
|
rows?: Rows[];
|
|
189
338
|
}
|
|
190
339
|
|
|
340
|
+
export type PredictModelOutput = {
|
|
341
|
+
byte_buffer?: ByteBuffer;
|
|
342
|
+
data: number[];
|
|
343
|
+
data_type?: 'BOOLEAN' | 'FLOAT16' | 'FLOAT32' | 'FLOAT64' | 'INT32' | 'INT64' | 'INT8' | 'STRING' | 'UINT8' | 'UNKNOWN';
|
|
344
|
+
name?: string;
|
|
345
|
+
shape?: number[];
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type PredictModelResponse = {
|
|
349
|
+
inference_results?: PredictModelResult[];
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export type PredictModelResult = {
|
|
353
|
+
output?: PredictModelOutput[];
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type PredictRequestStats = {
|
|
357
|
+
average?: number;
|
|
358
|
+
count?: number;
|
|
359
|
+
max?: number;
|
|
360
|
+
min?: number;
|
|
361
|
+
p50?: number;
|
|
362
|
+
p90?: number;
|
|
363
|
+
p99?: number;
|
|
364
|
+
}
|
|
365
|
+
|
|
191
366
|
export type PredictResponse = {
|
|
192
367
|
inference_results?: InferenceResults[];
|
|
193
368
|
prediction_result?: PredictionResult;
|
|
194
369
|
status?: Status;
|
|
195
370
|
}
|
|
196
371
|
|
|
372
|
+
export type ProfileRequest = {
|
|
373
|
+
model_ids?: Common.Id[];
|
|
374
|
+
node_ids?: Common.Id[];
|
|
375
|
+
return_all_models?: boolean;
|
|
376
|
+
return_all_tasks?: boolean;
|
|
377
|
+
task_ids?: Common.Id[];
|
|
378
|
+
}
|
|
379
|
+
|
|
197
380
|
export type Query = {
|
|
198
381
|
bool?: BoolQuery;
|
|
382
|
+
match?: Match;
|
|
199
383
|
match_all?: MatchAllQuery;
|
|
200
384
|
term?: Term;
|
|
385
|
+
[key: string]: any;
|
|
201
386
|
}
|
|
202
387
|
|
|
203
388
|
export type Range = {
|
|
@@ -206,15 +391,22 @@ export type Range = {
|
|
|
206
391
|
k3?: Key;
|
|
207
392
|
}
|
|
208
393
|
|
|
394
|
+
export type RateLimiter = {
|
|
395
|
+
limit: Common.StringifiedDouble;
|
|
396
|
+
unit: 'DAYS' | 'HOURS' | 'MICROSECONDS' | 'MILLISECONDS' | 'MINUTES' | 'NANOSECONDS' | 'SECONDS';
|
|
397
|
+
}
|
|
398
|
+
|
|
209
399
|
export type Rows = {
|
|
210
400
|
values?: Values[];
|
|
211
401
|
}
|
|
212
402
|
|
|
403
|
+
export type SearchAgentsResponse = SearchResponse
|
|
404
|
+
|
|
213
405
|
export type SearchConnectorsResponse = SearchResponse
|
|
214
406
|
|
|
215
407
|
export type SearchHits = {
|
|
216
408
|
hits: SearchHitsHit[];
|
|
217
|
-
max_score?: number;
|
|
409
|
+
max_score?: undefined | number;
|
|
218
410
|
total: HitsTotal;
|
|
219
411
|
}
|
|
220
412
|
|
|
@@ -222,13 +414,18 @@ export type SearchHitsHit = {
|
|
|
222
414
|
_id?: Common.Id;
|
|
223
415
|
_index?: Common.IndexName;
|
|
224
416
|
_primary_term?: number;
|
|
225
|
-
_score: number;
|
|
417
|
+
_score: undefined | number;
|
|
226
418
|
_seq_no?: Common.SequenceNumber;
|
|
227
419
|
_source?: Source;
|
|
228
420
|
_version?: Common.VersionNumber;
|
|
229
421
|
model_id?: Common.Name;
|
|
422
|
+
sort?: number[];
|
|
230
423
|
}
|
|
231
424
|
|
|
425
|
+
export type SearchMemoryResponse = SearchResponse
|
|
426
|
+
|
|
427
|
+
export type SearchMessageResponse = SearchResponse
|
|
428
|
+
|
|
232
429
|
export type SearchModelGroupsResponse = SearchResponse
|
|
233
430
|
|
|
234
431
|
export type SearchModelsResponse = SearchResponse
|
|
@@ -240,6 +437,8 @@ export type SearchResponse = {
|
|
|
240
437
|
took?: number;
|
|
241
438
|
}
|
|
242
439
|
|
|
440
|
+
export type SearchTasksResponse = SearchResponse
|
|
441
|
+
|
|
243
442
|
export type Sort = {
|
|
244
443
|
_id?: SortOrder;
|
|
245
444
|
_index?: SortOrder;
|
|
@@ -265,6 +464,44 @@ export type Sort = {
|
|
|
265
464
|
total_chunks?: SortOrder;
|
|
266
465
|
}
|
|
267
466
|
|
|
467
|
+
export type SortAgent = {
|
|
468
|
+
_id?: SortOrder;
|
|
469
|
+
_index?: SortOrder;
|
|
470
|
+
_score?: SortOrder;
|
|
471
|
+
_seq_no?: SortOrder;
|
|
472
|
+
created_time?: SortOrder;
|
|
473
|
+
is_hidden?: SortOrder;
|
|
474
|
+
last_updated_time?: SortOrder;
|
|
475
|
+
parameters?: SortOrder;
|
|
476
|
+
tools?: SortOrder;
|
|
477
|
+
type?: SortOrder;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export type SortMemory = {
|
|
481
|
+
_id?: SortOrder;
|
|
482
|
+
_index?: SortOrder;
|
|
483
|
+
_score?: SortOrder;
|
|
484
|
+
_seq_no?: SortOrder;
|
|
485
|
+
additional_info?: SortOrder;
|
|
486
|
+
application_time?: SortOrder;
|
|
487
|
+
create_time?: SortOrder;
|
|
488
|
+
updated_time?: SortOrder;
|
|
489
|
+
user?: SortOrder;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export type SortMessage = {
|
|
493
|
+
_id?: SortOrder;
|
|
494
|
+
_index?: SortOrder;
|
|
495
|
+
_score?: SortOrder;
|
|
496
|
+
_seq_no?: SortOrder;
|
|
497
|
+
additional_info?: SortOrder;
|
|
498
|
+
create_time?: SortOrder;
|
|
499
|
+
memory_id?: SortOrder;
|
|
500
|
+
origin?: SortOrder;
|
|
501
|
+
parent_message_id?: SortOrder;
|
|
502
|
+
trace_number?: SortOrder;
|
|
503
|
+
}
|
|
504
|
+
|
|
268
505
|
export type SortOrder = {
|
|
269
506
|
order?: 'asc' | 'desc';
|
|
270
507
|
}
|
|
@@ -272,38 +509,62 @@ export type SortOrder = {
|
|
|
272
509
|
export type Source = {
|
|
273
510
|
access?: 'private' | 'public' | 'restricted';
|
|
274
511
|
actions?: Action[];
|
|
512
|
+
additional_info?: AdditionalInfo;
|
|
275
513
|
algorithm?: string;
|
|
514
|
+
app_type?: string;
|
|
515
|
+
application_type?: undefined | string;
|
|
276
516
|
auto_redeploy_retry_times?: number;
|
|
277
517
|
backend_roles?: string[];
|
|
278
518
|
chunk_number?: number;
|
|
279
519
|
connector_id?: string;
|
|
520
|
+
create_time?: string | number;
|
|
280
521
|
created_time?: number;
|
|
281
522
|
current_worker_node_count?: number;
|
|
282
523
|
deploy_to_all_nodes?: boolean;
|
|
283
524
|
description?: string;
|
|
525
|
+
error?: string;
|
|
526
|
+
function_name?: FunctionName;
|
|
527
|
+
input?: undefined | string;
|
|
528
|
+
input_type?: 'DATA_FRAME' | 'QUESTION_ANSWERING' | 'REMOTE' | 'SEARCH_QUERY' | 'TEXT_DOCS' | 'TEXT_SIMILARITY';
|
|
529
|
+
is_async?: boolean;
|
|
284
530
|
is_hidden?: boolean;
|
|
285
531
|
last_deployed_time?: number;
|
|
286
532
|
last_registered_time?: number;
|
|
533
|
+
last_update_time?: number;
|
|
287
534
|
last_updated_time?: number;
|
|
288
535
|
latest_version?: number;
|
|
536
|
+
memory?: Memory;
|
|
537
|
+
memory_id?: Common.Name;
|
|
289
538
|
model_config?: ModelConfig;
|
|
290
539
|
model_content_hash_value?: string;
|
|
291
540
|
model_content_size_in_bytes?: number;
|
|
292
|
-
model_format?:
|
|
541
|
+
model_format?: ModelFormat;
|
|
293
542
|
model_group_id?: string;
|
|
294
543
|
model_id?: Common.Name;
|
|
295
544
|
model_state?: 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED';
|
|
296
545
|
model_task_type?: string;
|
|
297
546
|
model_version?: string;
|
|
298
|
-
name?:
|
|
547
|
+
name?: Common.Name;
|
|
548
|
+
origin?: undefined | string;
|
|
299
549
|
owner?: Owner;
|
|
300
550
|
parameters?: Parameters;
|
|
551
|
+
parent_message_id?: undefined | string;
|
|
301
552
|
planning_worker_node_count?: number;
|
|
302
553
|
planning_worker_nodes?: Common.NodeIds[];
|
|
554
|
+
prompt_template?: undefined | string;
|
|
303
555
|
protocol?: 'aws_sigv4' | 'http';
|
|
556
|
+
response?: undefined | string;
|
|
557
|
+
state?: Status;
|
|
558
|
+
task_type?: 'BATCH_INGEST' | 'BATCH_PREDICTION' | 'DEPLOY_MODEL' | 'EXECUTION' | 'PREDICTION' | 'REGISTER_MODEL' | 'TRAINING' | 'TRAINING_AND_PREDICTION';
|
|
559
|
+
tools?: ToolItems[];
|
|
304
560
|
total_chunks?: number;
|
|
561
|
+
trace_number?: undefined | string;
|
|
562
|
+
type?: 'conversational' | 'conversational_flow' | 'flow';
|
|
563
|
+
updated_time?: string;
|
|
305
564
|
url?: string;
|
|
565
|
+
user?: string;
|
|
306
566
|
version?: Common.VersionString;
|
|
567
|
+
worker_node?: Common.NodeIds[];
|
|
307
568
|
}
|
|
308
569
|
|
|
309
570
|
export type Status = 'CANCELLED' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREATED' | 'FAILED' | 'RUNNING'
|
|
@@ -311,24 +572,37 @@ export type Status = 'CANCELLED' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREAT
|
|
|
311
572
|
export type Task = {
|
|
312
573
|
create_time?: number;
|
|
313
574
|
error?: string;
|
|
314
|
-
function_name?:
|
|
575
|
+
function_name?: FunctionName;
|
|
315
576
|
is_async?: boolean;
|
|
316
577
|
last_update_time?: number;
|
|
317
578
|
model_id?: string;
|
|
318
579
|
state: 'CANCELLED' | 'CANCELLING' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREATED' | 'EXPIRED' | 'FAILED' | 'RUNNING';
|
|
319
580
|
task_id?: string;
|
|
320
|
-
task_type?: 'DEPLOY_MODEL' | 'REGISTER_MODEL';
|
|
581
|
+
task_type?: 'BATCH_INGEST' | 'BATCH_PREDICTION' | 'DEPLOY_MODEL' | 'EXECUTION' | 'PREDICTION' | 'REGISTER_MODEL' | 'TRAINING' | 'TRAINING_AND_PREDICTION';
|
|
321
582
|
worker_node?: Common.NodeIds[];
|
|
322
583
|
}
|
|
323
584
|
|
|
585
|
+
export type Tasks = Record<string, Task>
|
|
586
|
+
|
|
324
587
|
export type Term = {
|
|
325
588
|
_id?: Common.Id[];
|
|
326
589
|
algorithm?: Algorithm;
|
|
590
|
+
function_name?: FunctionName;
|
|
327
591
|
model_id?: Common.Name;
|
|
592
|
+
name?: OwnerNameKeyword;
|
|
328
593
|
'owner.name.keyword'?: OwnerNameKeyword;
|
|
594
|
+
type?: Type;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export type Tool = {
|
|
598
|
+
description?: string;
|
|
599
|
+
name?: Common.Name;
|
|
600
|
+
type?: string;
|
|
601
|
+
version?: Common.VersionString;
|
|
329
602
|
}
|
|
330
603
|
|
|
331
604
|
export type ToolItems = {
|
|
605
|
+
include_output_in_agent_response?: boolean;
|
|
332
606
|
name?: string;
|
|
333
607
|
parameters?: Parameters;
|
|
334
608
|
type?: string;
|
|
@@ -351,6 +625,10 @@ export type TrainResponse = {
|
|
|
351
625
|
status: Status;
|
|
352
626
|
}
|
|
353
627
|
|
|
628
|
+
export type Type = {
|
|
629
|
+
value?: 'conversational' | 'conversational_flow' | 'flow';
|
|
630
|
+
}
|
|
631
|
+
|
|
354
632
|
export type UndeployModelNode = {
|
|
355
633
|
stats?: UndeployModelNodeStats;
|
|
356
634
|
}
|
|
@@ -359,6 +637,14 @@ export type UndeployModelNodeStats = Record<string, any>
|
|
|
359
637
|
|
|
360
638
|
export type UndeployModelResponse = Record<string, UndeployModelNode>
|
|
361
639
|
|
|
640
|
+
export type UnloadModelNode = {
|
|
641
|
+
stats?: UnloadModelNodeStats;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export type UnloadModelNodeStats = Record<string, any>
|
|
645
|
+
|
|
646
|
+
export type UnloadModelResponse = Record<string, UnloadModelNode>
|
|
647
|
+
|
|
362
648
|
export type UpdateModelGroupResponse = {
|
|
363
649
|
status?: string;
|
|
364
650
|
}
|
|
@@ -156,8 +156,8 @@ export type NodeInfoSearch = {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
export type NodeInfoSearchPipelines = {
|
|
159
|
-
request_processors
|
|
160
|
-
response_processors
|
|
159
|
+
request_processors?: NodeInfoIngestProcessor[];
|
|
160
|
+
response_processors?: NodeInfoIngestProcessor[];
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
export type NodeInfoSearchRemote = {
|
|
@@ -203,10 +203,16 @@ export type NodeInfoSettingsDeprecationIndexing = {
|
|
|
203
203
|
export type NodeInfoSettingsHttp = {
|
|
204
204
|
compression?: Common.StringifiedBoolean;
|
|
205
205
|
port?: Common.StringifiedInteger;
|
|
206
|
-
type:
|
|
206
|
+
type: NodeInfoSettingsHttpType;
|
|
207
207
|
'type.default'?: string;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
export type NodeInfoSettingsHttpType = string | NodeInfoSettingsHttpTypeConfig
|
|
211
|
+
|
|
212
|
+
export type NodeInfoSettingsHttpTypeConfig = {
|
|
213
|
+
default?: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
210
216
|
export type NodeInfoSettingsIndex = {
|
|
211
217
|
store?: NodeInfoSettingsIndexStore;
|
|
212
218
|
}
|
|
@@ -265,7 +271,7 @@ export type NodeInfoSettingsNetwork = {
|
|
|
265
271
|
}
|
|
266
272
|
|
|
267
273
|
export type NodeInfoSettingsNode = {
|
|
268
|
-
attr
|
|
274
|
+
attr?: Record<string, any>;
|
|
269
275
|
max_local_storage_nodes?: string;
|
|
270
276
|
name: Common.Name;
|
|
271
277
|
}
|
|
@@ -273,10 +279,16 @@ export type NodeInfoSettingsNode = {
|
|
|
273
279
|
export type NodeInfoSettingsPlugins = Record<string, any>
|
|
274
280
|
|
|
275
281
|
export type NodeInfoSettingsTransport = {
|
|
276
|
-
type:
|
|
282
|
+
type: NodeInfoSettingsTransportType;
|
|
277
283
|
'type.default'?: string;
|
|
278
284
|
}
|
|
279
285
|
|
|
286
|
+
export type NodeInfoSettingsTransportType = string | NodeInfoSettingsTransportTypeConfig
|
|
287
|
+
|
|
288
|
+
export type NodeInfoSettingsTransportTypeConfig = {
|
|
289
|
+
default?: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
280
292
|
export type NodeInfoTransport = {
|
|
281
293
|
bound_address: string[];
|
|
282
294
|
profiles: Record<string, string>;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Deletes any responses from an asynchronous search.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/search-plugins/async/index/#delete-searches-and-results - asynchronous_search.delete}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Gets partial responses from an asynchronous search.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/search-plugins/async/index/#get-partial-results - asynchronous_search.get}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
const { normalizeArguments } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Performs an asynchronous search.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/search-plugins/async/index/#rest-api - asynchronous_search.search}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {string} [params.index] - The name of the index to be searched. Can be an individual name, a comma-separated list of indexes, or a wildcard expression of index names.
|
|
29
|
-
* @param {string} [params.keep_alive] - The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours.
|
|
30
|
-
* @param {boolean} [params.keep_on_completion] - Whether you want to save the results in the cluster after the search is complete.
|
|
31
|
-
* @param {string} [params.wait_for_completion_timeout] - The amount of time that you plan to wait for the results. You can poll the remaining results based on an ID. The maximum value is
|
|
29
|
+
* @param {string} [params.keep_alive] - The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution time. If the query overruns this time, the process cancels this query automatically.
|
|
30
|
+
* @param {boolean} [params.keep_on_completion] - Whether you want to save the results in the cluster after the search is complete. You can examine the stored results at a later time.
|
|
31
|
+
* @param {string} [params.wait_for_completion_timeout] - The amount of time that you plan to wait for the results. You can poll the remaining results based on an ID. The maximum value is 300 seconds. Default is `1s`.
|
|
32
32
|
* @param {object} [params.body] - The search definition using the Query DSL.
|
|
33
33
|
*
|
|
34
34
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const { normalizeArguments } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Monitors any asynchronous searches that are `running`, `completed`, `persisted`.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/search-plugins/async/index/#monitor-stats - asynchronous_search.stats}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Asynchronous-Search
|
package/api/cat/aliases.js
CHANGED
|
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cat
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.expand_wildcards] -
|
|
28
|
+
* @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
|
29
29
|
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
30
30
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
31
31
|
* @param {boolean} [params.help=false] - Returns help information.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
-
import * as
|
|
18
|
+
import * as Cat_Segments from '../_types/cat.segments'
|
|
19
19
|
import * as Common from '../_types/_common'
|
|
20
20
|
import * as Global from '../_types/_global'
|
|
21
21
|
|
|
@@ -32,5 +32,5 @@ export interface Cat_AllPitSegments_Response extends ApiResponse {
|
|
|
32
32
|
body: Cat_AllPitSegments_ResponseBody;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export type Cat_AllPitSegments_ResponseBody =
|
|
35
|
+
export type Cat_AllPitSegments_ResponseBody = Cat_Segments.SegmentsRecord[]
|
|
36
36
|
|
|
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
28
28
|
* @param {string} [params.bytes] - The units used to display byte values.
|
|
29
29
|
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
30
30
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
31
|
-
* @param {boolean} [params.help=false] -
|
|
31
|
+
* @param {boolean} [params.help=false] - Returns help information.
|
|
32
32
|
* @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
|
|
33
33
|
* @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
|
|
34
34
|
*
|
|
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
28
28
|
* @param {string} [params.cluster_manager_timeout] - A timeout for connection to the cluster manager node.
|
|
29
29
|
* @param {string} [params.format] - A short version of the HTTP `Accept` header, such as `json` or `yaml`.
|
|
30
30
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
31
|
-
* @param {boolean} [params.help=false] -
|
|
31
|
+
* @param {boolean} [params.help=false] - Returns help information.
|
|
32
32
|
* @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
|
|
33
33
|
* @param {string} [params.master_timeout] DEPRECATED - A timeout for connection to the cluster manager node.
|
|
34
34
|
* @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
|
package/api/cat/count.js
CHANGED
|
@@ -27,7 +27,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
29
29
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
30
|
-
* @param {boolean} [params.help=false] -
|
|
30
|
+
* @param {boolean} [params.help=false] - Returns help information.
|
|
31
31
|
* @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
|
|
32
32
|
* @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
|
|
33
33
|
* @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`.
|
package/api/cat/fielddata.js
CHANGED
|
@@ -29,7 +29,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
29
29
|
* @param {string} [params.fields] - A comma-separated list of fields used to limit the amount of returned information. To retrieve all fields, omit this parameter.
|
|
30
30
|
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
31
31
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
32
|
-
* @param {boolean} [params.help=false] -
|
|
32
|
+
* @param {boolean} [params.help=false] - Returns help information.
|
|
33
33
|
* @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
|
|
34
34
|
* @param {boolean} [params.v=false] - Enables verbose mode, which displays column headers.
|
|
35
35
|
*
|
package/api/cat/health.js
CHANGED
|
@@ -27,7 +27,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
|
|
29
29
|
* @param {array} [params.h] - A comma-separated list of column names to display.
|
|
30
|
-
* @param {boolean} [params.help=false] -
|
|
30
|
+
* @param {boolean} [params.help=false] - Returns help information.
|
|
31
31
|
* @param {array} [params.s] - A comma-separated list of column names or column aliases to sort by.
|
|
32
32
|
* @param {string} [params.time] - The unit used to display time values.
|
|
33
33
|
* @param {boolean} [params.ts=true] - When `true`, returns `HH:MM:SS` and Unix epoch timestamps.
|