@opensearch-project/opensearch 3.0.0 → 3.1.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 +92 -3
- package/api/_core/search.d.ts +1 -0
- package/api/_types/_common.d.ts +4 -9
- 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 +158 -3
- package/api/_types/nodes.info.d.ts +17 -5
- package/api/cat/allPitSegments.d.ts +2 -2
- package/api/cat/nodes.d.ts +1 -1
- package/api/cat/nodes.js +1 -1
- package/api/cat/pitSegments.d.ts +2 -2
- package/api/cat/segmentReplication.d.ts +2 -2
- package/api/index.d.ts +42 -2
- package/api/ml/_api.js +60 -0
- package/api/ml/chunkModel.d.ts +37 -0
- package/api/ml/chunkModel.js +53 -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/deleteMemory.d.ts +31 -0
- package/api/ml/deleteMemory.js +49 -0
- package/api/ml/getMemory.d.ts +36 -0
- package/api/ml/getMemory.js +49 -0
- package/api/ml/getMessage.d.ts +31 -0
- package/api/ml/getMessage.js +55 -0
- package/api/ml/getMessageTraces.d.ts +30 -0
- package/api/ml/getMessageTraces.js +49 -0
- package/api/ml/getModel.d.ts +30 -0
- package/api/ml/getModel.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 +4 -3
- package/api/ml/registerModelMeta.d.ts +46 -0
- package/api/ml/registerModelMeta.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/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/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 +43 -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 +41 -0
- package/api/ml/uploadModel.js +47 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/api/OpenSearchApi.d.ts
CHANGED
|
@@ -736,6 +736,50 @@ export default class OpenSearchAPI {
|
|
|
736
736
|
updateConnector (params: API.Ml_UpdateConnector_Request, callback: callbackFn<API.Ml_UpdateConnector_Response>): TransportRequestCallback;
|
|
737
737
|
updateConnector (params: API.Ml_UpdateConnector_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UpdateConnector_Response>): TransportRequestCallback;
|
|
738
738
|
|
|
739
|
+
getMemory (params?: API.Ml_GetMemory_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_GetMemory_Response>;
|
|
740
|
+
getMemory (callback: callbackFn<API.Ml_GetMemory_Response>): TransportRequestCallback;
|
|
741
|
+
getMemory (params: API.Ml_GetMemory_Request, callback: callbackFn<API.Ml_GetMemory_Response>): TransportRequestCallback;
|
|
742
|
+
getMemory (params: API.Ml_GetMemory_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_GetMemory_Response>): TransportRequestCallback;
|
|
743
|
+
|
|
744
|
+
createMemory (params?: API.Ml_CreateMemory_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_CreateMemory_Response>;
|
|
745
|
+
createMemory (callback: callbackFn<API.Ml_CreateMemory_Response>): TransportRequestCallback;
|
|
746
|
+
createMemory (params: API.Ml_CreateMemory_Request, callback: callbackFn<API.Ml_CreateMemory_Response>): TransportRequestCallback;
|
|
747
|
+
createMemory (params: API.Ml_CreateMemory_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_CreateMemory_Response>): TransportRequestCallback;
|
|
748
|
+
|
|
749
|
+
searchMemory (params?: API.Ml_SearchMemory_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_SearchMemory_Response>;
|
|
750
|
+
searchMemory (callback: callbackFn<API.Ml_SearchMemory_Response>): TransportRequestCallback;
|
|
751
|
+
searchMemory (params: API.Ml_SearchMemory_Request, callback: callbackFn<API.Ml_SearchMemory_Response>): TransportRequestCallback;
|
|
752
|
+
searchMemory (params: API.Ml_SearchMemory_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_SearchMemory_Response>): TransportRequestCallback;
|
|
753
|
+
|
|
754
|
+
deleteMemory (params: API.Ml_DeleteMemory_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_DeleteMemory_Response>;
|
|
755
|
+
deleteMemory (params: API.Ml_DeleteMemory_Request, callback: callbackFn<API.Ml_DeleteMemory_Response>): TransportRequestCallback;
|
|
756
|
+
deleteMemory (params: API.Ml_DeleteMemory_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_DeleteMemory_Response>): TransportRequestCallback;
|
|
757
|
+
|
|
758
|
+
updateMemory (params: API.Ml_UpdateMemory_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UpdateMemory_Response>;
|
|
759
|
+
updateMemory (params: API.Ml_UpdateMemory_Request, callback: callbackFn<API.Ml_UpdateMemory_Response>): TransportRequestCallback;
|
|
760
|
+
updateMemory (params: API.Ml_UpdateMemory_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UpdateMemory_Response>): TransportRequestCallback;
|
|
761
|
+
|
|
762
|
+
searchMessage (params: API.Ml_SearchMessage_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_SearchMessage_Response>;
|
|
763
|
+
searchMessage (params: API.Ml_SearchMessage_Request, callback: callbackFn<API.Ml_SearchMessage_Response>): TransportRequestCallback;
|
|
764
|
+
searchMessage (params: API.Ml_SearchMessage_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_SearchMessage_Response>): TransportRequestCallback;
|
|
765
|
+
|
|
766
|
+
getMessage (params?: API.Ml_GetMessage_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_GetMessage_Response>;
|
|
767
|
+
getMessage (callback: callbackFn<API.Ml_GetMessage_Response>): TransportRequestCallback;
|
|
768
|
+
getMessage (params: API.Ml_GetMessage_Request, callback: callbackFn<API.Ml_GetMessage_Response>): TransportRequestCallback;
|
|
769
|
+
getMessage (params: API.Ml_GetMessage_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_GetMessage_Response>): TransportRequestCallback;
|
|
770
|
+
|
|
771
|
+
createMessage (params: API.Ml_CreateMessage_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_CreateMessage_Response>;
|
|
772
|
+
createMessage (params: API.Ml_CreateMessage_Request, callback: callbackFn<API.Ml_CreateMessage_Response>): TransportRequestCallback;
|
|
773
|
+
createMessage (params: API.Ml_CreateMessage_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_CreateMessage_Response>): TransportRequestCallback;
|
|
774
|
+
|
|
775
|
+
updateMessage (params: API.Ml_UpdateMessage_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UpdateMessage_Response>;
|
|
776
|
+
updateMessage (params: API.Ml_UpdateMessage_Request, callback: callbackFn<API.Ml_UpdateMessage_Response>): TransportRequestCallback;
|
|
777
|
+
updateMessage (params: API.Ml_UpdateMessage_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UpdateMessage_Response>): TransportRequestCallback;
|
|
778
|
+
|
|
779
|
+
getMessageTraces (params: API.Ml_GetMessageTraces_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_GetMessageTraces_Response>;
|
|
780
|
+
getMessageTraces (params: API.Ml_GetMessageTraces_Request, callback: callbackFn<API.Ml_GetMessageTraces_Response>): TransportRequestCallback;
|
|
781
|
+
getMessageTraces (params: API.Ml_GetMessageTraces_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_GetMessageTraces_Response>): TransportRequestCallback;
|
|
782
|
+
|
|
739
783
|
registerModelGroup (params?: API.Ml_RegisterModelGroup_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_RegisterModelGroup_Response>;
|
|
740
784
|
registerModelGroup (callback: callbackFn<API.Ml_RegisterModelGroup_Response>): TransportRequestCallback;
|
|
741
785
|
registerModelGroup (params: API.Ml_RegisterModelGroup_Request, callback: callbackFn<API.Ml_RegisterModelGroup_Response>): TransportRequestCallback;
|
|
@@ -763,22 +807,67 @@ export default class OpenSearchAPI {
|
|
|
763
807
|
registerModel (params: API.Ml_RegisterModel_Request, callback: callbackFn<API.Ml_RegisterModel_Response>): TransportRequestCallback;
|
|
764
808
|
registerModel (params: API.Ml_RegisterModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_RegisterModel_Response>): TransportRequestCallback;
|
|
765
809
|
|
|
810
|
+
registerModelMeta (params?: API.Ml_RegisterModelMeta_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_RegisterModelMeta_Response>;
|
|
811
|
+
registerModelMeta (callback: callbackFn<API.Ml_RegisterModelMeta_Response>): TransportRequestCallback;
|
|
812
|
+
registerModelMeta (params: API.Ml_RegisterModelMeta_Request, callback: callbackFn<API.Ml_RegisterModelMeta_Response>): TransportRequestCallback;
|
|
813
|
+
registerModelMeta (params: API.Ml_RegisterModelMeta_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_RegisterModelMeta_Response>): TransportRequestCallback;
|
|
814
|
+
|
|
766
815
|
searchModels (params?: API.Ml_SearchModels_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_SearchModels_Response>;
|
|
767
816
|
searchModels (callback: callbackFn<API.Ml_SearchModels_Response>): TransportRequestCallback;
|
|
768
817
|
searchModels (params: API.Ml_SearchModels_Request, callback: callbackFn<API.Ml_SearchModels_Response>): TransportRequestCallback;
|
|
769
818
|
searchModels (params: API.Ml_SearchModels_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_SearchModels_Response>): TransportRequestCallback;
|
|
770
819
|
|
|
820
|
+
undeployModel (params?: API.Ml_UndeployModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UndeployModel_Response>;
|
|
821
|
+
undeployModel (callback: callbackFn<API.Ml_UndeployModel_Response>): TransportRequestCallback;
|
|
822
|
+
undeployModel (params: API.Ml_UndeployModel_Request, callback: callbackFn<API.Ml_UndeployModel_Response>): TransportRequestCallback;
|
|
823
|
+
undeployModel (params: API.Ml_UndeployModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UndeployModel_Response>): TransportRequestCallback;
|
|
824
|
+
|
|
825
|
+
unloadModel (params?: API.Ml_UnloadModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UnloadModel_Response>;
|
|
826
|
+
unloadModel (callback: callbackFn<API.Ml_UnloadModel_Response>): TransportRequestCallback;
|
|
827
|
+
unloadModel (params: API.Ml_UnloadModel_Request, callback: callbackFn<API.Ml_UnloadModel_Response>): TransportRequestCallback;
|
|
828
|
+
unloadModel (params: API.Ml_UnloadModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UnloadModel_Response>): TransportRequestCallback;
|
|
829
|
+
|
|
830
|
+
uploadModel (params?: API.Ml_UploadModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UploadModel_Response>;
|
|
831
|
+
uploadModel (callback: callbackFn<API.Ml_UploadModel_Response>): TransportRequestCallback;
|
|
832
|
+
uploadModel (params: API.Ml_UploadModel_Request, callback: callbackFn<API.Ml_UploadModel_Response>): TransportRequestCallback;
|
|
833
|
+
uploadModel (params: API.Ml_UploadModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UploadModel_Response>): TransportRequestCallback;
|
|
834
|
+
|
|
771
835
|
deleteModel (params: API.Ml_DeleteModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_DeleteModel_Response>;
|
|
772
836
|
deleteModel (params: API.Ml_DeleteModel_Request, callback: callbackFn<API.Ml_DeleteModel_Response>): TransportRequestCallback;
|
|
773
837
|
deleteModel (params: API.Ml_DeleteModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_DeleteModel_Response>): TransportRequestCallback;
|
|
774
838
|
|
|
839
|
+
getModel (params: API.Ml_GetModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_GetModel_Response>;
|
|
840
|
+
getModel (params: API.Ml_GetModel_Request, callback: callbackFn<API.Ml_GetModel_Response>): TransportRequestCallback;
|
|
841
|
+
getModel (params: API.Ml_GetModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_GetModel_Response>): TransportRequestCallback;
|
|
842
|
+
|
|
843
|
+
updateModel (params: API.Ml_UpdateModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UpdateModel_Response>;
|
|
844
|
+
updateModel (params: API.Ml_UpdateModel_Request, callback: callbackFn<API.Ml_UpdateModel_Response>): TransportRequestCallback;
|
|
845
|
+
updateModel (params: API.Ml_UpdateModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UpdateModel_Response>): TransportRequestCallback;
|
|
846
|
+
|
|
775
847
|
deployModel (params: API.Ml_DeployModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_DeployModel_Response>;
|
|
776
848
|
deployModel (params: API.Ml_DeployModel_Request, callback: callbackFn<API.Ml_DeployModel_Response>): TransportRequestCallback;
|
|
777
849
|
deployModel (params: API.Ml_DeployModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_DeployModel_Response>): TransportRequestCallback;
|
|
778
850
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
851
|
+
loadModel (params: API.Ml_LoadModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_LoadModel_Response>;
|
|
852
|
+
loadModel (params: API.Ml_LoadModel_Request, callback: callbackFn<API.Ml_LoadModel_Response>): TransportRequestCallback;
|
|
853
|
+
loadModel (params: API.Ml_LoadModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_LoadModel_Response>): TransportRequestCallback;
|
|
854
|
+
|
|
855
|
+
predictModel (params: API.Ml_PredictModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_PredictModel_Response>;
|
|
856
|
+
predictModel (params: API.Ml_PredictModel_Request, callback: callbackFn<API.Ml_PredictModel_Response>): TransportRequestCallback;
|
|
857
|
+
predictModel (params: API.Ml_PredictModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_PredictModel_Response>): TransportRequestCallback;
|
|
858
|
+
|
|
859
|
+
chunkModel (params: API.Ml_ChunkModel_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_ChunkModel_Response>;
|
|
860
|
+
chunkModel (params: API.Ml_ChunkModel_Request, callback: callbackFn<API.Ml_ChunkModel_Response>): TransportRequestCallback;
|
|
861
|
+
chunkModel (params: API.Ml_ChunkModel_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_ChunkModel_Response>): TransportRequestCallback;
|
|
862
|
+
|
|
863
|
+
uploadChunk (params: API.Ml_UploadChunk_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_UploadChunk_Response>;
|
|
864
|
+
uploadChunk (params: API.Ml_UploadChunk_Request, callback: callbackFn<API.Ml_UploadChunk_Response>): TransportRequestCallback;
|
|
865
|
+
uploadChunk (params: API.Ml_UploadChunk_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_UploadChunk_Response>): TransportRequestCallback;
|
|
866
|
+
|
|
867
|
+
createModelMeta (params?: API.Ml_CreateModelMeta_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_CreateModelMeta_Response>;
|
|
868
|
+
createModelMeta (callback: callbackFn<API.Ml_CreateModelMeta_Response>): TransportRequestCallback;
|
|
869
|
+
createModelMeta (params: API.Ml_CreateModelMeta_Request, callback: callbackFn<API.Ml_CreateModelMeta_Response>): TransportRequestCallback;
|
|
870
|
+
createModelMeta (params: API.Ml_CreateModelMeta_Request, options: TransportRequestOptions, callback: callbackFn<API.Ml_CreateModelMeta_Response>): TransportRequestCallback;
|
|
782
871
|
|
|
783
872
|
deleteTask (params: API.Ml_DeleteTask_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ml_DeleteTask_Response>;
|
|
784
873
|
deleteTask (params: API.Ml_DeleteTask_Request, callback: callbackFn<API.Ml_DeleteTask_Response>): TransportRequestCallback;
|
package/api/_core/search.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export interface Search_Request extends Global.Params {
|
|
|
75
75
|
export type Search_RequestBody = {
|
|
76
76
|
_source?: Core_Search.SourceConfig;
|
|
77
77
|
aggregations?: Record<string, Common_Aggregations.AggregationContainer>;
|
|
78
|
+
aggs?: Record<string, Common_Aggregations.AggregationContainer>;
|
|
78
79
|
collapse?: Core_Search.FieldCollapse;
|
|
79
80
|
docvalue_fields?: Common_QueryDsl.FieldAndFormat[];
|
|
80
81
|
explain?: boolean;
|
package/api/_types/_common.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export type byte = number
|
|
|
78
78
|
|
|
79
79
|
export type ByteCount = number
|
|
80
80
|
|
|
81
|
-
export type ByteUnit = 'b' | '
|
|
81
|
+
export type ByteUnit = 'b' | 'kb' | 'k' | 'mb' | 'm' | 'gb' | 'g' | 'tb' | 't' | 'pb' | 'p'
|
|
82
82
|
|
|
83
83
|
export type ClusterDetails = {
|
|
84
84
|
_shards?: ShardStatistics;
|
|
@@ -280,11 +280,6 @@ export type HealthStatus = 'green' | 'GREEN' | 'yellow' | 'YELLOW' | 'red' | 'RE
|
|
|
280
280
|
|
|
281
281
|
export type Host = string
|
|
282
282
|
|
|
283
|
-
export type HourAndMinute = {
|
|
284
|
-
hour: number[];
|
|
285
|
-
minute: number[];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
283
|
export type HttpHeaders = Record<string, StringOrStringArray>
|
|
289
284
|
|
|
290
285
|
export type HumanReadableByteCount = string
|
|
@@ -382,6 +377,8 @@ export type Metadata = Record<string, any>
|
|
|
382
377
|
|
|
383
378
|
export type MinimumShouldMatch = number | string
|
|
384
379
|
|
|
380
|
+
export type ModelFormat = 'ONNX' | 'TORCH_SCRIPT'
|
|
381
|
+
|
|
385
382
|
export type MultiTermQueryRewrite = 'constant_score' | 'constant_score_boolean' | 'scoring_boolean' | string
|
|
386
383
|
|
|
387
384
|
export type Name = string
|
|
@@ -633,8 +630,6 @@ export type RrfRank = RankBase & {
|
|
|
633
630
|
window_size?: number;
|
|
634
631
|
}
|
|
635
632
|
|
|
636
|
-
export type ScheduleTimeOfDay = string | HourAndMinute
|
|
637
|
-
|
|
638
633
|
export type ScoreSort = {
|
|
639
634
|
order?: SortOrder;
|
|
640
635
|
}
|
|
@@ -849,7 +844,7 @@ export type ThreadInfo = {
|
|
|
849
844
|
|
|
850
845
|
export type TimeOfDay = string
|
|
851
846
|
|
|
852
|
-
export type TimeUnit = '
|
|
847
|
+
export type TimeUnit = 'nanos' | 'micros' | 'ms' | 's' | 'm' | 'h' | 'd'
|
|
853
848
|
|
|
854
849
|
export type TimeZone = string
|
|
855
850
|
|
|
@@ -16,24 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
|
-
export type
|
|
20
|
-
committed?: string;
|
|
21
|
-
compound?: string;
|
|
22
|
-
'docs.count'?: string;
|
|
23
|
-
'docs.deleted'?: string;
|
|
24
|
-
generation?: string;
|
|
25
|
-
index?: string;
|
|
26
|
-
ip?: string;
|
|
27
|
-
prirep?: string;
|
|
28
|
-
searchable?: string;
|
|
29
|
-
segment?: string;
|
|
30
|
-
shard?: string;
|
|
31
|
-
size?: string;
|
|
32
|
-
'size.memory'?: string;
|
|
33
|
-
version?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type CatSegmentReplicationRecord = {
|
|
19
|
+
export type SegmentReplicationRecord = {
|
|
37
20
|
bytes?: string;
|
|
38
21
|
bytes_behind?: string;
|
|
39
22
|
bytes_fetched?: string;
|
|
@@ -26,7 +26,7 @@ export type SnapshotsRecord = {
|
|
|
26
26
|
reason?: string;
|
|
27
27
|
repository?: string;
|
|
28
28
|
start_epoch?: Common.StringifiedEpochTimeUnitSeconds;
|
|
29
|
-
start_time?: Common.
|
|
29
|
+
start_time?: Common.TimeOfDay;
|
|
30
30
|
status?: string;
|
|
31
31
|
successful_shards?: string;
|
|
32
32
|
total_shards?: string;
|
|
@@ -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_Common from './_core._common'
|
|
23
|
+
import * as Core_Bulk from './_core.bulk'
|
|
24
|
+
import * as Core_Explain from './_core.explain'
|
|
25
|
+
import * as Core_FieldCaps from './_core.field_caps'
|
|
26
|
+
import * as Core_GetScriptContext from './_core.get_script_context'
|
|
27
|
+
import * as Core_GetScriptLanguages from './_core.get_script_languages'
|
|
28
|
+
import * as Core_Get from './_core.get'
|
|
29
|
+
import * as Core_Mget from './_core.mget'
|
|
30
|
+
import * as Core_MsearchTemplate from './_core.msearch_template'
|
|
31
|
+
import * as Core_Msearch from './_core.msearch'
|
|
32
|
+
import * as Core_Mtermvectors from './_core.mtermvectors'
|
|
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_Common,
|
|
132
|
+
Core_Bulk,
|
|
133
|
+
Core_Explain,
|
|
134
|
+
Core_FieldCaps,
|
|
135
|
+
Core_GetScriptContext,
|
|
136
|
+
Core_GetScriptLanguages,
|
|
137
|
+
Core_Get,
|
|
138
|
+
Core_Mget,
|
|
139
|
+
Core_MsearchTemplate,
|
|
140
|
+
Core_Msearch,
|
|
141
|
+
Core_Mtermvectors,
|
|
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:
|
|
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' | '
|
|
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
|
-
|
|
270
|
+
batch_size?: number;
|
|
308
271
|
field_map: Record<string, string>;
|
|
309
272
|
model_id: Common.Id;
|
|
310
273
|
}
|