@opensearch-project/opensearch 3.1.0 → 3.3.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 +82 -8
  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/searchShards.d.ts +0 -11
  14. package/api/_core/searchShards.js +0 -1
  15. package/api/_core/updateByQuery.d.ts +2 -1
  16. package/api/_core/updateByQuery.js +1 -1
  17. package/api/_types/_common.aggregations.d.ts +37 -156
  18. package/api/_types/_common.d.ts +4 -11
  19. package/api/_types/_common.query_dsl.d.ts +64 -39
  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/index.d.ts +2 -2
  25. package/api/_types/ml._common.d.ts +193 -28
  26. package/api/asynchronousSearch/delete.js +1 -1
  27. package/api/asynchronousSearch/get.js +1 -1
  28. package/api/asynchronousSearch/search.js +4 -4
  29. package/api/asynchronousSearch/stats.js +1 -1
  30. package/api/cat/aliases.js +1 -1
  31. package/api/cat/allPitSegments.js +1 -1
  32. package/api/cat/clusterManager.js +1 -1
  33. package/api/cat/count.js +1 -1
  34. package/api/cat/fielddata.js +1 -1
  35. package/api/cat/health.js +1 -1
  36. package/api/cat/indices.js +2 -2
  37. package/api/cat/master.js +1 -1
  38. package/api/cat/nodeattrs.js +1 -1
  39. package/api/cat/nodes.js +1 -1
  40. package/api/cat/pendingTasks.js +1 -1
  41. package/api/cat/pitSegments.js +1 -1
  42. package/api/cat/plugins.js +1 -1
  43. package/api/cat/recovery.js +1 -1
  44. package/api/cat/repositories.js +1 -1
  45. package/api/cat/segmentReplication.js +2 -2
  46. package/api/cat/shards.js +1 -1
  47. package/api/cat/snapshots.js +1 -1
  48. package/api/cat/tasks.js +1 -1
  49. package/api/cat/templates.js +1 -1
  50. package/api/cat/threadPool.js +1 -1
  51. package/api/cluster/allocationExplain.js +4 -4
  52. package/api/cluster/deleteComponentTemplate.js +3 -3
  53. package/api/cluster/deleteDecommissionAwareness.js +1 -1
  54. package/api/cluster/deleteVotingConfigExclusions.js +2 -2
  55. package/api/cluster/existsComponentTemplate.js +4 -4
  56. package/api/cluster/getComponentTemplate.js +4 -4
  57. package/api/cluster/getDecommissionAwareness.js +2 -2
  58. package/api/cluster/getSettings.js +5 -5
  59. package/api/cluster/getWeightedRouting.js +1 -1
  60. package/api/cluster/health.js +14 -14
  61. package/api/cluster/pendingTasks.js +5 -5
  62. package/api/cluster/postVotingConfigExclusions.js +4 -4
  63. package/api/cluster/putComponentTemplate.js +6 -6
  64. package/api/cluster/putDecommissionAwareness.js +3 -3
  65. package/api/cluster/putSettings.js +5 -5
  66. package/api/cluster/putWeightedRouting.js +1 -1
  67. package/api/cluster/reroute.js +6 -6
  68. package/api/cluster/state.js +10 -10
  69. package/api/cluster/stats.js +5 -5
  70. package/api/index.d.ts +40 -6
  71. package/api/indices/simulateIndexTemplate.d.ts +5 -1
  72. package/api/ml/_api.js +51 -0
  73. package/api/ml/createController.d.ts +39 -0
  74. package/api/ml/createController.js +50 -0
  75. package/api/ml/createModelMeta.d.ts +1 -1
  76. package/api/ml/deleteController.d.ts +30 -0
  77. package/api/ml/deleteController.js +49 -0
  78. package/api/ml/executeAgent.d.ts +36 -0
  79. package/api/ml/executeAgent.js +50 -0
  80. package/api/ml/executeAlgorithm.d.ts +45 -0
  81. package/api/ml/executeAlgorithm.js +50 -0
  82. package/api/ml/getAgent.d.ts +30 -0
  83. package/api/ml/getAgent.js +49 -0
  84. package/api/ml/getAllMemories.d.ts +34 -0
  85. package/api/ml/getAllMemories.js +48 -0
  86. package/api/ml/getAllMessages.d.ts +35 -0
  87. package/api/ml/getAllMessages.js +51 -0
  88. package/api/ml/getAllTools.d.ts +28 -0
  89. package/api/ml/getAllTools.js +45 -0
  90. package/api/ml/getController.d.ts +34 -0
  91. package/api/ml/getController.js +49 -0
  92. package/api/ml/getMemory.d.ts +2 -8
  93. package/api/ml/getMemory.js +5 -5
  94. package/api/ml/getMessage.d.ts +2 -3
  95. package/api/ml/getMessage.js +6 -12
  96. package/api/ml/getMessageTraces.d.ts +6 -1
  97. package/api/ml/getMessageTraces.js +2 -0
  98. package/api/ml/getProfile.d.ts +30 -0
  99. package/api/ml/getProfile.js +47 -0
  100. package/api/ml/getProfileModels.d.ts +31 -0
  101. package/api/ml/getProfileModels.js +49 -0
  102. package/api/ml/getProfileTasks.d.ts +31 -0
  103. package/api/ml/getProfileTasks.js +49 -0
  104. package/api/ml/getStats.d.ts +31 -0
  105. package/api/ml/getStats.js +50 -0
  106. package/api/ml/getTool.d.ts +30 -0
  107. package/api/ml/getTool.js +49 -0
  108. package/api/ml/registerModel.d.ts +6 -2
  109. package/api/ml/registerModelMeta.d.ts +1 -1
  110. package/api/ml/searchAgents.d.ts +36 -0
  111. package/api/ml/searchAgents.js +47 -0
  112. package/api/ml/searchTasks.d.ts +36 -0
  113. package/api/ml/searchTasks.js +47 -0
  114. package/api/ml/undeployModel.d.ts +1 -1
  115. package/api/ml/unloadModel.d.ts +1 -1
  116. package/api/ml/updateController.d.ts +37 -0
  117. package/api/ml/updateController.js +50 -0
  118. package/api/ml/updateModel.d.ts +2 -1
  119. package/api/ml/uploadModel.d.ts +2 -1
  120. package/package.json +1 -1
@@ -19,7 +19,7 @@ import * as Common from './_common'
19
19
  export type FieldCapability = {
20
20
  aggregatable: boolean;
21
21
  indices?: Common.Indices;
22
- meta?: Common.Metadata;
22
+ meta?: Record<string, string[]>;
23
23
  metadata_field?: boolean;
24
24
  non_aggregatable_indices?: Common.Indices;
25
25
  non_searchable_indices?: Common.Indices;
@@ -26,15 +26,3 @@ export type PitDetail = {
26
26
  pit_id?: string;
27
27
  }
28
28
 
29
- export type PitsDetailsDeleteAll = {
30
- pit_id?: string;
31
- successful?: boolean;
32
- }
33
-
34
- export type ShardStatistics = {
35
- failed?: number;
36
- skipped?: number;
37
- successful?: number;
38
- total?: number;
39
- }
40
-
@@ -32,7 +32,7 @@ export type RankEvalHit = {
32
32
 
33
33
  export type RankEvalHitItem = {
34
34
  hit: RankEvalHit;
35
- rating?: undefined | number | string;
35
+ rating?: number;
36
36
  }
37
37
 
38
38
  export type RankEvalMetric = {
@@ -49,7 +49,7 @@ export type RankEvalMetricBase = {
49
49
 
50
50
  export type RankEvalMetricDetail = {
51
51
  hits: RankEvalHitItem[];
52
- metric_details: Record<string, Record<string, number>>;
52
+ metric_details: Record<string, Record<string, any>>;
53
53
  metric_score: number;
54
54
  unrated_docs: UnratedDocument[];
55
55
  }
@@ -81,7 +81,7 @@ export type RankEvalQuery = {
81
81
 
82
82
  export type RankEvalRequestItem = {
83
83
  id: Common.Id;
84
- params?: Record<string, Record<string, any>>;
84
+ params?: Record<string, any>;
85
85
  ratings: DocumentRating[];
86
86
  request?: RankEvalQuery;
87
87
  template_id?: Common.Id;
@@ -40,7 +40,7 @@ export type Term = {
40
40
  }
41
41
 
42
42
  export type TermVector = {
43
- field_statistics: FieldStatistics;
43
+ field_statistics?: FieldStatistics;
44
44
  terms: Record<string, Term>;
45
45
  }
46
46
 
@@ -19,7 +19,6 @@ import * as Common_Aggregations from './_common.aggregations'
19
19
  import * as Common_Analysis from './_common.analysis'
20
20
  import * as Common_Mapping from './_common.mapping'
21
21
  import * as Common_QueryDsl from './_common.query_dsl'
22
- import * as Core_Common from './_core._common'
23
22
  import * as Core_Bulk from './_core.bulk'
24
23
  import * as Core_Explain from './_core.explain'
25
24
  import * as Core_FieldCaps from './_core.field_caps'
@@ -30,6 +29,7 @@ import * as Core_Mget from './_core.mget'
30
29
  import * as Core_MsearchTemplate from './_core.msearch_template'
31
30
  import * as Core_Msearch from './_core.msearch'
32
31
  import * as Core_Mtermvectors from './_core.mtermvectors'
32
+ import * as Core_Pit from './_core.pit'
33
33
  import * as Core_RankEval from './_core.rank_eval'
34
34
  import * as Core_ReindexRethrottle from './_core.reindex_rethrottle'
35
35
  import * as Core_Reindex from './_core.reindex'
@@ -128,7 +128,6 @@ export {
128
128
  Common_Analysis,
129
129
  Common_Mapping,
130
130
  Common_QueryDsl,
131
- Core_Common,
132
131
  Core_Bulk,
133
132
  Core_Explain,
134
133
  Core_FieldCaps,
@@ -139,6 +138,7 @@ export {
139
138
  Core_MsearchTemplate,
140
139
  Core_Msearch,
141
140
  Core_Mtermvectors,
141
+ Core_Pit,
142
142
  Core_RankEval,
143
143
  Core_ReindexRethrottle,
144
144
  Core_Reindex,
@@ -29,10 +29,29 @@ export type Action = {
29
29
 
30
30
  export type AdditionalInfo = Record<string, any>
31
31
 
32
+ export type Aggregation = {
33
+ field?: string;
34
+ max?: Aggregation;
35
+ sum?: Aggregation;
36
+ [key: string]: any;
37
+ }
38
+
32
39
  export type Algorithm = {
33
- value?: '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';
40
+ value?: FunctionName;
41
+ }
42
+
43
+ export type AlgorithmOperations = {
44
+ deploy?: ModelStats;
45
+ execute?: ModelStats;
46
+ predict?: ModelStats;
47
+ register?: ModelStats;
48
+ train?: ModelStats;
49
+ train_predict?: ModelStats;
50
+ undeploy?: ModelStats;
34
51
  }
35
52
 
53
+ export type Algorithms = Record<string, AlgorithmOperations>
54
+
36
55
  export type BoolQuery = {
37
56
  filter?: Filter[];
38
57
  must?: Filter[];
@@ -40,6 +59,13 @@ export type BoolQuery = {
40
59
  should?: Filter[];
41
60
  }
42
61
 
62
+ export type Buckets = {
63
+ end_time?: number;
64
+ entities?: Entity[];
65
+ overall_aggregate_value?: number;
66
+ start_time?: number;
67
+ }
68
+
43
69
  export type ByteBuffer = {
44
70
  array?: string;
45
71
  order?: 'BIG_ENDIAN' | 'LITTLE_ENDIAN';
@@ -67,6 +93,26 @@ export type Credential = {
67
93
  [key: string]: any;
68
94
  }
69
95
 
96
+ export type Entity = {
97
+ base_value?: number;
98
+ contribution_value?: number;
99
+ key?: string[];
100
+ new_value?: number;
101
+ }
102
+
103
+ export type ExecuteAlgorithmResponse = ExecuteLocalSampleCalculatorResponse | {
104
+ results?: ExecuteAnomalyLocalizationResponse[];
105
+ }
106
+
107
+ export type ExecuteAnomalyLocalizationResponse = {
108
+ name?: string;
109
+ result?: Result;
110
+ }
111
+
112
+ export type ExecuteLocalSampleCalculatorResponse = {
113
+ result?: number;
114
+ }
115
+
70
116
  export type Exists = {
71
117
  field?: Common.Field;
72
118
  }
@@ -80,6 +126,18 @@ export type Filter = {
80
126
  terms?: Term;
81
127
  }
82
128
 
129
+ 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'
130
+
131
+ export type GetAgentResponse = {
132
+ created_time?: number;
133
+ description?: string;
134
+ is_hidden?: boolean;
135
+ last_updated_time?: number;
136
+ name?: Common.Name;
137
+ tools?: ToolItems[];
138
+ type?: 'conversational' | 'conversational_flow' | 'flow';
139
+ }
140
+
83
141
  export type GetConnectorResponse = {
84
142
  actions?: Action[];
85
143
  created_time?: number;
@@ -91,17 +149,19 @@ export type GetConnectorResponse = {
91
149
  version?: Common.VersionString;
92
150
  }
93
151
 
94
- export type GetMemoryResponse = Memory | {
95
- memories?: Memory[];
96
- next_token?: number;
152
+ export type GetProfileResponse = {
153
+ nodes?: Nodes;
97
154
  }
98
155
 
99
- export type GetMessageResponse = Message | {
100
- messages?: Message[];
101
- }
102
-
103
- export type GetMessageTracesResponse = {
104
- traces?: Message[];
156
+ export type GetStatsResponse = {
157
+ ml_config_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
158
+ ml_connector_count?: number;
159
+ ml_connector_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
160
+ ml_controller_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
161
+ ml_model_count?: number;
162
+ ml_model_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
163
+ ml_task_index_status?: 'green' | 'non-existent' | 'red' | 'yellow';
164
+ nodes?: NodeStats;
105
165
  }
106
166
 
107
167
  export type Guardrails = {
@@ -193,7 +253,7 @@ export type Model = {
193
253
  model_config?: ModelConfig;
194
254
  model_content_hash_value?: string;
195
255
  model_content_size_in_bytes?: number;
196
- model_format?: Common.ModelFormat;
256
+ model_format?: ModelFormat;
197
257
  model_group_id?: string;
198
258
  model_state: 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED';
199
259
  model_version?: string;
@@ -208,6 +268,8 @@ export type ModelConfig = {
208
268
  model_type?: string;
209
269
  }
210
270
 
271
+ export type ModelFormat = 'ONNX' | 'TORCH_SCRIPT'
272
+
211
273
  export type ModelGroup = {
212
274
  access: 'private' | 'public' | 'restricted';
213
275
  created_time?: number;
@@ -223,6 +285,31 @@ export type ModelGroupRegistration = {
223
285
  status: string;
224
286
  }
225
287
 
288
+ export type ModelProfile = {
289
+ deploy?: ModelStats;
290
+ execute?: ModelStats;
291
+ memory_size_estimation_cpu?: number;
292
+ memory_size_estimation_gpu?: number;
293
+ model_state?: 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED';
294
+ predict?: ModelStats;
295
+ predict_request_stats?: PredictRequestStats;
296
+ predictor?: string;
297
+ register?: ModelStats;
298
+ target_worker_nodes?: Common.NodeIds[];
299
+ train?: ModelStats;
300
+ train_predict?: ModelStats;
301
+ undeploy?: ModelStats;
302
+ worker_nodes?: Common.NodeIds[];
303
+ }
304
+
305
+ export type Models = Record<string, ModelProfile>
306
+
307
+ export type ModelStats = {
308
+ ml_action_failure_count?: number;
309
+ ml_action_request_count?: number;
310
+ ml_executing_task_count?: number;
311
+ }
312
+
226
313
  export type Nested = {
227
314
  boost?: number;
228
315
  ignore_unmapped?: boolean;
@@ -231,11 +318,32 @@ export type Nested = {
231
318
  score_mode?: 'avg' | 'max' | 'min' | 'none' | 'sum';
232
319
  }
233
320
 
321
+ export type Node = {
322
+ models?: Models;
323
+ tasks?: Tasks;
324
+ }
325
+
326
+ export type Nodes = Record<string, Node>
327
+
328
+ export type NodeStats = Record<string, NodeStatsDetails>
329
+
330
+ export type NodeStatsDetails = {
331
+ algorithms?: Algorithms;
332
+ ml_circuit_breaker_trigger_count?: number;
333
+ ml_deployed_model_count?: number;
334
+ ml_executing_task_count?: number;
335
+ ml_failure_count?: number;
336
+ ml_jvm_heap_usage?: number;
337
+ ml_request_count?: number;
338
+ models?: Models;
339
+ }
340
+
234
341
  export type Output = {
235
342
  byte_buffer?: ByteBuffer;
236
343
  data: number[];
237
344
  data_type?: 'BOOLEAN' | 'FLOAT16' | 'FLOAT32' | 'FLOAT64' | 'INT32' | 'INT64' | 'INT8' | 'STRING' | 'UINT8' | 'UNKNOWN';
238
345
  name?: string;
346
+ result?: string;
239
347
  shape?: number[];
240
348
  }
241
349
 
@@ -275,17 +383,36 @@ export type PredictModelResult = {
275
383
  output?: PredictModelOutput[];
276
384
  }
277
385
 
386
+ export type PredictRequestStats = {
387
+ average?: number;
388
+ count?: number;
389
+ max?: number;
390
+ min?: number;
391
+ p50?: number;
392
+ p90?: number;
393
+ p99?: number;
394
+ }
395
+
278
396
  export type PredictResponse = {
279
397
  inference_results?: InferenceResults[];
280
398
  prediction_result?: PredictionResult;
281
399
  status?: Status;
282
400
  }
283
401
 
402
+ export type ProfileRequest = {
403
+ model_ids?: Common.Id[];
404
+ node_ids?: Common.Id[];
405
+ return_all_models?: boolean;
406
+ return_all_tasks?: boolean;
407
+ task_ids?: Common.Id[];
408
+ }
409
+
284
410
  export type Query = {
285
411
  bool?: BoolQuery;
286
412
  match?: Match;
287
413
  match_all?: MatchAllQuery;
288
414
  term?: Term;
415
+ [key: string]: any;
289
416
  }
290
417
 
291
418
  export type Range = {
@@ -295,14 +422,20 @@ export type Range = {
295
422
  }
296
423
 
297
424
  export type RateLimiter = {
298
- limit: number;
425
+ limit: Common.StringifiedDouble;
299
426
  unit: 'DAYS' | 'HOURS' | 'MICROSECONDS' | 'MILLISECONDS' | 'MINUTES' | 'NANOSECONDS' | 'SECONDS';
300
427
  }
301
428
 
429
+ export type Result = {
430
+ buckets?: Buckets[];
431
+ }
432
+
302
433
  export type Rows = {
303
434
  values?: Values[];
304
435
  }
305
436
 
437
+ export type SearchAgentsResponse = SearchResponse
438
+
306
439
  export type SearchConnectorsResponse = SearchResponse
307
440
 
308
441
  export type SearchHits = {
@@ -315,7 +448,7 @@ export type SearchHitsHit = {
315
448
  _id?: Common.Id;
316
449
  _index?: Common.IndexName;
317
450
  _primary_term?: number;
318
- _score: number;
451
+ _score: undefined | number;
319
452
  _seq_no?: Common.SequenceNumber;
320
453
  _source?: Source;
321
454
  _version?: Common.VersionNumber;
@@ -338,6 +471,8 @@ export type SearchResponse = {
338
471
  took?: number;
339
472
  }
340
473
 
474
+ export type SearchTasksResponse = SearchResponse
475
+
341
476
  export type Sort = {
342
477
  _id?: SortOrder;
343
478
  _index?: SortOrder;
@@ -363,6 +498,19 @@ export type Sort = {
363
498
  total_chunks?: SortOrder;
364
499
  }
365
500
 
501
+ export type SortAgent = {
502
+ _id?: SortOrder;
503
+ _index?: SortOrder;
504
+ _score?: SortOrder;
505
+ _seq_no?: SortOrder;
506
+ created_time?: SortOrder;
507
+ is_hidden?: SortOrder;
508
+ last_updated_time?: SortOrder;
509
+ parameters?: SortOrder;
510
+ tools?: SortOrder;
511
+ type?: SortOrder;
512
+ }
513
+
366
514
  export type SortMemory = {
367
515
  _id?: SortOrder;
368
516
  _index?: SortOrder;
@@ -397,27 +545,34 @@ export type Source = {
397
545
  actions?: Action[];
398
546
  additional_info?: AdditionalInfo;
399
547
  algorithm?: string;
548
+ app_type?: string;
400
549
  application_type?: undefined | string;
401
550
  auto_redeploy_retry_times?: number;
402
551
  backend_roles?: string[];
403
552
  chunk_number?: number;
404
553
  connector_id?: string;
405
- create_time?: string;
554
+ create_time?: string | number;
406
555
  created_time?: number;
407
556
  current_worker_node_count?: number;
408
557
  deploy_to_all_nodes?: boolean;
409
558
  description?: string;
559
+ error?: string;
560
+ function_name?: FunctionName;
410
561
  input?: undefined | string;
562
+ input_type?: 'DATA_FRAME' | 'QUESTION_ANSWERING' | 'REMOTE' | 'SEARCH_QUERY' | 'TEXT_DOCS' | 'TEXT_SIMILARITY';
563
+ is_async?: boolean;
411
564
  is_hidden?: boolean;
412
565
  last_deployed_time?: number;
413
566
  last_registered_time?: number;
567
+ last_update_time?: number;
414
568
  last_updated_time?: number;
415
569
  latest_version?: number;
570
+ memory?: Memory;
416
571
  memory_id?: Common.Name;
417
572
  model_config?: ModelConfig;
418
573
  model_content_hash_value?: string;
419
574
  model_content_size_in_bytes?: number;
420
- model_format?: Common.ModelFormat;
575
+ model_format?: ModelFormat;
421
576
  model_group_id?: string;
422
577
  model_id?: Common.Name;
423
578
  model_state?: 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED';
@@ -433,12 +588,17 @@ export type Source = {
433
588
  prompt_template?: undefined | string;
434
589
  protocol?: 'aws_sigv4' | 'http';
435
590
  response?: undefined | string;
591
+ state?: Status;
592
+ task_type?: 'BATCH_INGEST' | 'BATCH_PREDICTION' | 'DEPLOY_MODEL' | 'EXECUTION' | 'PREDICTION' | 'REGISTER_MODEL' | 'TRAINING' | 'TRAINING_AND_PREDICTION';
593
+ tools?: ToolItems[];
436
594
  total_chunks?: number;
437
595
  trace_number?: undefined | string;
596
+ type?: 'conversational' | 'conversational_flow' | 'flow';
438
597
  updated_time?: string;
439
598
  url?: string;
440
599
  user?: string;
441
600
  version?: Common.VersionString;
601
+ worker_node?: Common.NodeIds[];
442
602
  }
443
603
 
444
604
  export type Status = 'CANCELLED' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREATED' | 'FAILED' | 'RUNNING'
@@ -446,25 +606,37 @@ export type Status = 'CANCELLED' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREAT
446
606
  export type Task = {
447
607
  create_time?: number;
448
608
  error?: string;
449
- function_name?: string;
609
+ function_name?: FunctionName;
450
610
  is_async?: boolean;
451
611
  last_update_time?: number;
452
612
  model_id?: string;
453
613
  state: 'CANCELLED' | 'CANCELLING' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREATED' | 'EXPIRED' | 'FAILED' | 'RUNNING';
454
614
  task_id?: string;
455
- task_type?: 'DEPLOY_MODEL' | 'REGISTER_MODEL';
615
+ task_type?: 'BATCH_INGEST' | 'BATCH_PREDICTION' | 'DEPLOY_MODEL' | 'EXECUTION' | 'PREDICTION' | 'REGISTER_MODEL' | 'TRAINING' | 'TRAINING_AND_PREDICTION';
456
616
  worker_node?: Common.NodeIds[];
457
617
  }
458
618
 
619
+ export type Tasks = Record<string, Task>
620
+
459
621
  export type Term = {
460
622
  _id?: Common.Id[];
461
623
  algorithm?: Algorithm;
624
+ function_name?: FunctionName;
462
625
  model_id?: Common.Name;
463
626
  name?: OwnerNameKeyword;
464
627
  'owner.name.keyword'?: OwnerNameKeyword;
628
+ type?: Type;
629
+ }
630
+
631
+ export type Tool = {
632
+ description?: string;
633
+ name?: Common.Name;
634
+ type?: string;
635
+ version?: Common.VersionString;
465
636
  }
466
637
 
467
638
  export type ToolItems = {
639
+ include_output_in_agent_response?: boolean;
468
640
  name?: string;
469
641
  parameters?: Parameters;
470
642
  type?: string;
@@ -487,6 +659,10 @@ export type TrainResponse = {
487
659
  status: Status;
488
660
  }
489
661
 
662
+ export type Type = {
663
+ value?: 'conversational' | 'conversational_flow' | 'flow';
664
+ }
665
+
490
666
  export type UndeployModelNode = {
491
667
  stats?: UndeployModelNodeStats;
492
668
  }
@@ -507,17 +683,6 @@ export type UpdateModelGroupResponse = {
507
683
  status?: string;
508
684
  }
509
685
 
510
- export type UpdateModelResponse = {
511
- _id?: Common.Id;
512
- _index: Common.IndexName;
513
- _primary_term?: number;
514
- _seq_no?: Common.SequenceNumber;
515
- _shards?: Common.ShardStatistics;
516
- _version?: Common.VersionNumber;
517
- forced_refresh?: boolean;
518
- result?: Common.Result;
519
- }
520
-
521
686
  export type Values = {
522
687
  column_type?: 'BOOLEAN' | 'DOUBLE' | 'INTEGER' | 'STRING';
523
688
  value?: number;
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Delete asynchronous search.
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
- * Get partial responses from asynchronous search.
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
- * Perform an asynchronous search.
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. 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.
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 `300s`. Default is `1s`.
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 exceeds this amount of time, the process cancels this query automatically.
30
+ * @param {boolean} [params.keep_on_completion] - Whether 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 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
- * Monitoring of asynchronous searches that are running, completed, and/or persisted.
22
+ * Monitors any asynchronous searches that are `running`, `completed`, or `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
@@ -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] - Expands wildcard expressions to concrete indexes. Combine multiple values with commas. Supported values are `all`, `open`, `closed`, `hidden`, and `none`.
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.
@@ -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] - Return help information.
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] - Return help information.
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] - Return help information.
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`.
@@ -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] - Return help information.
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] - Return help information.
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.
@@ -27,11 +27,11 @@ const { normalizeArguments, parsePathParam } = require('../utils');
27
27
  * @param {object} [params]
28
28
  * @param {string} [params.bytes] - The units used to display byte values.
29
29
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
30
- * @param {string} [params.expand_wildcards] - The type of index that wildcard patterns can match.
30
+ * @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
31
31
  * @param {string} [params.format] - A short version of the `Accept` header, such as `json` or `yaml`.
32
32
  * @param {array} [params.h] - A comma-separated list of column names to display.
33
33
  * @param {string} [params.health] - Limits indexes based on their health status. Supported values are `green`, `yellow`, and `red`.
34
- * @param {boolean} [params.help=false] - Return help information.
34
+ * @param {boolean} [params.help=false] - Returns help information.
35
35
  * @param {boolean} [params.include_unloaded_segments=false] - Whether to include information from segments not loaded into memory.
36
36
  * @param {boolean} [params.local=false] - Returns local information but does not retrieve the state from the cluster manager node.
37
37
  * @param {string} [params.master_timeout] DEPRECATED - The amount of time allowed to establish a connection to the cluster manager node.
package/api/cat/master.js CHANGED
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
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] - Return help information.
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 - The amount of time allowed to establish a 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.
@@ -28,7 +28,7 @@ const { normalizeArguments } = require('../utils');
28
28
  * @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
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] - Return help information.
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 - The amount of time allowed to establish a 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.